@customafk/lunas-api-sdk 0.0.75 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -144,8 +144,102 @@ type TResponse<T> = T extends string ? {
144
144
  meta: TResponseMeta;
145
145
  };
146
146
  //#endregion
147
+ //#region ../app/src/modules/admin/email/email.types.d.ts
148
+ // App-local response types mirroring the Resend SDK shapes. The email module
149
+ // proxies Resend, but its route responses must NOT reference Resend's vendor
150
+ // types directly — those types live under `app/node_modules/resend` and cannot
151
+ // be named portably when the SDK package generates its declaration files.
152
+ // Returning these local types keeps `AppType` (and the generated SDK) portable.
153
+
154
+ type TEmailTag = {
155
+ name: string;
156
+ value: string;
157
+ };
158
+ type TEmailObject = {
159
+ id: string;
160
+ object: 'email';
161
+ from: string;
162
+ to: string[];
163
+ subject: string;
164
+ html: string | null;
165
+ text: string | null;
166
+ bcc: string[] | null;
167
+ cc: string[] | null;
168
+ reply_to: string[] | null;
169
+ tags?: TEmailTag[];
170
+ topic_id?: string | null;
171
+ last_event: string;
172
+ scheduled_at: string | null;
173
+ created_at: string;
174
+ };
175
+ type TEmailListItem = Omit<TEmailObject, 'html' | 'text' | 'tags' | 'object'>;
176
+ type TEmailListResult = {
177
+ data: TEmailListItem[];
178
+ hasMore: boolean;
179
+ };
180
+ type TEmailIdResult = {
181
+ id: string;
182
+ };
183
+ type TEmailMutationResult = {
184
+ id: string;
185
+ object: 'email';
186
+ };
187
+ type TEmailBatchResult = {
188
+ data: TEmailIdResult[];
189
+ };
190
+ type TAttachmentData = {
191
+ id: string;
192
+ filename?: string;
193
+ size: number;
194
+ content_type: string;
195
+ content_disposition: 'inline' | 'attachment';
196
+ content_id?: string;
197
+ download_url: string;
198
+ expires_at: string;
199
+ };
200
+ type TAttachmentObject = TAttachmentData & {
201
+ object: 'attachment';
202
+ };
203
+ type TAttachmentListResult = {
204
+ data: TAttachmentData[];
205
+ hasMore: boolean;
206
+ };
207
+ type TInboundAttachment = {
208
+ id: string;
209
+ filename: string | null;
210
+ size: number;
211
+ content_type: string;
212
+ content_id: string | null;
213
+ content_disposition: string | null;
214
+ };
215
+ type TReceivedEmailObject = {
216
+ id: string;
217
+ object: 'email';
218
+ from: string;
219
+ to: string[];
220
+ subject: string;
221
+ html: string | null;
222
+ text: string | null;
223
+ bcc: string[] | null;
224
+ cc: string[] | null;
225
+ reply_to: string[] | null;
226
+ headers: Record<string, string> | null;
227
+ message_id: string;
228
+ raw?: {
229
+ download_url: string;
230
+ expires_at: string;
231
+ } | null;
232
+ attachments: TInboundAttachment[];
233
+ created_at: string;
234
+ };
235
+ type TReceivedEmailListItem = Omit<TReceivedEmailObject, 'html' | 'text' | 'headers' | 'raw' | 'object'>;
236
+ type TReceivedEmailListResult = {
237
+ data: TReceivedEmailListItem[];
238
+ hasMore: boolean;
239
+ };
240
+ //#endregion
147
241
  //#region src/utils.d.ts
