@lessly/sdk-app 9.1.0 → 10.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.
- package/dist/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.cjs +0 -10
- package/dist/brain/index.cjs.map +1 -1
- package/dist/brain/index.d.cts +2 -10
- package/dist/brain/index.d.ts +2 -10
- package/dist/brain/index.js +1 -9
- package/dist/brain/index.js.map +1 -1
- package/dist/{client.gen-LEUVRZRQ.d.cts → client.gen-XqieBmDz.d.cts} +1102 -223
- package/dist/{client.gen-LEUVRZRQ.d.ts → client.gen-XqieBmDz.d.ts} +1102 -223
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +512 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +512 -40
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/playground/index.cjs +66 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +52 -0
- package/dist/playground/index.d.ts +52 -0
- package/dist/playground/index.js +53 -0
- package/dist/playground/index.js.map +1 -0
- package/dist/realtime/index.cjs +126 -0
- package/dist/realtime/index.cjs.map +1 -0
- package/dist/realtime/index.d.cts +100 -0
- package/dist/realtime/index.d.ts +100 -0
- package/dist/realtime/index.js +101 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +12 -2
- package/src/gen/bindings.gen.ts +512 -40
- package/src/gen/brain/index.ts +1 -1
- package/src/gen/brain/queryOptions.gen.ts +0 -14
- package/src/gen/client.gen.ts +146 -8
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/playground/index.ts +3 -0
- package/src/gen/playground/queryOptions.gen.ts +86 -0
- package/src/gen/realtime/index.ts +3 -0
- package/src/gen/realtime/queryOptions.gen.ts +158 -0
- package/src/gen/types.gen.ts +994 -106
package/src/gen/client.gen.ts
CHANGED
|
@@ -54,10 +54,6 @@ import type {
|
|
|
54
54
|
BrainDaemonsListOutput,
|
|
55
55
|
BrainGdriveConnectionsListInput,
|
|
56
56
|
BrainGdriveConnectionsListOutput,
|
|
57
|
-
BrainKnowledgeEntityMemoriesInput,
|
|
58
|
-
BrainKnowledgeEntityMemoriesOutput,
|
|
59
|
-
BrainKnowledgeGraphInput,
|
|
60
|
-
BrainKnowledgeGraphOutput,
|
|
61
57
|
BrainKnowledgeNeighborhoodInput,
|
|
62
58
|
BrainKnowledgeNeighborhoodOutput,
|
|
63
59
|
BrainKnowledgeRelationsInput,
|
|
@@ -542,6 +538,78 @@ import type {
|
|
|
542
538
|
OrganizationRolesUpdateOutput,
|
|
543
539
|
OrganizationSelectInput,
|
|
544
540
|
OrganizationSelectOutput,
|
|
541
|
+
PlaygroundAnalyticsOverviewInput,
|
|
542
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
543
|
+
PlaygroundBillingEntitlementsInput,
|
|
544
|
+
PlaygroundBillingEntitlementsOutput,
|
|
545
|
+
PlaygroundBillingRecordUsageInput,
|
|
546
|
+
PlaygroundBillingRecordUsageOutput,
|
|
547
|
+
PlaygroundClickupCreateTaskInput,
|
|
548
|
+
PlaygroundClickupCreateTaskOutput,
|
|
549
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
550
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
551
|
+
PlaygroundClickupGetOverviewInput,
|
|
552
|
+
PlaygroundClickupGetOverviewOutput,
|
|
553
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
554
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
555
|
+
PlaygroundGdriveReadFileInput,
|
|
556
|
+
PlaygroundGdriveReadFileOutput,
|
|
557
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
558
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
559
|
+
PlaygroundLifecycleGetStateInput,
|
|
560
|
+
PlaygroundLifecycleGetStateOutput,
|
|
561
|
+
PlaygroundLifecycleListEventsInput,
|
|
562
|
+
PlaygroundLifecycleListEventsOutput,
|
|
563
|
+
PlaygroundWebhookGetLastInput,
|
|
564
|
+
PlaygroundWebhookGetLastOutput,
|
|
565
|
+
RealtimeGrantCreateInput,
|
|
566
|
+
RealtimeGrantCreateOutput,
|
|
567
|
+
RealtimeGrantListInput,
|
|
568
|
+
RealtimeGrantListOutput,
|
|
569
|
+
RealtimeGrantRevokeInput,
|
|
570
|
+
RealtimeGrantRevokeOutput,
|
|
571
|
+
RealtimeHistoryGetInput,
|
|
572
|
+
RealtimeHistoryGetOutput,
|
|
573
|
+
RealtimeMessagesPublishInput,
|
|
574
|
+
RealtimeMessagesPublishOutput,
|
|
575
|
+
RealtimeNamespaceCreateInput,
|
|
576
|
+
RealtimeNamespaceCreateOutput,
|
|
577
|
+
RealtimeNamespaceDeleteInput,
|
|
578
|
+
RealtimeNamespaceDeleteOutput,
|
|
579
|
+
RealtimeNamespaceGetInput,
|
|
580
|
+
RealtimeNamespaceGetOutput,
|
|
581
|
+
RealtimeNamespaceListInput,
|
|
582
|
+
RealtimeNamespaceListOutput,
|
|
583
|
+
RealtimeNamespaceUpdateInput,
|
|
584
|
+
RealtimeNamespaceUpdateOutput,
|
|
585
|
+
RealtimePresenceEnterInput,
|
|
586
|
+
RealtimePresenceEnterOutput,
|
|
587
|
+
RealtimePresenceGetInput,
|
|
588
|
+
RealtimePresenceGetOutput,
|
|
589
|
+
RealtimePresenceLeaveInput,
|
|
590
|
+
RealtimePresenceLeaveOutput,
|
|
591
|
+
RealtimePresenceStatsInput,
|
|
592
|
+
RealtimePresenceStatsOutput,
|
|
593
|
+
RealtimePresenceUpdateInput,
|
|
594
|
+
RealtimePresenceUpdateOutput,
|
|
595
|
+
RealtimeStatusGetInput,
|
|
596
|
+
RealtimeStatusGetOutput,
|
|
597
|
+
RealtimeTokensCreateInput,
|
|
598
|
+
RealtimeTokensCreateOutput,
|
|
599
|
+
RealtimeWebhookCreateInput,
|
|
600
|
+
RealtimeWebhookCreateOutput,
|
|
601
|
+
RealtimeWebhookDeleteInput,
|
|
602
|
+
RealtimeWebhookDeleteOutput,
|
|
603
|
+
RealtimeWebhookDeliveriesListInput,
|
|
604
|
+
RealtimeWebhookDeliveriesListOutput,
|
|
605
|
+
RealtimeWebhookGetInput,
|
|
606
|
+
RealtimeWebhookGetOutput,
|
|
607
|
+
RealtimeWebhookListInput,
|
|
608
|
+
RealtimeWebhookListOutput,
|
|
609
|
+
RealtimeWebhookSecretRotateInput,
|
|
610
|
+
RealtimeWebhookSecretRotateOutput,
|
|
611
|
+
RealtimeWebhookUpdateInput,
|
|
612
|
+
RealtimeWebhookUpdateOutput,
|
|
545
613
|
TrackingApiKeysCreateInput,
|
|
546
614
|
TrackingApiKeysCreateOutput,
|
|
547
615
|
TrackingApiKeysListInput,
|
|
@@ -700,14 +768,10 @@ export interface GeneratedClient {
|
|
|
700
768
|
list(input: BrainGdriveConnectionsListInput): Promise<BrainGdriveConnectionsListOutput>;
|
|
701
769
|
};
|
|
702
770
|
knowledge: {
|
|
703
|
-
graph(input: BrainKnowledgeGraphInput): Promise<BrainKnowledgeGraphOutput>;
|
|
704
771
|
neighborhood(input: BrainKnowledgeNeighborhoodInput): Promise<BrainKnowledgeNeighborhoodOutput>;
|
|
705
772
|
relations(input: BrainKnowledgeRelationsInput): Promise<BrainKnowledgeRelationsOutput>;
|
|
706
773
|
search(input: BrainKnowledgeSearchInput): Promise<BrainKnowledgeSearchOutput>;
|
|
707
774
|
};
|
|
708
|
-
'knowledge-entity': {
|
|
709
|
-
memories(input: BrainKnowledgeEntityMemoriesInput): Promise<BrainKnowledgeEntityMemoriesOutput>;
|
|
710
|
-
};
|
|
711
775
|
memory: {
|
|
712
776
|
add(input: BrainMemoryAddInput): Promise<BrainMemoryAddOutput>;
|
|
713
777
|
delete(input: BrainMemoryDeleteInput): Promise<BrainMemoryDeleteOutput>;
|
|
@@ -1122,6 +1186,80 @@ export interface GeneratedClient {
|
|
|
1122
1186
|
update(input: OrganizationRolesUpdateInput): Promise<OrganizationRolesUpdateOutput>;
|
|
1123
1187
|
};
|
|
1124
1188
|
};
|
|
1189
|
+
playground: {
|
|
1190
|
+
analytics: {
|
|
1191
|
+
overview(input: PlaygroundAnalyticsOverviewInput): Promise<PlaygroundAnalyticsOverviewOutput>;
|
|
1192
|
+
};
|
|
1193
|
+
billing: {
|
|
1194
|
+
entitlements(input: PlaygroundBillingEntitlementsInput): Promise<PlaygroundBillingEntitlementsOutput>;
|
|
1195
|
+
'record-usage'(input: PlaygroundBillingRecordUsageInput): Promise<PlaygroundBillingRecordUsageOutput>;
|
|
1196
|
+
};
|
|
1197
|
+
clickup: {
|
|
1198
|
+
'create-task'(input: PlaygroundClickupCreateTaskInput): Promise<PlaygroundClickupCreateTaskOutput>;
|
|
1199
|
+
'get-last-webhook'(input: PlaygroundClickupGetLastWebhookInput): Promise<PlaygroundClickupGetLastWebhookOutput>;
|
|
1200
|
+
'get-overview'(input: PlaygroundClickupGetOverviewInput): Promise<PlaygroundClickupGetOverviewOutput>;
|
|
1201
|
+
};
|
|
1202
|
+
gdrive: {
|
|
1203
|
+
'get-last-change'(input: PlaygroundGdriveGetLastChangeInput): Promise<PlaygroundGdriveGetLastChangeOutput>;
|
|
1204
|
+
'read-file'(input: PlaygroundGdriveReadFileInput): Promise<PlaygroundGdriveReadFileOutput>;
|
|
1205
|
+
};
|
|
1206
|
+
googleads: {
|
|
1207
|
+
'read-customer'(input: PlaygroundGoogleadsReadCustomerInput): Promise<PlaygroundGoogleadsReadCustomerOutput>;
|
|
1208
|
+
};
|
|
1209
|
+
lifecycle: {
|
|
1210
|
+
'get-state'(input: PlaygroundLifecycleGetStateInput): Promise<PlaygroundLifecycleGetStateOutput>;
|
|
1211
|
+
'list-events'(input: PlaygroundLifecycleListEventsInput): Promise<PlaygroundLifecycleListEventsOutput>;
|
|
1212
|
+
};
|
|
1213
|
+
webhook: {
|
|
1214
|
+
'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
realtime: {
|
|
1218
|
+
grant: {
|
|
1219
|
+
create(input: RealtimeGrantCreateInput): Promise<RealtimeGrantCreateOutput>;
|
|
1220
|
+
list(input: RealtimeGrantListInput): Promise<RealtimeGrantListOutput>;
|
|
1221
|
+
revoke(input: RealtimeGrantRevokeInput): Promise<RealtimeGrantRevokeOutput>;
|
|
1222
|
+
};
|
|
1223
|
+
history: {
|
|
1224
|
+
get(input: RealtimeHistoryGetInput): Promise<RealtimeHistoryGetOutput>;
|
|
1225
|
+
};
|
|
1226
|
+
messages: {
|
|
1227
|
+
publish(input: RealtimeMessagesPublishInput): Promise<RealtimeMessagesPublishOutput>;
|
|
1228
|
+
};
|
|
1229
|
+
namespace: {
|
|
1230
|
+
create(input: RealtimeNamespaceCreateInput): Promise<RealtimeNamespaceCreateOutput>;
|
|
1231
|
+
delete(input: RealtimeNamespaceDeleteInput): Promise<RealtimeNamespaceDeleteOutput>;
|
|
1232
|
+
get(input: RealtimeNamespaceGetInput): Promise<RealtimeNamespaceGetOutput>;
|
|
1233
|
+
list(input: RealtimeNamespaceListInput): Promise<RealtimeNamespaceListOutput>;
|
|
1234
|
+
update(input: RealtimeNamespaceUpdateInput): Promise<RealtimeNamespaceUpdateOutput>;
|
|
1235
|
+
};
|
|
1236
|
+
presence: {
|
|
1237
|
+
enter(input: RealtimePresenceEnterInput): Promise<RealtimePresenceEnterOutput>;
|
|
1238
|
+
get(input: RealtimePresenceGetInput): Promise<RealtimePresenceGetOutput>;
|
|
1239
|
+
leave(input: RealtimePresenceLeaveInput): Promise<RealtimePresenceLeaveOutput>;
|
|
1240
|
+
stats(input: RealtimePresenceStatsInput): Promise<RealtimePresenceStatsOutput>;
|
|
1241
|
+
update(input: RealtimePresenceUpdateInput): Promise<RealtimePresenceUpdateOutput>;
|
|
1242
|
+
};
|
|
1243
|
+
status: {
|
|
1244
|
+
get(input: RealtimeStatusGetInput): Promise<RealtimeStatusGetOutput>;
|
|
1245
|
+
};
|
|
1246
|
+
tokens: {
|
|
1247
|
+
create(input: RealtimeTokensCreateInput): Promise<RealtimeTokensCreateOutput>;
|
|
1248
|
+
};
|
|
1249
|
+
webhook: {
|
|
1250
|
+
create(input: RealtimeWebhookCreateInput): Promise<RealtimeWebhookCreateOutput>;
|
|
1251
|
+
delete(input: RealtimeWebhookDeleteInput): Promise<RealtimeWebhookDeleteOutput>;
|
|
1252
|
+
get(input: RealtimeWebhookGetInput): Promise<RealtimeWebhookGetOutput>;
|
|
1253
|
+
list(input: RealtimeWebhookListInput): Promise<RealtimeWebhookListOutput>;
|
|
1254
|
+
update(input: RealtimeWebhookUpdateInput): Promise<RealtimeWebhookUpdateOutput>;
|
|
1255
|
+
};
|
|
1256
|
+
'webhook-deliveries': {
|
|
1257
|
+
list(input: RealtimeWebhookDeliveriesListInput): Promise<RealtimeWebhookDeliveriesListOutput>;
|
|
1258
|
+
};
|
|
1259
|
+
'webhook-secret': {
|
|
1260
|
+
rotate(input: RealtimeWebhookSecretRotateInput): Promise<RealtimeWebhookSecretRotateOutput>;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1125
1263
|
tracking: {
|
|
1126
1264
|
'api-keys': {
|
|
1127
1265
|
create(input: TrackingApiKeysCreateInput): Promise<TrackingApiKeysCreateOutput>;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'tracking', 'waitlist'] as const;
|
|
2
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'playground', 'realtime', 'tracking', 'waitlist'] as const;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput } from '../types.gen';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
PlaygroundAnalyticsOverviewInput,
|
|
5
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
6
|
+
PlaygroundBillingEntitlementsInput,
|
|
7
|
+
PlaygroundBillingEntitlementsOutput,
|
|
8
|
+
PlaygroundBillingRecordUsageInput,
|
|
9
|
+
PlaygroundClickupCreateTaskInput,
|
|
10
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
11
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
12
|
+
PlaygroundClickupGetOverviewInput,
|
|
13
|
+
PlaygroundClickupGetOverviewOutput,
|
|
14
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
15
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
16
|
+
PlaygroundGdriveReadFileInput,
|
|
17
|
+
PlaygroundGdriveReadFileOutput,
|
|
18
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
19
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
20
|
+
PlaygroundLifecycleGetStateInput,
|
|
21
|
+
PlaygroundLifecycleGetStateOutput,
|
|
22
|
+
PlaygroundLifecycleListEventsInput,
|
|
23
|
+
PlaygroundLifecycleListEventsOutput,
|
|
24
|
+
PlaygroundWebhookGetLastInput,
|
|
25
|
+
PlaygroundWebhookGetLastOutput,
|
|
26
|
+
} from '../types.gen';
|
|
27
|
+
|
|
28
|
+
export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
|
|
29
|
+
queryKey: ['playground', 'analytics', 'overview', input] as const,
|
|
30
|
+
queryFn: () => sdk['playground']['analytics']['overview'](input),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
|
|
34
|
+
queryKey: ['playground', 'billing', 'entitlements', input] as const,
|
|
35
|
+
queryFn: () => sdk['playground']['billing']['entitlements'](input),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
|
|
39
|
+
mutationKey: ['playground', 'billing', 'record-usage'],
|
|
40
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
|
|
44
|
+
mutationKey: ['playground', 'clickup', 'create-task'],
|
|
45
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
|
|
49
|
+
queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
|
|
50
|
+
queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
|
|
54
|
+
queryKey: ['playground', 'clickup', 'get-overview', input] as const,
|
|
55
|
+
queryFn: () => sdk['playground']['clickup']['get-overview'](input),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
|
|
59
|
+
queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
|
|
60
|
+
queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
|
|
64
|
+
queryKey: ['playground', 'gdrive', 'read-file', input] as const,
|
|
65
|
+
queryFn: () => sdk['playground']['gdrive']['read-file'](input),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
|
|
69
|
+
queryKey: ['playground', 'googleads', 'read-customer', input] as const,
|
|
70
|
+
queryFn: () => sdk['playground']['googleads']['read-customer'](input),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
|
|
74
|
+
queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
|
|
75
|
+
queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
|
|
79
|
+
queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
|
|
80
|
+
queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
|
|
84
|
+
queryKey: ['playground', 'webhook', 'get-last', input] as const,
|
|
85
|
+
queryFn: () => sdk['playground']['webhook']['get-last'](input),
|
|
86
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export type { RealtimeGrantCreateInput, RealtimeGrantCreateOutput, RealtimeGrantListInput, RealtimeGrantListOutput, RealtimeGrantRevokeInput, RealtimeGrantRevokeOutput, RealtimeHistoryGetInput, RealtimeHistoryGetOutput, RealtimeMessagesPublishInput, RealtimeMessagesPublishOutput, RealtimeNamespaceCreateInput, RealtimeNamespaceCreateOutput, RealtimeNamespaceDeleteInput, RealtimeNamespaceDeleteOutput, RealtimeNamespaceGetInput, RealtimeNamespaceGetOutput, RealtimeNamespaceListInput, RealtimeNamespaceListOutput, RealtimeNamespaceUpdateInput, RealtimeNamespaceUpdateOutput, RealtimePresenceEnterInput, RealtimePresenceEnterOutput, RealtimePresenceGetInput, RealtimePresenceGetOutput, RealtimePresenceLeaveInput, RealtimePresenceLeaveOutput, RealtimePresenceStatsInput, RealtimePresenceStatsOutput, RealtimePresenceUpdateInput, RealtimePresenceUpdateOutput, RealtimeStatusGetInput, RealtimeStatusGetOutput, RealtimeTokensCreateInput, RealtimeTokensCreateOutput, RealtimeWebhookCreateInput, RealtimeWebhookCreateOutput, RealtimeWebhookDeleteInput, RealtimeWebhookDeleteOutput, RealtimeWebhookDeliveriesListInput, RealtimeWebhookDeliveriesListOutput, RealtimeWebhookGetInput, RealtimeWebhookGetOutput, RealtimeWebhookListInput, RealtimeWebhookListOutput, RealtimeWebhookSecretRotateInput, RealtimeWebhookSecretRotateOutput, RealtimeWebhookUpdateInput, RealtimeWebhookUpdateOutput } from '../types.gen';
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
RealtimeGrantCreateInput,
|
|
5
|
+
RealtimeGrantListInput,
|
|
6
|
+
RealtimeGrantListOutput,
|
|
7
|
+
RealtimeGrantRevokeInput,
|
|
8
|
+
RealtimeHistoryGetInput,
|
|
9
|
+
RealtimeHistoryGetOutput,
|
|
10
|
+
RealtimeMessagesPublishInput,
|
|
11
|
+
RealtimeNamespaceCreateInput,
|
|
12
|
+
RealtimeNamespaceDeleteInput,
|
|
13
|
+
RealtimeNamespaceGetInput,
|
|
14
|
+
RealtimeNamespaceGetOutput,
|
|
15
|
+
RealtimeNamespaceListInput,
|
|
16
|
+
RealtimeNamespaceListOutput,
|
|
17
|
+
RealtimeNamespaceUpdateInput,
|
|
18
|
+
RealtimePresenceEnterInput,
|
|
19
|
+
RealtimePresenceGetInput,
|
|
20
|
+
RealtimePresenceGetOutput,
|
|
21
|
+
RealtimePresenceLeaveInput,
|
|
22
|
+
RealtimePresenceStatsInput,
|
|
23
|
+
RealtimePresenceStatsOutput,
|
|
24
|
+
RealtimePresenceUpdateInput,
|
|
25
|
+
RealtimeStatusGetInput,
|
|
26
|
+
RealtimeStatusGetOutput,
|
|
27
|
+
RealtimeTokensCreateInput,
|
|
28
|
+
RealtimeWebhookCreateInput,
|
|
29
|
+
RealtimeWebhookDeleteInput,
|
|
30
|
+
RealtimeWebhookDeliveriesListInput,
|
|
31
|
+
RealtimeWebhookDeliveriesListOutput,
|
|
32
|
+
RealtimeWebhookGetInput,
|
|
33
|
+
RealtimeWebhookGetOutput,
|
|
34
|
+
RealtimeWebhookListInput,
|
|
35
|
+
RealtimeWebhookListOutput,
|
|
36
|
+
RealtimeWebhookSecretRotateInput,
|
|
37
|
+
RealtimeWebhookUpdateInput,
|
|
38
|
+
} from '../types.gen';
|
|
39
|
+
|
|
40
|
+
export const realtimeGrantCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
41
|
+
mutationKey: ['realtime', 'grant', 'create'],
|
|
42
|
+
mutationFn: (input: RealtimeGrantCreateInput) => sdk['realtime']['grant']['create'](input),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const realtimeGrantListQueryOptions = (sdk: GeneratedClient, input: RealtimeGrantListInput) => ({
|
|
46
|
+
queryKey: ['realtime', 'grant', 'list', input] as const,
|
|
47
|
+
queryFn: () => sdk['realtime']['grant']['list'](input),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export const realtimeGrantRevokeMutationOptions = (sdk: GeneratedClient) => ({
|
|
51
|
+
mutationKey: ['realtime', 'grant', 'revoke'],
|
|
52
|
+
mutationFn: (input: RealtimeGrantRevokeInput) => sdk['realtime']['grant']['revoke'](input),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const realtimeHistoryGetQueryOptions = (sdk: GeneratedClient, input: RealtimeHistoryGetInput) => ({
|
|
56
|
+
queryKey: ['realtime', 'history', 'get', input] as const,
|
|
57
|
+
queryFn: () => sdk['realtime']['history']['get'](input),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const realtimeMessagesPublishMutationOptions = (sdk: GeneratedClient) => ({
|
|
61
|
+
mutationKey: ['realtime', 'messages', 'publish'],
|
|
62
|
+
mutationFn: (input: RealtimeMessagesPublishInput) => sdk['realtime']['messages']['publish'](input),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const realtimeNamespaceCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
66
|
+
mutationKey: ['realtime', 'namespace', 'create'],
|
|
67
|
+
mutationFn: (input: RealtimeNamespaceCreateInput) => sdk['realtime']['namespace']['create'](input),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export const realtimeNamespaceDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
71
|
+
mutationKey: ['realtime', 'namespace', 'delete'],
|
|
72
|
+
mutationFn: (input: RealtimeNamespaceDeleteInput) => sdk['realtime']['namespace']['delete'](input),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const realtimeNamespaceGetQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceGetInput) => ({
|
|
76
|
+
queryKey: ['realtime', 'namespace', 'get', input] as const,
|
|
77
|
+
queryFn: () => sdk['realtime']['namespace']['get'](input),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export const realtimeNamespaceListQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceListInput) => ({
|
|
81
|
+
queryKey: ['realtime', 'namespace', 'list', input] as const,
|
|
82
|
+
queryFn: () => sdk['realtime']['namespace']['list'](input),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export const realtimeNamespaceUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
86
|
+
mutationKey: ['realtime', 'namespace', 'update'],
|
|
87
|
+
mutationFn: (input: RealtimeNamespaceUpdateInput) => sdk['realtime']['namespace']['update'](input),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export const realtimePresenceEnterMutationOptions = (sdk: GeneratedClient) => ({
|
|
91
|
+
mutationKey: ['realtime', 'presence', 'enter'],
|
|
92
|
+
mutationFn: (input: RealtimePresenceEnterInput) => sdk['realtime']['presence']['enter'](input),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export const realtimePresenceGetQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceGetInput) => ({
|
|
96
|
+
queryKey: ['realtime', 'presence', 'get', input] as const,
|
|
97
|
+
queryFn: () => sdk['realtime']['presence']['get'](input),
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export const realtimePresenceLeaveMutationOptions = (sdk: GeneratedClient) => ({
|
|
101
|
+
mutationKey: ['realtime', 'presence', 'leave'],
|
|
102
|
+
mutationFn: (input: RealtimePresenceLeaveInput) => sdk['realtime']['presence']['leave'](input),
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export const realtimePresenceStatsQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceStatsInput) => ({
|
|
106
|
+
queryKey: ['realtime', 'presence', 'stats', input] as const,
|
|
107
|
+
queryFn: () => sdk['realtime']['presence']['stats'](input),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const realtimePresenceUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
111
|
+
mutationKey: ['realtime', 'presence', 'update'],
|
|
112
|
+
mutationFn: (input: RealtimePresenceUpdateInput) => sdk['realtime']['presence']['update'](input),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export const realtimeStatusGetQueryOptions = (sdk: GeneratedClient, input: RealtimeStatusGetInput) => ({
|
|
116
|
+
queryKey: ['realtime', 'status', 'get', input] as const,
|
|
117
|
+
queryFn: () => sdk['realtime']['status']['get'](input),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export const realtimeTokensCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
121
|
+
mutationKey: ['realtime', 'tokens', 'create'],
|
|
122
|
+
mutationFn: (input: RealtimeTokensCreateInput) => sdk['realtime']['tokens']['create'](input),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export const realtimeWebhookCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
126
|
+
mutationKey: ['realtime', 'webhook', 'create'],
|
|
127
|
+
mutationFn: (input: RealtimeWebhookCreateInput) => sdk['realtime']['webhook']['create'](input),
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export const realtimeWebhookDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
131
|
+
mutationKey: ['realtime', 'webhook', 'delete'],
|
|
132
|
+
mutationFn: (input: RealtimeWebhookDeleteInput) => sdk['realtime']['webhook']['delete'](input),
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
export const realtimeWebhookDeliveriesListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookDeliveriesListInput) => ({
|
|
136
|
+
queryKey: ['realtime', 'webhook-deliveries', 'list', input] as const,
|
|
137
|
+
queryFn: () => sdk['realtime']['webhook-deliveries']['list'](input),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
export const realtimeWebhookGetQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookGetInput) => ({
|
|
141
|
+
queryKey: ['realtime', 'webhook', 'get', input] as const,
|
|
142
|
+
queryFn: () => sdk['realtime']['webhook']['get'](input),
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
export const realtimeWebhookListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookListInput) => ({
|
|
146
|
+
queryKey: ['realtime', 'webhook', 'list', input] as const,
|
|
147
|
+
queryFn: () => sdk['realtime']['webhook']['list'](input),
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
export const realtimeWebhookSecretRotateMutationOptions = (sdk: GeneratedClient) => ({
|
|
151
|
+
mutationKey: ['realtime', 'webhook-secret', 'rotate'],
|
|
152
|
+
mutationFn: (input: RealtimeWebhookSecretRotateInput) => sdk['realtime']['webhook-secret']['rotate'](input),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
export const realtimeWebhookUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
156
|
+
mutationKey: ['realtime', 'webhook', 'update'],
|
|
157
|
+
mutationFn: (input: RealtimeWebhookUpdateInput) => sdk['realtime']['webhook']['update'](input),
|
|
158
|
+
});
|