@lessly/sdk-app 59.0.0 → 60.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.
@@ -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,58 @@
1
+ import { wsBindings } from '../chunk-SOHPEC6O.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
+
53
+ // src/gen/playground/connect.gen.ts
54
+ var playgroundWsEchoConnect = (sdk, input) => sdk.openStream(wsBindings["playground"]["ws"]["echo"], input);
55
+
56
+ export { playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions, playgroundWsEchoConnect };
57
+ //# sourceMappingURL=index.js.map
58
+ //# 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":";;;AA2BO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,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Ae,KAAK,CAAA;AAAA,EAC1D,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,aAAa,CAAA,CAAE,KAAK;AACpE,CAAA;AAEO,IAAM,oCAAA,GAAuC,CAAC,GAAA,EAAsB,KAAA,MAA0C;AAAA,EACnH,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,YAAY,KAAK,CAAA;AAAA,EACrD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AAC/D,CAAA;;;AC9EO,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} 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","// 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": "59.0.0",
3
+ "version": "60.0.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -125,6 +125,16 @@
125
125
  "default": "./dist/organization/index.cjs"
126
126
  }
127
127
  },
128
+ "./playground": {
129
+ "import": {
130
+ "types": "./dist/playground/index.d.ts",
131
+ "default": "./dist/playground/index.js"
132
+ },
133
+ "require": {
134
+ "types": "./dist/playground/index.d.cts",
135
+ "default": "./dist/playground/index.cjs"
136
+ }
137
+ },
128
138
  "./realtime": {
129
139
  "import": {
130
140
  "types": "./dist/realtime/index.d.ts",
@@ -176,5 +186,5 @@
176
186
  }
177
187
  }
178
188
  },
179
- "sdkContentHash": "sha256:fc58e5854a171da02f43a8d15697d084e9b273f421154581cb89fb0365998714"
189
+ "sdkContentHash": "sha256:e1692ecb8d0121d730d5e09c80f893ff5f932ee1b47c581f534df50f1524157a"
180
190
  }
@@ -6155,6 +6155,110 @@ export const bindings: BindingsMap = {
6155
6155
  }
6156
6156
  }
6157
6157
  },
