@lepsto/sdk-app 84.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.
Files changed (183) hide show
  1. package/README.md +233 -0
  2. package/dist/_types/gen/analytics/index.d.ts +2 -0
  3. package/dist/_types/gen/analytics/queryOptions.gen.d.ts +74 -0
  4. package/dist/_types/gen/bindings.gen.d.ts +3 -0
  5. package/dist/_types/gen/brain/index.d.ts +2 -0
  6. package/dist/_types/gen/brain/queryOptions.gen.d.ts +166 -0
  7. package/dist/_types/gen/client.gen.d.ts +1087 -0
  8. package/dist/_types/gen/consent/index.d.ts +2 -0
  9. package/dist/_types/gen/consent/queryOptions.gen.d.ts +62 -0
  10. package/dist/_types/gen/content/index.d.ts +2 -0
  11. package/dist/_types/gen/content/queryOptions.gen.d.ts +126 -0
  12. package/dist/_types/gen/deployment/index.d.ts +2 -0
  13. package/dist/_types/gen/deployment/queryOptions.gen.d.ts +438 -0
  14. package/dist/_types/gen/mail/index.d.ts +2 -0
  15. package/dist/_types/gen/mail/queryOptions.gen.d.ts +206 -0
  16. package/dist/_types/gen/manifest.gen.d.ts +4 -0
  17. package/dist/_types/gen/observe/index.d.ts +2 -0
  18. package/dist/_types/gen/observe/queryOptions.gen.d.ts +142 -0
  19. package/dist/_types/gen/organization/index.d.ts +2 -0
  20. package/dist/_types/gen/organization/queryOptions.gen.d.ts +362 -0
  21. package/dist/_types/gen/realtime/index.d.ts +2 -0
  22. package/dist/_types/gen/realtime/queryOptions.gen.d.ts +114 -0
  23. package/dist/_types/gen/support/index.d.ts +2 -0
  24. package/dist/_types/gen/support/queryOptions.gen.d.ts +206 -0
  25. package/dist/_types/gen/tracking/index.d.ts +2 -0
  26. package/dist/_types/gen/tracking/queryOptions.gen.d.ts +150 -0
  27. package/dist/_types/gen/types.gen.d.ts +126011 -0
  28. package/dist/_types/gen/users/index.d.ts +2 -0
  29. package/dist/_types/gen/users/queryOptions.gen.d.ts +182 -0
  30. package/dist/_types/gen/waitlist/index.d.ts +2 -0
  31. package/dist/_types/gen/waitlist/queryOptions.gen.d.ts +30 -0
  32. package/dist/_types/gen/workflow/index.d.ts +2 -0
  33. package/dist/_types/gen/workflow/queryOptions.gen.d.ts +166 -0
  34. package/dist/_types/index.d.ts +11 -0
  35. package/dist/_types/package.json +1 -0
  36. package/dist/_types/react/index.d.ts +33 -0
  37. package/dist/_types/runtime/access-reason.d.ts +27 -0
  38. package/dist/_types/runtime/access.d.ts +40 -0
  39. package/dist/_types/runtime/compositions.d.ts +16 -0
  40. package/dist/_types/runtime/connectStream.d.ts +15 -0
  41. package/dist/_types/runtime/createLesslyApp.d.ts +10 -0
  42. package/dist/_types/runtime/csrf.d.ts +1 -0
  43. package/dist/_types/runtime/errors.d.ts +18 -0
  44. package/dist/_types/runtime/name.d.ts +26 -0
  45. package/dist/_types/runtime/operations.d.ts +13 -0
  46. package/dist/_types/runtime/permission-match.d.ts +62 -0
  47. package/dist/_types/runtime/request.d.ts +9 -0
  48. package/dist/_types/runtime/types.d.ts +129 -0
  49. package/dist/analytics/index.cjs +96 -0
  50. package/dist/analytics/index.cjs.map +1 -0
  51. package/dist/analytics/index.d.cts +1 -0
  52. package/dist/analytics/index.d.ts +1 -0
  53. package/dist/analytics/index.js +77 -0
  54. package/dist/analytics/index.js.map +1 -0
  55. package/dist/brain/index.cjs +211 -0
  56. package/dist/brain/index.cjs.map +1 -0
  57. package/dist/brain/index.d.cts +1 -0
  58. package/dist/brain/index.d.ts +1 -0
  59. package/dist/brain/index.js +169 -0
  60. package/dist/brain/index.js.map +1 -0
  61. package/dist/consent/index.cjs +81 -0
  62. package/dist/consent/index.cjs.map +1 -0
  63. package/dist/consent/index.d.cts +1 -0
  64. package/dist/consent/index.d.ts +1 -0
  65. package/dist/consent/index.js +65 -0
  66. package/dist/consent/index.js.map +1 -0
  67. package/dist/content/index.cjs +161 -0
  68. package/dist/content/index.cjs.map +1 -0
  69. package/dist/content/index.d.cts +1 -0
  70. package/dist/content/index.d.ts +1 -0
  71. package/dist/content/index.js +129 -0
  72. package/dist/content/index.js.map +1 -0
  73. package/dist/deployment/index.cjs +551 -0
  74. package/dist/deployment/index.cjs.map +1 -0
  75. package/dist/deployment/index.d.cts +1 -0
  76. package/dist/deployment/index.d.ts +1 -0
  77. package/dist/deployment/index.js +441 -0
  78. package/dist/deployment/index.js.map +1 -0
  79. package/dist/index.cjs +12565 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/dist/index.d.cts +1 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +12557 -0
  84. package/dist/index.js.map +1 -0
  85. package/dist/mail/index.cjs +261 -0
  86. package/dist/mail/index.cjs.map +1 -0
  87. package/dist/mail/index.d.cts +1 -0
  88. package/dist/mail/index.d.ts +1 -0
  89. package/dist/mail/index.js +209 -0
  90. package/dist/mail/index.js.map +1 -0
  91. package/dist/observe/index.cjs +181 -0
  92. package/dist/observe/index.cjs.map +1 -0
  93. package/dist/observe/index.d.cts +1 -0
  94. package/dist/observe/index.d.ts +1 -0
  95. package/dist/observe/index.js +145 -0
  96. package/dist/observe/index.js.map +1 -0
  97. package/dist/organization/index.cjs +456 -0
  98. package/dist/organization/index.cjs.map +1 -0
  99. package/dist/organization/index.d.cts +1 -0
  100. package/dist/organization/index.d.ts +1 -0
  101. package/dist/organization/index.js +365 -0
  102. package/dist/organization/index.js.map +1 -0
  103. package/dist/react/index.cjs +29 -0
  104. package/dist/react/index.cjs.map +1 -0
  105. package/dist/react/index.d.cts +1 -0
  106. package/dist/react/index.d.ts +1 -0
  107. package/dist/react/index.js +26 -0
  108. package/dist/react/index.js.map +1 -0
  109. package/dist/realtime/index.cjs +146 -0
  110. package/dist/realtime/index.cjs.map +1 -0
  111. package/dist/realtime/index.d.cts +1 -0
  112. package/dist/realtime/index.d.ts +1 -0
  113. package/dist/realtime/index.js +117 -0
  114. package/dist/realtime/index.js.map +1 -0
  115. package/dist/support/index.cjs +261 -0
  116. package/dist/support/index.cjs.map +1 -0
  117. package/dist/support/index.d.cts +1 -0
  118. package/dist/support/index.d.ts +1 -0
  119. package/dist/support/index.js +209 -0
  120. package/dist/support/index.js.map +1 -0
  121. package/dist/tracking/index.cjs +191 -0
  122. package/dist/tracking/index.cjs.map +1 -0
  123. package/dist/tracking/index.d.cts +1 -0
  124. package/dist/tracking/index.d.ts +1 -0
  125. package/dist/tracking/index.js +153 -0
  126. package/dist/tracking/index.js.map +1 -0
  127. package/dist/users/index.cjs +231 -0
  128. package/dist/users/index.cjs.map +1 -0
  129. package/dist/users/index.d.cts +1 -0
  130. package/dist/users/index.d.ts +1 -0
  131. package/dist/users/index.js +185 -0
  132. package/dist/users/index.js.map +1 -0
  133. package/dist/waitlist/index.cjs +41 -0
  134. package/dist/waitlist/index.cjs.map +1 -0
  135. package/dist/waitlist/index.d.cts +1 -0
  136. package/dist/waitlist/index.d.ts +1 -0
  137. package/dist/waitlist/index.js +33 -0
  138. package/dist/waitlist/index.js.map +1 -0
  139. package/dist/workflow/index.cjs +211 -0
  140. package/dist/workflow/index.cjs.map +1 -0
  141. package/dist/workflow/index.d.cts +1 -0
  142. package/dist/workflow/index.d.ts +1 -0
  143. package/dist/workflow/index.js +169 -0
  144. package/dist/workflow/index.js.map +1 -0
  145. package/docs/README.md +89 -0
  146. package/docs/recipes/access.md +781 -0
  147. package/docs/recipes/federation.md +285 -0
  148. package/docs/recipes/local-dev.md +111 -0
  149. package/docs/recipes/sdk-usage.md +194 -0
  150. package/docs/rules.md +522 -0
  151. package/package.json +212 -0
  152. package/src/gen/analytics/index.ts +3 -0
  153. package/src/gen/analytics/queryOptions.gen.ts +124 -0
  154. package/src/gen/bindings.gen.ts +11330 -0
  155. package/src/gen/brain/index.ts +3 -0
  156. package/src/gen/brain/queryOptions.gen.ts +278 -0
  157. package/src/gen/client.gen.ts +2288 -0
  158. package/src/gen/consent/index.ts +3 -0
  159. package/src/gen/consent/queryOptions.gen.ts +102 -0
  160. package/src/gen/content/index.ts +3 -0
  161. package/src/gen/content/queryOptions.gen.ts +202 -0
  162. package/src/gen/deployment/index.ts +3 -0
  163. package/src/gen/deployment/queryOptions.gen.ts +707 -0
  164. package/src/gen/mail/index.ts +3 -0
  165. package/src/gen/mail/queryOptions.gen.ts +331 -0
  166. package/src/gen/manifest.gen.ts +780 -0
  167. package/src/gen/observe/index.ts +3 -0
  168. package/src/gen/observe/queryOptions.gen.ts +235 -0
  169. package/src/gen/organization/index.ts +3 -0
  170. package/src/gen/organization/queryOptions.gen.ts +578 -0
  171. package/src/gen/realtime/index.ts +3 -0
  172. package/src/gen/realtime/queryOptions.gen.ts +185 -0
  173. package/src/gen/support/index.ts +3 -0
  174. package/src/gen/support/queryOptions.gen.ts +331 -0
  175. package/src/gen/tracking/index.ts +3 -0
  176. package/src/gen/tracking/queryOptions.gen.ts +249 -0
  177. package/src/gen/types.gen.ts +119506 -0
  178. package/src/gen/users/index.ts +3 -0
  179. package/src/gen/users/queryOptions.gen.ts +295 -0
  180. package/src/gen/waitlist/index.ts +3 -0
  181. package/src/gen/waitlist/queryOptions.gen.ts +50 -0
  182. package/src/gen/workflow/index.ts +3 -0
  183. package/src/gen/workflow/queryOptions.gen.ts +274 -0
