@01.software/sdk 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +23 -25
  2. package/dist/{const-dv0zuAxG.d.cts → const-Dmgge6oQ.d.ts} +2 -2
  3. package/dist/{const-CCh99Gxu.d.ts → const-k0fqIBda.d.cts} +2 -2
  4. package/dist/index.cjs +52 -167
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +22 -34
  7. package/dist/index.d.ts +22 -34
  8. package/dist/index.js +52 -167
  9. package/dist/index.js.map +1 -1
  10. package/dist/{payload-types-FfZ2Zxp1.d.cts → payload-types-D0zFPijW.d.cts} +306 -112
  11. package/dist/{payload-types-FfZ2Zxp1.d.ts → payload-types-D0zFPijW.d.ts} +306 -112
  12. package/dist/{realtime-DupPIYx-.d.cts → realtime-D7HtUpqt.d.cts} +2 -2
  13. package/dist/{realtime-DupPIYx-.d.ts → realtime-D7HtUpqt.d.ts} +2 -2
  14. package/dist/realtime.cjs +8 -7
  15. package/dist/realtime.cjs.map +1 -1
  16. package/dist/realtime.d.cts +6 -6
  17. package/dist/realtime.d.ts +6 -6
  18. package/dist/realtime.js +8 -7
  19. package/dist/realtime.js.map +1 -1
  20. package/dist/{server-DxhuG-_s.d.cts → server-JR9TvKZ5.d.cts} +0 -2
  21. package/dist/{server-DxhuG-_s.d.ts → server-JR9TvKZ5.d.ts} +0 -2
  22. package/dist/ui/canvas/server.cjs +1 -2
  23. package/dist/ui/canvas/server.cjs.map +1 -1
  24. package/dist/ui/canvas/server.d.cts +1 -1
  25. package/dist/ui/canvas/server.d.ts +1 -1
  26. package/dist/ui/canvas/server.js +1 -2
  27. package/dist/ui/canvas/server.js.map +1 -1
  28. package/dist/ui/canvas.cjs +1 -2
  29. package/dist/ui/canvas.cjs.map +1 -1
  30. package/dist/ui/canvas.d.cts +2 -2
  31. package/dist/ui/canvas.d.ts +2 -2
  32. package/dist/ui/canvas.js +1 -2
  33. package/dist/ui/canvas.js.map +1 -1
  34. package/dist/ui/form.d.cts +1 -1
  35. package/dist/ui/form.d.ts +1 -1
  36. package/dist/ui/video.d.cts +1 -1
  37. package/dist/ui/video.d.ts +1 -1
  38. package/dist/{webhook-t7JGFLKQ.d.cts → webhook-DXr8B9E6.d.cts} +2 -2
  39. package/dist/{webhook-B9MDrH22.d.ts → webhook-caDRhnd7.d.ts} +2 -2
  40. package/dist/webhook.d.cts +3 -3
  41. package/dist/webhook.d.ts +3 -3
  42. package/package.json +1 -11
  43. package/dist/auth.cjs +0 -109
  44. package/dist/auth.cjs.map +0 -1
  45. package/dist/auth.d.cts +0 -36
  46. package/dist/auth.d.ts +0 -36
  47. package/dist/auth.js +0 -86
  48. package/dist/auth.js.map +0 -1