6158
+ "playground": {
6159
+ "analytics": {
6160
+ "overview": {
6161
+ "method": "POST",
6162
+ "params": [
6163
+ {
6164
+ "in": "body",
6165
+ "name": "limit"
6166
+ }
6167
+ ],
6168
+ "path": "/playground/analytics/overview",
6169
+ "readOnly": true
6170
+ }
6171
+ },
6172
+ "billing": {
6173
+ "entitlements": {
6174
+ "method": "POST",
6175
+ "path": "/playground/billing/entitlements",
6176
+ "readOnly": true
6177
+ },
6178
+ "record-usage": {
6179
+ "method": "POST",
6180
+ "params": [
6181
+ {
6182
+ "in": "body",
6183
+ "name": "value"
6184
+ }
6185
+ ],
6186
+ "path": "/playground/billing/usage",
6187
+ "readOnly": false
6188
+ }
6189
+ },
6190
+ "clickup": {
6191
+ "create-task": {
6192
+ "method": "POST",
6193
+ "params": [
6194
+ {
6195
+ "in": "body",
6196
+ "name": "listId"
6197
+ },
6198
+ {
6199
+ "in": "body",
6200
+ "name": "name"
6201
+ }
6202
+ ],
6203
+ "path": "/playground/clickup/tasks",
6204
+ "readOnly": false
6205
+ },
6206
+ "get-last-webhook": {
6207
+ "method": "GET",
6208
+ "path": "/playground/clickup/webhooks/last",
6209
+ "readOnly": true
6210
+ },
6211
+ "get-overview": {
6212
+ "method": "GET",
6213
+ "path": "/playground/clickup/overview",
6214
+ "readOnly": true
6215
+ }
6216
+ },
6217
+ "gdrive": {
6218
+ "get-last-change": {
6219
+ "method": "GET",
6220
+ "path": "/playground/gdrive/changes/last",
6221
+ "readOnly": true
6222
+ },
6223
+ "read-file": {
6224
+ "method": "POST",
6225
+ "params": [
6226
+ {
6227
+ "in": "body",
6228
+ "name": "fileId"
6229
+ }
6230
+ ],
6231
+ "path": "/playground/gdrive/file",
6232
+ "readOnly": true
6233
+ }
6234
+ },
6235
+ "googleads": {
6236
+ "read-customer": {
6237
+ "method": "POST",
6238
+ "path": "/playground/googleads/customer",
6239
+ "readOnly": true
6240
+ }
6241
+ },
6242
+ "lifecycle": {
6243
+ "get-state": {
6244
+ "method": "GET",
6245
+ "path": "/playground/lifecycle/state",
6246
+ "readOnly": true
6247
+ },
6248
+ "list-events": {
6249
+ "method": "GET",
6250
+ "path": "/playground/lifecycle/events",
6251
+ "readOnly": true
6252
+ }
6253
+ },
6254
+ "webhook": {
6255
+ "get-last": {
6256
+ "method": "GET",
6257
+ "path": "/playground/webhooks/last",
6258
+ "readOnly": true
6259
+ }
6260
+ }
6261
+ },
6158
6262
  "realtime": {
6159
6263
  "archive": {
6160
6264
  "export": {
@@ -9018,4 +9122,12 @@ export const bindings: BindingsMap = {
9018
9122
  }
9019
9123
  };
9020
9124
 
9021
- export const wsBindings: WsBindingsMap = {};
9125
+ export const wsBindings: WsBindingsMap = {
9126
+ "playground": {
9127
+ "ws": {
9128
+ "echo": {
9129
+ "path": "/playground/ws/echo"
9130
+ }
9131
+ }
9132
+ }
9133
+ };
@@ -742,6 +742,30 @@ import type {
742
742
  OrganizationSupportThreadReplyOutput,
743
743
  OrganizationSupportThreadsListInput,
744
744
  OrganizationSupportThreadsListOutput,
745
+ PlaygroundAnalyticsOverviewInput,
746
+ PlaygroundAnalyticsOverviewOutput,
747
+ PlaygroundBillingEntitlementsInput,
748
+ PlaygroundBillingEntitlementsOutput,
749
+ PlaygroundBillingRecordUsageInput,
750
+ PlaygroundBillingRecordUsageOutput,
751
+ PlaygroundClickupCreateTaskInput,
752
+ PlaygroundClickupCreateTaskOutput,
753
+ PlaygroundClickupGetLastWebhookInput,
754
+ PlaygroundClickupGetLastWebhookOutput,
755
+ PlaygroundClickupGetOverviewInput,
756
+ PlaygroundClickupGetOverviewOutput,
757
+ PlaygroundGdriveGetLastChangeInput,
758
+ PlaygroundGdriveGetLastChangeOutput,
759
+ PlaygroundGdriveReadFileInput,
760
+ PlaygroundGdriveReadFileOutput,
761
+ PlaygroundGoogleadsReadCustomerInput,
762
+ PlaygroundGoogleadsReadCustomerOutput,
763
+ PlaygroundLifecycleGetStateInput,
764
+ PlaygroundLifecycleGetStateOutput,
765
+ PlaygroundLifecycleListEventsInput,
766
+ PlaygroundLifecycleListEventsOutput,
767
+ PlaygroundWebhookGetLastInput,
768
+ PlaygroundWebhookGetLastOutput,
745
769
  RealtimeArchiveExportInput,
746
770
  RealtimeArchiveExportOutput,
747
771
  RealtimeArchiveExportStatusInput,
@@ -1728,6 +1752,34 @@ export interface GeneratedClient {
1728
1752
  list(input: OrganizationSupportThreadsListInput): Promise<OrganizationSupportThreadsListOutput>;
1729
1753
  };
1730
1754
  };
1755
+ playground: {
1756
+ analytics: {
1757
+ overview(input: PlaygroundAnalyticsOverviewInput): Promise<PlaygroundAnalyticsOverviewOutput>;
1758
+ };
1759
+ billing: {
1760
+ entitlements(input: PlaygroundBillingEntitlementsInput): Promise<PlaygroundBillingEntitlementsOutput>;
1761
+ 'record-usage'(input: PlaygroundBillingRecordUsageInput): Promise<PlaygroundBillingRecordUsageOutput>;
1762
+ };
1763
+ clickup: {
1764
+ 'create-task'(input: PlaygroundClickupCreateTaskInput): Promise<PlaygroundClickupCreateTaskOutput>;
1765
+ 'get-last-webhook'(input: PlaygroundClickupGetLastWebhookInput): Promise<PlaygroundClickupGetLastWebhookOutput>;
1766
+ 'get-overview'(input: PlaygroundClickupGetOverviewInput): Promise<PlaygroundClickupGetOverviewOutput>;
1767
+ };
1768
+ gdrive: {
1769
+ 'get-last-change'(input: PlaygroundGdriveGetLastChangeInput): Promise<PlaygroundGdriveGetLastChangeOutput>;
1770
+ 'read-file'(input: PlaygroundGdriveReadFileInput): Promise<PlaygroundGdriveReadFileOutput>;
1771
+ };
1772
+ googleads: {
1773
+ 'read-customer'(input: PlaygroundGoogleadsReadCustomerInput): Promise<PlaygroundGoogleadsReadCustomerOutput>;
1774
+ };
1775
+ lifecycle: {
1776
+ 'get-state'(input: PlaygroundLifecycleGetStateInput): Promise<PlaygroundLifecycleGetStateOutput>;
1777
+ 'list-events'(input: PlaygroundLifecycleListEventsInput): Promise<PlaygroundLifecycleListEventsOutput>;
1778
+ };
1779
+ webhook: {
1780
+ 'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
1781
+ };
1782
+ };
1731
1783
  realtime: {
1732
1784
  archive: {
1733
1785
  export(input: RealtimeArchiveExportInput): Promise<RealtimeArchiveExportOutput>;
@@ -1,2 +1,2 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
- export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
2
+ export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
@@ -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, PlaygroundWsEchoInput } 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
+ });
@@ -66685,6 +66685,7 @@ dangerColor?: string
66685
66685
  successColor?: string
66686
66686
  warningColor?: string
66687
66687
  backgroundColor?: string
66688
+ primaryTextColor?: string
66688
66689
  }
