@ziwako/contact 0.0.0-stage → 0.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.
@@ -0,0 +1,1233 @@
1
+ import * as axios from 'axios';
2
+ import * as react from 'react';
3
+ import { ReactNode } from 'react';
4
+ import { C as ContactConfig } from './instance-B82No27F.cjs';
5
+ import { UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, QueryClient, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
6
+ import { A as ApiResponse, x as CreateApiKeyBody, w as AddAudienceContactBody, u as CreateAudienceBody, v as UpdateAudienceBody, n as AssignLabelBody, i as ContactResponse, h as CreateContactBody, m as DeletedContact200, t as ExportToCsv200, E as ExportToVcard200, r as ImportFromCsvBody, s as ImportFromCsv200, p as ImportFromVcardBody, q as ImportFromVcard200, j as ListContactParams, k as ContactListResponse, o as ListDuplicate200, M as MergeContactBody, l as UpdateContactBody, d as CreateLabelBody, e as LabelResponse, D as DeleteLabel200, f as LabelListResponse, g as UpdateLabelBody, I as ImportLeadsBody, L as ListLeadsParams, c as UpdateLeadBody, a as CreateLeadMagnetBody, b as UpdateLeadMagnetBody, U as UploadLeadMagnetFileBody, C as CreateSuppressionBody } from './uploadLeadMagnetFileBody.tanstack-ClBcqB6y.cjs';
7
+
8
+ interface ContactProviderProps extends ContactConfig {
9
+ children: ReactNode;
10
+ }
11
+ declare function ContactProvider({ apiKey, accessToken, baseURL, children }: ContactProviderProps): react.JSX.Element;
12
+ declare function useContactClient(): axios.AxiosInstance;
13
+
14
+ /**
15
+ * @summary Get account
16
+ */
17
+ declare const getAccount: (signal?: AbortSignal) => Promise<ApiResponse>;
18
+ declare const getGetAccountQueryKey: () => readonly ["/account"];
19
+ declare const getGetAccountQueryOptions: <TData = Awaited<ReturnType<typeof getAccount>>, TError = unknown>(options?: {
20
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData>>;
21
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData> & {
22
+ queryKey: DataTag<QueryKey, TData, TError>;
23
+ };
24
+ type GetAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getAccount>>>;
25
+ type GetAccountQueryError = unknown;
26
+ declare function useGetAccount<TData = Awaited<ReturnType<typeof getAccount>>, TError = unknown>(options: {
27
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAccount>>, TError, Awaited<ReturnType<typeof getAccount>>>, 'initialData'>;
28
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
29
+ queryKey: DataTag<QueryKey, TData, TError>;
30
+ };
31
+ declare function useGetAccount<TData = Awaited<ReturnType<typeof getAccount>>, TError = unknown>(options?: {
32
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAccount>>, TError, Awaited<ReturnType<typeof getAccount>>>, 'initialData'>;
33
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
34
+ queryKey: DataTag<QueryKey, TData, TError>;
35
+ };
36
+ declare function useGetAccount<TData = Awaited<ReturnType<typeof getAccount>>, TError = unknown>(options?: {
37
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData>>;
38
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
39
+ queryKey: DataTag<QueryKey, TData, TError>;
40
+ };
41
+
42
+ /**
43
+ * @summary List scopes
44
+ */
45
+ declare const listApiKeyScopes: (signal?: AbortSignal) => Promise<ApiResponse>;
46
+ declare const getListApiKeyScopesQueryKey: () => readonly ["/my/api-keys/scopes"];
47
+ declare const getListApiKeyScopesQueryOptions: <TData = Awaited<ReturnType<typeof listApiKeyScopes>>, TError = unknown>(options?: {
48
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, TData>>;
49
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, TData> & {
50
+ queryKey: DataTag<QueryKey, TData, TError>;
51
+ };
52
+ type ListApiKeyScopesQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeyScopes>>>;
53
+ type ListApiKeyScopesQueryError = unknown;
54
+ declare function useListApiKeyScopes<TData = Awaited<ReturnType<typeof listApiKeyScopes>>, TError = unknown>(options: {
55
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, Awaited<ReturnType<typeof listApiKeyScopes>>>, 'initialData'>;
56
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
57
+ queryKey: DataTag<QueryKey, TData, TError>;
58
+ };
59
+ declare function useListApiKeyScopes<TData = Awaited<ReturnType<typeof listApiKeyScopes>>, TError = unknown>(options?: {
60
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, Awaited<ReturnType<typeof listApiKeyScopes>>>, 'initialData'>;
61
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
62
+ queryKey: DataTag<QueryKey, TData, TError>;
63
+ };
64
+ declare function useListApiKeyScopes<TData = Awaited<ReturnType<typeof listApiKeyScopes>>, TError = unknown>(options?: {
65
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeyScopes>>, TError, TData>>;
66
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
67
+ queryKey: DataTag<QueryKey, TData, TError>;
68
+ };
69
+ /**
70
+ * @summary List API keys
71
+ */
72
+ declare const listApiKeys: (signal?: AbortSignal) => Promise<ApiResponse>;
73
+ declare const getListApiKeysQueryKey: () => readonly ["/my/api-keys"];
74
+ declare const getListApiKeysQueryOptions: <TData = Awaited<ReturnType<typeof listApiKeys>>, TError = unknown>(options?: {
75
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData>>;
76
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData> & {
77
+ queryKey: DataTag<QueryKey, TData, TError>;
78
+ };
79
+ type ListApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeys>>>;
80
+ type ListApiKeysQueryError = unknown;
81
+ declare function useListApiKeys<TData = Awaited<ReturnType<typeof listApiKeys>>, TError = unknown>(options: {
82
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, Awaited<ReturnType<typeof listApiKeys>>>, 'initialData'>;
83
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
84
+ queryKey: DataTag<QueryKey, TData, TError>;
85
+ };
86
+ declare function useListApiKeys<TData = Awaited<ReturnType<typeof listApiKeys>>, TError = unknown>(options?: {
87
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, Awaited<ReturnType<typeof listApiKeys>>>, 'initialData'>;
88
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
89
+ queryKey: DataTag<QueryKey, TData, TError>;
90
+ };
91
+ declare function useListApiKeys<TData = Awaited<ReturnType<typeof listApiKeys>>, TError = unknown>(options?: {
92
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData>>;
93
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
94
+ queryKey: DataTag<QueryKey, TData, TError>;
95
+ };
96
+ /**
97
+ * @summary Create API key
98
+ */
99
+ declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, signal?: AbortSignal) => Promise<ApiResponse>;
100
+ declare const getCreateApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
101
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createApiKey>>, TError, {
102
+ data: CreateApiKeyBody;
103
+ }, TContext>;
104
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createApiKey>>, TError, {
105
+ data: CreateApiKeyBody;
106
+ }, TContext>;
107
+ type CreateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createApiKey>>>;
108
+ type CreateApiKeyMutationBody = CreateApiKeyBody;
109
+ type CreateApiKeyMutationError = unknown;
110
+ /**
111
+ * @summary Create API key
112
+ */
113
+ declare const useCreateApiKey: <TError = unknown, TContext = unknown>(options?: {
114
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createApiKey>>, TError, {
115
+ data: CreateApiKeyBody;
116
+ }, TContext>;
117
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createApiKey>>, TError, {
118
+ data: CreateApiKeyBody;
119
+ }, TContext>;
120
+ /**
121
+ * @summary Revoke API key
122
+ */
123
+ declare const revokeApiKey: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
124
+ declare const getRevokeApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
125
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeApiKey>>, TError, {
126
+ id: string;
127
+ }, TContext>;
128
+ }) => UseMutationOptions<Awaited<ReturnType<typeof revokeApiKey>>, TError, {
129
+ id: string;
130
+ }, TContext>;
131
+ type RevokeApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof revokeApiKey>>>;
132
+ type RevokeApiKeyMutationError = unknown;
133
+ /**
134
+ * @summary Revoke API key
135
+ */
136
+ declare const useRevokeApiKey: <TError = unknown, TContext = unknown>(options?: {
137
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeApiKey>>, TError, {
138
+ id: string;
139
+ }, TContext>;
140
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeApiKey>>, TError, {
141
+ id: string;
142
+ }, TContext>;
143
+ /**
144
+ * @summary Rotate API key
145
+ */
146
+ declare const rotateApiKey: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
147
+ declare const getRotateApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
148
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof rotateApiKey>>, TError, {
149
+ id: string;
150
+ }, TContext>;
151
+ }) => UseMutationOptions<Awaited<ReturnType<typeof rotateApiKey>>, TError, {
152
+ id: string;
153
+ }, TContext>;
154
+ type RotateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof rotateApiKey>>>;
155
+ type RotateApiKeyMutationError = unknown;
156
+ /**
157
+ * @summary Rotate API key
158
+ */
159
+ declare const useRotateApiKey: <TError = unknown, TContext = unknown>(options?: {
160
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof rotateApiKey>>, TError, {
161
+ id: string;
162
+ }, TContext>;
163
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof rotateApiKey>>, TError, {
164
+ id: string;
165
+ }, TContext>;
166
+ /**
167
+ * @summary API key usage
168
+ */
169
+ declare const getApiKeyUsage: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
170
+ declare const getGetApiKeyUsageQueryKey: (id: string) => readonly [`/my/api-keys/${string}/usage`];
171
+ declare const getGetApiKeyUsageQueryOptions: <TData = Awaited<ReturnType<typeof getApiKeyUsage>>, TError = unknown>(id: string, options?: {
172
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, TData>>;
173
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, TData> & {
174
+ queryKey: DataTag<QueryKey, TData, TError>;
175
+ };
176
+ type GetApiKeyUsageQueryResult = NonNullable<Awaited<ReturnType<typeof getApiKeyUsage>>>;
177
+ type GetApiKeyUsageQueryError = unknown;
178
+ declare function useGetApiKeyUsage<TData = Awaited<ReturnType<typeof getApiKeyUsage>>, TError = unknown>(id: string, options: {
179
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, Awaited<ReturnType<typeof getApiKeyUsage>>>, 'initialData'>;
180
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
181
+ queryKey: DataTag<QueryKey, TData, TError>;
182
+ };
183
+ declare function useGetApiKeyUsage<TData = Awaited<ReturnType<typeof getApiKeyUsage>>, TError = unknown>(id: string, options?: {
184
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, Awaited<ReturnType<typeof getApiKeyUsage>>>, 'initialData'>;
185
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
186
+ queryKey: DataTag<QueryKey, TData, TError>;
187
+ };
188
+ declare function useGetApiKeyUsage<TData = Awaited<ReturnType<typeof getApiKeyUsage>>, TError = unknown>(id: string, options?: {
189
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiKeyUsage>>, TError, TData>>;
190
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
191
+ queryKey: DataTag<QueryKey, TData, TError>;
192
+ };
193
+
194
+ /**
195
+ * @summary List audiences
196
+ */
197
+ declare const listAudiences: (signal?: AbortSignal) => Promise<ApiResponse>;
198
+ declare const getListAudiencesQueryKey: () => readonly ["/audiences"];
199
+ declare const getListAudiencesQueryOptions: <TData = Awaited<ReturnType<typeof listAudiences>>, TError = unknown>(options?: {
200
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listAudiences>>, TError, TData>>;
201
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listAudiences>>, TError, TData> & {
202
+ queryKey: DataTag<QueryKey, TData, TError>;
203
+ };
204
+ type ListAudiencesQueryResult = NonNullable<Awaited<ReturnType<typeof listAudiences>>>;
205
+ type ListAudiencesQueryError = unknown;
206
+ declare function useListAudiences<TData = Awaited<ReturnType<typeof listAudiences>>, TError = unknown>(options: {
207
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listAudiences>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listAudiences>>, TError, Awaited<ReturnType<typeof listAudiences>>>, 'initialData'>;
208
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
209
+ queryKey: DataTag<QueryKey, TData, TError>;
210
+ };
211
+ declare function useListAudiences<TData = Awaited<ReturnType<typeof listAudiences>>, TError = unknown>(options?: {
212
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listAudiences>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listAudiences>>, TError, Awaited<ReturnType<typeof listAudiences>>>, 'initialData'>;
213
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
214
+ queryKey: DataTag<QueryKey, TData, TError>;
215
+ };
216
+ declare function useListAudiences<TData = Awaited<ReturnType<typeof listAudiences>>, TError = unknown>(options?: {
217
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listAudiences>>, TError, TData>>;
218
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
219
+ queryKey: DataTag<QueryKey, TData, TError>;
220
+ };
221
+ /**
222
+ * @summary Create audience
223
+ */
224
+ declare const createAudience: (createAudienceBody: CreateAudienceBody, signal?: AbortSignal) => Promise<ApiResponse>;
225
+ declare const getCreateAudienceMutationOptions: <TError = unknown, TContext = unknown>(options?: {
226
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createAudience>>, TError, {
227
+ data: CreateAudienceBody;
228
+ }, TContext>;
229
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createAudience>>, TError, {
230
+ data: CreateAudienceBody;
231
+ }, TContext>;
232
+ type CreateAudienceMutationResult = NonNullable<Awaited<ReturnType<typeof createAudience>>>;
233
+ type CreateAudienceMutationBody = CreateAudienceBody;
234
+ type CreateAudienceMutationError = unknown;
235
+ /**
236
+ * @summary Create audience
237
+ */
238
+ declare const useCreateAudience: <TError = unknown, TContext = unknown>(options?: {
239
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createAudience>>, TError, {
240
+ data: CreateAudienceBody;
241
+ }, TContext>;
242
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createAudience>>, TError, {
243
+ data: CreateAudienceBody;
244
+ }, TContext>;
245
+ /**
246
+ * @summary Get audience
247
+ */
248
+ declare const getAudience: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
249
+ declare const getGetAudienceQueryKey: (id: string) => readonly [`/audiences/${string}`];
250
+ declare const getGetAudienceQueryOptions: <TData = Awaited<ReturnType<typeof getAudience>>, TError = unknown>(id: string, options?: {
251
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudience>>, TError, TData>>;
252
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getAudience>>, TError, TData> & {
253
+ queryKey: DataTag<QueryKey, TData, TError>;
254
+ };
255
+ type GetAudienceQueryResult = NonNullable<Awaited<ReturnType<typeof getAudience>>>;
256
+ type GetAudienceQueryError = unknown;
257
+ declare function useGetAudience<TData = Awaited<ReturnType<typeof getAudience>>, TError = unknown>(id: string, options: {
258
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudience>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAudience>>, TError, Awaited<ReturnType<typeof getAudience>>>, 'initialData'>;
259
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
260
+ queryKey: DataTag<QueryKey, TData, TError>;
261
+ };
262
+ declare function useGetAudience<TData = Awaited<ReturnType<typeof getAudience>>, TError = unknown>(id: string, options?: {
263
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudience>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAudience>>, TError, Awaited<ReturnType<typeof getAudience>>>, 'initialData'>;
264
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
265
+ queryKey: DataTag<QueryKey, TData, TError>;
266
+ };
267
+ declare function useGetAudience<TData = Awaited<ReturnType<typeof getAudience>>, TError = unknown>(id: string, options?: {
268
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudience>>, TError, TData>>;
269
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
270
+ queryKey: DataTag<QueryKey, TData, TError>;
271
+ };
272
+ /**
273
+ * @summary Update audience
274
+ */
275
+ declare const updateAudience: (id: string, updateAudienceBody: UpdateAudienceBody, signal?: AbortSignal) => Promise<ApiResponse>;
276
+ declare const getUpdateAudienceMutationOptions: <TError = unknown, TContext = unknown>(options?: {
277
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateAudience>>, TError, {
278
+ id: string;
279
+ data: UpdateAudienceBody;
280
+ }, TContext>;
281
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateAudience>>, TError, {
282
+ id: string;
283
+ data: UpdateAudienceBody;
284
+ }, TContext>;
285
+ type UpdateAudienceMutationResult = NonNullable<Awaited<ReturnType<typeof updateAudience>>>;
286
+ type UpdateAudienceMutationBody = UpdateAudienceBody;
287
+ type UpdateAudienceMutationError = unknown;
288
+ /**
289
+ * @summary Update audience
290
+ */
291
+ declare const useUpdateAudience: <TError = unknown, TContext = unknown>(options?: {
292
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateAudience>>, TError, {
293
+ id: string;
294
+ data: UpdateAudienceBody;
295
+ }, TContext>;
296
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateAudience>>, TError, {
297
+ id: string;
298
+ data: UpdateAudienceBody;
299
+ }, TContext>;
300
+ /**
301
+ * @summary Delete audience
302
+ */
303
+ declare const deleteAudience: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
304
+ declare const getDeleteAudienceMutationOptions: <TError = unknown, TContext = unknown>(options?: {
305
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteAudience>>, TError, {
306
+ id: string;
307
+ }, TContext>;
308
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteAudience>>, TError, {
309
+ id: string;
310
+ }, TContext>;
311
+ type DeleteAudienceMutationResult = NonNullable<Awaited<ReturnType<typeof deleteAudience>>>;
312
+ type DeleteAudienceMutationError = unknown;
313
+ /**
314
+ * @summary Delete audience
315
+ */
316
+ declare const useDeleteAudience: <TError = unknown, TContext = unknown>(options?: {
317
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteAudience>>, TError, {
318
+ id: string;
319
+ }, TContext>;
320
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteAudience>>, TError, {
321
+ id: string;
322
+ }, TContext>;
323
+ /**
324
+ * @summary Audience recipients
325
+ */
326
+ declare const getAudienceRecipients: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
327
+ declare const getGetAudienceRecipientsQueryKey: (id: string) => readonly [`/audiences/${string}/recipients`];
328
+ declare const getGetAudienceRecipientsQueryOptions: <TData = Awaited<ReturnType<typeof getAudienceRecipients>>, TError = unknown>(id: string, options?: {
329
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, TData>>;
330
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, TData> & {
331
+ queryKey: DataTag<QueryKey, TData, TError>;
332
+ };
333
+ type GetAudienceRecipientsQueryResult = NonNullable<Awaited<ReturnType<typeof getAudienceRecipients>>>;
334
+ type GetAudienceRecipientsQueryError = unknown;
335
+ declare function useGetAudienceRecipients<TData = Awaited<ReturnType<typeof getAudienceRecipients>>, TError = unknown>(id: string, options: {
336
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, Awaited<ReturnType<typeof getAudienceRecipients>>>, 'initialData'>;
337
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
338
+ queryKey: DataTag<QueryKey, TData, TError>;
339
+ };
340
+ declare function useGetAudienceRecipients<TData = Awaited<ReturnType<typeof getAudienceRecipients>>, TError = unknown>(id: string, options?: {
341
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, Awaited<ReturnType<typeof getAudienceRecipients>>>, 'initialData'>;
342
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
343
+ queryKey: DataTag<QueryKey, TData, TError>;
344
+ };
345
+ declare function useGetAudienceRecipients<TData = Awaited<ReturnType<typeof getAudienceRecipients>>, TError = unknown>(id: string, options?: {
346
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAudienceRecipients>>, TError, TData>>;
347
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
348
+ queryKey: DataTag<QueryKey, TData, TError>;
349
+ };
350
+ /**
351
+ * @summary Add contact
352
+ */
353
+ declare const addAudienceContact: (id: string, addAudienceContactBody: AddAudienceContactBody, signal?: AbortSignal) => Promise<ApiResponse>;
354
+ declare const getAddAudienceContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
355
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof addAudienceContact>>, TError, {
356
+ id: string;
357
+ data: AddAudienceContactBody;
358
+ }, TContext>;
359
+ }) => UseMutationOptions<Awaited<ReturnType<typeof addAudienceContact>>, TError, {
360
+ id: string;
361
+ data: AddAudienceContactBody;
362
+ }, TContext>;
363
+ type AddAudienceContactMutationResult = NonNullable<Awaited<ReturnType<typeof addAudienceContact>>>;
364
+ type AddAudienceContactMutationBody = AddAudienceContactBody;
365
+ type AddAudienceContactMutationError = unknown;
366
+ /**
367
+ * @summary Add contact
368
+ */
369
+ declare const useAddAudienceContact: <TError = unknown, TContext = unknown>(options?: {
370
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof addAudienceContact>>, TError, {
371
+ id: string;
372
+ data: AddAudienceContactBody;
373
+ }, TContext>;
374
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof addAudienceContact>>, TError, {
375
+ id: string;
376
+ data: AddAudienceContactBody;
377
+ }, TContext>;
378
+ /**
379
+ * @summary Remove contact
380
+ */
381
+ declare const removeAudienceContact: (id: string, leadId: string, signal?: AbortSignal) => Promise<ApiResponse>;
382
+ declare const getRemoveAudienceContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
383
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeAudienceContact>>, TError, {
384
+ id: string;
385
+ leadId: string;
386
+ }, TContext>;
387
+ }) => UseMutationOptions<Awaited<ReturnType<typeof removeAudienceContact>>, TError, {
388
+ id: string;
389
+ leadId: string;
390
+ }, TContext>;
391
+ type RemoveAudienceContactMutationResult = NonNullable<Awaited<ReturnType<typeof removeAudienceContact>>>;
392
+ type RemoveAudienceContactMutationError = unknown;
393
+ /**
394
+ * @summary Remove contact
395
+ */
396
+ declare const useRemoveAudienceContact: <TError = unknown, TContext = unknown>(options?: {
397
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeAudienceContact>>, TError, {
398
+ id: string;
399
+ leadId: string;
400
+ }, TContext>;
401
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof removeAudienceContact>>, TError, {
402
+ id: string;
403
+ leadId: string;
404
+ }, TContext>;
405
+
406
+ /**
407
+ * @summary Create contact
408
+ */
409
+ declare const createContact: (createContactBody: CreateContactBody, signal?: AbortSignal) => Promise<ContactResponse>;
410
+ declare const getCreateContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
411
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createContact>>, TError, {
412
+ data: CreateContactBody;
413
+ }, TContext>;
414
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createContact>>, TError, {
415
+ data: CreateContactBody;
416
+ }, TContext>;
417
+ type CreateContactMutationResult = NonNullable<Awaited<ReturnType<typeof createContact>>>;
418
+ type CreateContactMutationBody = CreateContactBody;
419
+ type CreateContactMutationError = unknown;
420
+ /**
421
+ * @summary Create contact
422
+ */
423
+ declare const useCreateContact: <TError = unknown, TContext = unknown>(options?: {
424
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createContact>>, TError, {
425
+ data: CreateContactBody;
426
+ }, TContext>;
427
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createContact>>, TError, {
428
+ data: CreateContactBody;
429
+ }, TContext>;
430
+ /**
431
+ * @summary List contacts
432
+ */
433
+ declare const listContact: (params?: ListContactParams, signal?: AbortSignal) => Promise<ContactListResponse>;
434
+ declare const getListContactQueryKey: (params?: ListContactParams) => readonly ["/contacts", ...ListContactParams[]];
435
+ declare const getListContactQueryOptions: <TData = Awaited<ReturnType<typeof listContact>>, TError = unknown>(params?: ListContactParams, options?: {
436
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listContact>>, TError, TData>>;
437
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listContact>>, TError, TData> & {
438
+ queryKey: DataTag<QueryKey, TData, TError>;
439
+ };
440
+ type ListContactQueryResult = NonNullable<Awaited<ReturnType<typeof listContact>>>;
441
+ type ListContactQueryError = unknown;
442
+ declare function useListContact<TData = Awaited<ReturnType<typeof listContact>>, TError = unknown>(params: undefined | ListContactParams, options: {
443
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listContact>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listContact>>, TError, Awaited<ReturnType<typeof listContact>>>, 'initialData'>;
444
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
445
+ queryKey: DataTag<QueryKey, TData, TError>;
446
+ };
447
+ declare function useListContact<TData = Awaited<ReturnType<typeof listContact>>, TError = unknown>(params?: ListContactParams, options?: {
448
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listContact>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listContact>>, TError, Awaited<ReturnType<typeof listContact>>>, 'initialData'>;
449
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
450
+ queryKey: DataTag<QueryKey, TData, TError>;
451
+ };
452
+ declare function useListContact<TData = Awaited<ReturnType<typeof listContact>>, TError = unknown>(params?: ListContactParams, options?: {
453
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listContact>>, TError, TData>>;
454
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
455
+ queryKey: DataTag<QueryKey, TData, TError>;
456
+ };
457
+ /**
458
+ * @summary Get contact
459
+ */
460
+ declare const getContact: (id: string, signal?: AbortSignal) => Promise<ContactResponse>;
461
+ declare const getGetContactQueryKey: (id: string) => readonly [`/contacts/${string}`];
462
+ declare const getGetContactQueryOptions: <TData = Awaited<ReturnType<typeof getContact>>, TError = unknown>(id: string, options?: {
463
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getContact>>, TError, TData>>;
464
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getContact>>, TError, TData> & {
465
+ queryKey: DataTag<QueryKey, TData, TError>;
466
+ };
467
+ type GetContactQueryResult = NonNullable<Awaited<ReturnType<typeof getContact>>>;
468
+ type GetContactQueryError = unknown;
469
+ declare function useGetContact<TData = Awaited<ReturnType<typeof getContact>>, TError = unknown>(id: string, options: {
470
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getContact>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getContact>>, TError, Awaited<ReturnType<typeof getContact>>>, 'initialData'>;
471
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
472
+ queryKey: DataTag<QueryKey, TData, TError>;
473
+ };
474
+ declare function useGetContact<TData = Awaited<ReturnType<typeof getContact>>, TError = unknown>(id: string, options?: {
475
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getContact>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getContact>>, TError, Awaited<ReturnType<typeof getContact>>>, 'initialData'>;
476
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
477
+ queryKey: DataTag<QueryKey, TData, TError>;
478
+ };
479
+ declare function useGetContact<TData = Awaited<ReturnType<typeof getContact>>, TError = unknown>(id: string, options?: {
480
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getContact>>, TError, TData>>;
481
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
482
+ queryKey: DataTag<QueryKey, TData, TError>;
483
+ };
484
+ /**
485
+ * @summary Update contact
486
+ */
487
+ declare const updateContact: (id: string, updateContactBody: UpdateContactBody, signal?: AbortSignal) => Promise<ContactResponse>;
488
+ declare const getUpdateContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
489
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateContact>>, TError, {
490
+ id: string;
491
+ data: UpdateContactBody;
492
+ }, TContext>;
493
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateContact>>, TError, {
494
+ id: string;
495
+ data: UpdateContactBody;
496
+ }, TContext>;
497
+ type UpdateContactMutationResult = NonNullable<Awaited<ReturnType<typeof updateContact>>>;
498
+ type UpdateContactMutationBody = UpdateContactBody;
499
+ type UpdateContactMutationError = unknown;
500
+ /**
501
+ * @summary Update contact
502
+ */
503
+ declare const useUpdateContact: <TError = unknown, TContext = unknown>(options?: {
504
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateContact>>, TError, {
505
+ id: string;
506
+ data: UpdateContactBody;
507
+ }, TContext>;
508
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateContact>>, TError, {
509
+ id: string;
510
+ data: UpdateContactBody;
511
+ }, TContext>;
512
+ /**
513
+ * @summary Delete contact
514
+ */
515
+ declare const deletedContact: (id: string, signal?: AbortSignal) => Promise<DeletedContact200>;
516
+ declare const getDeletedContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
517
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletedContact>>, TError, {
518
+ id: string;
519
+ }, TContext>;
520
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deletedContact>>, TError, {
521
+ id: string;
522
+ }, TContext>;
523
+ type DeletedContactMutationResult = NonNullable<Awaited<ReturnType<typeof deletedContact>>>;
524
+ type DeletedContactMutationError = unknown;
525
+ /**
526
+ * @summary Delete contact
527
+ */
528
+ declare const useDeletedContact: <TError = unknown, TContext = unknown>(options?: {
529
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletedContact>>, TError, {
530
+ id: string;
531
+ }, TContext>;
532
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deletedContact>>, TError, {
533
+ id: string;
534
+ }, TContext>;
535
+ /**
536
+ * @summary Assign Label
537
+ */
538
+ declare const assignLabel: (id: string, assignLabelBody: AssignLabelBody, signal?: AbortSignal) => Promise<ContactResponse>;
539
+ declare const getAssignLabelMutationOptions: <TError = unknown, TContext = unknown>(options?: {
540
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof assignLabel>>, TError, {
541
+ id: string;
542
+ data: AssignLabelBody;
543
+ }, TContext>;
544
+ }) => UseMutationOptions<Awaited<ReturnType<typeof assignLabel>>, TError, {
545
+ id: string;
546
+ data: AssignLabelBody;
547
+ }, TContext>;
548
+ type AssignLabelMutationResult = NonNullable<Awaited<ReturnType<typeof assignLabel>>>;
549
+ type AssignLabelMutationBody = AssignLabelBody;
550
+ type AssignLabelMutationError = unknown;
551
+ /**
552
+ * @summary Assign Label
553
+ */
554
+ declare const useAssignLabel: <TError = unknown, TContext = unknown>(options?: {
555
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof assignLabel>>, TError, {
556
+ id: string;
557
+ data: AssignLabelBody;
558
+ }, TContext>;
559
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof assignLabel>>, TError, {
560
+ id: string;
561
+ data: AssignLabelBody;
562
+ }, TContext>;
563
+ /**
564
+ * @summary removeLabel
565
+ */
566
+ declare const removeLabel: (id: string, labelId: string, signal?: AbortSignal) => Promise<ContactResponse>;
567
+ declare const getRemoveLabelMutationOptions: <TError = unknown, TContext = unknown>(options?: {
568
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeLabel>>, TError, {
569
+ id: string;
570
+ labelId: string;
571
+ }, TContext>;
572
+ }) => UseMutationOptions<Awaited<ReturnType<typeof removeLabel>>, TError, {
573
+ id: string;
574
+ labelId: string;
575
+ }, TContext>;
576
+ type RemoveLabelMutationResult = NonNullable<Awaited<ReturnType<typeof removeLabel>>>;
577
+ type RemoveLabelMutationError = unknown;
578
+ /**
579
+ * @summary removeLabel
580
+ */
581
+ declare const useRemoveLabel: <TError = unknown, TContext = unknown>(options?: {
582
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeLabel>>, TError, {
583
+ id: string;
584
+ labelId: string;
585
+ }, TContext>;
586
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof removeLabel>>, TError, {
587
+ id: string;
588
+ labelId: string;
589
+ }, TContext>;
590
+ /**
591
+ * @summary Liste duplicate
592
+ */
593
+ declare const listDuplicate: (signal?: AbortSignal) => Promise<ListDuplicate200>;
594
+ declare const getListDuplicateQueryKey: () => readonly ["/contacts/duplicates"];
595
+ declare const getListDuplicateQueryOptions: <TData = Awaited<ReturnType<typeof listDuplicate>>, TError = unknown>(options?: {
596
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, TData>>;
597
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, TData> & {
598
+ queryKey: DataTag<QueryKey, TData, TError>;
599
+ };
600
+ type ListDuplicateQueryResult = NonNullable<Awaited<ReturnType<typeof listDuplicate>>>;
601
+ type ListDuplicateQueryError = unknown;
602
+ declare function useListDuplicate<TData = Awaited<ReturnType<typeof listDuplicate>>, TError = unknown>(options: {
603
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, Awaited<ReturnType<typeof listDuplicate>>>, 'initialData'>;
604
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
605
+ queryKey: DataTag<QueryKey, TData, TError>;
606
+ };
607
+ declare function useListDuplicate<TData = Awaited<ReturnType<typeof listDuplicate>>, TError = unknown>(options?: {
608
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, Awaited<ReturnType<typeof listDuplicate>>>, 'initialData'>;
609
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
610
+ queryKey: DataTag<QueryKey, TData, TError>;
611
+ };
612
+ declare function useListDuplicate<TData = Awaited<ReturnType<typeof listDuplicate>>, TError = unknown>(options?: {
613
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDuplicate>>, TError, TData>>;
614
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
615
+ queryKey: DataTag<QueryKey, TData, TError>;
616
+ };
617
+ /**
618
+ * @summary Merge Contacts
619
+ */
620
+ declare const mergeContact: (mergeContactBody: MergeContactBody, signal?: AbortSignal) => Promise<ContactResponse>;
621
+ declare const getMergeContactMutationOptions: <TError = unknown, TContext = unknown>(options?: {
622
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof mergeContact>>, TError, {
623
+ data: MergeContactBody;
624
+ }, TContext>;
625
+ }) => UseMutationOptions<Awaited<ReturnType<typeof mergeContact>>, TError, {
626
+ data: MergeContactBody;
627
+ }, TContext>;
628
+ type MergeContactMutationResult = NonNullable<Awaited<ReturnType<typeof mergeContact>>>;
629
+ type MergeContactMutationBody = MergeContactBody;
630
+ type MergeContactMutationError = unknown;
631
+ /**
632
+ * @summary Merge Contacts
633
+ */
634
+ declare const useMergeContact: <TError = unknown, TContext = unknown>(options?: {
635
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof mergeContact>>, TError, {
636
+ data: MergeContactBody;
637
+ }, TContext>;
638
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof mergeContact>>, TError, {
639
+ data: MergeContactBody;
640
+ }, TContext>;
641
+ /**
642
+ * @summary Import contact from vcard
643
+ */
644
+ declare const importFromVcard: (importFromVcardBody: ImportFromVcardBody, signal?: AbortSignal) => Promise<ImportFromVcard200>;
645
+ declare const getImportFromVcardMutationOptions: <TError = unknown, TContext = unknown>(options?: {
646
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importFromVcard>>, TError, {
647
+ data: ImportFromVcardBody;
648
+ }, TContext>;
649
+ }) => UseMutationOptions<Awaited<ReturnType<typeof importFromVcard>>, TError, {
650
+ data: ImportFromVcardBody;
651
+ }, TContext>;
652
+ type ImportFromVcardMutationResult = NonNullable<Awaited<ReturnType<typeof importFromVcard>>>;
653
+ type ImportFromVcardMutationBody = ImportFromVcardBody;
654
+ type ImportFromVcardMutationError = unknown;
655
+ /**
656
+ * @summary Import contact from vcard
657
+ */
658
+ declare const useImportFromVcard: <TError = unknown, TContext = unknown>(options?: {
659
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importFromVcard>>, TError, {
660
+ data: ImportFromVcardBody;
661
+ }, TContext>;
662
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof importFromVcard>>, TError, {
663
+ data: ImportFromVcardBody;
664
+ }, TContext>;
665
+ /**
666
+ * @summary Import contacts from csv
667
+ */
668
+ declare const importFromCsv: (importFromCsvBody: ImportFromCsvBody, signal?: AbortSignal) => Promise<ImportFromCsv200>;
669
+ declare const getImportFromCsvMutationOptions: <TError = unknown, TContext = unknown>(options?: {
670
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importFromCsv>>, TError, {
671
+ data: ImportFromCsvBody;
672
+ }, TContext>;
673
+ }) => UseMutationOptions<Awaited<ReturnType<typeof importFromCsv>>, TError, {
674
+ data: ImportFromCsvBody;
675
+ }, TContext>;
676
+ type ImportFromCsvMutationResult = NonNullable<Awaited<ReturnType<typeof importFromCsv>>>;
677
+ type ImportFromCsvMutationBody = ImportFromCsvBody;
678
+ type ImportFromCsvMutationError = unknown;
679
+ /**
680
+ * @summary Import contacts from csv
681
+ */
682
+ declare const useImportFromCsv: <TError = unknown, TContext = unknown>(options?: {
683
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importFromCsv>>, TError, {
684
+ data: ImportFromCsvBody;
685
+ }, TContext>;
686
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof importFromCsv>>, TError, {
687
+ data: ImportFromCsvBody;
688
+ }, TContext>;
689
+ /**
690
+ * @summary Export to vcard
691
+ */
692
+ declare const exportToVcard: (signal?: AbortSignal) => Promise<ExportToVcard200>;
693
+ declare const getExportToVcardQueryKey: () => readonly ["/contacts/export/vcard"];
694
+ declare const getExportToVcardQueryOptions: <TData = Awaited<ReturnType<typeof exportToVcard>>, TError = unknown>(options?: {
695
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, TData>>;
696
+ }) => UseQueryOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, TData> & {
697
+ queryKey: DataTag<QueryKey, TData, TError>;
698
+ };
699
+ type ExportToVcardQueryResult = NonNullable<Awaited<ReturnType<typeof exportToVcard>>>;
700
+ type ExportToVcardQueryError = unknown;
701
+ declare function useExportToVcard<TData = Awaited<ReturnType<typeof exportToVcard>>, TError = unknown>(options: {
702
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, Awaited<ReturnType<typeof exportToVcard>>>, 'initialData'>;
703
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
704
+ queryKey: DataTag<QueryKey, TData, TError>;
705
+ };
706
+ declare function useExportToVcard<TData = Awaited<ReturnType<typeof exportToVcard>>, TError = unknown>(options?: {
707
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, Awaited<ReturnType<typeof exportToVcard>>>, 'initialData'>;
708
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
709
+ queryKey: DataTag<QueryKey, TData, TError>;
710
+ };
711
+ declare function useExportToVcard<TData = Awaited<ReturnType<typeof exportToVcard>>, TError = unknown>(options?: {
712
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToVcard>>, TError, TData>>;
713
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
714
+ queryKey: DataTag<QueryKey, TData, TError>;
715
+ };
716
+ /**
717
+ * @summary Export to csv
718
+ */
719
+ declare const exportToCsv: (signal?: AbortSignal) => Promise<ExportToCsv200>;
720
+ declare const getExportToCsvQueryKey: () => readonly ["/contacts/export/csv"];
721
+ declare const getExportToCsvQueryOptions: <TData = Awaited<ReturnType<typeof exportToCsv>>, TError = unknown>(options?: {
722
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, TData>>;
723
+ }) => UseQueryOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, TData> & {
724
+ queryKey: DataTag<QueryKey, TData, TError>;
725
+ };
726
+ type ExportToCsvQueryResult = NonNullable<Awaited<ReturnType<typeof exportToCsv>>>;
727
+ type ExportToCsvQueryError = unknown;
728
+ declare function useExportToCsv<TData = Awaited<ReturnType<typeof exportToCsv>>, TError = unknown>(options: {
729
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, Awaited<ReturnType<typeof exportToCsv>>>, 'initialData'>;
730
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
731
+ queryKey: DataTag<QueryKey, TData, TError>;
732
+ };
733
+ declare function useExportToCsv<TData = Awaited<ReturnType<typeof exportToCsv>>, TError = unknown>(options?: {
734
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, Awaited<ReturnType<typeof exportToCsv>>>, 'initialData'>;
735
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
736
+ queryKey: DataTag<QueryKey, TData, TError>;
737
+ };
738
+ declare function useExportToCsv<TData = Awaited<ReturnType<typeof exportToCsv>>, TError = unknown>(options?: {
739
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof exportToCsv>>, TError, TData>>;
740
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
741
+ queryKey: DataTag<QueryKey, TData, TError>;
742
+ };
743
+ /**
744
+ * @summary Toggle favorite
745
+ */
746
+ declare const toggleFavorite: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
747
+ declare const getToggleFavoriteMutationOptions: <TError = unknown, TContext = unknown>(options?: {
748
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleFavorite>>, TError, {
749
+ id: string;
750
+ }, TContext>;
751
+ }) => UseMutationOptions<Awaited<ReturnType<typeof toggleFavorite>>, TError, {
752
+ id: string;
753
+ }, TContext>;
754
+ type ToggleFavoriteMutationResult = NonNullable<Awaited<ReturnType<typeof toggleFavorite>>>;
755
+ type ToggleFavoriteMutationError = unknown;
756
+ /**
757
+ * @summary Toggle favorite
758
+ */
759
+ declare const useToggleFavorite: <TError = unknown, TContext = unknown>(options?: {
760
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleFavorite>>, TError, {
761
+ id: string;
762
+ }, TContext>;
763
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof toggleFavorite>>, TError, {
764
+ id: string;
765
+ }, TContext>;
766
+
767
+ /**
768
+ * @summary Create label
769
+ */
770
+ declare const createLabel: (createLabelBody: CreateLabelBody, signal?: AbortSignal) => Promise<LabelResponse>;
771
+ declare const getCreateLabelMutationOptions: <TError = unknown, TContext = unknown>(options?: {
772
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createLabel>>, TError, {
773
+ data: CreateLabelBody;
774
+ }, TContext>;
775
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createLabel>>, TError, {
776
+ data: CreateLabelBody;
777
+ }, TContext>;
778
+ type CreateLabelMutationResult = NonNullable<Awaited<ReturnType<typeof createLabel>>>;
779
+ type CreateLabelMutationBody = CreateLabelBody;
780
+ type CreateLabelMutationError = unknown;
781
+ /**
782
+ * @summary Create label
783
+ */
784
+ declare const useCreateLabel: <TError = unknown, TContext = unknown>(options?: {
785
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createLabel>>, TError, {
786
+ data: CreateLabelBody;
787
+ }, TContext>;
788
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createLabel>>, TError, {
789
+ data: CreateLabelBody;
790
+ }, TContext>;
791
+ /**
792
+ * @summary List Label
793
+ */
794
+ declare const listLabel: (signal?: AbortSignal) => Promise<LabelListResponse>;
795
+ declare const getListLabelQueryKey: () => readonly ["/labels"];
796
+ declare const getListLabelQueryOptions: <TData = Awaited<ReturnType<typeof listLabel>>, TError = unknown>(options?: {
797
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLabel>>, TError, TData>>;
798
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listLabel>>, TError, TData> & {
799
+ queryKey: DataTag<QueryKey, TData, TError>;
800
+ };
801
+ type ListLabelQueryResult = NonNullable<Awaited<ReturnType<typeof listLabel>>>;
802
+ type ListLabelQueryError = unknown;
803
+ declare function useListLabel<TData = Awaited<ReturnType<typeof listLabel>>, TError = unknown>(options: {
804
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLabel>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listLabel>>, TError, Awaited<ReturnType<typeof listLabel>>>, 'initialData'>;
805
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
806
+ queryKey: DataTag<QueryKey, TData, TError>;
807
+ };
808
+ declare function useListLabel<TData = Awaited<ReturnType<typeof listLabel>>, TError = unknown>(options?: {
809
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLabel>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listLabel>>, TError, Awaited<ReturnType<typeof listLabel>>>, 'initialData'>;
810
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
811
+ queryKey: DataTag<QueryKey, TData, TError>;
812
+ };
813
+ declare function useListLabel<TData = Awaited<ReturnType<typeof listLabel>>, TError = unknown>(options?: {
814
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLabel>>, TError, TData>>;
815
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
816
+ queryKey: DataTag<QueryKey, TData, TError>;
817
+ };
818
+ /**
819
+ * @summary Update Label
820
+ */
821
+ declare const updateLabel: (id: string, updateLabelBody: UpdateLabelBody, signal?: AbortSignal) => Promise<LabelResponse>;
822
+ declare const getUpdateLabelMutationOptions: <TError = unknown, TContext = unknown>(options?: {
823
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLabel>>, TError, {
824
+ id: string;
825
+ data: UpdateLabelBody;
826
+ }, TContext>;
827
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateLabel>>, TError, {
828
+ id: string;
829
+ data: UpdateLabelBody;
830
+ }, TContext>;
831
+ type UpdateLabelMutationResult = NonNullable<Awaited<ReturnType<typeof updateLabel>>>;
832
+ type UpdateLabelMutationBody = UpdateLabelBody;
833
+ type UpdateLabelMutationError = unknown;
834
+ /**
835
+ * @summary Update Label
836
+ */
837
+ declare const useUpdateLabel: <TError = unknown, TContext = unknown>(options?: {
838
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLabel>>, TError, {
839
+ id: string;
840
+ data: UpdateLabelBody;
841
+ }, TContext>;
842
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateLabel>>, TError, {
843
+ id: string;
844
+ data: UpdateLabelBody;
845
+ }, TContext>;
846
+ /**
847
+ * @summary Delete Label
848
+ */
849
+ declare const deleteLabel: (id: string, signal?: AbortSignal) => Promise<DeleteLabel200>;
850
+ declare const getDeleteLabelMutationOptions: <TError = unknown, TContext = unknown>(options?: {
851
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteLabel>>, TError, {
852
+ id: string;
853
+ }, TContext>;
854
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteLabel>>, TError, {
855
+ id: string;
856
+ }, TContext>;
857
+ type DeleteLabelMutationResult = NonNullable<Awaited<ReturnType<typeof deleteLabel>>>;
858
+ type DeleteLabelMutationError = unknown;
859
+ /**
860
+ * @summary Delete Label
861
+ */
862
+ declare const useDeleteLabel: <TError = unknown, TContext = unknown>(options?: {
863
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteLabel>>, TError, {
864
+ id: string;
865
+ }, TContext>;
866
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteLabel>>, TError, {
867
+ id: string;
868
+ }, TContext>;
869
+
870
+ /**
871
+ * @summary List leads
872
+ */
873
+ declare const listLeads: (params?: ListLeadsParams, signal?: AbortSignal) => Promise<ApiResponse>;
874
+ declare const getListLeadsQueryKey: (params?: ListLeadsParams) => readonly ["/leads", ...ListLeadsParams[]];
875
+ declare const getListLeadsQueryOptions: <TData = Awaited<ReturnType<typeof listLeads>>, TError = unknown>(params?: ListLeadsParams, options?: {
876
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeads>>, TError, TData>>;
877
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listLeads>>, TError, TData> & {
878
+ queryKey: DataTag<QueryKey, TData, TError>;
879
+ };
880
+ type ListLeadsQueryResult = NonNullable<Awaited<ReturnType<typeof listLeads>>>;
881
+ type ListLeadsQueryError = unknown;
882
+ declare function useListLeads<TData = Awaited<ReturnType<typeof listLeads>>, TError = unknown>(params: undefined | ListLeadsParams, options: {
883
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeads>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listLeads>>, TError, Awaited<ReturnType<typeof listLeads>>>, 'initialData'>;
884
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
885
+ queryKey: DataTag<QueryKey, TData, TError>;
886
+ };
887
+ declare function useListLeads<TData = Awaited<ReturnType<typeof listLeads>>, TError = unknown>(params?: ListLeadsParams, options?: {
888
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeads>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listLeads>>, TError, Awaited<ReturnType<typeof listLeads>>>, 'initialData'>;
889
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
890
+ queryKey: DataTag<QueryKey, TData, TError>;
891
+ };
892
+ declare function useListLeads<TData = Awaited<ReturnType<typeof listLeads>>, TError = unknown>(params?: ListLeadsParams, options?: {
893
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeads>>, TError, TData>>;
894
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
895
+ queryKey: DataTag<QueryKey, TData, TError>;
896
+ };
897
+ /**
898
+ * @summary Import leads CSV
899
+ */
900
+ declare const importLeads: (importLeadsBody: ImportLeadsBody, signal?: AbortSignal) => Promise<ApiResponse>;
901
+ declare const getImportLeadsMutationOptions: <TError = unknown, TContext = unknown>(options?: {
902
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importLeads>>, TError, {
903
+ data: ImportLeadsBody;
904
+ }, TContext>;
905
+ }) => UseMutationOptions<Awaited<ReturnType<typeof importLeads>>, TError, {
906
+ data: ImportLeadsBody;
907
+ }, TContext>;
908
+ type ImportLeadsMutationResult = NonNullable<Awaited<ReturnType<typeof importLeads>>>;
909
+ type ImportLeadsMutationBody = ImportLeadsBody;
910
+ type ImportLeadsMutationError = unknown;
911
+ /**
912
+ * @summary Import leads CSV
913
+ */
914
+ declare const useImportLeads: <TError = unknown, TContext = unknown>(options?: {
915
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof importLeads>>, TError, {
916
+ data: ImportLeadsBody;
917
+ }, TContext>;
918
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof importLeads>>, TError, {
919
+ data: ImportLeadsBody;
920
+ }, TContext>;
921
+ /**
922
+ * @summary Get lead
923
+ */
924
+ declare const getLead: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
925
+ declare const getGetLeadQueryKey: (id: string) => readonly [`/leads/${string}`];
926
+ declare const getGetLeadQueryOptions: <TData = Awaited<ReturnType<typeof getLead>>, TError = unknown>(id: string, options?: {
927
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLead>>, TError, TData>>;
928
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getLead>>, TError, TData> & {
929
+ queryKey: DataTag<QueryKey, TData, TError>;
930
+ };
931
+ type GetLeadQueryResult = NonNullable<Awaited<ReturnType<typeof getLead>>>;
932
+ type GetLeadQueryError = unknown;
933
+ declare function useGetLead<TData = Awaited<ReturnType<typeof getLead>>, TError = unknown>(id: string, options: {
934
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLead>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getLead>>, TError, Awaited<ReturnType<typeof getLead>>>, 'initialData'>;
935
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
936
+ queryKey: DataTag<QueryKey, TData, TError>;
937
+ };
938
+ declare function useGetLead<TData = Awaited<ReturnType<typeof getLead>>, TError = unknown>(id: string, options?: {
939
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLead>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getLead>>, TError, Awaited<ReturnType<typeof getLead>>>, 'initialData'>;
940
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
941
+ queryKey: DataTag<QueryKey, TData, TError>;
942
+ };
943
+ declare function useGetLead<TData = Awaited<ReturnType<typeof getLead>>, TError = unknown>(id: string, options?: {
944
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLead>>, TError, TData>>;
945
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
946
+ queryKey: DataTag<QueryKey, TData, TError>;
947
+ };
948
+ /**
949
+ * @summary Update lead
950
+ */
951
+ declare const updateLead: (id: string, updateLeadBody: UpdateLeadBody, signal?: AbortSignal) => Promise<ApiResponse>;
952
+ declare const getUpdateLeadMutationOptions: <TError = unknown, TContext = unknown>(options?: {
953
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLead>>, TError, {
954
+ id: string;
955
+ data: UpdateLeadBody;
956
+ }, TContext>;
957
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateLead>>, TError, {
958
+ id: string;
959
+ data: UpdateLeadBody;
960
+ }, TContext>;
961
+ type UpdateLeadMutationResult = NonNullable<Awaited<ReturnType<typeof updateLead>>>;
962
+ type UpdateLeadMutationBody = UpdateLeadBody;
963
+ type UpdateLeadMutationError = unknown;
964
+ /**
965
+ * @summary Update lead
966
+ */
967
+ declare const useUpdateLead: <TError = unknown, TContext = unknown>(options?: {
968
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLead>>, TError, {
969
+ id: string;
970
+ data: UpdateLeadBody;
971
+ }, TContext>;
972
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateLead>>, TError, {
973
+ id: string;
974
+ data: UpdateLeadBody;
975
+ }, TContext>;
976
+ /**
977
+ * @summary Lead events
978
+ */
979
+ declare const listLeadEvents: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
980
+ declare const getListLeadEventsQueryKey: (id: string) => readonly [`/leads/${string}/events`];
981
+ declare const getListLeadEventsQueryOptions: <TData = Awaited<ReturnType<typeof listLeadEvents>>, TError = unknown>(id: string, options?: {
982
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, TData>>;
983
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, TData> & {
984
+ queryKey: DataTag<QueryKey, TData, TError>;
985
+ };
986
+ type ListLeadEventsQueryResult = NonNullable<Awaited<ReturnType<typeof listLeadEvents>>>;
987
+ type ListLeadEventsQueryError = unknown;
988
+ declare function useListLeadEvents<TData = Awaited<ReturnType<typeof listLeadEvents>>, TError = unknown>(id: string, options: {
989
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, Awaited<ReturnType<typeof listLeadEvents>>>, 'initialData'>;
990
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
991
+ queryKey: DataTag<QueryKey, TData, TError>;
992
+ };
993
+ declare function useListLeadEvents<TData = Awaited<ReturnType<typeof listLeadEvents>>, TError = unknown>(id: string, options?: {
994
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, Awaited<ReturnType<typeof listLeadEvents>>>, 'initialData'>;
995
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
996
+ queryKey: DataTag<QueryKey, TData, TError>;
997
+ };
998
+ declare function useListLeadEvents<TData = Awaited<ReturnType<typeof listLeadEvents>>, TError = unknown>(id: string, options?: {
999
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadEvents>>, TError, TData>>;
1000
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1001
+ queryKey: DataTag<QueryKey, TData, TError>;
1002
+ };
1003
+
1004
+ /**
1005
+ * @summary List magnets
1006
+ */
1007
+ declare const listLeadMagnets: (signal?: AbortSignal) => Promise<ApiResponse>;
1008
+ declare const getListLeadMagnetsQueryKey: () => readonly ["/lead-magnets"];
1009
+ declare const getListLeadMagnetsQueryOptions: <TData = Awaited<ReturnType<typeof listLeadMagnets>>, TError = unknown>(options?: {
1010
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, TData>>;
1011
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, TData> & {
1012
+ queryKey: DataTag<QueryKey, TData, TError>;
1013
+ };
1014
+ type ListLeadMagnetsQueryResult = NonNullable<Awaited<ReturnType<typeof listLeadMagnets>>>;
1015
+ type ListLeadMagnetsQueryError = unknown;
1016
+ declare function useListLeadMagnets<TData = Awaited<ReturnType<typeof listLeadMagnets>>, TError = unknown>(options: {
1017
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, Awaited<ReturnType<typeof listLeadMagnets>>>, 'initialData'>;
1018
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1019
+ queryKey: DataTag<QueryKey, TData, TError>;
1020
+ };
1021
+ declare function useListLeadMagnets<TData = Awaited<ReturnType<typeof listLeadMagnets>>, TError = unknown>(options?: {
1022
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, Awaited<ReturnType<typeof listLeadMagnets>>>, 'initialData'>;
1023
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1024
+ queryKey: DataTag<QueryKey, TData, TError>;
1025
+ };
1026
+ declare function useListLeadMagnets<TData = Awaited<ReturnType<typeof listLeadMagnets>>, TError = unknown>(options?: {
1027
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listLeadMagnets>>, TError, TData>>;
1028
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1029
+ queryKey: DataTag<QueryKey, TData, TError>;
1030
+ };
1031
+ /**
1032
+ * @summary Create magnet
1033
+ */
1034
+ declare const createLeadMagnet: (createLeadMagnetBody: CreateLeadMagnetBody, signal?: AbortSignal) => Promise<ApiResponse>;
1035
+ declare const getCreateLeadMagnetMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1036
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createLeadMagnet>>, TError, {
1037
+ data: CreateLeadMagnetBody;
1038
+ }, TContext>;
1039
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createLeadMagnet>>, TError, {
1040
+ data: CreateLeadMagnetBody;
1041
+ }, TContext>;
1042
+ type CreateLeadMagnetMutationResult = NonNullable<Awaited<ReturnType<typeof createLeadMagnet>>>;
1043
+ type CreateLeadMagnetMutationBody = CreateLeadMagnetBody;
1044
+ type CreateLeadMagnetMutationError = unknown;
1045
+ /**
1046
+ * @summary Create magnet
1047
+ */
1048
+ declare const useCreateLeadMagnet: <TError = unknown, TContext = unknown>(options?: {
1049
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createLeadMagnet>>, TError, {
1050
+ data: CreateLeadMagnetBody;
1051
+ }, TContext>;
1052
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createLeadMagnet>>, TError, {
1053
+ data: CreateLeadMagnetBody;
1054
+ }, TContext>;
1055
+ /**
1056
+ * @summary Upload magnet file
1057
+ */
1058
+ declare const uploadLeadMagnetFile: (uploadLeadMagnetFileBody: UploadLeadMagnetFileBody, signal?: AbortSignal) => Promise<ApiResponse>;
1059
+ declare const getUploadLeadMagnetFileMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1060
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadLeadMagnetFile>>, TError, {
1061
+ data: UploadLeadMagnetFileBody;
1062
+ }, TContext>;
1063
+ }) => UseMutationOptions<Awaited<ReturnType<typeof uploadLeadMagnetFile>>, TError, {
1064
+ data: UploadLeadMagnetFileBody;
1065
+ }, TContext>;
1066
+ type UploadLeadMagnetFileMutationResult = NonNullable<Awaited<ReturnType<typeof uploadLeadMagnetFile>>>;
1067
+ type UploadLeadMagnetFileMutationBody = UploadLeadMagnetFileBody;
1068
+ type UploadLeadMagnetFileMutationError = unknown;
1069
+ /**
1070
+ * @summary Upload magnet file
1071
+ */
1072
+ declare const useUploadLeadMagnetFile: <TError = unknown, TContext = unknown>(options?: {
1073
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadLeadMagnetFile>>, TError, {
1074
+ data: UploadLeadMagnetFileBody;
1075
+ }, TContext>;
1076
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof uploadLeadMagnetFile>>, TError, {
1077
+ data: UploadLeadMagnetFileBody;
1078
+ }, TContext>;
1079
+ /**
1080
+ * @summary Get magnet
1081
+ */
1082
+ declare const getLeadMagnet: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
1083
+ declare const getGetLeadMagnetQueryKey: (id: string) => readonly [`/lead-magnets/${string}`];
1084
+ declare const getGetLeadMagnetQueryOptions: <TData = Awaited<ReturnType<typeof getLeadMagnet>>, TError = unknown>(id: string, options?: {
1085
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, TData>>;
1086
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, TData> & {
1087
+ queryKey: DataTag<QueryKey, TData, TError>;
1088
+ };
1089
+ type GetLeadMagnetQueryResult = NonNullable<Awaited<ReturnType<typeof getLeadMagnet>>>;
1090
+ type GetLeadMagnetQueryError = unknown;
1091
+ declare function useGetLeadMagnet<TData = Awaited<ReturnType<typeof getLeadMagnet>>, TError = unknown>(id: string, options: {
1092
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, Awaited<ReturnType<typeof getLeadMagnet>>>, 'initialData'>;
1093
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1094
+ queryKey: DataTag<QueryKey, TData, TError>;
1095
+ };
1096
+ declare function useGetLeadMagnet<TData = Awaited<ReturnType<typeof getLeadMagnet>>, TError = unknown>(id: string, options?: {
1097
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, Awaited<ReturnType<typeof getLeadMagnet>>>, 'initialData'>;
1098
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1099
+ queryKey: DataTag<QueryKey, TData, TError>;
1100
+ };
1101
+ declare function useGetLeadMagnet<TData = Awaited<ReturnType<typeof getLeadMagnet>>, TError = unknown>(id: string, options?: {
1102
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getLeadMagnet>>, TError, TData>>;
1103
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1104
+ queryKey: DataTag<QueryKey, TData, TError>;
1105
+ };
1106
+ /**
1107
+ * @summary Update magnet
1108
+ */
1109
+ declare const updateLeadMagnet: (id: string, updateLeadMagnetBody: UpdateLeadMagnetBody, signal?: AbortSignal) => Promise<ApiResponse>;
1110
+ declare const getUpdateLeadMagnetMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1111
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLeadMagnet>>, TError, {
1112
+ id: string;
1113
+ data: UpdateLeadMagnetBody;
1114
+ }, TContext>;
1115
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateLeadMagnet>>, TError, {
1116
+ id: string;
1117
+ data: UpdateLeadMagnetBody;
1118
+ }, TContext>;
1119
+ type UpdateLeadMagnetMutationResult = NonNullable<Awaited<ReturnType<typeof updateLeadMagnet>>>;
1120
+ type UpdateLeadMagnetMutationBody = UpdateLeadMagnetBody;
1121
+ type UpdateLeadMagnetMutationError = unknown;
1122
+ /**
1123
+ * @summary Update magnet
1124
+ */
1125
+ declare const useUpdateLeadMagnet: <TError = unknown, TContext = unknown>(options?: {
1126
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateLeadMagnet>>, TError, {
1127
+ id: string;
1128
+ data: UpdateLeadMagnetBody;
1129
+ }, TContext>;
1130
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateLeadMagnet>>, TError, {
1131
+ id: string;
1132
+ data: UpdateLeadMagnetBody;
1133
+ }, TContext>;
1134
+ /**
1135
+ * @summary Delete magnet
1136
+ */
1137
+ declare const deleteLeadMagnet: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
1138
+ declare const getDeleteLeadMagnetMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1139
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteLeadMagnet>>, TError, {
1140
+ id: string;
1141
+ }, TContext>;
1142
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteLeadMagnet>>, TError, {
1143
+ id: string;
1144
+ }, TContext>;
1145
+ type DeleteLeadMagnetMutationResult = NonNullable<Awaited<ReturnType<typeof deleteLeadMagnet>>>;
1146
+ type DeleteLeadMagnetMutationError = unknown;
1147
+ /**
1148
+ * @summary Delete magnet
1149
+ */
1150
+ declare const useDeleteLeadMagnet: <TError = unknown, TContext = unknown>(options?: {
1151
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteLeadMagnet>>, TError, {
1152
+ id: string;
1153
+ }, TContext>;
1154
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteLeadMagnet>>, TError, {
1155
+ id: string;
1156
+ }, TContext>;
1157
+
1158
+ /**
1159
+ * @summary List suppressions
1160
+ */
1161
+ declare const listSuppressions: (signal?: AbortSignal) => Promise<ApiResponse>;
1162
+ declare const getListSuppressionsQueryKey: () => readonly ["/suppressions"];
1163
+ declare const getListSuppressionsQueryOptions: <TData = Awaited<ReturnType<typeof listSuppressions>>, TError = unknown>(options?: {
1164
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, TData>>;
1165
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, TData> & {
1166
+ queryKey: DataTag<QueryKey, TData, TError>;
1167
+ };
1168
+ type ListSuppressionsQueryResult = NonNullable<Awaited<ReturnType<typeof listSuppressions>>>;
1169
+ type ListSuppressionsQueryError = unknown;
1170
+ declare function useListSuppressions<TData = Awaited<ReturnType<typeof listSuppressions>>, TError = unknown>(options: {
1171
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, Awaited<ReturnType<typeof listSuppressions>>>, 'initialData'>;
1172
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1173
+ queryKey: DataTag<QueryKey, TData, TError>;
1174
+ };
1175
+ declare function useListSuppressions<TData = Awaited<ReturnType<typeof listSuppressions>>, TError = unknown>(options?: {
1176
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, Awaited<ReturnType<typeof listSuppressions>>>, 'initialData'>;
1177
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1178
+ queryKey: DataTag<QueryKey, TData, TError>;
1179
+ };
1180
+ declare function useListSuppressions<TData = Awaited<ReturnType<typeof listSuppressions>>, TError = unknown>(options?: {
1181
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSuppressions>>, TError, TData>>;
1182
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1183
+ queryKey: DataTag<QueryKey, TData, TError>;
1184
+ };
1185
+ /**
1186
+ * @summary Create suppression
1187
+ */
1188
+ declare const createSuppression: (createSuppressionBody: CreateSuppressionBody, signal?: AbortSignal) => Promise<ApiResponse>;
1189
+ declare const getCreateSuppressionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1190
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createSuppression>>, TError, {
1191
+ data: CreateSuppressionBody;
1192
+ }, TContext>;
1193
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createSuppression>>, TError, {
1194
+ data: CreateSuppressionBody;
1195
+ }, TContext>;
1196
+ type CreateSuppressionMutationResult = NonNullable<Awaited<ReturnType<typeof createSuppression>>>;
1197
+ type CreateSuppressionMutationBody = CreateSuppressionBody;
1198
+ type CreateSuppressionMutationError = unknown;
1199
+ /**
1200
+ * @summary Create suppression
1201
+ */
1202
+ declare const useCreateSuppression: <TError = unknown, TContext = unknown>(options?: {
1203
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createSuppression>>, TError, {
1204
+ data: CreateSuppressionBody;
1205
+ }, TContext>;
1206
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createSuppression>>, TError, {
1207
+ data: CreateSuppressionBody;
1208
+ }, TContext>;
1209
+ /**
1210
+ * @summary Delete suppression
1211
+ */
1212
+ declare const deleteSuppression: (id: string, signal?: AbortSignal) => Promise<ApiResponse>;
1213
+ declare const getDeleteSuppressionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
1214
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteSuppression>>, TError, {
1215
+ id: string;
1216
+ }, TContext>;
1217
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteSuppression>>, TError, {
1218
+ id: string;
1219
+ }, TContext>;
1220
+ type DeleteSuppressionMutationResult = NonNullable<Awaited<ReturnType<typeof deleteSuppression>>>;
1221
+ type DeleteSuppressionMutationError = unknown;
1222
+ /**
1223
+ * @summary Delete suppression
1224
+ */
1225
+ declare const useDeleteSuppression: <TError = unknown, TContext = unknown>(options?: {
1226
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteSuppression>>, TError, {
1227
+ id: string;
1228
+ }, TContext>;
1229
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteSuppression>>, TError, {
1230
+ id: string;
1231
+ }, TContext>;
1232
+
1233
+ export { type AddAudienceContactMutationBody, type AddAudienceContactMutationError, type AddAudienceContactMutationResult, type AssignLabelMutationBody, type AssignLabelMutationError, type AssignLabelMutationResult, ContactProvider, type CreateApiKeyMutationBody, type CreateApiKeyMutationError, type CreateApiKeyMutationResult, type CreateAudienceMutationBody, type CreateAudienceMutationError, type CreateAudienceMutationResult, type CreateContactMutationBody, type CreateContactMutationError, type CreateContactMutationResult, type CreateLabelMutationBody, type CreateLabelMutationError, type CreateLabelMutationResult, type CreateLeadMagnetMutationBody, type CreateLeadMagnetMutationError, type CreateLeadMagnetMutationResult, type CreateSuppressionMutationBody, type CreateSuppressionMutationError, type CreateSuppressionMutationResult, type DeleteAudienceMutationError, type DeleteAudienceMutationResult, type DeleteLabelMutationError, type DeleteLabelMutationResult, type DeleteLeadMagnetMutationError, type DeleteLeadMagnetMutationResult, type DeleteSuppressionMutationError, type DeleteSuppressionMutationResult, type DeletedContactMutationError, type DeletedContactMutationResult, type ExportToCsvQueryError, type ExportToCsvQueryResult, type ExportToVcardQueryError, type ExportToVcardQueryResult, type GetAccountQueryError, type GetAccountQueryResult, type GetApiKeyUsageQueryError, type GetApiKeyUsageQueryResult, type GetAudienceQueryError, type GetAudienceQueryResult, type GetAudienceRecipientsQueryError, type GetAudienceRecipientsQueryResult, type GetContactQueryError, type GetContactQueryResult, type GetLeadMagnetQueryError, type GetLeadMagnetQueryResult, type GetLeadQueryError, type GetLeadQueryResult, type ImportFromCsvMutationBody, type ImportFromCsvMutationError, type ImportFromCsvMutationResult, type ImportFromVcardMutationBody, type ImportFromVcardMutationError, type ImportFromVcardMutationResult, type ImportLeadsMutationBody, type ImportLeadsMutationError, type ImportLeadsMutationResult, type ListApiKeyScopesQueryError, type ListApiKeyScopesQueryResult, type ListApiKeysQueryError, type ListApiKeysQueryResult, type ListAudiencesQueryError, type ListAudiencesQueryResult, type ListContactQueryError, type ListContactQueryResult, type ListDuplicateQueryError, type ListDuplicateQueryResult, type ListLabelQueryError, type ListLabelQueryResult, type ListLeadEventsQueryError, type ListLeadEventsQueryResult, type ListLeadMagnetsQueryError, type ListLeadMagnetsQueryResult, type ListLeadsQueryError, type ListLeadsQueryResult, type ListSuppressionsQueryError, type ListSuppressionsQueryResult, type MergeContactMutationBody, type MergeContactMutationError, type MergeContactMutationResult, type RemoveAudienceContactMutationError, type RemoveAudienceContactMutationResult, type RemoveLabelMutationError, type RemoveLabelMutationResult, type RevokeApiKeyMutationError, type RevokeApiKeyMutationResult, type RotateApiKeyMutationError, type RotateApiKeyMutationResult, type ToggleFavoriteMutationError, type ToggleFavoriteMutationResult, type UpdateAudienceMutationBody, type UpdateAudienceMutationError, type UpdateAudienceMutationResult, type UpdateContactMutationBody, type UpdateContactMutationError, type UpdateContactMutationResult, type UpdateLabelMutationBody, type UpdateLabelMutationError, type UpdateLabelMutationResult, type UpdateLeadMagnetMutationBody, type UpdateLeadMagnetMutationError, type UpdateLeadMagnetMutationResult, type UpdateLeadMutationBody, type UpdateLeadMutationError, type UpdateLeadMutationResult, type UploadLeadMagnetFileMutationBody, type UploadLeadMagnetFileMutationError, type UploadLeadMagnetFileMutationResult, addAudienceContact, assignLabel, createApiKey, createAudience, createContact, createLabel, createLeadMagnet, createSuppression, deleteAudience, deleteLabel, deleteLeadMagnet, deleteSuppression, deletedContact, exportToCsv, exportToVcard, getAccount, getAddAudienceContactMutationOptions, getApiKeyUsage, getAssignLabelMutationOptions, getAudience, getAudienceRecipients, getContact, getCreateApiKeyMutationOptions, getCreateAudienceMutationOptions, getCreateContactMutationOptions, getCreateLabelMutationOptions, getCreateLeadMagnetMutationOptions, getCreateSuppressionMutationOptions, getDeleteAudienceMutationOptions, getDeleteLabelMutationOptions, getDeleteLeadMagnetMutationOptions, getDeleteSuppressionMutationOptions, getDeletedContactMutationOptions, getExportToCsvQueryKey, getExportToCsvQueryOptions, getExportToVcardQueryKey, getExportToVcardQueryOptions, getGetAccountQueryKey, getGetAccountQueryOptions, getGetApiKeyUsageQueryKey, getGetApiKeyUsageQueryOptions, getGetAudienceQueryKey, getGetAudienceQueryOptions, getGetAudienceRecipientsQueryKey, getGetAudienceRecipientsQueryOptions, getGetContactQueryKey, getGetContactQueryOptions, getGetLeadMagnetQueryKey, getGetLeadMagnetQueryOptions, getGetLeadQueryKey, getGetLeadQueryOptions, getImportFromCsvMutationOptions, getImportFromVcardMutationOptions, getImportLeadsMutationOptions, getLead, getLeadMagnet, getListApiKeyScopesQueryKey, getListApiKeyScopesQueryOptions, getListApiKeysQueryKey, getListApiKeysQueryOptions, getListAudiencesQueryKey, getListAudiencesQueryOptions, getListContactQueryKey, getListContactQueryOptions, getListDuplicateQueryKey, getListDuplicateQueryOptions, getListLabelQueryKey, getListLabelQueryOptions, getListLeadEventsQueryKey, getListLeadEventsQueryOptions, getListLeadMagnetsQueryKey, getListLeadMagnetsQueryOptions, getListLeadsQueryKey, getListLeadsQueryOptions, getListSuppressionsQueryKey, getListSuppressionsQueryOptions, getMergeContactMutationOptions, getRemoveAudienceContactMutationOptions, getRemoveLabelMutationOptions, getRevokeApiKeyMutationOptions, getRotateApiKeyMutationOptions, getToggleFavoriteMutationOptions, getUpdateAudienceMutationOptions, getUpdateContactMutationOptions, getUpdateLabelMutationOptions, getUpdateLeadMagnetMutationOptions, getUpdateLeadMutationOptions, getUploadLeadMagnetFileMutationOptions, importFromCsv, importFromVcard, importLeads, listApiKeyScopes, listApiKeys, listAudiences, listContact, listDuplicate, listLabel, listLeadEvents, listLeadMagnets, listLeads, listSuppressions, mergeContact, removeAudienceContact, removeLabel, revokeApiKey, rotateApiKey, toggleFavorite, updateAudience, updateContact, updateLabel, updateLead, updateLeadMagnet, uploadLeadMagnetFile, useAddAudienceContact, useAssignLabel, useContactClient, useCreateApiKey, useCreateAudience, useCreateContact, useCreateLabel, useCreateLeadMagnet, useCreateSuppression, useDeleteAudience, useDeleteLabel, useDeleteLeadMagnet, useDeleteSuppression, useDeletedContact, useExportToCsv, useExportToVcard, useGetAccount, useGetApiKeyUsage, useGetAudience, useGetAudienceRecipients, useGetContact, useGetLead, useGetLeadMagnet, useImportFromCsv, useImportFromVcard, useImportLeads, useListApiKeyScopes, useListApiKeys, useListAudiences, useListContact, useListDuplicate, useListLabel, useListLeadEvents, useListLeadMagnets, useListLeads, useListSuppressions, useMergeContact, useRemoveAudienceContact, useRemoveLabel, useRevokeApiKey, useRotateApiKey, useToggleFavorite, useUpdateAudience, useUpdateContact, useUpdateLabel, useUpdateLead, useUpdateLeadMagnet, useUploadLeadMagnetFile };