@lessly/sdk-app 99.3.0 → 99.5.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.
- package/CHANGELOG.md +21 -35
- package/dist/_types/gen/client.gen.d.ts +38 -1
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
- package/dist/_types/gen/playground/index.d.ts +3 -0
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
- package/dist/_types/gen/types.gen.d.ts +326 -0
- package/dist/chunk-AUAST275.js +11946 -0
- package/dist/chunk-AUAST275.js.map +1 -0
- package/dist/index.cjs +227 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -11727
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs +106 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +1 -0
- package/dist/playground/index.d.ts +1 -0
- package/dist/playground/index.js +78 -0
- package/dist/playground/index.js.map +1 -0
- package/package.json +12 -2
- package/src/gen/bindings.gen.ts +216 -1
- package/src/gen/client.gen.ts +71 -0
- package/src/gen/manifest.gen.ts +21 -1
- package/src/gen/playground/connect.gen.ts +9 -0
- package/src/gen/playground/index.ts +4 -0
- package/src/gen/playground/queryOptions.gen.ts +119 -0
- package/src/gen/types.gen.ts +372 -0
|
@@ -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,78 @@
|
|
|
1
|
+
import { wsBindings } from '../chunk-AUAST275.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 playgroundEchoPingQueryOptions = (sdk, input) => ({
|
|
29
|
+
queryKey: ["playground", "echo", "ping", input],
|
|
30
|
+
queryFn: () => sdk["playground"]["echo"]["ping"](input)
|
|
31
|
+
});
|
|
32
|
+
var playgroundGdriveGetLastChangeQueryOptions = (sdk, input) => ({
|
|
33
|
+
queryKey: ["playground", "gdrive", "get-last-change", input],
|
|
34
|
+
queryFn: () => sdk["playground"]["gdrive"]["get-last-change"](input)
|
|
35
|
+
});
|
|
36
|
+
var playgroundGdriveReadFileQueryOptions = (sdk, input) => ({
|
|
37
|
+
queryKey: ["playground", "gdrive", "read-file", input],
|
|
38
|
+
queryFn: () => sdk["playground"]["gdrive"]["read-file"](input)
|
|
39
|
+
});
|
|
40
|
+
var playgroundGoogleadsReadCustomerQueryOptions = (sdk, input) => ({
|
|
41
|
+
queryKey: ["playground", "googleads", "read-customer", input],
|
|
42
|
+
queryFn: () => sdk["playground"]["googleads"]["read-customer"](input)
|
|
43
|
+
});
|
|
44
|
+
var playgroundLifecycleGetStateQueryOptions = (sdk, input) => ({
|
|
45
|
+
queryKey: ["playground", "lifecycle", "get-state", input],
|
|
46
|
+
queryFn: () => sdk["playground"]["lifecycle"]["get-state"](input)
|
|
47
|
+
});
|
|
48
|
+
var playgroundLifecycleListEventsQueryOptions = (sdk, input) => ({
|
|
49
|
+
queryKey: ["playground", "lifecycle", "list-events", input],
|
|
50
|
+
queryFn: () => sdk["playground"]["lifecycle"]["list-events"](input)
|
|
51
|
+
});
|
|
52
|
+
var playgroundWebhookGetLastQueryOptions = (sdk, input) => ({
|
|
53
|
+
queryKey: ["playground", "webhook", "get-last", input],
|
|
54
|
+
queryFn: () => sdk["playground"]["webhook"]["get-last"](input)
|
|
55
|
+
});
|
|
56
|
+
var playgroundWorkflowEchoMutationOptions = (sdk) => ({
|
|
57
|
+
mutationKey: ["playground", "workflow", "echo"],
|
|
58
|
+
mutationFn: (input) => sdk["playground"]["workflow"]["echo"](input)
|
|
59
|
+
});
|
|
60
|
+
var playgroundWorkflowEchoListQueryOptions = (sdk, input) => ({
|
|
61
|
+
queryKey: ["playground", "workflow", "echo-list", input],
|
|
62
|
+
queryFn: () => sdk["playground"]["workflow"]["echo-list"](input)
|
|
63
|
+
});
|
|
64
|
+
var playgroundWorkflowPingMutationOptions = (sdk) => ({
|
|
65
|
+
mutationKey: ["playground", "workflow", "ping"],
|
|
66
|
+
mutationFn: (input) => sdk["playground"]["workflow"]["ping"](input)
|
|
67
|
+
});
|
|
68
|
+
var playgroundWorkflowSubjectsListQueryOptions = (sdk, input) => ({
|
|
69
|
+
queryKey: ["playground", "workflow", "subjects-list", input],
|
|
70
|
+
queryFn: () => sdk["playground"]["workflow"]["subjects-list"](input)
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// src/gen/playground/connect.gen.ts
|
|
74
|
+
var playgroundWsEchoConnect = (sdk, input) => sdk.openStream(wsBindings["playground"]["ws"]["echo"], input);
|
|
75
|
+
|
|
76
|
+
export { playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundEchoPingQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions, playgroundWorkflowEchoListQueryOptions, playgroundWorkflowEchoMutationOptions, playgroundWorkflowPingMutationOptions, playgroundWorkflowSubjectsListQueryOptions, playgroundWsEchoConnect };
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
78
|
+
//# 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":";;;AAmCO,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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A,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 PlaygroundEchoPingInput,\n PlaygroundEchoPingOutput,\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 PlaygroundWorkflowSubjectsListInput,\n PlaygroundWorkflowSubjectsListOutput,\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 playgroundEchoPingQueryOptions = (sdk: GeneratedClient, input: PlaygroundEchoPingInput) => ({\n queryKey: ['playground', 'echo', 'ping', input] as const,\n queryFn: () => sdk['playground']['echo']['ping'](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\nexport const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({\n queryKey: ['playground', 'workflow', 'subjects-list', input] as const,\n queryFn: () => sdk['playground']['workflow']['subjects-list'](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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
3
|
"description": "The Lessly SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lessly Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lessly platform services with full type safety and autocompletion.",
|
|
4
|
-
"version": "99.
|
|
4
|
+
"version": "99.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
|
|
@@ -159,6 +159,16 @@
|
|
|
159
159
|
"default": "./dist/organization/index.cjs"
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
+
"./playground": {
|
|
163
|
+
"import": {
|
|
164
|
+
"types": "./dist/playground/index.d.ts",
|
|
165
|
+
"default": "./dist/playground/index.js"
|
|
166
|
+
},
|
|
167
|
+
"require": {
|
|
168
|
+
"types": "./dist/playground/index.d.cts",
|
|
169
|
+
"default": "./dist/playground/index.cjs"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
162
172
|
"./realtime": {
|
|
163
173
|
"import": {
|
|
164
174
|
"types": "./dist/realtime/index.d.ts",
|
|
@@ -210,5 +220,5 @@
|
|
|
210
220
|
}
|
|
211
221
|
}
|
|
212
222
|
},
|
|
213
|
-
"sdkContentHash": "sha256:
|
|
223
|
+
"sdkContentHash": "sha256:3422c28bd7d4f05ff5c88eb240a02dae0239d464f816ad4bbe0cc2c97568023f"
|
|
214
224
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -7646,6 +7646,213 @@ export const bindings: BindingsMap = {
|
|
|
7646
7646
|
}
|
|
7647
7647
|
}
|
|
7648
7648
|
},
|
|
7649
|
+
"playground": {
|
|
7650
|
+
"analytics": {
|
|
7651
|
+
"overview": {
|
|
7652
|
+
"level": "read",
|
|
7653
|
+
"method": "POST",
|
|
7654
|
+
"operationKey": "playground_analytics_overview",
|
|
7655
|
+
"params": [
|
|
7656
|
+
{
|
|
7657
|
+
"in": "body",
|
|
7658
|
+
"name": "limit"
|
|
7659
|
+
}
|
|
7660
|
+
],
|
|
7661
|
+
"path": "/playground/analytics/overview",
|
|
7662
|
+
"readOnly": true
|
|
7663
|
+
}
|
|
7664
|
+
},
|
|
7665
|
+
"billing": {
|
|
7666
|
+
"entitlements": {
|
|
7667
|
+
"level": "read",
|
|
7668
|
+
"method": "POST",
|
|
7669
|
+
"operationKey": "playground_billing_entitlements",
|
|
7670
|
+
"path": "/playground/billing/entitlements",
|
|
7671
|
+
"readOnly": true
|
|
7672
|
+
},
|
|
7673
|
+
"record-usage": {
|
|
7674
|
+
"level": "write",
|
|
7675
|
+
"method": "POST",
|
|
7676
|
+
"operationKey": "playground_billing_record-usage",
|
|
7677
|
+
"params": [
|
|
7678
|
+
{
|
|
7679
|
+
"in": "body",
|
|
7680
|
+
"name": "value"
|
|
7681
|
+
}
|
|
7682
|
+
],
|
|
7683
|
+
"path": "/playground/billing/usage",
|
|
7684
|
+
"readOnly": false
|
|
7685
|
+
}
|
|
7686
|
+
},
|
|
7687
|
+
"clickup": {
|
|
7688
|
+
"create-task": {
|
|
7689
|
+
"level": "write",
|
|
7690
|
+
"method": "POST",
|
|
7691
|
+
"operationKey": "playground_clickup_create-task",
|
|
7692
|
+
"params": [
|
|
7693
|
+
{
|
|
7694
|
+
"in": "body",
|
|
7695
|
+
"name": "listId"
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
"in": "body",
|
|
7699
|
+
"name": "name"
|
|
7700
|
+
}
|
|
7701
|
+
],
|
|
7702
|
+
"path": "/playground/clickup/tasks",
|
|
7703
|
+
"readOnly": false
|
|
7704
|
+
},
|
|
7705
|
+
"get-last-webhook": {
|
|
7706
|
+
"level": "read",
|
|
7707
|
+
"method": "GET",
|
|
7708
|
+
"operationKey": "playground_clickup_get-last-webhook",
|
|
7709
|
+
"path": "/playground/clickup/webhooks/last",
|
|
7710
|
+
"readOnly": true
|
|
7711
|
+
},
|
|
7712
|
+
"get-overview": {
|
|
7713
|
+
"level": "read",
|
|
7714
|
+
"method": "GET",
|
|
7715
|
+
"operationKey": "playground_clickup_get-overview",
|
|
7716
|
+
"path": "/playground/clickup/overview",
|
|
7717
|
+
"readOnly": true
|
|
7718
|
+
}
|
|
7719
|
+
},
|
|
7720
|
+
"echo": {
|
|
7721
|
+
"ping": {
|
|
7722
|
+
"level": "read",
|
|
7723
|
+
"method": "POST",
|
|
7724
|
+
"operationKey": "playground_echo_ping",
|
|
7725
|
+
"params": [
|
|
7726
|
+
{
|
|
7727
|
+
"in": "body",
|
|
7728
|
+
"name": "message"
|
|
7729
|
+
}
|
|
7730
|
+
],
|
|
7731
|
+
"path": "/playground/echo/ping",
|
|
7732
|
+
"readOnly": true
|
|
7733
|
+
}
|
|
7734
|
+
},
|
|
7735
|
+
"gdrive": {
|
|
7736
|
+
"get-last-change": {
|
|
7737
|
+
"level": "read",
|
|
7738
|
+
"method": "GET",
|
|
7739
|
+
"operationKey": "playground_gdrive_get-last-change",
|
|
7740
|
+
"path": "/playground/gdrive/changes/last",
|
|
7741
|
+
"readOnly": true
|
|
7742
|
+
},
|
|
7743
|
+
"read-file": {
|
|
7744
|
+
"level": "read",
|
|
7745
|
+
"method": "POST",
|
|
7746
|
+
"operationKey": "playground_gdrive_read-file",
|
|
7747
|
+
"params": [
|
|
7748
|
+
{
|
|
7749
|
+
"in": "body",
|
|
7750
|
+
"name": "fileId"
|
|
7751
|
+
}
|
|
7752
|
+
],
|
|
7753
|
+
"path": "/playground/gdrive/file",
|
|
7754
|
+
"readOnly": true
|
|
7755
|
+
}
|
|
7756
|
+
},
|
|
7757
|
+
"googleads": {
|
|
7758
|
+
"read-customer": {
|
|
7759
|
+
"level": "read",
|
|
7760
|
+
"method": "POST",
|
|
7761
|
+
"operationKey": "playground_googleads_read-customer",
|
|
7762
|
+
"path": "/playground/googleads/customer",
|
|
7763
|
+
"readOnly": true
|
|
7764
|
+
}
|
|
7765
|
+
},
|
|
7766
|
+
"lifecycle": {
|
|
7767
|
+
"get-state": {
|
|
7768
|
+
"level": "read",
|
|
7769
|
+
"method": "GET",
|
|
7770
|
+
"operationKey": "playground_lifecycle_get-state",
|
|
7771
|
+
"path": "/playground/lifecycle/state",
|
|
7772
|
+
"readOnly": true
|
|
7773
|
+
},
|
|
7774
|
+
"list-events": {
|
|
7775
|
+
"level": "read",
|
|
7776
|
+
"method": "GET",
|
|
7777
|
+
"operationKey": "playground_lifecycle_list-events",
|
|
7778
|
+
"path": "/playground/lifecycle/events",
|
|
7779
|
+
"readOnly": true
|
|
7780
|
+
}
|
|
7781
|
+
},
|
|
7782
|
+
"webhook": {
|
|
7783
|
+
"get-last": {
|
|
7784
|
+
"level": "read",
|
|
7785
|
+
"method": "GET",
|
|
7786
|
+
"operationKey": "playground_webhook_get-last",
|
|
7787
|
+
"path": "/playground/webhooks/last",
|
|
7788
|
+
"readOnly": true
|
|
7789
|
+
}
|
|
7790
|
+
},
|
|
7791
|
+
"workflow": {
|
|
7792
|
+
"echo": {
|
|
7793
|
+
"level": "write",
|
|
7794
|
+
"method": "POST",
|
|
7795
|
+
"operationKey": "playground_workflow_echo",
|
|
7796
|
+
"params": [
|
|
7797
|
+
{
|
|
7798
|
+
"in": "body",
|
|
7799
|
+
"name": "note"
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
"in": "body",
|
|
7803
|
+
"name": "tags"
|
|
7804
|
+
}
|
|
7805
|
+
],
|
|
7806
|
+
"path": "/playground/workflow/echo",
|
|
7807
|
+
"readOnly": false
|
|
7808
|
+
},
|
|
7809
|
+
"echo-list": {
|
|
7810
|
+
"level": "read",
|
|
7811
|
+
"method": "GET",
|
|
7812
|
+
"operationKey": "playground_workflow_echo-list",
|
|
7813
|
+
"path": "/playground/workflow/echoes",
|
|
7814
|
+
"readOnly": true
|
|
7815
|
+
},
|
|
7816
|
+
"ping": {
|
|
7817
|
+
"level": "write",
|
|
7818
|
+
"method": "POST",
|
|
7819
|
+
"operationKey": "playground_workflow_ping",
|
|
7820
|
+
"params": [
|
|
7821
|
+
{
|
|
7822
|
+
"in": "body",
|
|
7823
|
+
"name": "kind"
|
|
7824
|
+
}
|
|
7825
|
+
],
|
|
7826
|
+
"path": "/playground/workflow/ping",
|
|
7827
|
+
"readOnly": false
|
|
7828
|
+
},
|
|
7829
|
+
"subjects-list": {
|
|
7830
|
+
"level": "read",
|
|
7831
|
+
"method": "GET",
|
|
7832
|
+
"operationKey": "playground_workflow_subjects-list",
|
|
7833
|
+
"params": [
|
|
7834
|
+
{
|
|
7835
|
+
"in": "query",
|
|
7836
|
+
"name": "last_activity_before"
|
|
7837
|
+
},
|
|
7838
|
+
{
|
|
7839
|
+
"in": "query",
|
|
7840
|
+
"name": "last_activity_after"
|
|
7841
|
+
},
|
|
7842
|
+
{
|
|
7843
|
+
"in": "query",
|
|
7844
|
+
"name": "limit"
|
|
7845
|
+
},
|
|
7846
|
+
{
|
|
7847
|
+
"in": "query",
|
|
7848
|
+
"name": "cursor"
|
|
7849
|
+
}
|
|
7850
|
+
],
|
|
7851
|
+
"path": "/playground/workflow/subjects",
|
|
7852
|
+
"readOnly": true
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7855
|
+
},
|
|
7649
7856
|
"realtime": {
|
|
7650
7857
|
"archive": {
|
|
7651
7858
|
"export": {
|
|
@@ -11727,4 +11934,12 @@ export const bindings: BindingsMap = {
|
|
|
11727
11934
|
}
|
|
11728
11935
|
};
|
|
11729
11936
|
|
|
11730
|
-
export const wsBindings: WsBindingsMap = {
|
|
11937
|
+
export const wsBindings: WsBindingsMap = {
|
|
11938
|
+
"playground": {
|
|
11939
|
+
"ws": {
|
|
11940
|
+
"echo": {
|
|
11941
|
+
"path": "/playground/ws/echo"
|
|
11942
|
+
}
|
|
11943
|
+
}
|
|
11944
|
+
}
|
|
11945
|
+
};
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -821,6 +821,40 @@ import type {
|
|
|
821
821
|
OrganizationXInstallOutput,
|
|
822
822
|
OrganizationYoutubeInstallInput,
|
|
823
823
|
OrganizationYoutubeInstallOutput,
|
|
824
|
+
PlaygroundAnalyticsOverviewInput,
|
|
825
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
826
|
+
PlaygroundBillingEntitlementsInput,
|
|
827
|
+
PlaygroundBillingEntitlementsOutput,
|
|
828
|
+
PlaygroundBillingRecordUsageInput,
|
|
829
|
+
PlaygroundBillingRecordUsageOutput,
|
|
830
|
+
PlaygroundClickupCreateTaskInput,
|
|
831
|
+
PlaygroundClickupCreateTaskOutput,
|
|
832
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
833
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
834
|
+
PlaygroundClickupGetOverviewInput,
|
|
835
|
+
PlaygroundClickupGetOverviewOutput,
|
|
836
|
+
PlaygroundEchoPingInput,
|
|
837
|
+
PlaygroundEchoPingOutput,
|
|
838
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
839
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
840
|
+
PlaygroundGdriveReadFileInput,
|
|
841
|
+
PlaygroundGdriveReadFileOutput,
|
|
842
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
843
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
844
|
+
PlaygroundLifecycleGetStateInput,
|
|
845
|
+
PlaygroundLifecycleGetStateOutput,
|
|
846
|
+
PlaygroundLifecycleListEventsInput,
|
|
847
|
+
PlaygroundLifecycleListEventsOutput,
|
|
848
|
+
PlaygroundWebhookGetLastInput,
|
|
849
|
+
PlaygroundWebhookGetLastOutput,
|
|
850
|
+
PlaygroundWorkflowEchoInput,
|
|
851
|
+
PlaygroundWorkflowEchoListInput,
|
|
852
|
+
PlaygroundWorkflowEchoListOutput,
|
|
853
|
+
PlaygroundWorkflowEchoOutput,
|
|
854
|
+
PlaygroundWorkflowPingInput,
|
|
855
|
+
PlaygroundWorkflowPingOutput,
|
|
856
|
+
PlaygroundWorkflowSubjectsListInput,
|
|
857
|
+
PlaygroundWorkflowSubjectsListOutput,
|
|
824
858
|
RealtimeArchiveExportInput,
|
|
825
859
|
RealtimeArchiveExportOutput,
|
|
826
860
|
RealtimeArchiveExportStatusInput,
|
|
@@ -1970,6 +2004,43 @@ export interface GeneratedClient {
|
|
|
1970
2004
|
install: ((input: OrganizationYoutubeInstallInput) => Promise<OrganizationYoutubeInstallOutput>) & Operation;
|
|
1971
2005
|
};
|
|
1972
2006
|
};
|
|
2007
|
+
playground: {
|
|
2008
|
+
analytics: {
|
|
2009
|
+
overview: ((input: PlaygroundAnalyticsOverviewInput) => Promise<PlaygroundAnalyticsOverviewOutput>) & Operation;
|
|
2010
|
+
};
|
|
2011
|
+
billing: {
|
|
2012
|
+
entitlements: ((input: PlaygroundBillingEntitlementsInput) => Promise<PlaygroundBillingEntitlementsOutput>) & Operation;
|
|
2013
|
+
'record-usage': ((input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>) & Operation;
|
|
2014
|
+
};
|
|
2015
|
+
clickup: {
|
|
2016
|
+
'create-task': ((input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>) & Operation;
|
|
2017
|
+
'get-last-webhook': ((input: PlaygroundClickupGetLastWebhookInput) => Promise<PlaygroundClickupGetLastWebhookOutput>) & Operation;
|
|
2018
|
+
'get-overview': ((input: PlaygroundClickupGetOverviewInput) => Promise<PlaygroundClickupGetOverviewOutput>) & Operation;
|
|
2019
|
+
};
|
|
2020
|
+
echo: {
|
|
2021
|
+
ping: ((input: PlaygroundEchoPingInput) => Promise<PlaygroundEchoPingOutput>) & Operation;
|
|
2022
|
+
};
|
|
2023
|
+
gdrive: {
|
|
2024
|
+
'get-last-change': ((input: PlaygroundGdriveGetLastChangeInput) => Promise<PlaygroundGdriveGetLastChangeOutput>) & Operation;
|
|
2025
|
+
'read-file': ((input: PlaygroundGdriveReadFileInput) => Promise<PlaygroundGdriveReadFileOutput>) & Operation;
|
|
2026
|
+
};
|
|
2027
|
+
googleads: {
|
|
2028
|
+
'read-customer': ((input: PlaygroundGoogleadsReadCustomerInput) => Promise<PlaygroundGoogleadsReadCustomerOutput>) & Operation;
|
|
2029
|
+
};
|
|
2030
|
+
lifecycle: {
|
|
2031
|
+
'get-state': ((input: PlaygroundLifecycleGetStateInput) => Promise<PlaygroundLifecycleGetStateOutput>) & Operation;
|
|
2032
|
+
'list-events': ((input: PlaygroundLifecycleListEventsInput) => Promise<PlaygroundLifecycleListEventsOutput>) & Operation;
|
|
2033
|
+
};
|
|
2034
|
+
webhook: {
|
|
2035
|
+
'get-last': ((input: PlaygroundWebhookGetLastInput) => Promise<PlaygroundWebhookGetLastOutput>) & Operation;
|
|
2036
|
+
};
|
|
2037
|
+
workflow: {
|
|
2038
|
+
echo: ((input: PlaygroundWorkflowEchoInput) => Promise<PlaygroundWorkflowEchoOutput>) & Operation;
|
|
2039
|
+
'echo-list': ((input: PlaygroundWorkflowEchoListInput) => Promise<PlaygroundWorkflowEchoListOutput>) & Operation;
|
|
2040
|
+
ping: ((input: PlaygroundWorkflowPingInput) => Promise<PlaygroundWorkflowPingOutput>) & Operation;
|
|
2041
|
+
'subjects-list': ((input: PlaygroundWorkflowSubjectsListInput) => Promise<PlaygroundWorkflowSubjectsListOutput>) & Operation;
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
1973
2044
|
realtime: {
|
|
1974
2045
|
archive: {
|
|
1975
2046
|
export: ((input: RealtimeArchiveExportInput) => Promise<RealtimeArchiveExportOutput>) & Operation;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -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', 'workflow'] as const;
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'workflow'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -414,6 +414,23 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
414
414
|
'organization_support_threads_list': 'read',
|
|
415
415
|
'organization_x_install': 'read',
|
|
416
416
|
'organization_youtube_install': 'read',
|
|
417
|
+
'playground_analytics_overview': 'read',
|
|
418
|
+
'playground_billing_entitlements': 'read',
|
|
419
|
+
'playground_billing_record-usage': 'write',
|
|
420
|
+
'playground_clickup_create-task': 'write',
|
|
421
|
+
'playground_clickup_get-last-webhook': 'read',
|
|
422
|
+
'playground_clickup_get-overview': 'read',
|
|
423
|
+
'playground_echo_ping': 'read',
|
|
424
|
+
'playground_gdrive_get-last-change': 'read',
|
|
425
|
+
'playground_gdrive_read-file': 'read',
|
|
426
|
+
'playground_googleads_read-customer': 'read',
|
|
427
|
+
'playground_lifecycle_get-state': 'read',
|
|
428
|
+
'playground_lifecycle_list-events': 'read',
|
|
429
|
+
'playground_webhook_get-last': 'read',
|
|
430
|
+
'playground_workflow_echo': 'write',
|
|
431
|
+
'playground_workflow_echo-list': 'read',
|
|
432
|
+
'playground_workflow_ping': 'write',
|
|
433
|
+
'playground_workflow_subjects-list': 'read',
|
|
417
434
|
'realtime_archive_export': 'admin',
|
|
418
435
|
'realtime_archive_export_status': 'read',
|
|
419
436
|
'realtime_archive_get': 'read',
|
|
@@ -699,6 +716,9 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
699
716
|
'mail_template_unarchive': {"label":"Unarchive template","options":{"id":"mail_template_list"}},
|
|
700
717
|
'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
|
|
701
718
|
'mail_usage_get': {"label":"Get usage"},
|
|
719
|
+
'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
|
|
720
|
+
'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
|
|
721
|
+
'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
|
|
702
722
|
'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
|
|
703
723
|
'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
|
|
704
724
|
'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import { wsBindings } from '../bindings.gen';
|
|
3
|
+
import type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';
|
|
4
|
+
import type {
|
|
5
|
+
PlaygroundWsEchoInput,
|
|
6
|
+
} from '../types.gen';
|
|
7
|
+
|
|
8
|
+
export const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>
|
|
9
|
+
sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export * from './connect.gen';
|
|
4
|
+
export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundEchoPingInput, PlaygroundEchoPingOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWorkflowEchoInput, PlaygroundWorkflowEchoListInput, PlaygroundWorkflowEchoListOutput, PlaygroundWorkflowEchoOutput, PlaygroundWorkflowPingInput, PlaygroundWorkflowPingOutput, PlaygroundWorkflowSubjectsListInput, PlaygroundWorkflowSubjectsListOutput, PlaygroundWsEchoInput } from '../types.gen';
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
PlaygroundAnalyticsOverviewInput,
|
|
5
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
6
|
+
PlaygroundBillingEntitlementsInput,
|
|
7
|
+
PlaygroundBillingEntitlementsOutput,
|
|
8
|
+
PlaygroundBillingRecordUsageInput,
|
|
9
|
+
PlaygroundClickupCreateTaskInput,
|
|
10
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
11
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
12
|
+
PlaygroundClickupGetOverviewInput,
|
|
13
|
+
PlaygroundClickupGetOverviewOutput,
|
|
14
|
+
PlaygroundEchoPingInput,
|
|
15
|
+
PlaygroundEchoPingOutput,
|
|
16
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
17
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
18
|
+
PlaygroundGdriveReadFileInput,
|
|
19
|
+
PlaygroundGdriveReadFileOutput,
|
|
20
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
21
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
22
|
+
PlaygroundLifecycleGetStateInput,
|
|
23
|
+
PlaygroundLifecycleGetStateOutput,
|
|
24
|
+
PlaygroundLifecycleListEventsInput,
|
|
25
|
+
PlaygroundLifecycleListEventsOutput,
|
|
26
|
+
PlaygroundWebhookGetLastInput,
|
|
27
|
+
PlaygroundWebhookGetLastOutput,
|
|
28
|
+
PlaygroundWorkflowEchoInput,
|
|
29
|
+
PlaygroundWorkflowEchoListInput,
|
|
30
|
+
PlaygroundWorkflowEchoListOutput,
|
|
31
|
+
PlaygroundWorkflowPingInput,
|
|
32
|
+
PlaygroundWorkflowSubjectsListInput,
|
|
33
|
+
PlaygroundWorkflowSubjectsListOutput,
|
|
34
|
+
} from '../types.gen';
|
|
35
|
+
|
|
36
|
+
export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
|
|
37
|
+
queryKey: ['playground', 'analytics', 'overview', input] as const,
|
|
38
|
+
queryFn: () => sdk['playground']['analytics']['overview'](input),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
|
|
42
|
+
queryKey: ['playground', 'billing', 'entitlements', input] as const,
|
|
43
|
+
queryFn: () => sdk['playground']['billing']['entitlements'](input),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
|
|
47
|
+
mutationKey: ['playground', 'billing', 'record-usage'],
|
|
48
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
|
|
52
|
+
mutationKey: ['playground', 'clickup', 'create-task'],
|
|
53
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
|
|
57
|
+
queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
|
|
58
|
+
queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
|
|
62
|
+
queryKey: ['playground', 'clickup', 'get-overview', input] as const,
|
|
63
|
+
queryFn: () => sdk['playground']['clickup']['get-overview'](input),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export const playgroundEchoPingQueryOptions = (sdk: GeneratedClient, input: PlaygroundEchoPingInput) => ({
|
|
67
|
+
queryKey: ['playground', 'echo', 'ping', input] as const,
|
|
68
|
+
queryFn: () => sdk['playground']['echo']['ping'](input),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
|
|
72
|
+
queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
|
|
73
|
+
queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
|
|
77
|
+
queryKey: ['playground', 'gdrive', 'read-file', input] as const,
|
|
78
|
+
queryFn: () => sdk['playground']['gdrive']['read-file'](input),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
|
|
82
|
+
queryKey: ['playground', 'googleads', 'read-customer', input] as const,
|
|
83
|
+
queryFn: () => sdk['playground']['googleads']['read-customer'](input),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
|
|
87
|
+
queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
|
|
88
|
+
queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
|
|
92
|
+
queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
|
|
93
|
+
queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
|
|
97
|
+
queryKey: ['playground', 'webhook', 'get-last', input] as const,
|
|
98
|
+
queryFn: () => sdk['playground']['webhook']['get-last'](input),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
|
|
102
|
+
mutationKey: ['playground', 'workflow', 'echo'],
|
|
103
|
+
mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
|
|
107
|
+
queryKey: ['playground', 'workflow', 'echo-list', input] as const,
|
|
108
|
+
queryFn: () => sdk['playground']['workflow']['echo-list'](input),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
|
|
112
|
+
mutationKey: ['playground', 'workflow', 'ping'],
|
|
113
|
+
mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({
|
|
117
|
+
queryKey: ['playground', 'workflow', 'subjects-list', input] as const,
|
|
118
|
+
queryFn: () => sdk['playground']['workflow']['subjects-list'](input),
|
|
119
|
+
});
|