@01.software/sdk 0.1.1 → 0.1.3

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.
@@ -17,15 +17,20 @@ interface Config {
17
17
  blocks: {
18
18
  Player: PlayerBlock;
19
19
  Iframe: IframeBlock;
20
+ Code: CodeBlock;
20
21
  };
21
22
  collections: {
22
23
  users: User;
23
24
  media: Media;
25
+ audiences: Audience;
26
+ 'email-logs': EmailLog;
24
27
  tenants: Tenant;
25
28
  'tenant-metadata': TenantMetadatum;
26
29
  'tenant-logos': TenantLogo;
27
30
  'tenant-og-images': TenantOgImage;
28
31
  'api-usage': ApiUsage;
32
+ subscriptions: Subscription;
33
+ 'billing-history': BillingHistory;
29
34
  products: Product;
30
35
  'product-variants': ProductVariant;
31
36
  'product-options': ProductOption;
@@ -85,11 +90,15 @@ interface Config {
85
90
  collectionsSelect: {
86
91
  users: UsersSelect<false> | UsersSelect<true>;
87
92
  media: MediaSelect<false> | MediaSelect<true>;
93
+ audiences: AudiencesSelect<false> | AudiencesSelect<true>;
94
+ 'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>;
88
95
  tenants: TenantsSelect<false> | TenantsSelect<true>;
89
96
  'tenant-metadata': TenantMetadataSelect<false> | TenantMetadataSelect<true>;
90
97
  'tenant-logos': TenantLogosSelect<false> | TenantLogosSelect<true>;
91
98
  'tenant-og-images': TenantOgImagesSelect<false> | TenantOgImagesSelect<true>;
92
99
  'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
100
+ subscriptions: SubscriptionsSelect<false> | SubscriptionsSelect<true>;
101
+ 'billing-history': BillingHistorySelect<false> | BillingHistorySelect<true>;
93
102
  products: ProductsSelect<false> | ProductsSelect<true>;
94
103
  'product-variants': ProductVariantsSelect<false> | ProductVariantsSelect<true>;
95
104
  'product-options': ProductOptionsSelect<false> | ProductOptionsSelect<true>;
@@ -180,6 +189,17 @@ interface IframeBlock {
180
189
  blockName?: string | null;
181
190
  blockType: 'Iframe';
182
191
  }
192
+ /**
193
+ * This interface was referenced by `Config`'s JSON-Schema
194
+ * via the `definition` "CodeBlock".
195
+ */
196
+ interface CodeBlock {
197
+ language?: ('typescript' | 'javascript' | 'tsx' | 'python' | 'html' | 'css' | 'json' | 'bash' | 'sql' | 'graphql' | 'yaml' | 'markdown' | 'go' | 'rust' | 'java' | 'plaintext') | null;
198
+ code: string;
199
+ id?: string | null;
200
+ blockName?: string | null;
201
+ blockType: 'Code';
202
+ }
183
203
  /**
184
204
  * This interface was referenced by `Config`'s JSON-Schema
185
205
  * via the `definition` "users".
@@ -192,6 +212,9 @@ interface User {
192
212
  roles: ('tenant-admin' | 'tenant-viewer')[];
193
213
  id?: string | null;
194
214
  }[] | null;
215
+ emailPreferences?: {
216
+ usageAlerts?: boolean | null;
217
+ };
195
218
  updatedAt: string;
196
219
  createdAt: string;
197
220
  email: string;
@@ -199,6 +222,8 @@ interface User {
199
222
  resetPasswordExpiration?: string | null;
200
223
  salt?: string | null;
201
224
  hash?: string | null;
225
+ _verified?: boolean | null;
226
+ _verificationToken?: string | null;
202
227
  loginAttempts?: number | null;
203
228
  lockUntil?: string | null;
204
229
  sessions?: {
@@ -217,7 +242,7 @@ interface Tenant {
217
242
  name: string;
218
243
  domain?: string | null;
219
244
  features?: ('ecommerce' | 'playlists' | 'links' | 'forms' | 'galleries' | 'posts' | 'documents')[] | null;
220
- plan: 'free' | 'basic' | 'pro' | 'enterprise';
245
+ plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
221
246
  clientKey: string;
222
247
  secretKeys?: {
223
248
  name: string;
@@ -257,6 +282,42 @@ interface Media {
257
282
  focalX?: number | null;
258
283
  focalY?: number | null;
259
284
  }
285
+ /**
286
+ * This interface was referenced by `Config`'s JSON-Schema
287
+ * via the `definition` "audiences".
288
+ */
289
+ interface Audience {
290
+ id: number;
291
+ email: string;
292
+ firstName?: string | null;
293
+ lastName?: string | null;
294
+ status: 'subscribed' | 'unsubscribed';
295
+ source: 'newsletter' | 'manual';
296
+ subscribedAt?: string | null;
297
+ unsubscribedAt?: string | null;
298
+ /**
299
+ * Resend Contact ID (auto-synced)
300
+ */
301
+ resendContactId?: string | null;
302
+ updatedAt: string;
303
+ createdAt: string;
304
+ }
305
+ /**
306
+ * This interface was referenced by `Config`'s JSON-Schema
307
+ * via the `definition` "email-logs".
308
+ */
309
+ interface EmailLog {
310
+ id: number;
311
+ to: string;
312
+ from?: string | null;
313
+ subject: string;
314
+ type: 'usage-alert' | 'verification' | 'password-reset' | 'newsletter' | 'other';
315
+ status: 'sent' | 'failed';
316
+ sentAt: string;
317
+ error?: string | null;
318
+ updatedAt: string;
319
+ createdAt: string;
320
+ }
260
321
  /**
261
322
  * This interface was referenced by `Config`'s JSON-Schema
262
323
  * via the `definition` "tenant-metadata".
@@ -442,6 +503,64 @@ interface BrandLogo {
442
503
  height?: number | null;
443
504
  focalX?: number | null;
444
505
  focalY?: number | null;
506
+ sizes?: {
507
+ '16'?: {
508
+ url?: string | null;
509
+ width?: number | null;
510
+ height?: number | null;
511
+ mimeType?: string | null;
512
+ filesize?: number | null;
513
+ filename?: string | null;
514
+ };
515
+ '32'?: {
516
+ url?: string | null;
517
+ width?: number | null;
518
+ height?: number | null;
519
+ mimeType?: string | null;
520
+ filesize?: number | null;
521
+ filename?: string | null;
522
+ };
523
+ '64'?: {
524
+ url?: string | null;
525
+ width?: number | null;
526
+ height?: number | null;
527
+ mimeType?: string | null;
528
+ filesize?: number | null;
529
+ filename?: string | null;
530
+ };
531
+ '128'?: {
532
+ url?: string | null;
533
+ width?: number | null;
534
+ height?: number | null;
535
+ mimeType?: string | null;
536
+ filesize?: number | null;
537
+ filename?: string | null;
538
+ };
539
+ '180'?: {
540
+ url?: string | null;
541
+ width?: number | null;
542
+ height?: number | null;
543
+ mimeType?: string | null;
544
+ filesize?: number | null;
545
+ filename?: string | null;
546
+ };
547
+ '192'?: {
548
+ url?: string | null;
549
+ width?: number | null;
550
+ height?: number | null;
551
+ mimeType?: string | null;
552
+ filesize?: number | null;
553
+ filename?: string | null;
554
+ };
555
+ '512'?: {
556
+ url?: string | null;
557
+ width?: number | null;
558
+ height?: number | null;
559
+ mimeType?: string | null;
560
+ filesize?: number | null;
561
+ filename?: string | null;
562
+ };
563
+ };
445
564
  }
446
565
  /**
447
566
  * This interface was referenced by `Config`'s JSON-Schema
@@ -515,11 +634,143 @@ interface ApiUsage {
515
634
  */
516
635
  month: string;
517
636
  count: number;
518
- plan: 'free' | 'basic' | 'pro' | 'enterprise';
637
+ plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
519
638
  /**
520
639
  * -1 means unlimited
521
640
  */
522
641
  limit: number;
642
+ /**
643
+ * Storage usage in bytes
644
+ */
645
+ storageUsed?: number | null;
646
+ /**
647
+ * Storage limit in bytes (-1 means unlimited)
648
+ */
649
+ storageLimit?: number | null;
650
+ /**
651
+ * Total document count across all tenant-scoped collections
652
+ */
653
+ totalDocuments?: number | null;
654
+ updatedAt: string;
655
+ createdAt: string;
656
+ }
657
+ /**
658
+ * This interface was referenced by `Config`'s JSON-Schema
659
+ * via the `definition` "subscriptions".
660
+ */
661
+ interface Subscription {
662
+ id: number;
663
+ provider: 'toss' | 'polar';
664
+ currency: 'KRW' | 'USD';
665
+ tenant: number | Tenant;
666
+ plan: 'starter' | 'basic' | 'pro';
667
+ billingCycle: 'monthly' | 'yearly';
668
+ /**
669
+ * 결제 금액 (KRW)
670
+ */
671
+ amount: number;
672
+ status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
673
+ /**
674
+ * 토스 빌링키 (AES-256-GCM 암호화)
675
+ */
676
+ billingKey?: string | null;
677
+ /**
678
+ * 토스 고객키 (UUID)
679
+ */
680
+ customerKey?: string | null;
681
+ /**
682
+ * 등록된 카드 정보
683
+ */
684
+ cardInfo?: {
685
+ issuerCode?: string | null;
686
+ /**
687
+ * 마스킹된 카드번호
688
+ */
689
+ number?: string | null;
690
+ cardType?: string | null;
691
+ };
692
+ /**
693
+ * Polar subscription ID
694
+ */
695
+ polarSubscriptionId?: string | null;
696
+ /**
697
+ * Polar customer ID
698
+ */
699
+ polarCustomerId?: string | null;
700
+ /**
701
+ * Polar product ID
702
+ */
703
+ polarProductId?: string | null;
704
+ currentPeriodStart?: string | null;
705
+ currentPeriodEnd?: string | null;
706
+ nextBillingDate?: string | null;
707
+ cancelAtPeriodEnd?: boolean | null;
708
+ canceledAt?: string | null;
709
+ cancelReason?: string | null;
710
+ retryCount?: number | null;
711
+ graceDeadline?: string | null;
712
+ lastPaymentError?: string | null;
713
+ pendingPlanChange?: {
714
+ targetPlan?: ('starter' | 'basic' | 'pro') | null;
715
+ targetAmount?: number | null;
716
+ effectiveDate?: string | null;
717
+ };
718
+ updatedAt: string;
719
+ createdAt: string;
720
+ }
721
+ /**
722
+ * This interface was referenced by `Config`'s JSON-Schema
723
+ * via the `definition` "billing-history".
724
+ */
725
+ interface BillingHistory {
726
+ id: number;
727
+ provider: 'toss' | 'polar';
728
+ currency: 'KRW' | 'USD';
729
+ tenant: number | Tenant;
730
+ subscription?: (number | null) | Subscription;
731
+ type: 'payment' | 'refund' | 'plan_change';
732
+ status: 'success' | 'failed' | 'refunded' | 'partial_refund';
733
+ /**
734
+ * 금액 (KRW)
735
+ */
736
+ amount: number;
737
+ /**
738
+ * 토스 결제키
739
+ */
740
+ paymentKey?: string | null;
741
+ /**
742
+ * 고유 주문번호
743
+ */
744
+ orderId: string;
745
+ orderName?: string | null;
746
+ /**
747
+ * 결제 시점 플랜
748
+ */
749
+ plan?: string | null;
750
+ billingCycle?: ('monthly' | 'yearly') | null;
751
+ periodStart?: string | null;
752
+ periodEnd?: string | null;
753
+ /**
754
+ * 토스 API 전체 응답
755
+ */
756
+ tossResponse?: {
757
+ [k: string]: unknown;
758
+ } | unknown[] | string | number | boolean | null;
759
+ /**
760
+ * Polar order ID
761
+ */
762
+ polarOrderId?: string | null;
763
+ /**
764
+ * Polar API 전체 응답
765
+ */
766
+ polarResponse?: {
767
+ [k: string]: unknown;
768
+ } | unknown[] | string | number | boolean | null;
769
+ errorMessage?: string | null;
770
+ /**
771
+ * 재시도 원본 결제 내역
772
+ */
773
+ retryOf?: (number | null) | BillingHistory;
523
774
  updatedAt: string;
524
775
  createdAt: string;
525
776
  }
@@ -1336,22 +1587,15 @@ interface GalleryImage {
1336
1587
  */
1337
1588
  interface Form {
1338
1589
  id: number;
1590
+ tenant?: (number | null) | Tenant;
1339
1591
  title: string;
1340
- description?: {
1341
- root: {
1342
- type: string;
1343
- children: {
1344
- type: any;
1345
- version: number;
1346
- [k: string]: unknown;
1347
- }[];
1348
- direction: ('ltr' | 'rtl') | null;
1349
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1350
- indent: number;
1351
- version: number;
1352
- };
1353
- [k: string]: unknown;
1354
- } | null;
1592
+ description?: string | null;
1593
+ status: 'active' | 'inactive';
1594
+ /**
1595
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
1596
+ */
1597
+ generateSlug?: boolean | null;
1598
+ slug?: string | null;
1355
1599
  fields?: ({
1356
1600
  name: string;
1357
1601
  label?: string | null;
@@ -1510,6 +1754,7 @@ interface Form {
1510
1754
  */
1511
1755
  interface FormSubmission {
1512
1756
  id: number;
1757
+ tenant?: (number | null) | Tenant;
1513
1758
  form: number | Form;
1514
1759
  submissionData?: {
1515
1760
  field: string;
@@ -1542,6 +1787,12 @@ interface PayloadLockedDocument {
1542
1787
  } | null) | ({
1543
1788
  relationTo: 'media';
1544
1789
  value: number | Media;
1790
+ } | null) | ({
1791
+ relationTo: 'audiences';
1792
+ value: number | Audience;
1793
+ } | null) | ({
1794
+ relationTo: 'email-logs';
1795
+ value: number | EmailLog;
1545
1796
  } | null) | ({
1546
1797
  relationTo: 'tenants';
1547
1798
  value: number | Tenant;
@@ -1557,6 +1808,12 @@ interface PayloadLockedDocument {
1557
1808
  } | null) | ({
1558
1809
  relationTo: 'api-usage';
1559
1810
  value: number | ApiUsage;
1811
+ } | null) | ({
1812
+ relationTo: 'subscriptions';
1813
+ value: number | Subscription;
1814
+ } | null) | ({
1815
+ relationTo: 'billing-history';
1816
+ value: number | BillingHistory;
1560
1817
  } | null) | ({
1561
1818
  relationTo: 'products';
1562
1819
  value: number | Product;
@@ -1689,6 +1946,9 @@ interface UsersSelect<T extends boolean = true> {
1689
1946
  roles?: T;
1690
1947
  id?: T;
1691
1948
  };
1949
+ emailPreferences?: T | {
1950
+ usageAlerts?: T;
1951
+ };
1692
1952
  updatedAt?: T;
1693
1953
  createdAt?: T;
1694
1954
  email?: T;
@@ -1696,6 +1956,8 @@ interface UsersSelect<T extends boolean = true> {
1696
1956
  resetPasswordExpiration?: T;
1697
1957
  salt?: T;
1698
1958
  hash?: T;
1959
+ _verified?: T;
1960
+ _verificationToken?: T;
1699
1961
  loginAttempts?: T;
1700
1962
  lockUntil?: T;
1701
1963
  sessions?: T | {
@@ -1726,6 +1988,37 @@ interface MediaSelect<T extends boolean = true> {
1726
1988
  focalX?: T;
1727
1989
  focalY?: T;
1728
1990
  }
1991
+ /**
1992
+ * This interface was referenced by `Config`'s JSON-Schema
1993
+ * via the `definition` "audiences_select".
1994
+ */
1995
+ interface AudiencesSelect<T extends boolean = true> {
1996
+ email?: T;
1997
+ firstName?: T;
1998
+ lastName?: T;
1999
+ status?: T;
2000
+ source?: T;
2001
+ subscribedAt?: T;
2002
+ unsubscribedAt?: T;
2003
+ resendContactId?: T;
2004
+ updatedAt?: T;
2005
+ createdAt?: T;
2006
+ }
2007
+ /**
2008
+ * This interface was referenced by `Config`'s JSON-Schema
2009
+ * via the `definition` "email-logs_select".
2010
+ */
2011
+ interface EmailLogsSelect<T extends boolean = true> {
2012
+ to?: T;
2013
+ from?: T;
2014
+ subject?: T;
2015
+ type?: T;
2016
+ status?: T;
2017
+ sentAt?: T;
2018
+ error?: T;
2019
+ updatedAt?: T;
2020
+ createdAt?: T;
2021
+ }
1729
2022
  /**
1730
2023
  * This interface was referenced by `Config`'s JSON-Schema
1731
2024
  * via the `definition` "tenants_select".
@@ -1869,6 +2162,75 @@ interface ApiUsageSelect<T extends boolean = true> {
1869
2162
  count?: T;
1870
2163
  plan?: T;
1871
2164
  limit?: T;
2165
+ storageUsed?: T;
2166
+ storageLimit?: T;
2167
+ totalDocuments?: T;
2168
+ updatedAt?: T;
2169
+ createdAt?: T;
2170
+ }
2171
+ /**
2172
+ * This interface was referenced by `Config`'s JSON-Schema
2173
+ * via the `definition` "subscriptions_select".
2174
+ */
2175
+ interface SubscriptionsSelect<T extends boolean = true> {
2176
+ provider?: T;
2177
+ currency?: T;
2178
+ tenant?: T;
2179
+ plan?: T;
2180
+ billingCycle?: T;
2181
+ amount?: T;
2182
+ status?: T;
2183
+ billingKey?: T;
2184
+ customerKey?: T;
2185
+ cardInfo?: T | {
2186
+ issuerCode?: T;
2187
+ number?: T;
2188
+ cardType?: T;
2189
+ };
2190
+ polarSubscriptionId?: T;
2191
+ polarCustomerId?: T;
2192
+ polarProductId?: T;
2193
+ currentPeriodStart?: T;
2194
+ currentPeriodEnd?: T;
2195
+ nextBillingDate?: T;
2196
+ cancelAtPeriodEnd?: T;
2197
+ canceledAt?: T;
2198
+ cancelReason?: T;
2199
+ retryCount?: T;
2200
+ graceDeadline?: T;
2201
+ lastPaymentError?: T;
2202
+ pendingPlanChange?: T | {
2203
+ targetPlan?: T;
2204
+ targetAmount?: T;
2205
+ effectiveDate?: T;
2206
+ };
2207
+ updatedAt?: T;
2208
+ createdAt?: T;
2209
+ }
2210
+ /**
2211
+ * This interface was referenced by `Config`'s JSON-Schema
2212
+ * via the `definition` "billing-history_select".
2213
+ */
2214
+ interface BillingHistorySelect<T extends boolean = true> {
2215
+ provider?: T;
2216
+ currency?: T;
2217
+ tenant?: T;
2218
+ subscription?: T;
2219
+ type?: T;
2220
+ status?: T;
2221
+ amount?: T;
2222
+ paymentKey?: T;
2223
+ orderId?: T;
2224
+ orderName?: T;
2225
+ plan?: T;
2226
+ billingCycle?: T;
2227
+ periodStart?: T;
2228
+ periodEnd?: T;
2229
+ tossResponse?: T;
2230
+ polarOrderId?: T;
2231
+ polarResponse?: T;
2232
+ errorMessage?: T;
2233
+ retryOf?: T;
1872
2234
  updatedAt?: T;
1873
2235
  createdAt?: T;
1874
2236
  }
@@ -2057,6 +2419,64 @@ interface BrandLogosSelect<T extends boolean = true> {
2057
2419
  height?: T;
2058
2420
  focalX?: T;
2059
2421
  focalY?: T;
2422
+ sizes?: T | {
2423
+ '16'?: T | {
2424
+ url?: T;
2425
+ width?: T;
2426
+ height?: T;
2427
+ mimeType?: T;
2428
+ filesize?: T;
2429
+ filename?: T;
2430
+ };
2431
+ '32'?: T | {
2432
+ url?: T;
2433
+ width?: T;
2434
+ height?: T;
2435
+ mimeType?: T;
2436
+ filesize?: T;
2437
+ filename?: T;
2438
+ };
2439
+ '64'?: T | {
2440
+ url?: T;
2441
+ width?: T;
2442
+ height?: T;
2443
+ mimeType?: T;
2444
+ filesize?: T;
2445
+ filename?: T;
2446
+ };
2447
+ '128'?: T | {
2448
+ url?: T;
2449
+ width?: T;
2450
+ height?: T;
2451
+ mimeType?: T;
2452
+ filesize?: T;
2453
+ filename?: T;
2454
+ };
2455
+ '180'?: T | {
2456
+ url?: T;
2457
+ width?: T;
2458
+ height?: T;
2459
+ mimeType?: T;
2460
+ filesize?: T;
2461
+ filename?: T;
2462
+ };
2463
+ '192'?: T | {
2464
+ url?: T;
2465
+ width?: T;
2466
+ height?: T;
2467
+ mimeType?: T;
2468
+ filesize?: T;
2469
+ filename?: T;
2470
+ };
2471
+ '512'?: T | {
2472
+ url?: T;
2473
+ width?: T;
2474
+ height?: T;
2475
+ mimeType?: T;
2476
+ filesize?: T;
2477
+ filename?: T;
2478
+ };
2479
+ };
2060
2480
  }
2061
2481
  /**
2062
2482
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2502,8 +2922,12 @@ interface GalleryImagesSelect<T extends boolean = true> {
2502
2922
  * via the `definition` "forms_select".
2503
2923
  */
2504
2924
  interface FormsSelect<T extends boolean = true> {
2925
+ tenant?: T;
2505
2926
  title?: T;
2506
2927
  description?: T;
2928
+ status?: T;
2929
+ generateSlug?: T;
2930
+ slug?: T;
2507
2931
  fields?: T | {
2508
2932
  checkbox?: T | {
2509
2933
  name?: T;
@@ -2611,6 +3035,7 @@ interface FormsSelect<T extends boolean = true> {
2611
3035
  * via the `definition` "form-submissions_select".
2612
3036
  */
2613
3037
  interface FormSubmissionsSelect<T extends boolean = true> {
3038
+ tenant?: T;
2614
3039
  form?: T;
2615
3040
  submissionData?: T | {
2616
3041
  field?: T;
@@ -2672,4 +3097,4 @@ declare module 'payload' {
2672
3097
  }
2673
3098
  }
2674
3099
 
2675
- export type { ProductOptionsSelect as $, ApiUsage as A, BrandLogo as B, Config as C, Document as D, PayloadKv as E, Form as F, Gallery as G, PayloadLockedDocument as H, IframeBlock as I, PayloadPreference as J, PayloadMigration as K, UsersSelect as L, Media as M, MediaSelect as N, Order as O, ProductOption as P, TenantsSelect as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, TenantMetadataSelect as V, TenantLogosSelect as W, TenantOgImagesSelect as X, ApiUsageSelect as Y, ProductsSelect as Z, ProductVariantsSelect as _, OrderProduct as a, ProductCategoriesSelect as a0, ProductTagsSelect as a1, ProductImagesSelect as a2, BrandsSelect as a3, BrandLogosSelect as a4, OrdersSelect as a5, OrderProductsSelect as a6, ReturnsSelect as a7, ReturnProductsSelect as a8, TransactionsSelect as a9, PostsSelect as aa, PostCategoriesSelect as ab, PostTagsSelect as ac, PostImagesSelect as ad, AuthorsSelect as ae, DocumentsSelect as af, DocumentCategoriesSelect as ag, DocumentImagesSelect as ah, PlaylistsSelect as ai, PlaylistImagesSelect as aj, MusicsSelect as ak, GalleriesSelect as al, GalleryImagesSelect as am, FormsSelect as an, FormSubmissionsSelect as ao, PayloadKvSelect as ap, PayloadLockedDocumentsSelect as aq, PayloadPreferencesSelect as ar, PayloadMigrationsSelect as as, Auth as at, PlayerBlock as b, User as c, Tenant as d, TenantMetadatum as e, TenantOgImage as f, TenantLogo as g, Product as h, ProductImage as i, ProductCategory as j, ProductTag as k, Brand as l, ProductVariant as m, ReturnProduct as n, Post as o, PostImage as p, Author as q, PostCategory as r, PostTag as s, DocumentCategory as t, DocumentImage as u, Playlist as v, PlaylistImage as w, Music as x, GalleryImage as y, FormSubmission as z };
3100
+ export type { TenantsSelect as $, Audience as A, BrandLogo as B, Config as C, Document as D, EmailLog as E, PlaylistImage as F, Music as G, Gallery as H, IframeBlock as I, GalleryImage as J, Form as K, FormSubmission as L, Media as M, PayloadKv as N, Order as O, ProductOption as P, PayloadLockedDocument as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PayloadPreference as V, PayloadMigration as W, UsersSelect as X, MediaSelect as Y, AudiencesSelect as Z, EmailLogsSelect as _, OrderProduct as a, TenantMetadataSelect as a0, TenantLogosSelect as a1, TenantOgImagesSelect as a2, ApiUsageSelect as a3, SubscriptionsSelect as a4, BillingHistorySelect as a5, ProductsSelect as a6, ProductVariantsSelect as a7, ProductOptionsSelect as a8, ProductCategoriesSelect as a9, PayloadPreferencesSelect as aA, PayloadMigrationsSelect as aB, Auth as aC, ProductTagsSelect as aa, ProductImagesSelect as ab, BrandsSelect as ac, BrandLogosSelect as ad, OrdersSelect as ae, OrderProductsSelect as af, ReturnsSelect as ag, ReturnProductsSelect as ah, TransactionsSelect as ai, PostsSelect as aj, PostCategoriesSelect as ak, PostTagsSelect as al, PostImagesSelect as am, AuthorsSelect as an, DocumentsSelect as ao, DocumentCategoriesSelect as ap, DocumentImagesSelect as aq, PlaylistsSelect as ar, PlaylistImagesSelect as as, MusicsSelect as at, GalleriesSelect as au, GalleryImagesSelect as av, FormsSelect as aw, FormSubmissionsSelect as ax, PayloadKvSelect as ay, PayloadLockedDocumentsSelect as az, PlayerBlock as b, CodeBlock as c, User as d, Tenant as e, TenantMetadatum as f, TenantOgImage as g, TenantLogo as h, ApiUsage as i, Subscription as j, BillingHistory as k, Product as l, ProductImage as m, ProductCategory as n, ProductTag as o, Brand as p, ProductVariant as q, ReturnProduct as r, Post as s, PostImage as t, Author as u, PostCategory as v, PostTag as w, DocumentCategory as x, DocumentImage as y, Playlist as z };
@@ -1,4 +1,4 @@
1
- import { C as Config } from './payload-types-BE-5_Y2d.js';
1
+ import { C as Config } from './payload-types-D-pPck9V.js';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -6,20 +6,15 @@ import { C as Config } from './payload-types-BE-5_Y2d.js';
6
6
  */
7
7
  type Collection = keyof Config['collections'];
8
8
  /**
9
- * Internal Payload collections that should not be exposed via SDK.
9
+ * Array of all public collection names for runtime use (e.g., Zod enum validation).
10
+ * This is the single source of truth for which collections are publicly accessible via SDK.
10
11
  */
11
- declare const INTERNAL_COLLECTIONS: readonly ["users", "payload-kv", "payload-locked-documents", "payload-preferences", "payload-migrations"];
12
- type InternalCollection = (typeof INTERNAL_COLLECTIONS)[number];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "transactions", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "galleries", "gallery-images", "forms", "form-submissions", "media"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
- * Excludes internal Payload system collections.
16
- */
17
- type PublicCollection = Exclude<Collection, InternalCollection>;
18
- /**
19
- * Array of all public collection names for runtime use (e.g., Zod enum validation).
20
- * This is derived from Config to ensure type safety.
15
+ * Derived from the COLLECTIONS array (single source of truth).
21
16
  */
22
- declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "transactions", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "galleries", "gallery-images", "forms", "form-submissions", "media"];
17
+ type PublicCollection = (typeof COLLECTIONS)[number];
23
18
 
24
19
  type CollectionType<T extends Collection> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
25
20
 
@@ -37,4 +32,4 @@ declare function isValidWebhookEvent(data: unknown): data is WebhookEvent;
37
32
  declare function handleWebhook<T extends Collection = Collection>(request: Request, handler: WebhookHandler<T>, options?: WebhookOptions): Promise<Response>;
38
33
  declare function createTypedWebhookHandler<T extends Collection>(collection: T, handler: (event: WebhookEvent<T>) => Promise<void> | void): WebhookHandler<T>;
39
34
 
40
- export { type Collection as C, type PublicCollection as P, type WebhookOperation as W, type CollectionType as a, COLLECTIONS as b, type WebhookEvent as c, type WebhookHandler as d, type WebhookOptions as e, createTypedWebhookHandler as f, handleWebhook as h, isValidWebhookEvent as i };
35
+ export { type CollectionType as C, type PublicCollection as P, type WebhookOperation as W, type Collection as a, COLLECTIONS as b, type WebhookEvent as c, type WebhookHandler as d, type WebhookOptions as e, createTypedWebhookHandler as f, handleWebhook as h, isValidWebhookEvent as i };