66689
66690
  brandColor?: string
66690
66691
  }
@@ -85127,6 +85128,7 @@ displayName: (string | null)
85127
85128
  orgRoles: {
85128
85129
  id: string
85129
85130
  name: string
85131
+ description: (string | null)
85130
85132
  }[]
85131
85133
  canManage: boolean
85132
85134
  inherited: {
@@ -85523,6 +85525,232 @@ lastMessagePreview: (string | null)
85523
85525
  }[]
85524
85526
  }
85525
85527
 
85528
+ export interface PlaygroundAnalyticsOverviewInput {
85529
+ /**
85530
+ * Max records per entity in recent[]; omit for the endpoint default
85531
+ */
85532
+ limit?: number
85533
+ }
85534
+
85535
+ export interface PlaygroundAnalyticsOverviewOutput {
85536
+ ok: boolean
85537
+ minted: boolean
85538
+ overview?: unknown
85539
+ http_status: number
85540
+ }
85541
+
85542
+ export interface PlaygroundBillingEntitlementsInput {
85543
+
85544
+ }
85545
+
85546
+ export interface PlaygroundBillingEntitlementsOutput {
85547
+ ok: boolean
85548
+ minted: boolean
85549
+ http_status: number
85550
+ entitlements?: unknown
85551
+ }
85552
+
85553
+ export interface PlaygroundBillingRecordUsageInput {
85554
+ /**
85555
+ * Quantity of events to record against playground-events (SUM); defaults to 1
85556
+ */
85557
+ value?: number
85558
+ }
85559
+
85560
+ export interface PlaygroundBillingRecordUsageOutput {
85561
+ minted: boolean
85562
+ accepted: (number | null)
85563
+ recorded: boolean
85564
+ duplicates: (number | null)
85565
+ http_status: number
85566
+ }
85567
+
85568
+ export interface PlaygroundClickupCreateTaskInput {
85569
+ /**
85570
+ * Task title; defaults to a fixture label
85571
+ */
85572
+ name?: string
85573
+ /**
85574
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
85575
+ */
85576
+ listId?: string
85577
+ }
85578
+
85579
+ export interface PlaygroundClickupCreateTaskOutput {
85580
+ minted: boolean
85581
+ task_id: (string | null)
85582
+ list_status: number
85583
+ vend_status: number
85584
+ clickup_status: number
85585
+ installation_count: number
85586
+ }
85587
+
85588
+ export interface PlaygroundClickupGetLastWebhookInput {
85589
+
85590
+ }
85591
+
85592
+ export type PlaygroundClickupGetLastWebhookOutput = ({
85593
+ payload: string
85594
+ event_id: string
85595
+ provider: string
85596
+ verified: boolean
85597
+ product_id: string
85598
+ occurred_at: string
85599
+ connector_id: string
85600
+ clickup_event: (string | null)
85601
+ receipt_count: number
85602
+ } | {
85603
+ found: false
85604
+ })
85605
+
85606
+ export interface PlaygroundClickupGetOverviewInput {
85607
+
85608
+ }
85609
+
85610
+ export interface PlaygroundClickupGetOverviewOutput {
85611
+ team: ({
85612
+ teamId: string
85613
+ teamName: string
85614
+ } | null)
85615
+ lists: PlaygroundClickupGetOverviewOutputItems[]
85616
+ tasks: {
85617
+ id: string
85618
+ name: string
85619
+ status: (string | null)
85620
+ }[]
85621
+ minted: boolean
85622
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
85623
+ list_status: number
85624
+ vend_status: number
85625
+ lists_status: number
85626
+ tasks_status: number
85627
+ spaces_status: number
85628
+ folders_status: number
85629
+ installation_count: number
85630
+ }
85631
+ export interface PlaygroundClickupGetOverviewOutputItems {
85632
+ id: string
85633
+ name: string
85634
+ }
85635
+
85636
+ export interface PlaygroundGdriveGetLastChangeInput {
85637
+
85638
+ }
85639
+
85640
+ export type PlaygroundGdriveGetLastChangeOutput = ({
85641
+ file_id: string
85642
+ removed: boolean
85643
+ file_name: (string | null)
85644
+ mime_type: (string | null)
85645
+ product_id: string
85646
+ occurred_at: string
85647
+ connector_id: string
85648
+ resource_state: string
85649
+ } | {
85650
+ found: false
85651
+ })
85652
+
85653
+ export interface PlaygroundGdriveReadFileInput {
85654
+ /**
85655
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
85656
+ */
85657
+ fileId?: string
85658
+ }
85659
+
85660
+ export interface PlaygroundGdriveReadFileOutput {
85661
+ minted: boolean
85662
+ file_id: (string | null)
85663
+ file_name: (string | null)
85664
+ mime_type: (string | null)
85665
+ file_count: number
85666
+ get_status: number
85667
+ list_status: number
85668
+ vend_status: number
85669
+ content_bytes: (number | null)
85670
+ }
85671
+
85672
+ export interface PlaygroundGoogleadsReadCustomerInput {
85673
+
85674
+ }
85675
+
85676
+ export interface PlaygroundGoogleadsReadCustomerOutput {
85677
+ minted: boolean
85678
+ vended: boolean
85679
+ customer_id: (string | null)
85680
+ vend_status: number
85681
+ result_count: number
85682
+ search_status: number
85683
+ login_customer_id: (string | null)
85684
+ }
85685
+
85686
+ export interface PlaygroundLifecycleGetStateInput {
85687
+
85688
+ }
85689
+
85690
+ export interface PlaygroundLifecycleGetStateOutput {
85691
+ blocked: boolean
85692
+ archived: boolean
85693
+ productId: string
85694
+ lastBlockTransition: ({
85695
+ eventId: string
85696
+ eventName: string
85697
+ productId: string
85698
+ occurredAt: string
85699
+ recordedAt: string
85700
+ receiptCount: number
85701
+ organizationId: string
85702
+ cascadedFromOrg: boolean
85703
+ } | null)
85704
+ lastArchiveTransition: ({
85705
+ eventId: string
85706
+ eventName: string
85707
+ productId: string
85708
+ occurredAt: string
85709
+ recordedAt: string
85710
+ receiptCount: number
85711
+ organizationId: string
85712
+ cascadedFromOrg: boolean
85713
+ } | null)
85714
+ }
85715
+
85716
+ export interface PlaygroundLifecycleListEventsInput {
85717
+
85718
+ }
85719
+
85720
+ export type PlaygroundLifecycleListEventsOutput = {
85721
+ eventId: string
85722
+ eventName: string
85723
+ productId: string
85724
+ occurredAt: string
85725
+ recordedAt: string
85726
+ receiptCount: number
85727
+ organizationId: string
85728
+ cascadedFromOrg: boolean
85729
+ }[]
85730
+
85731
+ export interface PlaygroundWebhookGetLastInput {
85732
+
85733
+ }
85734
+
85735
+ export type PlaygroundWebhookGetLastOutput = ({
85736
+ payload?: unknown
85737
+ event_id: string
85738
+ provider: string
85739
+ verified: boolean
85740
+ product_id: string
85741
+ occurred_at: string
85742
+ connector_id: string
85743
+ delivery_count: number
85744
+ } | {
85745
+ found: false
85746
+ })
85747
+
85748
+ export interface PlaygroundWsEchoInput {
85749
+
85750
+ }
85751
+
85752
+ export type PlaygroundWsEchoOutput = unknown;
85753
+
85526
85754
  export interface RealtimeArchiveExportInput {
85527
85755
  /**
85528
85756
  * Only entries with ts <= to_ts (epoch ms)