148
- declare const _func: () => {
242
+ declare const _createClient: () => {
149
243
  admin: {
150
244
  v1: {
151
245
  auth: {
@@ -2100,29 +2194,97 @@ declare const _func: () => {
2100
2194
  } & {
2101
2195
  '~path': string;
2102
2196
  };
2103
- facebook: {
2104
- pages: ((params: {
2105
- uuid: string | number;
2106
- }) => {
2107
- delete: ((body?: {} | undefined, options?: {
2197
+ emails: ((params: {
2198
+ emailId: string | number;
2199
+ }) => {
2200
+ get: ((options?: {
2201
+ fetch?: RequestInit | undefined;
2202
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2203
+ headers?: {} | undefined;
2204
+ query?: {} | undefined;
2205
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2206
+ 200: {
2207
+ success: false;
2208
+ statusCode: number;
2209
+ data: null;
2210
+ message: string;
2211
+ error: TResponseError;
2212
+ meta: TResponseMeta;
2213
+ } | {
2214
+ success: true;
2215
+ statusCode: number;
2216
+ data: TEmailObject;
2217
+ message: null;
2218
+ error: null;
2219
+ meta: TResponseMeta;
2220
+ };
2221
+ 422: {
2222
+ type: "validation";
2223
+ on: string;
2224
+ summary?: string;
2225
+ message?: string;
2226
+ found?: unknown;
2227
+ property?: string;
2228
+ expected?: string;
2229
+ };
2230
+ }>>) & {
2231
+ '~path': string;
2232
+ };
2233
+ patch: ((body: {
2234
+ scheduledAt: string;
2235
+ }, options?: {
2236
+ fetch?: RequestInit | undefined;
2237
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2238
+ headers?: {} | undefined;
2239
+ query?: {} | undefined;
2240
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2241
+ 200: {
2242
+ success: false;
2243
+ statusCode: number;
2244
+ data: null;
2245
+ message: string;
2246
+ error: TResponseError;
2247
+ meta: TResponseMeta;
2248
+ } | {
2249
+ success: true;
2250
+ statusCode: number;
2251
+ data: TEmailMutationResult;
2252
+ message: null;
2253
+ error: null;
2254
+ meta: TResponseMeta;
2255
+ };
2256
+ 422: {
2257
+ type: "validation";
2258
+ on: string;
2259
+ summary?: string;
2260
+ message?: string;
2261
+ found?: unknown;
2262
+ property?: string;
2263
+ expected?: string;
2264
+ };
2265
+ }>>) & {
2266
+ '~path': string;
2267
+ };
2268
+ cancel: {
2269
+ post: ((body?: {} | undefined, options?: {
2108
2270
  fetch?: RequestInit | undefined;
2109
2271
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2110
2272
  headers?: {} | undefined;
2111
2273
  query?: {} | undefined;
2112
2274
  } | undefined) => Promise<Treaty.TreatyResponse<{
2113
2275
  200: {
2114
- success: true;
2276
+ success: false;
2115
2277
  statusCode: number;
2116
2278
  data: null;
2117
2279
  message: string;
2118
- error: null;
2280
+ error: TResponseError;
2119
2281
  meta: TResponseMeta;
2120
2282
  } | {
2121
- success: false;
2283
+ success: true;
2122
2284
  statusCode: number;
2123
- data: null;
2124
- message: string;
2125
- error: TResponseError;
2285
+ data: TEmailMutationResult;
2286
+ message: null;
2287
+ error: null;
2126
2288
  meta: TResponseMeta;
2127
2289
  };
2128
2290
  422: {
@@ -2137,84 +2299,31 @@ declare const _func: () => {
2137
2299
  }>>) & {
2138
2300
  '~path': string;
2139
2301
  };
2140
- feed: {
2141
- get: ((options?: {
2142
- fetch?: RequestInit | undefined;
2143
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2144
- headers?: {} | undefined;
2145
- query?: {
2146
- after?: string | undefined;
2147
- before?: string | undefined;
2148
- limit?: number | undefined;
2149
- } | undefined;
2150
- } | undefined) => Promise<Treaty.TreatyResponse<{
2151
- 200: {
2152
- success: false;
2153
- statusCode: number;
2154
- data: null;
2155
- message: string;
2156
- error: TResponseError;
2157
- meta: TResponseMeta;
2158
- } | {
2159
- success: true;
2160
- statusCode: number;
2161
- data: {
2162
- posts: {
2163
- id: string;
2164
- message: string;
2165
- created_time: string;
2166
- permalink_url: string;
2167
- full_picture: string;
2168
- }[];
2169
- paging: {
2170
- cursors: {
2171
- before: string;
2172
- after: string;
2173
- } | null;
2174
- hasNext: boolean;
2175
- hasPrevious: boolean;
2176
- };
2177
- };
2178
- message: null;
2179
- error: null;
2180
- meta: TResponseMeta;
2181
- };
2182
- 422: {
2183
- type: "validation";
2184
- on: string;
2185
- summary?: string;
2186
- message?: string;
2187
- found?: unknown;
2188
- property?: string;
2189
- expected?: string;
2190
- };
2191
- }>>) & {
2192
- '~path': string;
2193
- };
2194
- } & {
2195
- '~path': string;
2196
- };
2197
- '~path': string;
2198
2302
  } & {
2199
- delete: ((body?: {} | undefined, options?: {
2303
+ '~path': string;
2304
+ };
2305
+ attachments: ((params: {
2306
+ attachmentId: string | number;
2307
+ }) => {
2308
+ get: ((options?: {
2200
2309
  fetch?: RequestInit | undefined;
2201
2310
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2202
2311
  headers?: {} | undefined;
2203
2312
  query?: {} | undefined;
2204
2313
  } | undefined) => Promise<Treaty.TreatyResponse<{
2205
2314
  200: {
2206
- success: true;
2315
+ success: false;
2207
2316
  statusCode: number;
2208
2317
  data: null;
2209
2318
  message: string;
2210
- error: null;
2319
+ error: TResponseError;
2211
2320
  meta: TResponseMeta;
2212
2321
  } | {
2213
- success: false;
2322
+ success: true;
2214
2323
  statusCode: number;
2215
- data: null;
2216
- message: string;
2217
- error: TResponseError;
2324
+ data: TAttachmentObject;
2325
+ message: null;
2326
+ error: null;
2218
2327
  meta: TResponseMeta;
2219
2328
  };
2220
2329
  422: {
@@ -2229,64 +2338,8 @@ declare const _func: () => {
2229
2338
  }>>) & {
2230
2339
  '~path': string;
2231
2340
  };
2232
- feed: {
2233
- get: ((options?: {
2234
- fetch?: RequestInit | undefined;
2235
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2236
- headers?: {} | undefined;
2237
- query?: {
2238
- after?: string | undefined;
2239
- before?: string | undefined;
2240
- limit?: number | undefined;
2241
- } | undefined;
2242
- } | undefined) => Promise<Treaty.TreatyResponse<{
2243
- 200: {
2244
- success: false;
2245
- statusCode: number;
2246
- data: null;
2247
- message: string;
2248
- error: TResponseError;
2249
- meta: TResponseMeta;
2250
- } | {
2251
- success: true;
2252
- statusCode: number;
2253
- data: {
2254
- posts: {
2255
- id: string;
2256
- message: string;
2257
- created_time: string;
2258
- permalink_url: string;
2259
- full_picture: string;
2260
- }[];
2261
- paging: {
2262
- cursors: {
2263
- before: string;
2264
- after: string;
2265
- } | null;
2266
- hasNext: boolean;
2267
- hasPrevious: boolean;
2268
- };
2269
- };
2270
- message: null;
2271
- error: null;
2272
- meta: TResponseMeta;
2273
- };
2274
- 422: {
2275
- type: "validation";
2276
- on: string;
2277
- summary?: string;
2278
- message?: string;
2279
- found?: unknown;
2280
- property?: string;
2281
- expected?: string;
2282
- };
2283
- }>>) & {
2284
- '~path': string;
2285
- };
2286
- } & {
2287
- '~path': string;
2288
- };
2289
- }) & {
2341
+ '~path': string;
2342
+ } & {
2290
2343
  get: ((options?: {
2291
2344
  fetch?: RequestInit | undefined;
2292
2345
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -2303,32 +2356,35 @@ declare const _func: () => {
2303
2356
  } | {
2304
2357
  success: true;
2305
2358
  statusCode: number;
2306
- data: {
2307
- uuid: string;
2308
- createdAt: Date;
2309
- updatedAt: Date;
2310
- pageId: string;
2311
- pageName: string;
2312
- isActive: boolean;
2313
- }[];
2359
+ data: TAttachmentObject;
2314
2360
  message: null;
2315
2361
  error: null;
2316
2362
  meta: TResponseMeta;
2317
2363
  };
2364
+ 422: {
2365
+ type: "validation";
2366
+ on: string;
2367
+ summary?: string;
2368
+ message?: string;
2369
+ found?: unknown;
2370
+ property?: string;
2371
+ expected?: string;
2372
+ };
2318
2373
  }>>) & {
2319
2374
  '~path': string;
2320
2375
  };
2321
- post: ((body: {
2322
- pageId: string;
2323
- pageName: string;
2324
- pageAccessToken: string;
2325
- }, options?: {
2376
+ }) & {
2377
+ get: ((options?: {
2326
2378
  fetch?: RequestInit | undefined;
2327
2379
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2328
2380
  headers?: {} | undefined;
2329
- query?: {} | undefined;
2330
- } | undefined) => Promise<Treaty.TreatyResponse<{
2331
- 200: {
2381
+ query?: {
2382
+ limit?: number | undefined;
2383
+ after?: string | undefined;
2384
+ before?: string | undefined;
2385
+ } | undefined;
2386
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2387
+ 200: {
2332
2388
  success: false;
2333
2389
  statusCode: number;
2334
2390
  data: null;
@@ -2338,14 +2394,7 @@ declare const _func: () => {
2338
2394
  } | {
2339
2395
  success: true;
2340
2396
  statusCode: number;
2341
- data: {
2342
- uuid: string;
2343
- pageId: string;
2344
- pageName: string;
2345
- isActive: boolean;
2346
- createdAt: Date;
2347
- updatedAt: Date;
2348
- };
2397
+ data: TAttachmentListResult;
2349
2398
  message: null;
2350
2399
  error: null;
2351
2400
  meta: TResponseMeta;
@@ -2365,29 +2414,209 @@ declare const _func: () => {
2365
2414
  } & {
2366
2415
  '~path': string;
2367
2416
  };
2368
- posts: ((params: {
2369
- uuid: string | number;
2370
- }) => {
2371
- delete: ((body?: {} | undefined, options?: {
2417
+ '~path': string;
2418
+ } & {
2419
+ get: ((options?: {
2420
+ fetch?: RequestInit | undefined;
2421
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2422
+ headers?: {} | undefined;
2423
+ query?: {} | undefined;
2424
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2425
+ 200: {
2426
+ success: false;
2427
+ statusCode: number;
2428
+ data: null;
2429
+ message: string;
2430
+ error: TResponseError;
2431
+ meta: TResponseMeta;
2432
+ } | {
2433
+ success: true;
2434
+ statusCode: number;
2435
+ data: TEmailObject;
2436
+ message: null;
2437
+ error: null;
2438
+ meta: TResponseMeta;
2439
+ };
2440
+ 422: {
2441
+ type: "validation";
2442
+ on: string;
2443
+ summary?: string;
2444
+ message?: string;
2445
+ found?: unknown;
2446
+ property?: string;
2447
+ expected?: string;
2448
+ };
2449
+ }>>) & {
2450
+ '~path': string;
2451
+ };
2452
+ patch: ((body: {
2453
+ scheduledAt: string;
2454
+ }, options?: {
2455
+ fetch?: RequestInit | undefined;
2456
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2457
+ headers?: {} | undefined;
2458
+ query?: {} | undefined;
2459
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2460
+ 200: {
2461
+ success: false;
2462
+ statusCode: number;
2463
+ data: null;
2464
+ message: string;
2465
+ error: TResponseError;
2466
+ meta: TResponseMeta;
2467
+ } | {
2468
+ success: true;
2469
+ statusCode: number;
2470
+ data: TEmailMutationResult;
2471
+ message: null;
2472
+ error: null;
2473
+ meta: TResponseMeta;
2474
+ };
2475
+ 422: {
2476
+ type: "validation";
2477
+ on: string;
2478
+ summary?: string;
2479
+ message?: string;
2480
+ found?: unknown;
2481
+ property?: string;
2482
+ expected?: string;
2483
+ };
2484
+ }>>) & {
2485
+ '~path': string;
2486
+ };
2487
+ cancel: {
2488
+ post: ((body?: {} | undefined, options?: {
2372
2489
  fetch?: RequestInit | undefined;
2373
2490
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2374
2491
  headers?: {} | undefined;
2375
2492
  query?: {} | undefined;
2376
2493
  } | undefined) => Promise<Treaty.TreatyResponse<{
2377
2494
  200: {
2495
+ success: false;
2496
+ statusCode: number;
2497
+ data: null;
2498
+ message: string;
2499
+ error: TResponseError;
2500
+ meta: TResponseMeta;
2501
+ } | {
2378
2502
  success: true;
2379
2503
  statusCode: number;
2504
+ data: TEmailMutationResult;
2505
+ message: null;
2506
+ error: null;
2507
+ meta: TResponseMeta;
2508
+ };
2509
+ 422: {
2510
+ type: "validation";
2511
+ on: string;
2512
+ summary?: string;
2513
+ message?: string;
2514
+ found?: unknown;
2515
+ property?: string;
2516
+ expected?: string;
2517
+ };
2518
+ }>>) & {
2519
+ '~path': string;
2520
+ };
2521
+ } & {
2522
+ '~path': string;
2523
+ };
2524
+ attachments: ((params: {
2525
+ attachmentId: string | number;
2526
+ }) => {
2527
+ get: ((options?: {
2528
+ fetch?: RequestInit | undefined;
2529
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2530
+ headers?: {} | undefined;
2531
+ query?: {} | undefined;
2532
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2533
+ 200: {
2534
+ success: false;
2535
+ statusCode: number;
2380
2536
  data: null;
2381
2537
  message: string;
2538
+ error: TResponseError;
2539
+ meta: TResponseMeta;
2540
+ } | {
2541
+ success: true;
2542
+ statusCode: number;
2543
+ data: TAttachmentObject;
2544
+ message: null;
2382
2545
  error: null;
2383
2546
  meta: TResponseMeta;
2547
+ };
2548
+ 422: {
2549
+ type: "validation";
2550
+ on: string;
2551
+ summary?: string;
2552
+ message?: string;
2553
+ found?: unknown;
2554
+ property?: string;
2555
+ expected?: string;
2556
+ };
2557
+ }>>) & {
2558
+ '~path': string;
2559
+ };
2560
+ '~path': string;
2561
+ } & {
2562
+ get: ((options?: {
2563
+ fetch?: RequestInit | undefined;
2564
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2565
+ headers?: {} | undefined;
2566
+ query?: {} | undefined;
2567
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2568
+ 200: {
2569
+ success: false;
2570
+ statusCode: number;
2571
+ data: null;
2572
+ message: string;
2573
+ error: TResponseError;
2574
+ meta: TResponseMeta;
2384
2575
  } | {
2576
+ success: true;
2577
+ statusCode: number;
2578
+ data: TAttachmentObject;
2579
+ message: null;
2580
+ error: null;
2581
+ meta: TResponseMeta;
2582
+ };
2583
+ 422: {
2584
+ type: "validation";
2585
+ on: string;
2586
+ summary?: string;
2587
+ message?: string;
2588
+ found?: unknown;
2589
+ property?: string;
2590
+ expected?: string;
2591
+ };
2592
+ }>>) & {
2593
+ '~path': string;
2594
+ };
2595
+ }) & {
2596
+ get: ((options?: {
2597
+ fetch?: RequestInit | undefined;
2598
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2599
+ headers?: {} | undefined;
2600
+ query?: {
2601
+ limit?: number | undefined;
2602
+ after?: string | undefined;
2603
+ before?: string | undefined;
2604
+ } | undefined;
2605
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2606
+ 200: {
2385
2607
  success: false;
2386
2608
  statusCode: number;
2387
2609
  data: null;
2388
2610
  message: string;
2389
2611
  error: TResponseError;
2390
2612
  meta: TResponseMeta;
2613
+ } | {
2614
+ success: true;
2615
+ statusCode: number;
2616
+ data: TAttachmentListResult;
2617
+ message: null;
2618
+ error: null;
2619
+ meta: TResponseMeta;
2391
2620
  };
2392
2621
  422: {
2393
2622
  type: "validation";
@@ -2401,52 +2630,1056 @@ declare const _func: () => {
2401
2630
  }>>) & {
2402
2631
  '~path': string;
2403
2632
  };
2404
- comments: {
2405
- get: ((options?: {
2406
- fetch?: RequestInit | undefined;
2407
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2408
- headers?: {} | undefined;
2409
- query?: {
2410
- after?: string | undefined;
2411
- before?: string | undefined;
2412
- limit?: number | undefined;
2413
- } | undefined;
2414
- } | undefined) => Promise<Treaty.TreatyResponse<{
2415
- 422: {
2416
- type: "validation";
2417
- on: string;
2418
- summary?: string;
2419
- message?: string;
2420
- found?: unknown;
2421
- property?: string;
2422
- expected?: string;
2633
+ } & {
2634
+ '~path': string;
2635
+ };
2636
+ }) & {
2637
+ post: ((body: {
2638
+ to: string | string[];
2639
+ subject: string;
2640
+ scheduledAt?: string | undefined;
2641
+ attachments?: {
2642
+ filename: string;
2643
+ content?: string | undefined;
2644
+ path?: string | undefined;
2645
+ contentType?: string | undefined;
2646
+ }[] | undefined;
2647
+ from?: string | undefined;
2648
+ html?: string | undefined;
2649
+ text?: string | undefined;
2650
+ cc?: string | string[] | undefined;
2651
+ bcc?: string | string[] | undefined;
2652
+ replyTo?: string | string[] | undefined;
2653
+ tags?: {
2654
+ name: string;
2655
+ value: string;
2656
+ }[] | undefined;
2657
+ }, options?: {
2658
+ fetch?: RequestInit | undefined;
2659
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2660
+ headers?: {} | undefined;
2661
+ query?: {} | undefined;
2662
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2663
+ 200: {
2664
+ success: false;
2665
+ statusCode: number;
2666
+ data: null;
2667
+ message: string;
2668
+ error: TResponseError;
2669
+ meta: TResponseMeta;
2670
+ } | {
2671
+ success: true;
2672
+ statusCode: number;
2673
+ data: TEmailIdResult;
2674
+ message: null;
2675
+ error: null;
2676
+ meta: TResponseMeta;
2677
+ };
2678
+ 422: {
2679
+ type: "validation";
2680
+ on: string;
2681
+ summary?: string;
2682
+ message?: string;
2683
+ found?: unknown;
2684
+ property?: string;
2685
+ expected?: string;
2686
+ };
2687
+ }>>) & {
2688
+ '~path': string;
2689
+ };
2690
+ batch: {
2691
+ post: ((body: {
2692
+ emails: {
2693
+ to: string | string[];
2694
+ subject: string;
2695
+ from?: string | undefined;
2696
+ html?: string | undefined;
2697
+ text?: string | undefined;
2698
+ cc?: string | string[] | undefined;
2699
+ bcc?: string | string[] | undefined;
2700
+ replyTo?: string | string[] | undefined;
2701
+ tags?: {
2702
+ name: string;
2703
+ value: string;
2704
+ }[] | undefined;
2705
+ }[];
2706
+ }, options?: {
2707
+ fetch?: RequestInit | undefined;
2708
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2709
+ headers?: {} | undefined;
2710
+ query?: {} | undefined;
2711
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2712
+ 200: {
2713
+ success: false;
2714
+ statusCode: number;
2715
+ data: null;
2716
+ message: string;
2717
+ error: TResponseError;
2718
+ meta: TResponseMeta;
2719
+ } | {
2720
+ success: true;
2721
+ statusCode: number;
2722
+ data: TEmailBatchResult;
2723
+ message: null;
2724
+ error: null;
2725
+ meta: TResponseMeta;
2726
+ };
2727
+ 422: {
2728
+ type: "validation";
2729
+ on: string;
2730
+ summary?: string;
2731
+ message?: string;
2732
+ found?: unknown;
2733
+ property?: string;
2734
+ expected?: string;
2735
+ };
2736
+ }>>) & {
2737
+ '~path': string;
2738
+ };
2739
+ } & {
2740
+ '~path': string;
2741
+ };
2742
+ get: ((options?: {
2743
+ fetch?: RequestInit | undefined;
2744
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2745
+ headers?: {} | undefined;
2746
+ query?: {
2747
+ limit?: number | undefined;
2748
+ after?: string | undefined;
2749
+ before?: string | undefined;
2750
+ } | undefined;
2751
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2752
+ 200: {
2753
+ success: false;
2754
+ statusCode: number;
2755
+ data: null;
2756
+ message: string;
2757
+ error: TResponseError;
2758
+ meta: TResponseMeta;
2759
+ } | {
2760
+ success: true;
2761
+ statusCode: number;
2762
+ data: TEmailListResult;
2763
+ message: null;
2764
+ error: null;
2765
+ meta: TResponseMeta;
2766
+ };
2767
+ 422: {
2768
+ type: "validation";
2769
+ on: string;
2770
+ summary?: string;
2771
+ message?: string;
2772
+ found?: unknown;
2773
+ property?: string;
2774
+ expected?: string;
2775
+ };
2776
+ }>>) & {
2777
+ '~path': string;
2778
+ };
2779
+ received: ((params: {
2780
+ emailId: string | number;
2781
+ }) => {
2782
+ get: ((options?: {
2783
+ fetch?: RequestInit | undefined;
2784
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2785
+ headers?: {} | undefined;
2786
+ query?: {} | undefined;
2787
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2788
+ 200: {
2789
+ success: false;
2790
+ statusCode: number;
2791
+ data: null;
2792
+ message: string;
2793
+ error: TResponseError;
2794
+ meta: TResponseMeta;
2795
+ } | {
2796
+ success: true;
2797
+ statusCode: number;
2798
+ data: TReceivedEmailObject;
2799
+ message: null;
2800
+ error: null;
2801
+ meta: TResponseMeta;
2802
+ };
2803
+ 422: {
2804
+ type: "validation";
2805
+ on: string;
2806
+ summary?: string;
2807
+ message?: string;
2808
+ found?: unknown;
2809
+ property?: string;
2810
+ expected?: string;
2811
+ };
2812
+ }>>) & {
2813
+ '~path': string;
2814
+ };
2815
+ attachments: ((params: {
2816
+ attachmentId: string | number;
2817
+ }) => {
2818
+ get: ((options?: {
2819
+ fetch?: RequestInit | undefined;
2820
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2821
+ headers?: {} | undefined;
2822
+ query?: {} | undefined;
2823
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2824
+ 200: {
2825
+ success: false;
2826
+ statusCode: number;
2827
+ data: null;
2828
+ message: string;
2829
+ error: TResponseError;
2830
+ meta: TResponseMeta;
2831
+ } | {
2832
+ success: true;
2833
+ statusCode: number;
2834
+ data: TAttachmentObject;
2835
+ message: null;
2836
+ error: null;
2837
+ meta: TResponseMeta;
2838
+ };
2839
+ 422: {
2840
+ type: "validation";
2841
+ on: string;
2842
+ summary?: string;
2843
+ message?: string;
2844
+ found?: unknown;
2845
+ property?: string;
2846
+ expected?: string;
2847
+ };
2848
+ }>>) & {
2849
+ '~path': string;
2850
+ };
2851
+ '~path': string;
2852
+ } & {
2853
+ get: ((options?: {
2854
+ fetch?: RequestInit | undefined;
2855
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2856
+ headers?: {} | undefined;
2857
+ query?: {} | undefined;
2858
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2859
+ 200: {
2860
+ success: false;
2861
+ statusCode: number;
2862
+ data: null;
2863
+ message: string;
2864
+ error: TResponseError;
2865
+ meta: TResponseMeta;
2866
+ } | {
2867
+ success: true;
2868
+ statusCode: number;
2869
+ data: TAttachmentObject;
2870
+ message: null;
2871
+ error: null;
2872
+ meta: TResponseMeta;
2873
+ };
2874
+ 422: {
2875
+ type: "validation";
2876
+ on: string;
2877
+ summary?: string;
2878
+ message?: string;
2879
+ found?: unknown;
2880
+ property?: string;
2881
+ expected?: string;
2882
+ };
2883
+ }>>) & {
2884
+ '~path': string;
2885
+ };
2886
+ }) & {
2887
+ get: ((options?: {
2888
+ fetch?: RequestInit | undefined;
2889
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2890
+ headers?: {} | undefined;
2891
+ query?: {
2892
+ limit?: number | undefined;
2893
+ after?: string | undefined;
2894
+ before?: string | undefined;
2895
+ } | undefined;
2896
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2897
+ 200: {
2898
+ success: false;
2899
+ statusCode: number;
2900
+ data: null;
2901
+ message: string;
2902
+ error: TResponseError;
2903
+ meta: TResponseMeta;
2904
+ } | {
2905
+ success: true;
2906
+ statusCode: number;
2907
+ data: TAttachmentListResult;
2908
+ message: null;
2909
+ error: null;
2910
+ meta: TResponseMeta;
2911
+ };
2912
+ 422: {
2913
+ type: "validation";
2914
+ on: string;
2915
+ summary?: string;
2916
+ message?: string;
2917
+ found?: unknown;
2918
+ property?: string;
2919
+ expected?: string;
2920
+ };
2921
+ }>>) & {
2922
+ '~path': string;
2923
+ };
2924
+ } & {
2925
+ '~path': string;
2926
+ };
2927
+ '~path': string;
2928
+ } & {
2929
+ get: ((options?: {
2930
+ fetch?: RequestInit | undefined;
2931
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2932
+ headers?: {} | undefined;
2933
+ query?: {} | undefined;
2934
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2935
+ 200: {
2936
+ success: false;
2937
+ statusCode: number;
2938
+ data: null;
2939
+ message: string;
2940
+ error: TResponseError;
2941
+ meta: TResponseMeta;
2942
+ } | {
2943
+ success: true;
2944
+ statusCode: number;
2945
+ data: TReceivedEmailObject;
2946
+ message: null;
2947
+ error: null;
2948
+ meta: TResponseMeta;
2949
+ };
2950
+ 422: {
2951
+ type: "validation";
2952
+ on: string;
2953
+ summary?: string;
2954
+ message?: string;
2955
+ found?: unknown;
2956
+ property?: string;
2957
+ expected?: string;
2958
+ };
2959
+ }>>) & {
2960
+ '~path': string;
2961
+ };
2962
+ attachments: ((params: {
2963
+ attachmentId: string | number;
2964
+ }) => {
2965
+ get: ((options?: {
2966
+ fetch?: RequestInit | undefined;
2967
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2968
+ headers?: {} | undefined;
2969
+ query?: {} | undefined;
2970
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2971
+ 200: {
2972
+ success: false;
2973
+ statusCode: number;
2974
+ data: null;
2975
+ message: string;
2976
+ error: TResponseError;
2977
+ meta: TResponseMeta;
2978
+ } | {
2979
+ success: true;
2980
+ statusCode: number;
2981
+ data: TAttachmentObject;
2982
+ message: null;
2983
+ error: null;
2984
+ meta: TResponseMeta;
2985
+ };
2986
+ 422: {
2987
+ type: "validation";
2988
+ on: string;
2989
+ summary?: string;
2990
+ message?: string;
2991
+ found?: unknown;
2992
+ property?: string;
2993
+ expected?: string;
2994
+ };
2995
+ }>>) & {
2996
+ '~path': string;
2997
+ };
2998
+ '~path': string;
2999
+ } & {
3000
+ get: ((options?: {
3001
+ fetch?: RequestInit | undefined;
3002
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3003
+ headers?: {} | undefined;
3004
+ query?: {} | undefined;
3005
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3006
+ 200: {
3007
+ success: false;
3008
+ statusCode: number;
3009
+ data: null;
3010
+ message: string;
3011
+ error: TResponseError;
3012
+ meta: TResponseMeta;
3013
+ } | {
3014
+ success: true;
3015
+ statusCode: number;
3016
+ data: TAttachmentObject;
3017
+ message: null;
3018
+ error: null;
3019
+ meta: TResponseMeta;
3020
+ };
3021
+ 422: {
3022
+ type: "validation";
3023
+ on: string;
3024
+ summary?: string;
3025
+ message?: string;
3026
+ found?: unknown;
3027
+ property?: string;
3028
+ expected?: string;
3029
+ };
3030
+ }>>) & {
3031
+ '~path': string;
3032
+ };
3033
+ }) & {
3034
+ get: ((options?: {
3035
+ fetch?: RequestInit | undefined;
3036
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3037
+ headers?: {} | undefined;
3038
+ query?: {
3039
+ limit?: number | undefined;
3040
+ after?: string | undefined;
3041
+ before?: string | undefined;
3042
+ } | undefined;
3043
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3044
+ 200: {
3045
+ success: false;
3046
+ statusCode: number;
3047
+ data: null;
3048
+ message: string;
3049
+ error: TResponseError;
3050
+ meta: TResponseMeta;
3051
+ } | {
3052
+ success: true;
3053
+ statusCode: number;
3054
+ data: TAttachmentListResult;
3055
+ message: null;
3056
+ error: null;
3057
+ meta: TResponseMeta;
3058
+ };
3059
+ 422: {
3060
+ type: "validation";
3061
+ on: string;
3062
+ summary?: string;
3063
+ message?: string;
3064
+ found?: unknown;
3065
+ property?: string;
3066
+ expected?: string;
3067
+ };
3068
+ }>>) & {
3069
+ '~path': string;
3070
+ };
3071
+ } & {
3072
+ '~path': string;
3073
+ };
3074
+ }) & {
3075
+ get: ((options?: {
3076
+ fetch?: RequestInit | undefined;
3077
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3078
+ headers?: {} | undefined;
3079
+ query?: {
3080
+ limit?: number | undefined;
3081
+ after?: string | undefined;
3082
+ before?: string | undefined;
3083
+ } | undefined;
3084
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3085
+ 200: {
3086
+ success: false;
3087
+ statusCode: number;
3088
+ data: null;
3089
+ message: string;
3090
+ error: TResponseError;
3091
+ meta: TResponseMeta;
3092
+ } | {
3093
+ success: true;
3094
+ statusCode: number;
3095
+ data: TReceivedEmailListResult;
3096
+ message: null;
3097
+ error: null;
3098
+ meta: TResponseMeta;
3099
+ };
3100
+ 422: {
3101
+ type: "validation";
3102
+ on: string;
3103
+ summary?: string;
3104
+ message?: string;
3105
+ found?: unknown;
3106
+ property?: string;
3107
+ expected?: string;
3108
+ };
3109
+ }>>) & {
3110
+ '~path': string;
3111
+ };
3112
+ } & {
3113
+ '~path': string;
3114
+ };
3115
+ } & {
3116
+ '~path': string;
3117
+ };
3118
+ facebook: {
3119
+ pages: ((params: {
3120
+ uuid: string | number;
3121
+ }) => {
3122
+ delete: ((body?: {} | undefined, options?: {
3123
+ fetch?: RequestInit | undefined;
3124
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3125
+ headers?: {} | undefined;
3126
+ query?: {} | undefined;
3127
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3128
+ 200: {
3129
+ success: true;
3130
+ statusCode: number;
3131
+ data: null;
3132
+ message: string;
3133
+ error: null;
3134
+ meta: TResponseMeta;
3135
+ } | {
3136
+ success: false;
3137
+ statusCode: number;
3138
+ data: null;
3139
+ message: string;
3140
+ error: TResponseError;
3141
+ meta: TResponseMeta;
3142
+ };
3143
+ 422: {
3144
+ type: "validation";
3145
+ on: string;
3146
+ summary?: string;
3147
+ message?: string;
3148
+ found?: unknown;
3149
+ property?: string;
3150
+ expected?: string;
3151
+ };
3152
+ }>>) & {
3153
+ '~path': string;
3154
+ };
3155
+ posts: ((params: {
3156
+ postId: string | number;
3157
+ }) => {
3158
+ delete: ((body?: {} | undefined, options?: {
3159
+ fetch?: RequestInit | undefined;
3160
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3161
+ headers?: {} | undefined;
3162
+ query?: {} | undefined;
3163
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3164
+ 200: {
3165
+ success: true;
3166
+ statusCode: number;
3167
+ data: null;
3168
+ message: string;
3169
+ error: null;
3170
+ meta: TResponseMeta;
3171
+ } | {
3172
+ success: false;
3173
+ statusCode: number;
3174
+ data: null;
3175
+ message: string;
3176
+ error: TResponseError;
3177
+ meta: TResponseMeta;
3178
+ };
3179
+ 422: {
3180
+ type: "validation";
3181
+ on: string;
3182
+ summary?: string;
3183
+ message?: string;
3184
+ found?: unknown;
3185
+ property?: string;
3186
+ expected?: string;
3187
+ };
3188
+ }>>) & {
3189
+ '~path': string;
3190
+ };
3191
+ comments: {
3192
+ get: ((options?: {
3193
+ fetch?: RequestInit | undefined;
3194
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3195
+ headers?: {} | undefined;
3196
+ query?: {
3197
+ after?: string | undefined;
3198
+ before?: string | undefined;
3199
+ limit?: number | undefined;
3200
+ } | undefined;
3201
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3202
+ 200: {
3203
+ success: false;
3204
+ statusCode: number;
3205
+ data: null;
3206
+ message: string;
3207
+ error: TResponseError;
3208
+ meta: TResponseMeta;
3209
+ } | {
3210
+ success: true;
3211
+ statusCode: number;
3212
+ data: {
3213
+ comments: unknown[];
3214
+ paging: {
3215
+ cursors: {
3216
+ before: string;
3217
+ after: string;
3218
+ } | null;
3219
+ hasNext: boolean;
3220
+ hasPrevious: boolean;
3221
+ };
3222
+ };
3223
+ message: null;
3224
+ error: null;
3225
+ meta: TResponseMeta;
3226
+ };
3227
+ 422: {
3228
+ type: "validation";
3229
+ on: string;
3230
+ summary?: string;
3231
+ message?: string;
3232
+ found?: unknown;
3233
+ property?: string;
3234
+ expected?: string;
3235
+ };
3236
+ }>>) & {
3237
+ '~path': string;
3238
+ };
3239
+ post: ((body: {
3240
+ message: string;
3241
+ }, options?: {
3242
+ fetch?: RequestInit | undefined;
3243
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3244
+ headers?: {} | undefined;
3245
+ query?: {} | undefined;
3246
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3247
+ 200: {
3248
+ success: false;
3249
+ statusCode: number;
3250
+ data: null;
3251
+ message: string;
3252
+ error: TResponseError;
3253
+ meta: TResponseMeta;
3254
+ } | {
3255
+ success: true;
3256
+ statusCode: number;
3257
+ data: {
3258
+ commentId: string;
3259
+ };
3260
+ message: null;
3261
+ error: null;
3262
+ meta: TResponseMeta;
3263
+ };
3264
+ 422: {
3265
+ type: "validation";
3266
+ on: string;
3267
+ summary?: string;
3268
+ message?: string;
3269
+ found?: unknown;
3270
+ property?: string;
3271
+ expected?: string;
3272
+ };
3273
+ }>>) & {
3274
+ '~path': string;
3275
+ };
3276
+ } & {
3277
+ '~path': string;
3278
+ };
3279
+ '~path': string;
3280
+ } & {
3281
+ delete: ((body?: {} | undefined, options?: {
3282
+ fetch?: RequestInit | undefined;
3283
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3284
+ headers?: {} | undefined;
3285
+ query?: {} | undefined;
3286
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3287
+ 200: {
3288
+ success: true;
3289
+ statusCode: number;
3290
+ data: null;
3291
+ message: string;
3292
+ error: null;
3293
+ meta: TResponseMeta;
3294
+ } | {
3295
+ success: false;
3296
+ statusCode: number;
3297
+ data: null;
3298
+ message: string;
3299
+ error: TResponseError;
3300
+ meta: TResponseMeta;
3301
+ };
3302
+ 422: {
3303
+ type: "validation";
3304
+ on: string;
3305
+ summary?: string;
3306
+ message?: string;
3307
+ found?: unknown;
3308
+ property?: string;
3309
+ expected?: string;
3310
+ };
3311
+ }>>) & {
3312
+ '~path': string;
3313
+ };
3314
+ comments: {
3315
+ get: ((options?: {
3316
+ fetch?: RequestInit | undefined;
3317
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3318
+ headers?: {} | undefined;
3319
+ query?: {
3320
+ after?: string | undefined;
3321
+ before?: string | undefined;
3322
+ limit?: number | undefined;
3323
+ } | undefined;
3324
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3325
+ 200: {
3326
+ success: false;
3327
+ statusCode: number;
3328
+ data: null;
3329
+ message: string;
3330
+ error: TResponseError;
3331
+ meta: TResponseMeta;
3332
+ } | {
3333
+ success: true;
3334
+ statusCode: number;
3335
+ data: {
3336
+ comments: unknown[];
3337
+ paging: {
3338
+ cursors: {
3339
+ before: string;
3340
+ after: string;
3341
+ } | null;
3342
+ hasNext: boolean;
3343
+ hasPrevious: boolean;
3344
+ };
3345
+ };
3346
+ message: null;
3347
+ error: null;
3348
+ meta: TResponseMeta;
3349
+ };
3350
+ 422: {
3351
+ type: "validation";
3352
+ on: string;
3353
+ summary?: string;
3354
+ message?: string;
3355
+ found?: unknown;
3356
+ property?: string;
3357
+ expected?: string;
3358
+ };
3359
+ }>>) & {
3360
+ '~path': string;
3361
+ };
3362
+ post: ((body: {
3363
+ message: string;
3364
+ }, options?: {
3365
+ fetch?: RequestInit | undefined;
3366
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3367
+ headers?: {} | undefined;
3368
+ query?: {} | undefined;
3369
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3370
+ 200: {
3371
+ success: false;
3372
+ statusCode: number;
3373
+ data: null;
3374
+ message: string;
3375
+ error: TResponseError;
3376
+ meta: TResponseMeta;
3377
+ } | {
3378
+ success: true;
3379
+ statusCode: number;
3380
+ data: {
3381
+ commentId: string;
3382
+ };
3383
+ message: null;
3384
+ error: null;
3385
+ meta: TResponseMeta;
3386
+ };
3387
+ 422: {
3388
+ type: "validation";
3389
+ on: string;
3390
+ summary?: string;
3391
+ message?: string;
3392
+ found?: unknown;
3393
+ property?: string;
3394
+ expected?: string;
3395
+ };
3396
+ }>>) & {
3397
+ '~path': string;
3398
+ };
3399
+ } & {
3400
+ '~path': string;
3401
+ };
3402
+ }) & {
3403
+ get: ((options?: {
3404
+ fetch?: RequestInit | undefined;
3405
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3406
+ headers?: {} | undefined;
3407
+ query?: {
3408
+ after?: string | undefined;
3409
+ before?: string | undefined;
3410
+ limit?: number | undefined;
3411
+ } | undefined;
3412
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3413
+ 200: {
3414
+ success: false;
3415
+ statusCode: number;
3416
+ data: null;
3417
+ message: string;
3418
+ error: TResponseError;
3419
+ meta: TResponseMeta;
3420
+ } | {
3421
+ success: true;
3422
+ statusCode: number;
3423
+ data: {
3424
+ posts: {
3425
+ id: string;
3426
+ message: string;
3427
+ created_time: string;
3428
+ permalink_url: string;
3429
+ full_picture: string;
3430
+ }[];
3431
+ paging: {
3432
+ cursors: {
3433
+ before: string;
3434
+ after: string;
3435
+ } | null;
3436
+ hasNext: boolean;
3437
+ hasPrevious: boolean;
3438
+ };
3439
+ };
3440
+ message: null;
3441
+ error: null;
3442
+ meta: TResponseMeta;
3443
+ };
3444
+ 422: {
3445
+ type: "validation";
3446
+ on: string;
3447
+ summary?: string;
3448
+ message?: string;
3449
+ found?: unknown;
3450
+ property?: string;
3451
+ expected?: string;
3452
+ };
3453
+ }>>) & {
3454
+ '~path': string;
3455
+ };
3456
+ post: ((body: {
3457
+ message: string;
3458
+ scheduledAt?: Date | undefined;
3459
+ imageUrls?: string[] | undefined;
3460
+ }, options?: {
3461
+ fetch?: RequestInit | undefined;
3462
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3463
+ headers?: {} | undefined;
3464
+ query?: {} | undefined;
3465
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3466
+ 200: {
3467
+ success: false;
3468
+ statusCode: number;
3469
+ data: null;
3470
+ message: string;
3471
+ error: TResponseError;
3472
+ meta: TResponseMeta;
3473
+ } | {
3474
+ success: true;
3475
+ statusCode: number;
3476
+ data: {
3477
+ id: string;
3478
+ message: string;
3479
+ imageUrls: string[] | null;
3480
+ status: EFacebookPostStatus;
3481
+ scheduledAt: Date | null;
3482
+ publishedAt: Date | null;
3483
+ };
3484
+ message: null;
3485
+ error: null;
3486
+ meta: TResponseMeta;
3487
+ };
3488
+ 422: {
3489
+ type: "validation";
3490
+ on: string;
3491
+ summary?: string;
3492
+ message?: string;
3493
+ found?: unknown;
3494
+ property?: string;
3495
+ expected?: string;
3496
+ };
3497
+ }>>) & {
3498
+ '~path': string;
3499
+ };
3500
+ } & {
3501
+ '~path': string;
3502
+ };
3503
+ '~path': string;
3504
+ } & {
3505
+ delete: ((body?: {} | undefined, options?: {
3506
+ fetch?: RequestInit | undefined;
3507
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3508
+ headers?: {} | undefined;
3509
+ query?: {} | undefined;
3510
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3511
+ 200: {
3512
+ success: true;
3513
+ statusCode: number;
3514
+ data: null;
3515
+ message: string;
3516
+ error: null;
3517
+ meta: TResponseMeta;
3518
+ } | {
3519
+ success: false;
3520
+ statusCode: number;
3521
+ data: null;
3522
+ message: string;
3523
+ error: TResponseError;
3524
+ meta: TResponseMeta;
3525
+ };
3526
+ 422: {
3527
+ type: "validation";
3528
+ on: string;
3529
+ summary?: string;
3530
+ message?: string;
3531
+ found?: unknown;
3532
+ property?: string;
3533
+ expected?: string;
3534
+ };
3535
+ }>>) & {
3536
+ '~path': string;
3537
+ };
3538
+ posts: ((params: {
3539
+ postId: string | number;
3540
+ }) => {
3541
+ delete: ((body?: {} | undefined, options?: {
3542
+ fetch?: RequestInit | undefined;
3543
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3544
+ headers?: {} | undefined;
3545
+ query?: {} | undefined;
3546
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3547
+ 200: {
3548
+ success: true;
3549
+ statusCode: number;
3550
+ data: null;
3551
+ message: string;
3552
+ error: null;
3553
+ meta: TResponseMeta;
3554
+ } | {
3555
+ success: false;
3556
+ statusCode: number;
3557
+ data: null;
3558
+ message: string;
3559
+ error: TResponseError;
3560
+ meta: TResponseMeta;
3561
+ };
3562
+ 422: {
3563
+ type: "validation";
3564
+ on: string;
3565
+ summary?: string;
3566
+ message?: string;
3567
+ found?: unknown;
3568
+ property?: string;
3569
+ expected?: string;
3570
+ };
3571
+ }>>) & {
3572
+ '~path': string;
3573
+ };
3574
+ comments: {
3575
+ get: ((options?: {
3576
+ fetch?: RequestInit | undefined;
3577
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3578
+ headers?: {} | undefined;
3579
+ query?: {
3580
+ after?: string | undefined;
3581
+ before?: string | undefined;
3582
+ limit?: number | undefined;
3583
+ } | undefined;
3584
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3585
+ 200: {
3586
+ success: false;
3587
+ statusCode: number;
3588
+ data: null;
3589
+ message: string;
3590
+ error: TResponseError;
3591
+ meta: TResponseMeta;
3592
+ } | {
3593
+ success: true;
3594
+ statusCode: number;
3595
+ data: {
3596
+ comments: unknown[];
3597
+ paging: {
3598
+ cursors: {
3599
+ before: string;
3600
+ after: string;
3601
+ } | null;
3602
+ hasNext: boolean;
3603
+ hasPrevious: boolean;
3604
+ };
3605
+ };
3606
+ message: null;
3607
+ error: null;
3608
+ meta: TResponseMeta;
3609
+ };
3610
+ 422: {
3611
+ type: "validation";
3612
+ on: string;
3613
+ summary?: string;
3614
+ message?: string;
3615
+ found?: unknown;
3616
+ property?: string;
3617
+ expected?: string;
3618
+ };
3619
+ }>>) & {
3620
+ '~path': string;
3621
+ };
3622
+ post: ((body: {
3623
+ message: string;
3624
+ }, options?: {
3625
+ fetch?: RequestInit | undefined;
3626
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3627
+ headers?: {} | undefined;
3628
+ query?: {} | undefined;
3629
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3630
+ 200: {
3631
+ success: false;
3632
+ statusCode: number;
3633
+ data: null;
3634
+ message: string;
3635
+ error: TResponseError;
3636
+ meta: TResponseMeta;
3637
+ } | {
3638
+ success: true;
3639
+ statusCode: number;
3640
+ data: {
3641
+ commentId: string;
3642
+ };
3643
+ message: null;
3644
+ error: null;
3645
+ meta: TResponseMeta;
3646
+ };
3647
+ 422: {
3648
+ type: "validation";
3649
+ on: string;
3650
+ summary?: string;
3651
+ message?: string;
3652
+ found?: unknown;
3653
+ property?: string;
3654
+ expected?: string;
3655
+ };
3656
+ }>>) & {
3657
+ '~path': string;
2423
3658
  };
2424
- }>>) & {
3659
+ } & {
2425
3660
  '~path': string;
2426
3661
  };
2427
- post: ((body: {
2428
- message: string;
2429
- }, options?: {
3662
+ '~path': string;
3663
+ } & {
3664
+ delete: ((body?: {} | undefined, options?: {
2430
3665
  fetch?: RequestInit | undefined;
2431
3666
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2432
3667
  headers?: {} | undefined;
2433
3668
  query?: {} | undefined;
2434
3669
  } | undefined) => Promise<Treaty.TreatyResponse<{
2435
3670
  200: {
2436
- success: false;
3671
+ success: true;
2437
3672
  statusCode: number;
2438
3673
  data: null;
2439
3674
  message: string;
2440
- error: TResponseError;
3675
+ error: null;
2441
3676
  meta: TResponseMeta;
2442
3677
  } | {
2443
- success: true;
3678
+ success: false;
2444
3679
  statusCode: number;
2445
- data: {
2446
- commentId: string;
2447
- };
2448
- message: null;
2449
- error: null;
3680
+ data: null;
3681
+ message: string;
3682
+ error: TResponseError;
2450
3683
  meta: TResponseMeta;
2451
3684
  };
2452
3685
  422: {
@@ -2461,45 +3694,95 @@ declare const _func: () => {
2461
3694
  }>>) & {
2462
3695
  '~path': string;
2463
3696
  };
2464
- } & {
2465
- '~path': string;
2466
- };
2467
- '~path': string;
2468
- } & {
2469
- delete: ((body?: {} | undefined, options?: {
2470
- fetch?: RequestInit | undefined;
2471
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2472
- headers?: {} | undefined;
2473
- query?: {} | undefined;
2474
- } | undefined) => Promise<Treaty.TreatyResponse<{
2475
- 200: {
2476
- success: true;
2477
- statusCode: number;
2478
- data: null;
2479
- message: string;
2480
- error: null;
2481
- meta: TResponseMeta;
2482
- } | {
2483
- success: false;
2484
- statusCode: number;
2485
- data: null;
2486
- message: string;
2487
- error: TResponseError;
2488
- meta: TResponseMeta;
2489
- };
2490
- 422: {
2491
- type: "validation";
2492
- on: string;
2493
- summary?: string;
2494
- message?: string;
2495
- found?: unknown;
2496
- property?: string;
2497
- expected?: string;
3697
+ comments: {
3698
+ get: ((options?: {
3699
+ fetch?: RequestInit | undefined;
3700
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3701
+ headers?: {} | undefined;
3702
+ query?: {
3703
+ after?: string | undefined;
3704
+ before?: string | undefined;
3705
+ limit?: number | undefined;
3706
+ } | undefined;
3707
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3708
+ 200: {
3709
+ success: false;
3710
+ statusCode: number;
3711
+ data: null;
3712
+ message: string;
3713
+ error: TResponseError;
3714
+ meta: TResponseMeta;
3715
+ } | {
3716
+ success: true;
3717
+ statusCode: number;
3718
+ data: {
3719
+ comments: unknown[];
3720
+ paging: {
3721
+ cursors: {
3722
+ before: string;
3723
+ after: string;
3724
+ } | null;
3725
+ hasNext: boolean;
3726
+ hasPrevious: boolean;
3727
+ };
3728
+ };
3729
+ message: null;
3730
+ error: null;
3731
+ meta: TResponseMeta;
3732
+ };
3733
+ 422: {
3734
+ type: "validation";
3735
+ on: string;
3736
+ summary?: string;
3737
+ message?: string;
3738
+ found?: unknown;
3739
+ property?: string;
3740
+ expected?: string;
3741
+ };
3742
+ }>>) & {
3743
+ '~path': string;
3744
+ };
3745
+ post: ((body: {
3746
+ message: string;
3747
+ }, options?: {
3748
+ fetch?: RequestInit | undefined;
3749
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
3750
+ headers?: {} | undefined;
3751
+ query?: {} | undefined;
3752
+ } | undefined) => Promise<Treaty.TreatyResponse<{
3753
+ 200: {
3754
+ success: false;
3755
+ statusCode: number;
3756
+ data: null;
3757
+ message: string;
3758
+ error: TResponseError;
3759
+ meta: TResponseMeta;
3760
+ } | {
3761
+ success: true;
3762
+ statusCode: number;
3763
+ data: {
3764
+ commentId: string;
3765
+ };
3766
+ message: null;
3767
+ error: null;
3768
+ meta: TResponseMeta;
3769
+ };
3770
+ 422: {
3771
+ type: "validation";
3772
+ on: string;
3773
+ summary?: string;
3774
+ message?: string;
3775
+ found?: unknown;
3776
+ property?: string;
3777
+ expected?: string;
3778
+ };
3779
+ }>>) & {
3780
+ '~path': string;
3781
+ };
3782
+ } & {
3783
+ '~path': string;
2498
3784
  };
2499
- }>>) & {
2500
- '~path': string;
2501
- };
2502
- comments: {
3785
+ }) & {
2503
3786
  get: ((options?: {
2504
3787
  fetch?: RequestInit | undefined;
2505
3788
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -2510,6 +3793,37 @@ declare const _func: () => {
2510
3793
  limit?: number | undefined;
2511
3794
  } | undefined;
2512
3795
  } | undefined) => Promise<Treaty.TreatyResponse<{
3796
+ 200: {
3797
+ success: false;
3798
+ statusCode: number;
3799
+ data: null;
3800
+ message: string;
3801
+ error: TResponseError;
3802
+ meta: TResponseMeta;
3803
+ } | {
3804
+ success: true;
3805
+ statusCode: number;
3806
+ data: {
3807
+ posts: {
3808
+ id: string;
3809
+ message: string;
3810
+ created_time: string;
3811
+ permalink_url: string;
3812
+ full_picture: string;
3813
+ }[];
3814
+ paging: {
3815
+ cursors: {
3816
+ before: string;
3817
+ after: string;
3818
+ } | null;
3819
+ hasNext: boolean;
3820
+ hasPrevious: boolean;
3821
+ };
3822
+ };
3823
+ message: null;
3824
+ error: null;
3825
+ meta: TResponseMeta;
3826
+ };
2513
3827
  422: {
2514
3828
  type: "validation";
2515
3829
  on: string;
@@ -2524,6 +3838,8 @@ declare const _func: () => {
2524
3838
  };
2525
3839
  post: ((body: {
2526
3840
  message: string;
3841
+ scheduledAt?: Date | undefined;
3842
+ imageUrls?: string[] | undefined;
2527
3843
  }, options?: {
2528
3844
  fetch?: RequestInit | undefined;
2529
3845
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -2541,7 +3857,12 @@ declare const _func: () => {
2541
3857
  success: true;
2542
3858
  statusCode: number;
2543
3859
  data: {
2544
- commentId: string;
3860
+ id: string;
3861
+ message: string;
3862
+ imageUrls: string[] | null;
3863
+ status: EFacebookPostStatus;
3864
+ scheduledAt: Date | null;
3865
+ publishedAt: Date | null;
2545
3866
  };
2546
3867
  message: null;
2547
3868
  error: null;
@@ -2567,12 +3888,7 @@ declare const _func: () => {
2567
3888
  fetch?: RequestInit | undefined;
2568
3889
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2569
3890
  headers?: {} | undefined;
2570
- query?: {
2571
- page?: number | undefined;
2572
- limit?: number | undefined;
2573
- pageUuid?: string | undefined;
2574
- status?: EFacebookPostStatus | undefined;
2575
- } | undefined;
3891
+ query?: {} | undefined;
2576
3892
  } | undefined) => Promise<Treaty.TreatyResponse<{
2577
3893
  200: {
2578
3894
  success: false;
@@ -2585,53 +3901,24 @@ declare const _func: () => {
2585
3901
  success: true;
2586
3902
  statusCode: number;
2587
3903
  data: {
2588
- data: {
2589
- uuid: string;
2590
- message: string;
2591
- status: "draft" | "scheduled" | "published" | "failed";
2592
- createdAt: Date;
2593
- updatedAt: Date;
2594
- facebookPageUuid: string;
2595
- facebookPostId: string | null;
2596
- scheduledAt: Date | null;
2597
- publishedAt: Date | null;
2598
- imageUrls: string[] | null;
2599
- errorMessage: string | null;
2600
- page: {
2601
- pageId: string;
2602
- pageName: string;
2603
- };
2604
- }[];
2605
- pagination: {
2606
- page: number;
2607
- limit: number;
2608
- total: number;
2609
- totalPages: number;
2610
- hasNextPage: boolean;
2611
- hasPreviousPage: boolean;
2612
- };
2613
- };
3904
+ uuid: string;
3905
+ createdAt: Date;
3906
+ updatedAt: Date;
3907
+ pageId: string;
3908
+ pageName: string;
3909
+ isActive: boolean;
3910
+ }[];
2614
3911
  message: null;
2615
3912
  error: null;
2616
3913
  meta: TResponseMeta;
2617
3914
  };
2618
- 422: {
2619
- type: "validation";
2620
- on: string;
2621
- summary?: string;
2622
- message?: string;
2623
- found?: unknown;
2624
- property?: string;
2625
- expected?: string;
2626
- };
2627
3915
  }>>) & {
2628
3916
  '~path': string;
2629
3917
  };
2630
3918
  post: ((body: {
2631
- pageUuid: string;
2632
- message: string;
2633
- scheduledAt?: Date | undefined;
2634
- imageUrls?: string[] | undefined;
3919
+ pageId: string;
3920
+ pageName: string;
3921
+ pageAccessToken: string;
2635
3922
  }, options?: {
2636
3923
  fetch?: RequestInit | undefined;
2637
3924
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -2650,16 +3937,11 @@ declare const _func: () => {
2650
3937
  statusCode: number;
2651
3938
  data: {
2652
3939
  uuid: string;
2653
- message: string;
2654
- status: "draft" | "scheduled" | "published" | "failed";
3940
+ pageId: string;
3941
+ pageName: string;
3942
+ isActive: boolean;
2655
3943
  createdAt: Date;
2656
3944
  updatedAt: Date;
2657
- facebookPageUuid: string;
2658
- facebookPostId: string | null;
2659
- scheduledAt: Date | null;
2660
- publishedAt: Date | null;
2661
- imageUrls: string[] | null;
2662
- errorMessage: string | null;
2663
3945
  };
2664
3946
  message: null;
2665
3947
  error: null;
@@ -3449,8 +4731,8 @@ declare const _func: () => {
3449
4731
  query?: {
3450
4732
  type?: "ORDER_NOTE" | "OTHER" | undefined;
3451
4733
  search?: string | undefined;
3452
- page?: number | undefined;
3453
4734
  limit?: number | undefined;
4735
+ page?: number | undefined;
3454
4736
  orderId?: string | undefined;
3455
4737
  } | undefined;
3456
4738
  } | undefined) => Promise<Treaty.TreatyResponse<{
@@ -5440,7 +6722,6 @@ declare const _func: () => {
5440
6722
  query?: {
5441
6723
  status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
5442
6724
  search?: string | undefined;
5443
- page?: number | undefined;
5444
6725
  orderType?: "ORDER" | "IN-STOCK" | undefined;
5445
6726
  customerEmail?: string | undefined;
5446
6727
  customerName?: string | undefined;
@@ -5448,6 +6729,7 @@ declare const _func: () => {
5448
6729
  paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
5449
6730
  fulfillmentStatus?: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED" | undefined;
5450
6731
  limit?: number | undefined;
6732
+ page?: number | undefined;
5451
6733
  subtotalAmountFrom?: number | undefined;
5452
6734
  subtotalAmountTo?: number | undefined;
5453
6735
  createdAtFrom?: string | undefined;
@@ -5527,8 +6809,8 @@ declare const _func: () => {
5527
6809
  headers?: {} | undefined;
5528
6810
  query?: {
5529
6811
  search?: string | undefined;
5530
- page?: number | undefined;
5531
6812
  limit?: number | undefined;
6813
+ page?: number | undefined;
5532
6814
  } | undefined;
5533
6815
  } | undefined) => Promise<Treaty.TreatyResponse<{
5534
6816
  200: {
@@ -5719,12 +7001,12 @@ declare const _func: () => {
5719
7001
  query?: {
5720
7002
  status?: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED" | undefined;
5721
7003
  search?: string | undefined;
5722
- page?: number | undefined;
5723
7004
  orderUuid?: string | undefined;
5724
7005
  productName?: string | undefined;
5725
7006
  originCountry?: string | undefined;
5726
7007
  vendorName?: string | undefined;
5727
7008
  limit?: number | undefined;
7009
+ page?: number | undefined;
5728
7010
  createdAtFrom?: string | undefined;
5729
7011
  createdAtTo?: string | undefined;
5730
7012
  } | undefined;
@@ -5891,8 +7173,8 @@ declare const _func: () => {
5891
7173
  headers?: {} | undefined;
5892
7174
  query?: {
5893
7175
  search?: string | undefined;
5894
- page?: number | undefined;
5895
7176
  limit?: number | undefined;
7177
+ page?: number | undefined;
5896
7178
  } | undefined;
5897
7179
  } | undefined) => Promise<Treaty.TreatyResponse<{
5898
7180
  200: {
@@ -6035,7 +7317,7 @@ declare const _func: () => {
6035
7317
  productLink: string | null;
6036
7318
  quantity: number | null;
6037
7319
  country: string | null;
6038
- productStatus: "draft" | "published" | "review" | "cancelled";
7320
+ productStatus: "draft" | "review" | "published" | "cancelled";
6039
7321
  productType: "regular" | "gift";
6040
7322
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
6041
7323
  rating: number | null;
@@ -6292,7 +7574,7 @@ declare const _func: () => {
6292
7574
  productLink: string | null;
6293
7575
  quantity: number | null;
6294
7576
  country: string | null;
6295
- productStatus: "draft" | "published" | "review" | "cancelled";
7577
+ productStatus: "draft" | "review" | "published" | "cancelled";
6296
7578
  productType: "regular" | "gift";
6297
7579
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
6298
7580
  rating: number | null;
@@ -6527,7 +7809,7 @@ declare const _func: () => {
6527
7809
  productLink: string | null;
6528
7810
  quantity: number | null;
6529
7811
  country: string | null;
6530
- productStatus: "draft" | "published" | "review" | "cancelled";
7812
+ productStatus: "draft" | "review" | "published" | "cancelled";
6531
7813
  productType: "regular" | "gift";
6532
7814
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
6533
7815
  rating: number | null;
@@ -6784,7 +8066,7 @@ declare const _func: () => {
6784
8066
  productLink: string | null;
6785
8067
  quantity: number | null;
6786
8068
  country: string | null;
6787
- productStatus: "draft" | "published" | "review" | "cancelled";
8069
+ productStatus: "draft" | "review" | "published" | "cancelled";
6788
8070
  productType: "regular" | "gift";
6789
8071
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
6790
8072
  rating: number | null;
@@ -7013,7 +8295,7 @@ declare const _func: () => {
7013
8295
  createdBy: string;
7014
8296
  quantity: number | null;
7015
8297
  country: string | null;
7016
- productStatus: "draft" | "published" | "review" | "cancelled";
8298
+ productStatus: "draft" | "review" | "published" | "cancelled";
7017
8299
  productType: "regular" | "gift";
7018
8300
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
7019
8301
  preOrderStartDate: Date | null;
@@ -7079,9 +8361,9 @@ declare const _func: () => {
7079
8361
  headers?: {} | undefined;
7080
8362
  query?: {
7081
8363
  search?: string | undefined;
7082
- page?: number | undefined;
7083
8364
  inventoryStatus?: EProductInventoryStatus[] | undefined;
7084
8365
  limit?: number | undefined;
8366
+ page?: number | undefined;
7085
8367
  } | undefined;
7086
8368
  } | undefined) => Promise<Treaty.TreatyResponse<{
7087
8369
  200: {
@@ -7101,7 +8383,7 @@ declare const _func: () => {
7101
8383
  retailCost: number | null;
7102
8384
  quantity: number | null;
7103
8385
  country: string | null;
7104
- productStatus: "draft" | "published" | "review" | "cancelled";
8386
+ productStatus: "draft" | "review" | "published" | "cancelled";
7105
8387
  inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
7106
8388
  medias: {
7107
8389
  mediaUuid: string;
@@ -8522,7 +9804,7 @@ declare const _func: () => {
8522
9804
  createdBy: string;
8523
9805
  name: string;
8524
9806
  slug: string;
8525
- productStatus: "draft" | "published" | "review" | "cancelled";
9807
+ productStatus: "draft" | "review" | "published" | "cancelled";
8526
9808
  createdAt: Date | null;
8527
9809
  updatedAt: Date | null;
8528
9810
  };
@@ -9539,8 +10821,8 @@ declare const _func: () => {
9539
10821
  headers?: {} | undefined;
9540
10822
  query?: {
9541
10823
  search?: string | undefined;
9542
- page?: number | undefined;
9543
10824
  limit?: number | undefined;
10825
+ page?: number | undefined;
9544
10826
  } | undefined;
9545
10827
  } | undefined) => Promise<Treaty.TreatyResponse<{
9546
10828
  200: {
@@ -11180,7 +12462,7 @@ declare const _func: () => {
11180
12462
  '~path': string;
11181
12463
  };
11182
12464
  };
11183
- type TClient = ReturnType<typeof _func>;
12465
+ type TClient = ReturnType<typeof _createClient>;
11184
12466
  type TUser = Treaty.Data<Awaited<ReturnType<TClient['admin']['v1']['auth']['me']['get']>>>['data'];
11185
12467
  type Config = {
11186
12468
  baseURL: string;