@@ -0,0 +1,185 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ RealtimeArchiveExportInput,
5
+ RealtimeArchiveExportStatusInput,
6
+ RealtimeArchiveExportStatusOutput,
7
+ RealtimeArchiveGetInput,
8
+ RealtimeArchiveGetOutput,
9
+ RealtimeGrantCreateInput,
10
+ RealtimeGrantListInput,
11
+ RealtimeGrantListOutput,
12
+ RealtimeGrantRevokeInput,
13
+ RealtimeHistoryGetInput,
14
+ RealtimeHistoryGetOutput,
15
+ RealtimeMessagesPublishInput,
16
+ RealtimeNamespaceCreateInput,
17
+ RealtimeNamespaceDeleteInput,
18
+ RealtimeNamespaceGetInput,
19
+ RealtimeNamespaceGetOutput,
20
+ RealtimeNamespaceListInput,
21
+ RealtimeNamespaceListOutput,
22
+ RealtimeNamespaceUpdateInput,
23
+ RealtimePresenceEnterInput,
24
+ RealtimePresenceGetInput,
25
+ RealtimePresenceGetOutput,
26
+ RealtimePresenceLeaveInput,
27
+ RealtimePresenceStatsInput,
28
+ RealtimePresenceStatsOutput,
29
+ RealtimePresenceUpdateInput,
30
+ RealtimePublicAccessStatusInput,
31
+ RealtimePublicAccessStatusOutput,
32
+ RealtimeStatusGetInput,
33
+ RealtimeStatusGetOutput,
34
+ RealtimeTokensCreateInput,
35
+ RealtimeWebhookCreateInput,
36
+ RealtimeWebhookDeleteInput,
37
+ RealtimeWebhookDeliveriesListInput,
38
+ RealtimeWebhookDeliveriesListOutput,
39
+ RealtimeWebhookGetInput,
40
+ RealtimeWebhookGetOutput,
41
+ RealtimeWebhookListInput,
42
+ RealtimeWebhookListOutput,
43
+ RealtimeWebhookSecretRotateInput,
44
+ RealtimeWebhookUpdateInput,
45
+ } from '../types.gen';
46
+
47
+ export const realtimeArchiveExportMutationOptions = (sdk: GeneratedClient) => ({
48
+ mutationKey: ['realtime', 'archive', 'export'],
49
+ mutationFn: (input: RealtimeArchiveExportInput) => sdk['realtime']['archive']['export'](input),
50
+ });
51
+
52
+ export const realtimeArchiveExportStatusQueryOptions = (sdk: GeneratedClient, input: RealtimeArchiveExportStatusInput) => ({
53
+ queryKey: ['realtime', 'archive-export', 'status', input] as const,
54
+ queryFn: () => sdk['realtime']['archive-export']['status'](input),
55
+ });
56
+
57
+ export const realtimeArchiveGetQueryOptions = (sdk: GeneratedClient, input: RealtimeArchiveGetInput) => ({
58
+ queryKey: ['realtime', 'archive', 'get', input] as const,
59
+ queryFn: () => sdk['realtime']['archive']['get'](input),
60
+ });
61
+
62
+ export const realtimeGrantCreateMutationOptions = (sdk: GeneratedClient) => ({
63
+ mutationKey: ['realtime', 'grant', 'create'],
64
+ mutationFn: (input: RealtimeGrantCreateInput) => sdk['realtime']['grant']['create'](input),
65
+ });
66
+
67
+ export const realtimeGrantListQueryOptions = (sdk: GeneratedClient, input: RealtimeGrantListInput) => ({
68
+ queryKey: ['realtime', 'grant', 'list', input] as const,
69
+ queryFn: () => sdk['realtime']['grant']['list'](input),
70
+ });
71
+
72
+ export const realtimeGrantRevokeMutationOptions = (sdk: GeneratedClient) => ({
73
+ mutationKey: ['realtime', 'grant', 'revoke'],
74
+ mutationFn: (input: RealtimeGrantRevokeInput) => sdk['realtime']['grant']['revoke'](input),
75
+ });
76
+
77
+ export const realtimeHistoryGetQueryOptions = (sdk: GeneratedClient, input: RealtimeHistoryGetInput) => ({
78
+ queryKey: ['realtime', 'history', 'get', input] as const,
79
+ queryFn: () => sdk['realtime']['history']['get'](input),
80
+ });
81
+
82
+ export const realtimeMessagesPublishMutationOptions = (sdk: GeneratedClient) => ({
83
+ mutationKey: ['realtime', 'messages', 'publish'],
84
+ mutationFn: (input: RealtimeMessagesPublishInput) => sdk['realtime']['messages']['publish'](input),
85
+ });
86
+
87
+ export const realtimeNamespaceCreateMutationOptions = (sdk: GeneratedClient) => ({
88
+ mutationKey: ['realtime', 'namespace', 'create'],
89
+ mutationFn: (input: RealtimeNamespaceCreateInput) => sdk['realtime']['namespace']['create'](input),
90
+ });
91
+
92
+ export const realtimeNamespaceDeleteMutationOptions = (sdk: GeneratedClient) => ({
93
+ mutationKey: ['realtime', 'namespace', 'delete'],
94
+ mutationFn: (input: RealtimeNamespaceDeleteInput) => sdk['realtime']['namespace']['delete'](input),
95
+ });
96
+
97
+ export const realtimeNamespaceGetQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceGetInput) => ({
98
+ queryKey: ['realtime', 'namespace', 'get', input] as const,
99
+ queryFn: () => sdk['realtime']['namespace']['get'](input),
100
+ });
101
+
102
+ export const realtimeNamespaceListQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceListInput) => ({
103
+ queryKey: ['realtime', 'namespace', 'list', input] as const,
104
+ queryFn: () => sdk['realtime']['namespace']['list'](input),
105
+ });
106
+
107
+ export const realtimeNamespaceUpdateMutationOptions = (sdk: GeneratedClient) => ({
108
+ mutationKey: ['realtime', 'namespace', 'update'],
109
+ mutationFn: (input: RealtimeNamespaceUpdateInput) => sdk['realtime']['namespace']['update'](input),
110
+ });
111
+
112
+ export const realtimePresenceEnterMutationOptions = (sdk: GeneratedClient) => ({
113
+ mutationKey: ['realtime', 'presence', 'enter'],
114
+ mutationFn: (input: RealtimePresenceEnterInput) => sdk['realtime']['presence']['enter'](input),
115
+ });
116
+
117
+ export const realtimePresenceGetQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceGetInput) => ({
118
+ queryKey: ['realtime', 'presence', 'get', input] as const,
119
+ queryFn: () => sdk['realtime']['presence']['get'](input),
120
+ });
121
+
122
+ export const realtimePresenceLeaveMutationOptions = (sdk: GeneratedClient) => ({
123
+ mutationKey: ['realtime', 'presence', 'leave'],
124
+ mutationFn: (input: RealtimePresenceLeaveInput) => sdk['realtime']['presence']['leave'](input),
125
+ });
126
+
127
+ export const realtimePresenceStatsQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceStatsInput) => ({
128
+ queryKey: ['realtime', 'presence', 'stats', input] as const,
129
+ queryFn: () => sdk['realtime']['presence']['stats'](input),
130
+ });
131
+
132
+ export const realtimePresenceUpdateMutationOptions = (sdk: GeneratedClient) => ({
133
+ mutationKey: ['realtime', 'presence', 'update'],
134
+ mutationFn: (input: RealtimePresenceUpdateInput) => sdk['realtime']['presence']['update'](input),
135
+ });
136
+
137
+ export const realtimePublicAccessStatusQueryOptions = (sdk: GeneratedClient, input: RealtimePublicAccessStatusInput) => ({
138
+ queryKey: ['realtime', 'public-access', 'status', input] as const,
139
+ queryFn: () => sdk['realtime']['public-access']['status'](input),
140
+ });
141
+
142
+ export const realtimeStatusGetQueryOptions = (sdk: GeneratedClient, input: RealtimeStatusGetInput) => ({
143
+ queryKey: ['realtime', 'status', 'get', input] as const,
144
+ queryFn: () => sdk['realtime']['status']['get'](input),
145
+ });
146
+
147
+ export const realtimeTokensCreateMutationOptions = (sdk: GeneratedClient) => ({
148
+ mutationKey: ['realtime', 'tokens', 'create'],
149
+ mutationFn: (input: RealtimeTokensCreateInput) => sdk['realtime']['tokens']['create'](input),
150
+ });
151
+
152
+ export const realtimeWebhookCreateMutationOptions = (sdk: GeneratedClient) => ({
153
+ mutationKey: ['realtime', 'webhook', 'create'],
154
+ mutationFn: (input: RealtimeWebhookCreateInput) => sdk['realtime']['webhook']['create'](input),
155
+ });
156
+
157
+ export const realtimeWebhookDeleteMutationOptions = (sdk: GeneratedClient) => ({
158
+ mutationKey: ['realtime', 'webhook', 'delete'],
159
+ mutationFn: (input: RealtimeWebhookDeleteInput) => sdk['realtime']['webhook']['delete'](input),
160
+ });
161
+
162
+ export const realtimeWebhookDeliveriesListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookDeliveriesListInput) => ({
163
+ queryKey: ['realtime', 'webhook-deliveries', 'list', input] as const,
164
+ queryFn: () => sdk['realtime']['webhook-deliveries']['list'](input),
165
+ });
166
+
167
+ export const realtimeWebhookGetQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookGetInput) => ({
168
+ queryKey: ['realtime', 'webhook', 'get', input] as const,
169
+ queryFn: () => sdk['realtime']['webhook']['get'](input),
170
+ });
171
+
172
+ export const realtimeWebhookListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookListInput) => ({
173
+ queryKey: ['realtime', 'webhook', 'list', input] as const,
174
+ queryFn: () => sdk['realtime']['webhook']['list'](input),
175
+ });
176
+
177
+ export const realtimeWebhookSecretRotateMutationOptions = (sdk: GeneratedClient) => ({
178
+ mutationKey: ['realtime', 'webhook-secret', 'rotate'],
179
+ mutationFn: (input: RealtimeWebhookSecretRotateInput) => sdk['realtime']['webhook-secret']['rotate'](input),
180
+ });
181
+
182
+ export const realtimeWebhookUpdateMutationOptions = (sdk: GeneratedClient) => ({
183
+ mutationKey: ['realtime', 'webhook', 'update'],
184
+ mutationFn: (input: RealtimeWebhookUpdateInput) => sdk['realtime']['webhook']['update'](input),
185
+ });
@@ -0,0 +1,3 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ export * from './queryOptions.gen';
3
+ export type { SupportAgentCreateInput, SupportAgentCreateOutput, SupportAgentGetInput, SupportAgentGetOutput, SupportAgentListInput, SupportAgentListOutput, SupportAgentUpdateInput, SupportAgentUpdateOutput, SupportAttachmentCreateInput, SupportAttachmentCreateOutput, SupportAttachmentFinalizeInput, SupportAttachmentFinalizeOutput, SupportLabelCreateInput, SupportLabelCreateOutput, SupportLabelGetInput, SupportLabelGetOutput, SupportLabelListInput, SupportLabelListOutput, SupportMessageCreateInput, SupportMessageCreateOutput, SupportMessageDeleteAnyInput, SupportMessageDeleteAnyOutput, SupportMessageDeleteInput, SupportMessageDeleteOutput, SupportMessageGetInput, SupportMessageGetOutput, SupportMessageListInput, SupportMessageListOutput, SupportMessageRevisionsListInput, SupportMessageRevisionsListOutput, SupportMessageUpdateInput, SupportMessageUpdateOutput, SupportResponseEscalateInput, SupportResponseEscalateOutput, SupportResponseGetInput, SupportResponseGetOutput, SupportResponseListInput, SupportResponseListOutput, SupportRuleCreateInput, SupportRuleCreateOutput, SupportRuleDeleteInput, SupportRuleDeleteOutput, SupportRuleGetInput, SupportRuleGetOutput, SupportRuleListInput, SupportRuleListOutput, SupportRuleUpdateInput, SupportRuleUpdateOutput, SupportStatusArchiveInput, SupportStatusArchiveOutput, SupportStatusCreateInput, SupportStatusCreateOutput, SupportStatusGetInput, SupportStatusGetOutput, SupportStatusListInput, SupportStatusListOutput, SupportStatusUpdateInput, SupportStatusUpdateOutput, SupportSurveyArchiveInput, SupportSurveyArchiveOutput, SupportSurveyCreateInput, SupportSurveyCreateOutput, SupportSurveyGetInput, SupportSurveyGetOutput, SupportSurveyListInput, SupportSurveyListOutput, SupportSurveyPublishInput, SupportSurveyPublishOutput, SupportSurveyStatsInput, SupportSurveyStatsOutput, SupportSurveyUnpublishInput, SupportSurveyUnpublishOutput, SupportSurveyUpdateInput, SupportSurveyUpdateOutput, SupportThreadAssignInput, SupportThreadAssignOutput, SupportThreadCreateInput, SupportThreadCreateOutput, SupportThreadGetInput, SupportThreadGetOutput, SupportThreadListInput, SupportThreadListOutput, SupportThreadStatusSetInput, SupportThreadStatusSetOutput, SupportThreadUpdateInput, SupportThreadUpdateOutput, SupportWebhookCreateInput, SupportWebhookCreateOutput, SupportWebhookDeleteInput, SupportWebhookDeleteOutput, SupportWebhookDeliveriesListInput, SupportWebhookDeliveriesListOutput, SupportWebhookGetInput, SupportWebhookGetOutput, SupportWebhookListInput, SupportWebhookListOutput, SupportWebhookRedeliverInput, SupportWebhookRedeliverOutput, SupportWebhookRotateSecretInput, SupportWebhookRotateSecretOutput, SupportWebhookUpdateInput, SupportWebhookUpdateOutput } from '../types.gen';
@@ -0,0 +1,331 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ SupportAgentCreateInput,
5
+ SupportAgentGetInput,
6
+ SupportAgentGetOutput,
7
+ SupportAgentListInput,
8
+ SupportAgentListOutput,
9
+ SupportAgentUpdateInput,
10
+ SupportAttachmentCreateInput,
11
+ SupportAttachmentFinalizeInput,
12
+ SupportLabelCreateInput,
13
+ SupportLabelGetInput,
14
+ SupportLabelGetOutput,
15
+ SupportLabelListInput,
16
+ SupportLabelListOutput,
17
+ SupportMessageCreateInput,
18
+ SupportMessageDeleteAnyInput,
19
+ SupportMessageDeleteInput,
20
+ SupportMessageGetInput,
21
+ SupportMessageGetOutput,
22
+ SupportMessageListInput,
23
+ SupportMessageListOutput,
24
+ SupportMessageRevisionsListInput,
25
+ SupportMessageRevisionsListOutput,
26
+ SupportMessageUpdateInput,
27
+ SupportResponseEscalateInput,
28
+ SupportResponseGetInput,
29
+ SupportResponseGetOutput,
30
+ SupportResponseListInput,
31
+ SupportResponseListOutput,
32
+ SupportRuleCreateInput,
33
+ SupportRuleDeleteInput,
34
+ SupportRuleGetInput,
35
+ SupportRuleGetOutput,
36
+ SupportRuleListInput,
37
+ SupportRuleListOutput,
38
+ SupportRuleUpdateInput,
39
+ SupportStatusArchiveInput,
40
+ SupportStatusCreateInput,
41
+ SupportStatusGetInput,
42
+ SupportStatusGetOutput,
43
+ SupportStatusListInput,
44
+ SupportStatusListOutput,
45
+ SupportStatusUpdateInput,
46
+ SupportSurveyArchiveInput,
47
+ SupportSurveyCreateInput,
48
+ SupportSurveyGetInput,
49
+ SupportSurveyGetOutput,
50
+ SupportSurveyListInput,
51
+ SupportSurveyListOutput,
52
+ SupportSurveyPublishInput,
53
+ SupportSurveyStatsInput,
54
+ SupportSurveyStatsOutput,
55
+ SupportSurveyUnpublishInput,
56
+ SupportSurveyUpdateInput,
57
+ SupportThreadAssignInput,
58
+ SupportThreadCreateInput,
59
+ SupportThreadGetInput,
60
+ SupportThreadGetOutput,
61
+ SupportThreadListInput,
62
+ SupportThreadListOutput,
63
+ SupportThreadStatusSetInput,
64
+ SupportThreadUpdateInput,
65
+ SupportWebhookCreateInput,
66
+ SupportWebhookDeleteInput,
67
+ SupportWebhookDeliveriesListInput,
68
+ SupportWebhookDeliveriesListOutput,
69
+ SupportWebhookGetInput,
70
+ SupportWebhookGetOutput,
71
+ SupportWebhookListInput,
72
+ SupportWebhookListOutput,
73
+ SupportWebhookRedeliverInput,
74
+ SupportWebhookRotateSecretInput,
75
+ SupportWebhookUpdateInput,
76
+ } from '../types.gen';
77
+
78
+ export const supportAgentCreateMutationOptions = (sdk: GeneratedClient) => ({
79
+ mutationKey: ['support', 'agent', 'create'],
80
+ mutationFn: (input: SupportAgentCreateInput) => sdk['support']['agent']['create'](input),
81
+ });
82
+
83
+ export const supportAgentGetQueryOptions = (sdk: GeneratedClient, input: SupportAgentGetInput) => ({
84
+ queryKey: ['support', 'agent', 'get', input] as const,
85
+ queryFn: () => sdk['support']['agent']['get'](input),
86
+ });
87
+
88
+ export const supportAgentListQueryOptions = (sdk: GeneratedClient, input: SupportAgentListInput) => ({
89
+ queryKey: ['support', 'agent', 'list', input] as const,
90
+ queryFn: () => sdk['support']['agent']['list'](input),
91
+ });
92
+
93
+ export const supportAgentUpdateMutationOptions = (sdk: GeneratedClient) => ({
94
+ mutationKey: ['support', 'agent', 'update'],
95
+ mutationFn: (input: SupportAgentUpdateInput) => sdk['support']['agent']['update'](input),
96
+ });
97
+
98
+ export const supportAttachmentCreateMutationOptions = (sdk: GeneratedClient) => ({
99
+ mutationKey: ['support', 'attachment', 'create'],
100
+ mutationFn: (input: SupportAttachmentCreateInput) => sdk['support']['attachment']['create'](input),
101
+ });
102
+
103
+ export const supportAttachmentFinalizeMutationOptions = (sdk: GeneratedClient) => ({
104
+ mutationKey: ['support', 'attachment', 'finalize'],
105
+ mutationFn: (input: SupportAttachmentFinalizeInput) => sdk['support']['attachment']['finalize'](input),
106
+ });
107
+
108
+ export const supportLabelCreateMutationOptions = (sdk: GeneratedClient) => ({
109
+ mutationKey: ['support', 'label', 'create'],
110
+ mutationFn: (input: SupportLabelCreateInput) => sdk['support']['label']['create'](input),
111
+ });
112
+
113
+ export const supportLabelGetQueryOptions = (sdk: GeneratedClient, input: SupportLabelGetInput) => ({
114
+ queryKey: ['support', 'label', 'get', input] as const,
115
+ queryFn: () => sdk['support']['label']['get'](input),
116
+ });
117
+
118
+ export const supportLabelListQueryOptions = (sdk: GeneratedClient, input: SupportLabelListInput) => ({
119
+ queryKey: ['support', 'label', 'list', input] as const,
120
+ queryFn: () => sdk['support']['label']['list'](input),
121
+ });
122
+
123
+ export const supportMessageCreateMutationOptions = (sdk: GeneratedClient) => ({
124
+ mutationKey: ['support', 'message', 'create'],
125
+ mutationFn: (input: SupportMessageCreateInput) => sdk['support']['message']['create'](input),
126
+ });
127
+
128
+ export const supportMessageDeleteMutationOptions = (sdk: GeneratedClient) => ({
129
+ mutationKey: ['support', 'message', 'delete'],
130
+ mutationFn: (input: SupportMessageDeleteInput) => sdk['support']['message']['delete'](input),
131
+ });
132
+
133
+ export const supportMessageDeleteAnyMutationOptions = (sdk: GeneratedClient) => ({
134
+ mutationKey: ['support', 'message-delete', 'any'],
135
+ mutationFn: (input: SupportMessageDeleteAnyInput) => sdk['support']['message-delete']['any'](input),
136
+ });
137
+
138
+ export const supportMessageGetQueryOptions = (sdk: GeneratedClient, input: SupportMessageGetInput) => ({
139
+ queryKey: ['support', 'message', 'get', input] as const,
140
+ queryFn: () => sdk['support']['message']['get'](input),
141
+ });
142
+
143
+ export const supportMessageListQueryOptions = (sdk: GeneratedClient, input: SupportMessageListInput) => ({
144
+ queryKey: ['support', 'message', 'list', input] as const,
145
+ queryFn: () => sdk['support']['message']['list'](input),
146
+ });
147
+
148
+ export const supportMessageRevisionsListQueryOptions = (sdk: GeneratedClient, input: SupportMessageRevisionsListInput) => ({
149
+ queryKey: ['support', 'message-revisions', 'list', input] as const,
150
+ queryFn: () => sdk['support']['message-revisions']['list'](input),
151
+ });
152
+
153
+ export const supportMessageUpdateMutationOptions = (sdk: GeneratedClient) => ({
154
+ mutationKey: ['support', 'message', 'update'],
155
+ mutationFn: (input: SupportMessageUpdateInput) => sdk['support']['message']['update'](input),
156
+ });
157
+
158
+ export const supportResponseEscalateMutationOptions = (sdk: GeneratedClient) => ({
159
+ mutationKey: ['support', 'response', 'escalate'],
160
+ mutationFn: (input: SupportResponseEscalateInput) => sdk['support']['response']['escalate'](input),
161
+ });
162
+
163
+ export const supportResponseGetQueryOptions = (sdk: GeneratedClient, input: SupportResponseGetInput) => ({
164
+ queryKey: ['support', 'response', 'get', input] as const,
165
+ queryFn: () => sdk['support']['response']['get'](input),
166
+ });
167
+
168
+ export const supportResponseListQueryOptions = (sdk: GeneratedClient, input: SupportResponseListInput) => ({
169
+ queryKey: ['support', 'response', 'list', input] as const,
170
+ queryFn: () => sdk['support']['response']['list'](input),
171
+ });
172
+
173
+ export const supportRuleCreateMutationOptions = (sdk: GeneratedClient) => ({
174
+ mutationKey: ['support', 'rule', 'create'],
175
+ mutationFn: (input: SupportRuleCreateInput) => sdk['support']['rule']['create'](input),
176
+ });
177
+
178
+ export const supportRuleDeleteMutationOptions = (sdk: GeneratedClient) => ({
179
+ mutationKey: ['support', 'rule', 'delete'],
180
+ mutationFn: (input: SupportRuleDeleteInput) => sdk['support']['rule']['delete'](input),
181
+ });
182
+
183
+ export const supportRuleGetQueryOptions = (sdk: GeneratedClient, input: SupportRuleGetInput) => ({
184
+ queryKey: ['support', 'rule', 'get', input] as const,
185
+ queryFn: () => sdk['support']['rule']['get'](input),
186
+ });
187
+
188
+ export const supportRuleListQueryOptions = (sdk: GeneratedClient, input: SupportRuleListInput) => ({
189
+ queryKey: ['support', 'rule', 'list', input] as const,
190
+ queryFn: () => sdk['support']['rule']['list'](input),
191
+ });
192
+
193
+ export const supportRuleUpdateMutationOptions = (sdk: GeneratedClient) => ({
194
+ mutationKey: ['support', 'rule', 'update'],
195
+ mutationFn: (input: SupportRuleUpdateInput) => sdk['support']['rule']['update'](input),
196
+ });
197
+
198
+ export const supportStatusArchiveMutationOptions = (sdk: GeneratedClient) => ({
199
+ mutationKey: ['support', 'status', 'archive'],
200
+ mutationFn: (input: SupportStatusArchiveInput) => sdk['support']['status']['archive'](input),
201
+ });
202
+
203
+ export const supportStatusCreateMutationOptions = (sdk: GeneratedClient) => ({
204
+ mutationKey: ['support', 'status', 'create'],
205
+ mutationFn: (input: SupportStatusCreateInput) => sdk['support']['status']['create'](input),
206
+ });
207
+
208
+ export const supportStatusGetQueryOptions = (sdk: GeneratedClient, input: SupportStatusGetInput) => ({
209
+ queryKey: ['support', 'status', 'get', input] as const,
210
+ queryFn: () => sdk['support']['status']['get'](input),
211
+ });
212
+
213
+ export const supportStatusListQueryOptions = (sdk: GeneratedClient, input: SupportStatusListInput) => ({
214
+ queryKey: ['support', 'status', 'list', input] as const,
215
+ queryFn: () => sdk['support']['status']['list'](input),
216
+ });
217
+
218
+ export const supportStatusUpdateMutationOptions = (sdk: GeneratedClient) => ({
219
+ mutationKey: ['support', 'status', 'update'],
220
+ mutationFn: (input: SupportStatusUpdateInput) => sdk['support']['status']['update'](input),
221
+ });
222
+
223
+ export const supportSurveyArchiveMutationOptions = (sdk: GeneratedClient) => ({
224
+ mutationKey: ['support', 'survey', 'archive'],
225
+ mutationFn: (input: SupportSurveyArchiveInput) => sdk['support']['survey']['archive'](input),
226
+ });
227
+
228
+ export const supportSurveyCreateMutationOptions = (sdk: GeneratedClient) => ({
229
+ mutationKey: ['support', 'survey', 'create'],
230
+ mutationFn: (input: SupportSurveyCreateInput) => sdk['support']['survey']['create'](input),
231
+ });
232
+
233
+ export const supportSurveyGetQueryOptions = (sdk: GeneratedClient, input: SupportSurveyGetInput) => ({
234
+ queryKey: ['support', 'survey', 'get', input] as const,
235
+ queryFn: () => sdk['support']['survey']['get'](input),
236
+ });
237
+
238
+ export const supportSurveyListQueryOptions = (sdk: GeneratedClient, input: SupportSurveyListInput) => ({
239
+ queryKey: ['support', 'survey', 'list', input] as const,
240
+ queryFn: () => sdk['support']['survey']['list'](input),
241
+ });
242
+
243
+ export const supportSurveyPublishMutationOptions = (sdk: GeneratedClient) => ({
244
+ mutationKey: ['support', 'survey', 'publish'],
245
+ mutationFn: (input: SupportSurveyPublishInput) => sdk['support']['survey']['publish'](input),
246
+ });
247
+
248
+ export const supportSurveyStatsQueryOptions = (sdk: GeneratedClient, input: SupportSurveyStatsInput) => ({
249
+ queryKey: ['support', 'survey', 'stats', input] as const,
250
+ queryFn: () => sdk['support']['survey']['stats'](input),
251
+ });
252
+
253
+ export const supportSurveyUnpublishMutationOptions = (sdk: GeneratedClient) => ({
254
+ mutationKey: ['support', 'survey', 'unpublish'],
255
+ mutationFn: (input: SupportSurveyUnpublishInput) => sdk['support']['survey']['unpublish'](input),
256
+ });
257
+
258
+ export const supportSurveyUpdateMutationOptions = (sdk: GeneratedClient) => ({
259
+ mutationKey: ['support', 'survey', 'update'],
260
+ mutationFn: (input: SupportSurveyUpdateInput) => sdk['support']['survey']['update'](input),
261
+ });
262
+
263
+ export const supportThreadAssignMutationOptions = (sdk: GeneratedClient) => ({
264
+ mutationKey: ['support', 'thread', 'assign'],
265
+ mutationFn: (input: SupportThreadAssignInput) => sdk['support']['thread']['assign'](input),
266
+ });
267
+
268
+ export const supportThreadCreateMutationOptions = (sdk: GeneratedClient) => ({
269
+ mutationKey: ['support', 'thread', 'create'],
270
+ mutationFn: (input: SupportThreadCreateInput) => sdk['support']['thread']['create'](input),
271
+ });
272
+
273
+ export const supportThreadGetQueryOptions = (sdk: GeneratedClient, input: SupportThreadGetInput) => ({
274
+ queryKey: ['support', 'thread', 'get', input] as const,
275
+ queryFn: () => sdk['support']['thread']['get'](input),
276
+ });
277
+
278
+ export const supportThreadListQueryOptions = (sdk: GeneratedClient, input: SupportThreadListInput) => ({
279
+ queryKey: ['support', 'thread', 'list', input] as const,
280
+ queryFn: () => sdk['support']['thread']['list'](input),
281
+ });
282
+
283
+ export const supportThreadStatusSetMutationOptions = (sdk: GeneratedClient) => ({
284
+ mutationKey: ['support', 'thread-status', 'set'],
285
+ mutationFn: (input: SupportThreadStatusSetInput) => sdk['support']['thread-status']['set'](input),
286
+ });
287
+
288
+ export const supportThreadUpdateMutationOptions = (sdk: GeneratedClient) => ({
289
+ mutationKey: ['support', 'thread', 'update'],
290
+ mutationFn: (input: SupportThreadUpdateInput) => sdk['support']['thread']['update'](input),
291
+ });
292
+
293
+ export const supportWebhookCreateMutationOptions = (sdk: GeneratedClient) => ({
294
+ mutationKey: ['support', 'webhook', 'create'],
295
+ mutationFn: (input: SupportWebhookCreateInput) => sdk['support']['webhook']['create'](input),
296
+ });
297
+
298
+ export const supportWebhookDeleteMutationOptions = (sdk: GeneratedClient) => ({
299
+ mutationKey: ['support', 'webhook', 'delete'],
300
+ mutationFn: (input: SupportWebhookDeleteInput) => sdk['support']['webhook']['delete'](input),
301
+ });
302
+
303
+ export const supportWebhookDeliveriesListQueryOptions = (sdk: GeneratedClient, input: SupportWebhookDeliveriesListInput) => ({
304
+ queryKey: ['support', 'webhook-deliveries', 'list', input] as const,
305
+ queryFn: () => sdk['support']['webhook-deliveries']['list'](input),
306
+ });
307
+
308
+ export const supportWebhookGetQueryOptions = (sdk: GeneratedClient, input: SupportWebhookGetInput) => ({
309
+ queryKey: ['support', 'webhook', 'get', input] as const,
310
+ queryFn: () => sdk['support']['webhook']['get'](input),
311
+ });
312
+
313
+ export const supportWebhookListQueryOptions = (sdk: GeneratedClient, input: SupportWebhookListInput) => ({
314
+ queryKey: ['support', 'webhook', 'list', input] as const,
315
+ queryFn: () => sdk['support']['webhook']['list'](input),
316
+ });
317
+
318
+ export const supportWebhookRedeliverMutationOptions = (sdk: GeneratedClient) => ({
319
+ mutationKey: ['support', 'webhook', 'redeliver'],
320
+ mutationFn: (input: SupportWebhookRedeliverInput) => sdk['support']['webhook']['redeliver'](input),
321
+ });
322
+
323
+ export const supportWebhookRotateSecretMutationOptions = (sdk: GeneratedClient) => ({
324
+ mutationKey: ['support', 'webhook-rotate', 'secret'],
325
+ mutationFn: (input: SupportWebhookRotateSecretInput) => sdk['support']['webhook-rotate']['secret'](input),
326
+ });
327
+
328
+ export const supportWebhookUpdateMutationOptions = (sdk: GeneratedClient) => ({
329
+ mutationKey: ['support', 'webhook', 'update'],
330
+ mutationFn: (input: SupportWebhookUpdateInput) => sdk['support']['webhook']['update'](input),
331
+ });
@@ -0,0 +1,3 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ export * from './queryOptions.gen';
3
+ export type { TrackingDomainsCreateInput, TrackingDomainsCreateOutput, TrackingDomainsDeleteInput, TrackingDomainsDeleteOutput, TrackingDomainsGetInput, TrackingDomainsGetOutput, TrackingDomainsListInput, TrackingDomainsListOutput, TrackingDomainsVerifyInput, TrackingDomainsVerifyOutput, TrackingEventNamesArchiveInput, TrackingEventNamesArchiveOutput, TrackingEventNamesListInput, TrackingEventNamesListOutput, TrackingEventNamesSetConversionInput, TrackingEventNamesSetConversionOutput, TrackingEventNamesUnarchiveInput, TrackingEventNamesUnarchiveOutput, TrackingGoogleadsConnectionStatusInput, TrackingGoogleadsConnectionStatusOutput, TrackingGoogleadsConversionActionsInput, TrackingGoogleadsConversionActionsOutput, TrackingGoogleadsFeedbackConfigGetInput, TrackingGoogleadsFeedbackConfigGetOutput, TrackingGoogleadsFeedbackConfigSetInput, TrackingGoogleadsFeedbackConfigSetOutput, TrackingGoogleadsFeedbackRunInput, TrackingGoogleadsFeedbackRunOutput, TrackingGoogleadsFeedbackStatusInput, TrackingGoogleadsFeedbackStatusOutput, TrackingGoogleadsFeedbackUploadsInput, TrackingGoogleadsFeedbackUploadsOutput, TrackingGoogleadsRoasReportInput, TrackingGoogleadsRoasReportOutput, TrackingGoogleadsSyncNowInput, TrackingGoogleadsSyncNowOutput, TrackingGoogleadsTrackingHealthInput, TrackingGoogleadsTrackingHealthOutput, TrackingGoogleadsUsVsPlatformInput, TrackingGoogleadsUsVsPlatformOutput, TrackingIdentityHealthInput, TrackingIdentityHealthOutput, TrackingInstallDomainsCreateInput, TrackingInstallDomainsCreateOutput, TrackingInstallDomainsDeleteInput, TrackingInstallDomainsDeleteOutput, TrackingInstallDomainsListInput, TrackingInstallDomainsListOutput, TrackingLinkDomainsCreateInput, TrackingLinkDomainsCreateOutput, TrackingLinkDomainsDeleteInput, TrackingLinkDomainsDeleteOutput, TrackingLinkDomainsListInput, TrackingLinkDomainsListOutput, TrackingLiveEventsListInput, TrackingLiveEventsListOutput, TrackingProfilesDeleteInput, TrackingProfilesDeleteOutput, TrackingProfilesExportInput, TrackingProfilesExportOutput, TrackingProfilesGetInput, TrackingProfilesGetOutput, TrackingProfilesListInput, TrackingProfilesListOutput, TrackingReportsAttributedJourneyInput, TrackingReportsAttributedJourneyOutput, TrackingReportsEventVolumeInput, TrackingReportsEventVolumeOutput, TrackingReportsRevenueBySourceInput, TrackingReportsRevenueBySourceOutput, TrackingReportsSourcePeopleInput, TrackingReportsSourcePeopleOutput, TrackingSnippetsGetInput, TrackingSnippetsGetOutput } from '../types.gen';