@@ -1,15 +1,3 @@
1
- /**
2
- * This file was automatically generated by Payload.
3
- * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
4
- * and re-run `payload generate:types` to regenerate this file.
5
- */
6
- /**
7
- * Supported timezones in IANA format.
8
- *
9
- * This interface was referenced by `Config`'s JSON-Schema
10
- * via the `definition` "supportedTimezones".
11
- */
12
- type SupportedTimezones = 'Pacific/Midway' | 'Pacific/Niue' | 'Pacific/Honolulu' | 'Pacific/Rarotonga' | 'America/Anchorage' | 'Pacific/Gambier' | 'America/Los_Angeles' | 'America/Tijuana' | 'America/Denver' | 'America/Phoenix' | 'America/Chicago' | 'America/Guatemala' | 'America/New_York' | 'America/Bogota' | 'America/Caracas' | 'America/Santiago' | 'America/Buenos_Aires' | 'America/Sao_Paulo' | 'Atlantic/South_Georgia' | 'Atlantic/Azores' | 'Atlantic/Cape_Verde' | 'Europe/London' | 'Europe/Berlin' | 'Africa/Lagos' | 'Europe/Athens' | 'Africa/Cairo' | 'Europe/Moscow' | 'Asia/Riyadh' | 'Asia/Dubai' | 'Asia/Baku' | 'Asia/Karachi' | 'Asia/Tashkent' | 'Asia/Calcutta' | 'Asia/Dhaka' | 'Asia/Almaty' | 'Asia/Jakarta' | 'Asia/Bangkok' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Tokyo' | 'Asia/Seoul' | 'Australia/Brisbane' | 'Australia/Sydney' | 'Pacific/Guam' | 'Pacific/Noumea' | 'Pacific/Auckland' | 'Pacific/Fiji';
13
1
  interface Config {
14
2
  auth: {
15
3
  users: UserAuthOperations;
@@ -27,6 +15,8 @@ interface Config {
27
15
  'system-media': SystemMedia;
28
16
  audiences: Audience;
29
17
  'email-logs': EmailLog;
18
+ 'api-keys': ApiKey;
19
+ 'personal-access-tokens': PersonalAccessToken;
30
20
  tenants: Tenant;
31
21
  'tenant-metadata': TenantMetadatum;
32
22
  'api-usage': ApiUsage;
@@ -67,9 +57,11 @@ interface Config {
67
57
  playlists: Playlist;
68
58
  'playlist-categories': PlaylistCategory;
69
59
  'playlist-tags': PlaylistTag;
70
- musics: Music;
71
- 'music-categories': MusicCategory;
72
- 'music-tags': MusicTag;
60
+ tracks: Track;
61
+ 'track-assets': TrackAsset;
62
+ 'playlist-tracks': PlaylistTrack;
63
+ 'track-categories': TrackCategory;
64
+ 'track-tags': TrackTag;
73
65
  galleries: Gallery;
74
66
  'gallery-categories': GalleryCategory;
75
67
  'gallery-tags': GalleryTag;
@@ -139,7 +131,10 @@ interface Config {
139
131
  posts: 'posts';
140
132
  };
141
133
  playlists: {
142
- tracks: 'musics';
134
+ items: 'playlist-tracks';
135
+ };
136
+ tracks: {
137
+ playlistEntries: 'playlist-tracks';
143
138
  };
144
139
  galleries: {
145
140
  items: 'gallery-items';
@@ -155,6 +150,8 @@ interface Config {
155
150
  'system-media': SystemMediaSelect<false> | SystemMediaSelect<true>;
156
151
  audiences: AudiencesSelect<false> | AudiencesSelect<true>;
157
152
  'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>;
153
+ 'api-keys': ApiKeysSelect<false> | ApiKeysSelect<true>;
154
+ 'personal-access-tokens': PersonalAccessTokensSelect<false> | PersonalAccessTokensSelect<true>;
158
155
  tenants: TenantsSelect<false> | TenantsSelect<true>;
159
156
  'tenant-metadata': TenantMetadataSelect<false> | TenantMetadataSelect<true>;
160
157
  'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
@@ -195,9 +192,11 @@ interface Config {
195
192
  playlists: PlaylistsSelect<false> | PlaylistsSelect<true>;
196
193
  'playlist-categories': PlaylistCategoriesSelect<false> | PlaylistCategoriesSelect<true>;
197
194
  'playlist-tags': PlaylistTagsSelect<false> | PlaylistTagsSelect<true>;
198
- musics: MusicsSelect<false> | MusicsSelect<true>;
199
- 'music-categories': MusicCategoriesSelect<false> | MusicCategoriesSelect<true>;
200
- 'music-tags': MusicTagsSelect<false> | MusicTagsSelect<true>;
195
+ tracks: TracksSelect<false> | TracksSelect<true>;
196
+ 'track-assets': TrackAssetsSelect<false> | TrackAssetsSelect<true>;
197
+ 'playlist-tracks': PlaylistTracksSelect<false> | PlaylistTracksSelect<true>;
198
+ 'track-categories': TrackCategoriesSelect<false> | TrackCategoriesSelect<true>;
199
+ 'track-tags': TrackTagsSelect<false> | TrackTagsSelect<true>;
201
200
  galleries: GalleriesSelect<false> | GalleriesSelect<true>;
202
201
  'gallery-categories': GalleryCategoriesSelect<false> | GalleryCategoriesSelect<true>;
203
202
  'gallery-tags': GalleryTagsSelect<false> | GalleryTagsSelect<true>;
@@ -407,21 +406,10 @@ interface Tenant {
407
406
  origin: string;
408
407
  id?: string | null;
409
408
  }[] | null;
410
- clientKey: string;
411
- secretKeys?: {
412
- name: string;
413
- keyHash?: string | null;
414
- /**
415
- * First 8 characters of the key (identification only)
416
- */
417
- prefix?: string | null;
418
- /**
419
- * Last 4 characters of the key
420
- */
421
- last4?: string | null;
422
- lastUsedAt?: string | null;
423
- id?: string | null;
424
- }[] | null;
409
+ /**
410
+ * Publishable Key — safe to embed in browser code. Prefix: pk01_
411
+ */
412
+ publishableKey: string;
425
413
  /**
426
414
  * Webhook endpoints to notify on data changes.
427
415
  */
@@ -534,7 +522,7 @@ interface Image {
534
522
  interface FieldConfig {
535
523
  id: string;
536
524
  tenant?: (string | null) | Tenant;
537
- collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'threads' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'thread-categories';
525
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'playlist-tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'threads' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'thread-categories';
538
526
  isHidden?: boolean | null;
539
527
  hiddenFields?: {
540
528
  [k: string]: unknown;
@@ -619,6 +607,69 @@ interface EmailLog {
619
607
  updatedAt: string;
620
608
  createdAt: string;
621
609
  }
610
+ /**
611
+ * This interface was referenced by `Config`'s JSON-Schema
612
+ * via the `definition` "api-keys".
613
+ */
614
+ interface ApiKey {
615
+ id: string;
616
+ tenant: string | Tenant;
617
+ name: string;
618
+ secretHash: string;
619
+ /**
620
+ * Key prefix (e.g. sk01_ab12cd3)
621
+ */
622
+ displayPrefix: string;
623
+ displaySuffix: string;
624
+ /**
625
+ * Not enforced in v1. Reserved for future use. E.g. ["*"] or ["read:products", "write:orders"]
626
+ */
627
+ scopes?: {
628
+ [k: string]: unknown;
629
+ } | unknown[] | string | number | boolean | null;
630
+ createdBy?: (string | null) | User;
631
+ createdByIp?: string | null;
632
+ lastUsedAt?: string | null;
633
+ lastUsedIp?: string | null;
634
+ revokedAt?: string | null;
635
+ revokedBy?: (string | null) | User;
636
+ /**
637
+ * Optional expiration. Empty = never expires.
638
+ */
639
+ expiresAt?: string | null;
640
+ updatedAt: string;
641
+ createdAt: string;
642
+ }
643
+ /**
644
+ * This interface was referenced by `Config`'s JSON-Schema
645
+ * via the `definition` "personal-access-tokens".
646
+ */
647
+ interface PersonalAccessToken {
648
+ id: string;
649
+ user: string | User;
650
+ /**
651
+ * e.g. "CLI: MacBook Pro (darwin)", "GitHub Actions"
652
+ */
653
+ name: string;
654
+ secretHash: string;
655
+ displayPrefix: string;
656
+ displaySuffix: string;
657
+ /**
658
+ * Default tenant ID for CLI operations. Set via `01 tenant use <name>`.
659
+ */
660
+ defaultTenant?: string | null;
661
+ createdByIp?: string | null;
662
+ lastUsedAt?: string | null;
663
+ lastUsedIp?: string | null;
664
+ revokedAt?: string | null;
665
+ revokedBy?: (string | null) | User;
666
+ /**
667
+ * PATs expire after 90 days by default.
668
+ */
669
+ expiresAt?: string | null;
670
+ updatedAt: string;
671
+ createdAt: string;
672
+ }
622
673
  /**
623
674
  * This interface was referenced by `Config`'s JSON-Schema
624
675
  * via the `definition` "tenant-metadata".
@@ -1156,7 +1207,6 @@ interface Product {
1156
1207
  * Short summary for listing/cards
1157
1208
  */
1158
1209
  description?: string | null;
1159
- thumbnail?: (string | null) | Image;
1160
1210
  images?: (string | Image)[] | null;
1161
1211
  videos?: (string | Video)[] | null;
1162
1212
  content?: {
@@ -1240,6 +1290,7 @@ interface Product {
1240
1290
  image?: (string | null) | Image;
1241
1291
  };
1242
1292
  };
1293
+ thumbnail?: (string | null) | Image;
1243
1294
  /**
1244
1295
  * When enabled, the slug will auto-generate from the title field on save and autosave.
1245
1296
  */
@@ -1288,6 +1339,8 @@ interface Video {
1288
1339
  [k: string]: unknown;
1289
1340
  } | null;
1290
1341
  sourceLiveStream?: (string | null) | LiveStream;
1342
+ categories?: (string | VideoCategory)[] | null;
1343
+ tags?: (string | VideoTag)[] | null;
1291
1344
  muxStatus?: ('waiting' | 'preparing' | 'ready' | 'errored') | null;
1292
1345
  durationSeconds?: number | null;
1293
1346
  muxAspectRatio?: string | null;
@@ -1337,8 +1390,6 @@ interface Video {
1337
1390
  thumbnail?: (string | null) | Image;
1338
1391
  isFeatured?: boolean | null;
1339
1392
  publishedAt?: string | null;
1340
- categories?: (string | VideoCategory)[] | null;
1341
- tags?: (string | VideoTag)[] | null;
1342
1393
  metadata?: {
1343
1394
  [k: string]: unknown;
1344
1395
  } | unknown[] | string | number | boolean | null;
@@ -1496,6 +1547,8 @@ interface ProductVariant {
1496
1547
  tenant?: (string | null) | Tenant;
1497
1548
  product: string | Product;
1498
1549
  title?: string | null;
1550
+ thumbnail?: (string | null) | Image;
1551
+ images?: (string | Image)[] | null;
1499
1552
  /**
1500
1553
  * Variant-specific SKU
1501
1554
  */
@@ -1534,6 +1587,7 @@ interface ProductVariant {
1534
1587
  * Option value combination for this variant (e.g. Black + S)
1535
1588
  */
1536
1589
  optionValues?: (string | ProductOptionValue)[] | null;
1590
+ optionKey?: string | null;
1537
1591
  isActive?: boolean | null;
1538
1592
  metadata?: {
1539
1593
  [k: string]: unknown;
@@ -1810,7 +1864,6 @@ interface ProductCollection {
1810
1864
  };
1811
1865
  [k: string]: unknown;
1812
1866
  } | null;
1813
- thumbnail?: (string | null) | Image;
1814
1867
  images?: (string | Image)[] | null;
1815
1868
  products?: (string | Product)[] | null;
1816
1869
  seo?: {
@@ -1845,6 +1898,7 @@ interface ProductCollection {
1845
1898
  image?: (string | null) | Image;
1846
1899
  };
1847
1900
  };
1901
+ thumbnail?: (string | null) | Image;
1848
1902
  /**
1849
1903
  * When enabled, the slug will auto-generate from the title field on save and autosave.
1850
1904
  */
@@ -2718,6 +2772,7 @@ interface Document {
2718
2772
  keyword?: string | null;
2719
2773
  id?: string | null;
2720
2774
  }[] | null;
2775
+ categories?: (string | DocumentCategory)[] | null;
2721
2776
  seo?: {
2722
2777
  /**
2723
2778
  * Search result title (falls back to document title)
@@ -2756,7 +2811,6 @@ interface Document {
2756
2811
  generateSlug?: boolean | null;
2757
2812
  slug?: string | null;
2758
2813
  type?: (string | null) | DocumentType;
2759
- categories?: (string | DocumentCategory)[] | null;
2760
2814
  jurisdiction?: string | null;
2761
2815
  language?: string | null;
2762
2816
  /**
@@ -2777,9 +2831,9 @@ interface Document {
2777
2831
  }
2778
2832
  /**
2779
2833
  * This interface was referenced by `Config`'s JSON-Schema
2780
- * via the `definition` "document-types".
2834
+ * via the `definition` "document-categories".
2781
2835
  */
2782
- interface DocumentType {
2836
+ interface DocumentCategory {
2783
2837
  id: string;
2784
2838
  _order?: string | null;
2785
2839
  tenant?: (string | null) | Tenant;
@@ -2794,6 +2848,7 @@ interface DocumentType {
2794
2848
  */
2795
2849
  description?: string | null;
2796
2850
  image?: (string | null) | Image;
2851
+ parent?: (string | null) | DocumentCategory;
2797
2852
  color?: string | null;
2798
2853
  updatedAt: string;
2799
2854
  createdAt: string;
@@ -2801,9 +2856,9 @@ interface DocumentType {
2801
2856
  }
2802
2857
  /**
2803
2858
  * This interface was referenced by `Config`'s JSON-Schema
2804
- * via the `definition` "document-categories".
2859
+ * via the `definition` "document-types".
2805
2860
  */
2806
- interface DocumentCategory {
2861
+ interface DocumentType {
2807
2862
  id: string;
2808
2863
  _order?: string | null;
2809
2864
  tenant?: (string | null) | Tenant;
@@ -2818,7 +2873,6 @@ interface DocumentCategory {
2818
2873
  */
2819
2874
  description?: string | null;
2820
2875
  image?: (string | null) | Image;
2821
- parent?: (string | null) | DocumentCategory;
2822
2876
  color?: string | null;
2823
2877
  updatedAt: string;
2824
2878
  createdAt: string;
@@ -2840,8 +2894,8 @@ interface Playlist {
2840
2894
  videos?: (string | Video)[] | null;
2841
2895
  categories?: (string | PlaylistCategory)[] | null;
2842
2896
  tags?: (string | PlaylistTag)[] | null;
2843
- tracks?: {
2844
- docs?: (string | Music)[];
2897
+ items?: {
2898
+ docs?: (string | PlaylistTrack)[];
2845
2899
  hasNextPage?: boolean;
2846
2900
  totalDocs?: number;
2847
2901
  };
@@ -2880,6 +2934,7 @@ interface Playlist {
2880
2934
  thumbnail?: (string | null) | Image;
2881
2935
  coverArt?: (string | null) | Image;
2882
2936
  isCollaborative?: boolean | null;
2937
+ customer?: (string | null) | Customer;
2883
2938
  /**
2884
2939
  * When enabled, the slug will auto-generate from the title field on save and autosave.
2885
2940
  */
@@ -2947,23 +3002,40 @@ interface PlaylistTag {
2947
3002
  }
2948
3003
  /**
2949
3004
  * This interface was referenced by `Config`'s JSON-Schema
2950
- * via the `definition` "musics".
3005
+ * via the `definition` "playlist-tracks".
2951
3006
  */
2952
- interface Music {
3007
+ interface PlaylistTrack {
3008
+ id: string;
3009
+ '_playlist-tracks_items_order'?: string | null;
3010
+ _order?: string | null;
3011
+ tenant?: (string | null) | Tenant;
3012
+ playlist?: (string | null) | Playlist;
3013
+ track?: (string | null) | Track;
3014
+ addedAt?: string | null;
3015
+ addedBy?: (string | null) | Customer;
3016
+ titleOverride?: string | null;
3017
+ artistOverride?: string | null;
3018
+ note?: string | null;
3019
+ visibility?: ('visible' | 'hidden') | null;
3020
+ metadata?: {
3021
+ [k: string]: unknown;
3022
+ } | unknown[] | string | number | boolean | null;
3023
+ updatedAt: string;
3024
+ createdAt: string;
3025
+ deletedAt?: string | null;
3026
+ }
3027
+ /**
3028
+ * This interface was referenced by `Config`'s JSON-Schema
3029
+ * via the `definition` "tracks".
3030
+ */
3031
+ interface Track {
2953
3032
  id: string;
2954
- _musics_tracks_order?: string | null;
2955
3033
  _order?: string | null;
2956
3034
  tenant?: (string | null) | Tenant;
2957
- playlist: string | Playlist;
2958
- sourceUrl?: string | null;
2959
- /**
2960
- * Provider (e.g. youtube, soundcloud)
2961
- */
2962
- sourceProvider?: string | null;
2963
- sourceId?: string | null;
2964
3035
  /**
2965
- * Auto-filled from YouTube
3036
+ * Source type of this track
2966
3037
  */
3038
+ kind?: ('owned_asset' | 'external_reference') | null;
2967
3039
  title: string;
2968
3040
  /**
2969
3041
  * Short summary for listing/cards
@@ -2984,14 +3056,17 @@ interface Music {
2984
3056
  };
2985
3057
  [k: string]: unknown;
2986
3058
  } | null;
2987
- /**
2988
- * Auto-filled from YouTube channel
2989
- */
2990
3059
  artist?: string | null;
2991
3060
  album?: string | null;
2992
3061
  releaseDate?: string | null;
2993
- categories?: (string | MusicCategory)[] | null;
2994
- tags?: (string | MusicTag)[] | null;
3062
+ categories?: (string | TrackCategory)[] | null;
3063
+ tags?: (string | TrackTag)[] | null;
3064
+ playlistEntries?: {
3065
+ docs?: (string | PlaylistTrack)[];
3066
+ hasNextPage?: boolean;
3067
+ totalDocs?: number;
3068
+ };
3069
+ asset?: (string | null) | TrackAsset;
2995
3070
  /**
2996
3071
  * When enabled, the slug will auto-generate from the title field on save and autosave.
2997
3072
  */
@@ -3002,13 +3077,20 @@ interface Music {
3002
3077
  isFeatured?: boolean | null;
3003
3078
  publishedAt?: string | null;
3004
3079
  /**
3005
- * Duration in seconds (auto-filled)
3080
+ * Duration in seconds
3006
3081
  */
3007
3082
  durationSeconds?: number | null;
3008
3083
  isEmbeddable?: boolean | null;
3009
3084
  metadata?: {
3010
3085
  [k: string]: unknown;
3011
3086
  } | unknown[] | string | number | boolean | null;
3087
+ sourceUrl?: string | null;
3088
+ /**
3089
+ * Provider (e.g. youtube, soundcloud)
3090
+ */
3091
+ sourceProvider?: string | null;
3092
+ sourceId?: string | null;
3093
+ createdBy?: (string | null) | Customer;
3012
3094
  /**
3013
3095
  * ISRC
3014
3096
  */
@@ -3021,9 +3103,9 @@ interface Music {
3021
3103
  }
3022
3104
  /**
3023
3105
  * This interface was referenced by `Config`'s JSON-Schema
3024
- * via the `definition` "music-categories".
3106
+ * via the `definition` "track-categories".
3025
3107
  */
3026
- interface MusicCategory {
3108
+ interface TrackCategory {
3027
3109
  id: string;
3028
3110
  _order?: string | null;
3029
3111
  tenant?: (string | null) | Tenant;
@@ -3038,7 +3120,7 @@ interface MusicCategory {
3038
3120
  */
3039
3121
  description?: string | null;
3040
3122
  image?: (string | null) | Image;
3041
- parent?: (string | null) | MusicCategory;
3123
+ parent?: (string | null) | TrackCategory;
3042
3124
  color?: string | null;
3043
3125
  updatedAt: string;
3044
3126
  createdAt: string;
@@ -3046,9 +3128,9 @@ interface MusicCategory {
3046
3128
  }
3047
3129
  /**
3048
3130
  * This interface was referenced by `Config`'s JSON-Schema
3049
- * via the `definition` "music-tags".
3131
+ * via the `definition` "track-tags".
3050
3132
  */
3051
- interface MusicTag {
3133
+ interface TrackTag {
3052
3134
  id: string;
3053
3135
  _order?: string | null;
3054
3136
  tenant?: (string | null) | Tenant;
@@ -3063,12 +3145,37 @@ interface MusicTag {
3063
3145
  */
3064
3146
  description?: string | null;
3065
3147
  image?: (string | null) | Image;
3066
- parent?: (string | null) | MusicTag;
3148
+ parent?: (string | null) | TrackTag;
3067
3149
  color?: string | null;
3068
3150
  updatedAt: string;
3069
3151
  createdAt: string;
3070
3152
  deletedAt?: string | null;
3071
3153
  }
3154
+ /**
3155
+ * This interface was referenced by `Config`'s JSON-Schema
3156
+ * via the `definition` "track-assets".
3157
+ */
3158
+ interface TrackAsset {
3159
+ id: string;
3160
+ tenant?: (string | null) | Tenant;
3161
+ title?: string | null;
3162
+ customer?: (string | null) | Customer;
3163
+ metadata?: {
3164
+ [k: string]: unknown;
3165
+ } | unknown[] | string | number | boolean | null;
3166
+ prefix?: string | null;
3167
+ updatedAt: string;
3168
+ createdAt: string;
3169
+ url?: string | null;
3170
+ thumbnailURL?: string | null;
3171
+ filename?: string | null;
3172
+ mimeType?: string | null;
3173
+ filesize?: number | null;
3174
+ width?: number | null;
3175
+ height?: number | null;
3176
+ focalX?: number | null;
3177
+ focalY?: number | null;
3178
+ }
3072
3179
  /**
3073
3180
  * This interface was referenced by `Config`'s JSON-Schema
3074
3181
  * via the `definition` "galleries".
@@ -3333,6 +3440,7 @@ interface Canvase {
3333
3440
  [k: string]: unknown;
3334
3441
  } | unknown[] | string | number | boolean | null;
3335
3442
  categories?: (string | CanvasCategory)[] | null;
3443
+ tags?: (string | CanvasTag)[] | null;
3336
3444
  seo?: {
3337
3445
  /**
3338
3446
  * Search result title (falls back to document title)
@@ -3374,7 +3482,6 @@ interface Canvase {
3374
3482
  status?: ('draft' | 'published' | 'archived') | null;
3375
3483
  isFeatured?: boolean | null;
3376
3484
  publishedAt?: string | null;
3377
- tags?: (string | CanvasTag)[] | null;
3378
3485
  metadata?: {
3379
3486
  [k: string]: unknown;
3380
3487
  } | unknown[] | string | number | boolean | null;
@@ -3993,6 +4100,12 @@ interface PayloadLockedDocument {
3993
4100
  } | null) | ({
3994
4101
  relationTo: 'email-logs';
3995
4102
  value: string | EmailLog;
4103
+ } | null) | ({
4104
+ relationTo: 'api-keys';
4105
+ value: string | ApiKey;
4106
+ } | null) | ({
4107
+ relationTo: 'personal-access-tokens';
4108
+ value: string | PersonalAccessToken;
3996
4109
  } | null) | ({
3997
4110
  relationTo: 'tenants';
3998
4111
  value: string | Tenant;
@@ -4114,14 +4227,20 @@ interface PayloadLockedDocument {
4114
4227
  relationTo: 'playlist-tags';
4115
4228
  value: string | PlaylistTag;
4116
4229
  } | null) | ({
4117
- relationTo: 'musics';
4118
- value: string | Music;
4230
+ relationTo: 'tracks';
4231
+ value: string | Track;
4119
4232
  } | null) | ({
4120
- relationTo: 'music-categories';
4121
- value: string | MusicCategory;
4233
+ relationTo: 'track-assets';
4234
+ value: string | TrackAsset;
4122
4235
  } | null) | ({
4123
- relationTo: 'music-tags';
4124
- value: string | MusicTag;
4236
+ relationTo: 'playlist-tracks';
4237
+ value: string | PlaylistTrack;
4238
+ } | null) | ({
4239
+ relationTo: 'track-categories';
4240
+ value: string | TrackCategory;
4241
+ } | null) | ({
4242
+ relationTo: 'track-tags';
4243
+ value: string | TrackTag;
4125
4244
  } | null) | ({
4126
4245
  relationTo: 'galleries';
4127
4246
  value: string | Gallery;
@@ -4431,6 +4550,47 @@ interface EmailLogsSelect<T extends boolean = true> {
4431
4550
  updatedAt?: T;
4432
4551
  createdAt?: T;
4433
4552
  }
4553
+ /**
4554
+ * This interface was referenced by `Config`'s JSON-Schema
4555
+ * via the `definition` "api-keys_select".
4556
+ */
4557
+ interface ApiKeysSelect<T extends boolean = true> {
4558
+ tenant?: T;
4559
+ name?: T;
4560
+ secretHash?: T;
4561
+ displayPrefix?: T;
4562
+ displaySuffix?: T;
4563
+ scopes?: T;
4564
+ createdBy?: T;
4565
+ createdByIp?: T;
4566
+ lastUsedAt?: T;
4567
+ lastUsedIp?: T;
4568
+ revokedAt?: T;
4569
+ revokedBy?: T;
4570
+ expiresAt?: T;
4571
+ updatedAt?: T;
4572
+ createdAt?: T;
4573
+ }
4574
+ /**
4575
+ * This interface was referenced by `Config`'s JSON-Schema
4576
+ * via the `definition` "personal-access-tokens_select".
4577
+ */
4578
+ interface PersonalAccessTokensSelect<T extends boolean = true> {
4579
+ user?: T;
4580
+ name?: T;
4581
+ secretHash?: T;
4582
+ displayPrefix?: T;
4583
+ displaySuffix?: T;
4584
+ defaultTenant?: T;
4585
+ createdByIp?: T;
4586
+ lastUsedAt?: T;
4587
+ lastUsedIp?: T;
4588
+ revokedAt?: T;
4589
+ revokedBy?: T;
4590
+ expiresAt?: T;
4591
+ updatedAt?: T;
4592
+ createdAt?: T;
4593
+ }
4434
4594
  /**
4435
4595
  * This interface was referenced by `Config`'s JSON-Schema
4436
4596
  * via the `definition` "tenants_select".
@@ -4451,15 +4611,7 @@ interface TenantsSelect<T extends boolean = true> {
4451
4611
  origin?: T;
4452
4612
  id?: T;
4453
4613
  };
4454
- clientKey?: T;
4455
- secretKeys?: T | {
4456
- name?: T;
4457
- keyHash?: T;
4458
- prefix?: T;
4459
- last4?: T;
4460
- lastUsedAt?: T;
4461
- id?: T;
4462
- };
4614
+ publishableKey?: T;
4463
4615
  webhooks?: T | {
4464
4616
  name?: T;
4465
4617
  url?: T;
@@ -4722,7 +4874,6 @@ interface ProductsSelect<T extends boolean = true> {
4722
4874
  title?: T;
4723
4875
  subtitle?: T;
4724
4876
  description?: T;
4725
- thumbnail?: T;
4726
4877
  images?: T;
4727
4878
  videos?: T;
4728
4879
  content?: T;
@@ -4748,6 +4899,7 @@ interface ProductsSelect<T extends boolean = true> {
4748
4899
  image?: T;
4749
4900
  };
4750
4901
  };
4902
+ thumbnail?: T;
4751
4903
  generateSlug?: T;
4752
4904
  slug?: T;
4753
4905
  status?: T;
@@ -4771,6 +4923,8 @@ interface ProductVariantsSelect<T extends boolean = true> {
4771
4923
  tenant?: T;
4772
4924
  product?: T;
4773
4925
  title?: T;
4926
+ thumbnail?: T;
4927
+ images?: T;
4774
4928
  sku?: T;
4775
4929
  price?: T;
4776
4930
  compareAtPrice?: T;
@@ -4782,6 +4936,7 @@ interface ProductVariantsSelect<T extends boolean = true> {
4782
4936
  requiresShipping?: T;
4783
4937
  externalId?: T;
4784
4938
  optionValues?: T;
4939
+ optionKey?: T;
4785
4940
  isActive?: T;
4786
4941
  metadata?: T;
4787
4942
  updatedAt?: T;
@@ -4866,7 +5021,6 @@ interface ProductCollectionsSelect<T extends boolean = true> {
4866
5021
  title?: T;
4867
5022
  description?: T;
4868
5023
  content?: T;
4869
- thumbnail?: T;
4870
5024
  images?: T;
4871
5025
  products?: T;
4872
5026
  seo?: T | {
@@ -4880,6 +5034,7 @@ interface ProductCollectionsSelect<T extends boolean = true> {
4880
5034
  image?: T;
4881
5035
  };
4882
5036
  };
5037
+ thumbnail?: T;
4883
5038
  generateSlug?: T;
4884
5039
  slug?: T;
4885
5040
  status?: T;
@@ -5564,6 +5719,7 @@ interface DocumentsSelect<T extends boolean = true> {
5564
5719
  keyword?: T;
5565
5720
  id?: T;
5566
5721
  };
5722
+ categories?: T;
5567
5723
  seo?: T | {
5568
5724
  title?: T;
5569
5725
  description?: T;
@@ -5578,7 +5734,6 @@ interface DocumentsSelect<T extends boolean = true> {
5578
5734
  generateSlug?: T;
5579
5735
  slug?: T;
5580
5736
  type?: T;
5581
- categories?: T;
5582
5737
  jurisdiction?: T;
5583
5738
  language?: T;
5584
5739
  supersededBy?: T;
@@ -5639,7 +5794,7 @@ interface PlaylistsSelect<T extends boolean = true> {
5639
5794
  videos?: T;
5640
5795
  categories?: T;
5641
5796
  tags?: T;
5642
- tracks?: T;
5797
+ items?: T;
5643
5798
  seo?: T | {
5644
5799
  title?: T;
5645
5800
  description?: T;
@@ -5654,6 +5809,7 @@ interface PlaylistsSelect<T extends boolean = true> {
5654
5809
  thumbnail?: T;
5655
5810
  coverArt?: T;
5656
5811
  isCollaborative?: T;
5812
+ customer?: T;
5657
5813
  generateSlug?: T;
5658
5814
  slug?: T;
5659
5815
  status?: T;
@@ -5702,16 +5858,12 @@ interface PlaylistTagsSelect<T extends boolean = true> {
5702
5858
  }
5703
5859
  /**
5704
5860
  * This interface was referenced by `Config`'s JSON-Schema
5705
- * via the `definition` "musics_select".
5861
+ * via the `definition` "tracks_select".
5706
5862
  */
5707
- interface MusicsSelect<T extends boolean = true> {
5708
- _musics_tracks_order?: T;
5863
+ interface TracksSelect<T extends boolean = true> {
5709
5864
  _order?: T;
5710
5865
  tenant?: T;
5711
- playlist?: T;
5712
- sourceUrl?: T;
5713
- sourceProvider?: T;
5714
- sourceId?: T;
5866
+ kind?: T;
5715
5867
  title?: T;
5716
5868
  description?: T;
5717
5869
  content?: T;
@@ -5720,6 +5872,8 @@ interface MusicsSelect<T extends boolean = true> {
5720
5872
  releaseDate?: T;
5721
5873
  categories?: T;
5722
5874
  tags?: T;
5875
+ playlistEntries?: T;
5876
+ asset?: T;
5723
5877
  generateSlug?: T;
5724
5878
  slug?: T;
5725
5879
  thumbnail?: T;
@@ -5729,6 +5883,10 @@ interface MusicsSelect<T extends boolean = true> {
5729
5883
  durationSeconds?: T;
5730
5884
  isEmbeddable?: T;
5731
5885
  metadata?: T;
5886
+ sourceUrl?: T;
5887
+ sourceProvider?: T;
5888
+ sourceId?: T;
5889
+ createdBy?: T;
5732
5890
  isrc?: T;
5733
5891
  isExplicit?: T;
5734
5892
  previewUrl?: T;
@@ -5738,9 +5896,52 @@ interface MusicsSelect<T extends boolean = true> {
5738
5896
  }
5739
5897
  /**
5740
5898
  * This interface was referenced by `Config`'s JSON-Schema
5741
- * via the `definition` "music-categories_select".
5899
+ * via the `definition` "track-assets_select".
5900
+ */
5901
+ interface TrackAssetsSelect<T extends boolean = true> {
5902
+ tenant?: T;
5903
+ title?: T;
5904
+ customer?: T;
5905
+ metadata?: T;
5906
+ prefix?: T;
5907
+ updatedAt?: T;
5908
+ createdAt?: T;
5909
+ url?: T;
5910
+ thumbnailURL?: T;
5911
+ filename?: T;
5912
+ mimeType?: T;
5913
+ filesize?: T;
5914
+ width?: T;
5915
+ height?: T;
5916
+ focalX?: T;
5917
+ focalY?: T;
5918
+ }
5919
+ /**
5920
+ * This interface was referenced by `Config`'s JSON-Schema
5921
+ * via the `definition` "playlist-tracks_select".
5922
+ */
5923
+ interface PlaylistTracksSelect<T extends boolean = true> {
5924
+ '_playlist-tracks_items_order'?: T;
5925
+ _order?: T;
5926
+ tenant?: T;
5927
+ playlist?: T;
5928
+ track?: T;
5929
+ addedAt?: T;
5930
+ addedBy?: T;
5931
+ titleOverride?: T;
5932
+ artistOverride?: T;
5933
+ note?: T;
5934
+ visibility?: T;
5935
+ metadata?: T;
5936
+ updatedAt?: T;
5937
+ createdAt?: T;
5938
+ deletedAt?: T;
5939
+ }
5940
+ /**
5941
+ * This interface was referenced by `Config`'s JSON-Schema
5942
+ * via the `definition` "track-categories_select".
5742
5943
  */
5743
- interface MusicCategoriesSelect<T extends boolean = true> {
5944
+ interface TrackCategoriesSelect<T extends boolean = true> {
5744
5945
  _order?: T;
5745
5946
  tenant?: T;
5746
5947
  title?: T;
@@ -5756,9 +5957,9 @@ interface MusicCategoriesSelect<T extends boolean = true> {
5756
5957
  }
5757
5958
  /**
5758
5959
  * This interface was referenced by `Config`'s JSON-Schema
5759
- * via the `definition` "music-tags_select".
5960
+ * via the `definition` "track-tags_select".
5760
5961
  */
5761
- interface MusicTagsSelect<T extends boolean = true> {
5962
+ interface TrackTagsSelect<T extends boolean = true> {
5762
5963
  _order?: T;
5763
5964
  tenant?: T;
5764
5965
  title?: T;
@@ -5936,6 +6137,7 @@ interface CanvasesSelect<T extends boolean = true> {
5936
6137
  videos?: T;
5937
6138
  canvas?: T;
5938
6139
  categories?: T;
6140
+ tags?: T;
5939
6141
  seo?: T | {
5940
6142
  title?: T;
5941
6143
  description?: T;
@@ -5953,7 +6155,6 @@ interface CanvasesSelect<T extends boolean = true> {
5953
6155
  status?: T;
5954
6156
  isFeatured?: T;
5955
6157
  publishedAt?: T;
5956
- tags?: T;
5957
6158
  metadata?: T;
5958
6159
  updatedAt?: T;
5959
6160
  createdAt?: T;
@@ -6078,6 +6279,8 @@ interface VideosSelect<T extends boolean = true> {
6078
6279
  description?: T;
6079
6280
  content?: T;
6080
6281
  sourceLiveStream?: T;
6282
+ categories?: T;
6283
+ tags?: T;
6081
6284
  muxStatus?: T;
6082
6285
  durationSeconds?: T;
6083
6286
  muxAspectRatio?: T;
@@ -6103,8 +6306,6 @@ interface VideosSelect<T extends boolean = true> {
6103
6306
  thumbnail?: T;
6104
6307
  isFeatured?: T;
6105
6308
  publishedAt?: T;
6106
- categories?: T;
6107
- tags?: T;
6108
6309
  metadata?: T;
6109
6310
  viewCount?: T;
6110
6311
  aspectRatio?: T;
@@ -6527,16 +6728,9 @@ interface CollectionsWidget {
6527
6728
  };
6528
6729
  width: 'full';
6529
6730
  }
6530
- /**
6531
- * This interface was referenced by `Config`'s JSON-Schema
6532
- * via the `definition` "auth".
6533
- */
6534
- interface Auth {
6535
- [k: string]: unknown;
6536
- }
6537
6731
  declare module 'payload' {
6538
6732
  interface GeneratedTypes extends Config {
6539
6733
  }
6540
6734
  }
6541
6735
 
6542
- export type { DocumentType as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, EmailLog as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnItem as M, OrderStatusLog as N, Order as O, Product as P, Discount as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Post as W, PostAuthor as X, PostCategory as Y, PostTag as Z, Document as _, OrderItem as a, CustomerAddressesSelect as a$, DocumentCategory as a0, Playlist as a1, PlaylistCategory as a2, PlaylistTag as a3, Music as a4, MusicCategory as a5, MusicTag as a6, Gallery as a7, GalleryCategory as a8, GalleryTag as a9, AudiencesSelect as aA, EmailLogsSelect as aB, TenantsSelect as aC, TenantMetadataSelect as aD, ApiUsageSelect as aE, SubscriptionsSelect as aF, BillingHistorySelect as aG, TenantLogosSelect as aH, ProductsSelect as aI, ProductVariantsSelect as aJ, ProductOptionsSelect as aK, ProductOptionValuesSelect as aL, ProductCategoriesSelect as aM, ProductTagsSelect as aN, ProductCollectionsSelect as aO, BrandsSelect as aP, BrandLogosSelect as aQ, OrdersSelect as aR, OrderItemsSelect as aS, TransactionsSelect as aT, OrderStatusLogsSelect as aU, FulfillmentsSelect as aV, FulfillmentItemsSelect as aW, ReturnsSelect as aX, ReturnItemsSelect as aY, ShippingPoliciesSelect as aZ, CustomersSelect as a_, GalleryItem as aa, Link as ab, LinkCategory as ac, LinkTag as ad, Canvase as ae, CanvasCategory as af, CanvasTag as ag, CanvasNodeType as ah, CanvasEdgeType as ai, Thread as aj, ThreadCategory as ak, Comment as al, Reaction as am, ReactionType as an, Bookmark as ao, Report as ap, CommunityBan as aq, FormSubmission as ar, PayloadKv as as, PayloadLockedDocument as at, PayloadPreference as au, PayloadMigration as av, UsersSelect as aw, FieldConfigsSelect as ax, ImagesSelect as ay, SystemMediaSelect as az, Fulfillment as b, CustomerGroupsSelect as b0, CartsSelect as b1, CartItemsSelect as b2, DiscountsSelect as b3, PostsSelect as b4, PostAuthorsSelect as b5, PostCategoriesSelect as b6, PostTagsSelect as b7, DocumentsSelect as b8, DocumentCategoriesSelect as b9, ReactionTypesSelect as bA, BookmarksSelect as bB, ThreadCategoriesSelect as bC, ReportsSelect as bD, CommunityBansSelect as bE, FormsSelect as bF, FormSubmissionsSelect as bG, PayloadKvSelect as bH, PayloadLockedDocumentsSelect as bI, PayloadPreferencesSelect as bJ, PayloadMigrationsSelect as bK, CollectionsWidget as bL, Auth as bM, DocumentTypesSelect as ba, PlaylistsSelect as bb, PlaylistCategoriesSelect as bc, PlaylistTagsSelect as bd, MusicsSelect as be, MusicCategoriesSelect as bf, MusicTagsSelect as bg, GalleriesSelect as bh, GalleryCategoriesSelect as bi, GalleryTagsSelect as bj, GalleryItemsSelect as bk, LinksSelect as bl, LinkCategoriesSelect as bm, LinkTagsSelect as bn, CanvasesSelect as bo, CanvasNodeTypesSelect as bp, CanvasEdgeTypesSelect as bq, CanvasCategoriesSelect as br, CanvasTagsSelect as bs, VideosSelect as bt, VideoCategoriesSelect as bu, VideoTagsSelect as bv, LiveStreamsSelect as bw, ThreadsSelect as bx, CommentsSelect as by, ReactionsSelect as bz, Cart as c, CartItem as d, CustomerAuthOperations as e, PlayerBlock as f, CodeBlock as g, User as h, Tenant as i, Image as j, FieldConfig as k, SystemMedia as l, TenantMetadatum as m, ApiUsage as n, Subscription as o, BillingHistory as p, TenantLogo as q, VideoCategory as r, VideoTag as s, ProductVariant as t, ProductOptionValue as u, ProductOption as v, ProductCategory as w, ProductTag as x, Brand as y, ShippingPolicy as z };
6736
+ export type { Config as C, Document as D, Form as F, Image as I, Order as O, Product as P, Return as R, Transaction as T, Video as V, OrderItem as a, Fulfillment as b, Cart as c, CartItem as d, Post as e, PostCategory as f, PostTag as g, ProductVariant as h, Tenant as i };