@lessly/sdk-app 9.1.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-BLMudoVx.d.cts} +577 -107
- package/dist/{client.gen-LEUVRZRQ.d.ts → client.gen-BLMudoVx.d.ts} +577 -107
- 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 +322 -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 +322 -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 +66 -0
- package/dist/realtime/index.cjs.map +1 -0
- package/dist/realtime/index.d.cts +52 -0
- package/dist/realtime/index.d.ts +52 -0
- package/dist/realtime/index.js +53 -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 +322 -40
- package/src/gen/brain/index.ts +1 -1
- package/src/gen/brain/queryOptions.gen.ts +0 -14
- package/src/gen/client.gen.ts +102 -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 +81 -0
- package/src/gen/types.gen.ts +580 -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,54 @@ 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
|
+
RealtimeStatusGetInput,
|
|
586
|
+
RealtimeStatusGetOutput,
|
|
587
|
+
RealtimeTokensCreateInput,
|
|
588
|
+
RealtimeTokensCreateOutput,
|
|
545
589
|
TrackingApiKeysCreateInput,
|
|
546
590
|
TrackingApiKeysCreateOutput,
|
|
547
591
|
TrackingApiKeysListInput,
|
|
@@ -700,14 +744,10 @@ export interface GeneratedClient {
|
|
|
700
744
|
list(input: BrainGdriveConnectionsListInput): Promise<BrainGdriveConnectionsListOutput>;
|
|
701
745
|
};
|
|
702
746
|
knowledge: {
|
|
703
|
-
graph(input: BrainKnowledgeGraphInput): Promise<BrainKnowledgeGraphOutput>;
|
|
704
747
|
neighborhood(input: BrainKnowledgeNeighborhoodInput): Promise<BrainKnowledgeNeighborhoodOutput>;
|
|
705
748
|
relations(input: BrainKnowledgeRelationsInput): Promise<BrainKnowledgeRelationsOutput>;
|
|
706
749
|
search(input: BrainKnowledgeSearchInput): Promise<BrainKnowledgeSearchOutput>;
|
|
707
750
|
};
|
|
708
|
-
'knowledge-entity': {
|
|
709
|
-
memories(input: BrainKnowledgeEntityMemoriesInput): Promise<BrainKnowledgeEntityMemoriesOutput>;
|
|
710
|
-
};
|
|
711
751
|
memory: {
|
|
712
752
|
add(input: BrainMemoryAddInput): Promise<BrainMemoryAddOutput>;
|
|
713
753
|
delete(input: BrainMemoryDeleteInput): Promise<BrainMemoryDeleteOutput>;
|
|
@@ -1122,6 +1162,60 @@ export interface GeneratedClient {
|
|
|
1122
1162
|
update(input: OrganizationRolesUpdateInput): Promise<OrganizationRolesUpdateOutput>;
|
|
1123
1163
|
};
|
|
1124
1164
|
};
|
|
1165
|
+
playground: {
|
|
1166
|
+
analytics: {
|
|
1167
|
+
overview(input: PlaygroundAnalyticsOverviewInput): Promise<PlaygroundAnalyticsOverviewOutput>;
|
|
1168
|
+
};
|
|
1169
|
+
billing: {
|
|
1170
|
+
entitlements(input: PlaygroundBillingEntitlementsInput): Promise<PlaygroundBillingEntitlementsOutput>;
|
|
1171
|
+
'record-usage'(input: PlaygroundBillingRecordUsageInput): Promise<PlaygroundBillingRecordUsageOutput>;
|
|
1172
|
+
};
|
|
1173
|
+
clickup: {
|
|
1174
|
+
'create-task'(input: PlaygroundClickupCreateTaskInput): Promise<PlaygroundClickupCreateTaskOutput>;
|
|
1175
|
+
'get-last-webhook'(input: PlaygroundClickupGetLastWebhookInput): Promise<PlaygroundClickupGetLastWebhookOutput>;
|
|
1176
|
+
'get-overview'(input: PlaygroundClickupGetOverviewInput): Promise<PlaygroundClickupGetOverviewOutput>;
|
|
1177
|
+
};
|
|
1178
|
+
gdrive: {
|
|
1179
|
+
'get-last-change'(input: PlaygroundGdriveGetLastChangeInput): Promise<PlaygroundGdriveGetLastChangeOutput>;
|
|
1180
|
+
'read-file'(input: PlaygroundGdriveReadFileInput): Promise<PlaygroundGdriveReadFileOutput>;
|
|
1181
|
+
};
|
|
1182
|
+
googleads: {
|
|
1183
|
+
'read-customer'(input: PlaygroundGoogleadsReadCustomerInput): Promise<PlaygroundGoogleadsReadCustomerOutput>;
|
|
1184
|
+
};
|
|
1185
|
+
lifecycle: {
|
|
1186
|
+
'get-state'(input: PlaygroundLifecycleGetStateInput): Promise<PlaygroundLifecycleGetStateOutput>;
|
|
1187
|
+
'list-events'(input: PlaygroundLifecycleListEventsInput): Promise<PlaygroundLifecycleListEventsOutput>;
|
|
1188
|
+
};
|
|
1189
|
+
webhook: {
|
|
1190
|
+
'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
realtime: {
|
|
1194
|
+
grant: {
|
|
1195
|
+
create(input: RealtimeGrantCreateInput): Promise<RealtimeGrantCreateOutput>;
|
|
1196
|
+
list(input: RealtimeGrantListInput): Promise<RealtimeGrantListOutput>;
|
|
1197
|
+
revoke(input: RealtimeGrantRevokeInput): Promise<RealtimeGrantRevokeOutput>;
|
|
1198
|
+
};
|
|
1199
|
+
history: {
|
|
1200
|
+
get(input: RealtimeHistoryGetInput): Promise<RealtimeHistoryGetOutput>;
|
|
1201
|
+
};
|
|
1202
|
+
messages: {
|
|
1203
|
+
publish(input: RealtimeMessagesPublishInput): Promise<RealtimeMessagesPublishOutput>;
|
|
1204
|
+
};
|
|
1205
|
+
namespace: {
|
|
1206
|
+
create(input: RealtimeNamespaceCreateInput): Promise<RealtimeNamespaceCreateOutput>;
|
|
1207
|
+
delete(input: RealtimeNamespaceDeleteInput): Promise<RealtimeNamespaceDeleteOutput>;
|
|
1208
|
+
get(input: RealtimeNamespaceGetInput): Promise<RealtimeNamespaceGetOutput>;
|
|
1209
|
+
list(input: RealtimeNamespaceListInput): Promise<RealtimeNamespaceListOutput>;
|
|
1210
|
+
update(input: RealtimeNamespaceUpdateInput): Promise<RealtimeNamespaceUpdateOutput>;
|
|
1211
|
+
};
|
|
1212
|
+
status: {
|
|
1213
|
+
get(input: RealtimeStatusGetInput): Promise<RealtimeStatusGetOutput>;
|
|
1214
|
+
};
|
|
1215
|
+
tokens: {
|
|
1216
|
+
create(input: RealtimeTokensCreateInput): Promise<RealtimeTokensCreateOutput>;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1125
1219
|
tracking: {
|
|
1126
1220
|
'api-keys': {
|
|
1127
1221
|
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, RealtimeStatusGetInput, RealtimeStatusGetOutput, RealtimeTokensCreateInput, RealtimeTokensCreateOutput } from '../types.gen';
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
RealtimeStatusGetInput,
|
|
19
|
+
RealtimeStatusGetOutput,
|
|
20
|
+
RealtimeTokensCreateInput,
|
|
21
|
+
} from '../types.gen';
|
|
22
|
+
|
|
23
|
+
export const realtimeGrantCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
24
|
+
mutationKey: ['realtime', 'grant', 'create'],
|
|
25
|
+
mutationFn: (input: RealtimeGrantCreateInput) => sdk['realtime']['grant']['create'](input),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const realtimeGrantListQueryOptions = (sdk: GeneratedClient, input: RealtimeGrantListInput) => ({
|
|
29
|
+
queryKey: ['realtime', 'grant', 'list', input] as const,
|
|
30
|
+
queryFn: () => sdk['realtime']['grant']['list'](input),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const realtimeGrantRevokeMutationOptions = (sdk: GeneratedClient) => ({
|
|
34
|
+
mutationKey: ['realtime', 'grant', 'revoke'],
|
|
35
|
+
mutationFn: (input: RealtimeGrantRevokeInput) => sdk['realtime']['grant']['revoke'](input),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const realtimeHistoryGetQueryOptions = (sdk: GeneratedClient, input: RealtimeHistoryGetInput) => ({
|
|
39
|
+
queryKey: ['realtime', 'history', 'get', input] as const,
|
|
40
|
+
queryFn: () => sdk['realtime']['history']['get'](input),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const realtimeMessagesPublishMutationOptions = (sdk: GeneratedClient) => ({
|
|
44
|
+
mutationKey: ['realtime', 'messages', 'publish'],
|
|
45
|
+
mutationFn: (input: RealtimeMessagesPublishInput) => sdk['realtime']['messages']['publish'](input),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const realtimeNamespaceCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
49
|
+
mutationKey: ['realtime', 'namespace', 'create'],
|
|
50
|
+
mutationFn: (input: RealtimeNamespaceCreateInput) => sdk['realtime']['namespace']['create'](input),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const realtimeNamespaceDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
54
|
+
mutationKey: ['realtime', 'namespace', 'delete'],
|
|
55
|
+
mutationFn: (input: RealtimeNamespaceDeleteInput) => sdk['realtime']['namespace']['delete'](input),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const realtimeNamespaceGetQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceGetInput) => ({
|
|
59
|
+
queryKey: ['realtime', 'namespace', 'get', input] as const,
|
|
60
|
+
queryFn: () => sdk['realtime']['namespace']['get'](input),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export const realtimeNamespaceListQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceListInput) => ({
|
|
64
|
+
queryKey: ['realtime', 'namespace', 'list', input] as const,
|
|
65
|
+
queryFn: () => sdk['realtime']['namespace']['list'](input),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const realtimeNamespaceUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
69
|
+
mutationKey: ['realtime', 'namespace', 'update'],
|
|
70
|
+
mutationFn: (input: RealtimeNamespaceUpdateInput) => sdk['realtime']['namespace']['update'](input),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const realtimeStatusGetQueryOptions = (sdk: GeneratedClient, input: RealtimeStatusGetInput) => ({
|
|
74
|
+
queryKey: ['realtime', 'status', 'get', input] as const,
|
|
75
|
+
queryFn: () => sdk['realtime']['status']['get'](input),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const realtimeTokensCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
79
|
+
mutationKey: ['realtime', 'tokens', 'create'],
|
|
80
|
+
mutationFn: (input: RealtimeTokensCreateInput) => sdk['realtime']['tokens']['create'](input),
|
|
81
|
+
});
|