@01.software/sdk 0.14.0 → 0.15.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.
@@ -19,8 +19,12 @@ interface Config {
19
19
  'personal-access-tokens': PersonalAccessToken;
20
20
  tenants: Tenant;
21
21
  'tenant-metadata': TenantMetadatum;
22
+ 'tenant-auth-settings': TenantAuthSetting;
23
+ 'tenant-community-settings': TenantCommunitySetting;
22
24
  'api-usage': ApiUsage;
23
25
  'tenant-analytics-daily': TenantAnalyticsDaily;
26
+ 'analytics-event-schemas': AnalyticsEventSchema;
27
+ 'tenant-entitlements': TenantEntitlement;
24
28
  subscriptions: Subscription;
25
29
  'billing-history': BillingHistory;
26
30
  'tenant-logos': TenantLogo;
@@ -148,8 +152,12 @@ interface Config {
148
152
  'personal-access-tokens': PersonalAccessTokensSelect<false> | PersonalAccessTokensSelect<true>;
149
153
  tenants: TenantsSelect<false> | TenantsSelect<true>;
150
154
  'tenant-metadata': TenantMetadataSelect<false> | TenantMetadataSelect<true>;
155
+ 'tenant-auth-settings': TenantAuthSettingsSelect<false> | TenantAuthSettingsSelect<true>;
156
+ 'tenant-community-settings': TenantCommunitySettingsSelect<false> | TenantCommunitySettingsSelect<true>;
151
157
  'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
152
158
  'tenant-analytics-daily': TenantAnalyticsDailySelect<false> | TenantAnalyticsDailySelect<true>;
159
+ 'analytics-event-schemas': AnalyticsEventSchemasSelect<false> | AnalyticsEventSchemasSelect<true>;
160
+ 'tenant-entitlements': TenantEntitlementsSelect<false> | TenantEntitlementsSelect<true>;
153
161
  subscriptions: SubscriptionsSelect<false> | SubscriptionsSelect<true>;
154
162
  'billing-history': BillingHistorySelect<false> | BillingHistorySelect<true>;
155
163
  'tenant-logos': TenantLogosSelect<false> | TenantLogosSelect<true>;
@@ -315,6 +323,7 @@ interface CodeBlock {
315
323
  */
316
324
  interface User {
317
325
  id: string;
326
+ _users_members_order?: string | null;
318
327
  roles: ('super-admin' | 'user')[];
319
328
  tenants?: {
320
329
  tenant: string | Tenant;
@@ -376,34 +385,34 @@ interface Tenant {
376
385
  * Tenant owner. Only the owner can delete the tenant or transfer ownership.
377
386
  */
378
387
  owner: string | User;
379
- plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
380
- features?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'canvas' | 'videos' | 'live-streaming' | 'community')[] | null;
381
388
  /**
382
- * Require email verification on customer registration. Verification token is delivered via webhook (operation: verification). You must configure a webhook URL first.
389
+ * Feature projection entries. Each item carries feature + provenance.
383
390
  */
384
- requiresEmailVerification?: boolean | null;
391
+ features?: {
392
+ feature: 'ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'canvas' | 'videos' | 'live-streaming' | 'community';
393
+ provenance: string;
394
+ id?: string | null;
395
+ }[] | null;
385
396
  /**
386
- * When enabled, new threads require admin approval before being published.
397
+ * Features this tenant has opted out of. Only effective for features granted by the plan.
387
398
  */
388
- requiresPostApproval?: boolean | null;
399
+ disabledFeatures?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'canvas' | 'videos' | 'live-streaming' | 'community')[] | null;
389
400
  /**
390
401
  * Dev mode shows configuration tools like the field settings panel. Turn off after setup for a clean production UI.
391
402
  */
392
403
  isDevMode?: boolean | null;
393
404
  status?: ('active' | 'paused' | 'past_due' | 'canceled' | 'pending_deletion') | null;
394
- trialEndsAt?: string | null;
395
- deletionScheduledAt?: string | null;
396
405
  /**
397
- * Allowed CORS origins for browser SDK requests. Empty = all origins allowed.
406
+ * Publishable Key safe to embed in browser code. Prefix: pk01_
407
+ */
408
+ publishableKey: string;
409
+ /**
410
+ * Allowed CORS origins for browser SDK requests. Together with the publishable key, this defines browser access boundaries. Empty = all origins allowed.
398
411
  */
399
412
  cors?: {
400
413
  origin: string;
401
414
  id?: string | null;
402
415
  }[] | null;
403
- /**
404
- * Publishable Key — safe to embed in browser code. Prefix: pk01_
405
- */
406
- publishableKey: string;
407
416
  /**
408
417
  * Webhook endpoints to notify on data changes.
409
418
  */
@@ -412,6 +421,10 @@ interface Tenant {
412
421
  * e.g. Main Server, Analytics
413
422
  */
414
423
  name?: string | null;
424
+ /**
425
+ * Leave empty for legacy generic collection-change delivery. verification/password-reset are reserved for auth delivery only.
426
+ */
427
+ purpose?: ('events' | 'verification' | 'password-reset') | null;
415
428
  /**
416
429
  * The URL to send webhooks to. Must be HTTPS.
417
430
  */
@@ -431,7 +444,7 @@ interface Tenant {
431
444
  hasNextPage?: boolean;
432
445
  totalDocs?: number;
433
446
  };
434
- webAnalytics?: {
447
+ webAnalytics: {
435
448
  enabled?: boolean | null;
436
449
  /**
437
450
  * Empty = browser analytics disabled (fail-closed)
@@ -440,6 +453,14 @@ interface Tenant {
440
453
  origin: string;
441
454
  id?: string | null;
442
455
  }[] | null;
456
+ /**
457
+ * Timezone for daily bucket calculation. Cannot be changed after analytics data is created (v1).
458
+ */
459
+ timezone: string;
460
+ /**
461
+ * Automatically set to true after the first aggregate write. Only super-admin can unlock.
462
+ */
463
+ tzLocked?: boolean | null;
443
464
  };
444
465
  updatedAt: string;
445
466
  createdAt: string;
@@ -452,6 +473,11 @@ interface Image {
452
473
  id: string;
453
474
  tenant?: (string | null) | Tenant;
454
475
  alt?: string | null;
476
+ caption?: string | null;
477
+ /**
478
+ * Photographer or source attribution
479
+ */
480
+ credit?: string | null;
455
481
  /**
456
482
  * Low quality image placeholder
457
483
  */
@@ -849,6 +875,11 @@ interface BrandLogo {
849
875
  id: string;
850
876
  tenant?: (string | null) | Tenant;
851
877
  alt?: string | null;
878
+ caption?: string | null;
879
+ /**
880
+ * Photographer or source attribution
881
+ */
882
+ credit?: string | null;
852
883
  /**
853
884
  * Low quality image placeholder
854
885
  */
@@ -932,6 +963,34 @@ interface BrandLogo {
932
963
  };
933
964
  };
934
965
  }
966
+ /**
967
+ * This interface was referenced by `Config`'s JSON-Schema
968
+ * via the `definition` "tenant-auth-settings".
969
+ */
970
+ interface TenantAuthSetting {
971
+ id: string;
972
+ tenant?: (string | null) | Tenant;
973
+ /**
974
+ * Require customer email verification before registration-dependent auth flows proceed.
975
+ */
976
+ requiresEmailVerification?: boolean | null;
977
+ updatedAt: string;
978
+ createdAt: string;
979
+ }
980
+ /**
981
+ * This interface was referenced by `Config`'s JSON-Schema
982
+ * via the `definition` "tenant-community-settings".
983
+ */
984
+ interface TenantCommunitySetting {
985
+ id: string;
986
+ tenant?: (string | null) | Tenant;
987
+ /**
988
+ * When enabled, new customer-created threads remain pending until approved by an admin.
989
+ */
990
+ requiresPostApproval?: boolean | null;
991
+ updatedAt: string;
992
+ createdAt: string;
993
+ }
935
994
  /**
936
995
  * This interface was referenced by `Config`'s JSON-Schema
937
996
  * via the `definition` "api-usage".
@@ -1015,8 +1074,95 @@ interface TenantAnalyticsDaily {
1015
1074
  eventsDropped?: {
1016
1075
  cardinality?: number | null;
1017
1076
  schema?: number | null;
1077
+ late?: number | null;
1078
+ origin?: number | null;
1079
+ key?: number | null;
1080
+ rate?: number | null;
1081
+ disabled?: number | null;
1018
1082
  };
1019
1083
  snapshottedAt?: string | null;
1084
+ /**
1085
+ * 이 snapshot의 bucket이 계산된 tenant timezone
1086
+ */
1087
+ bucketTz: string;
1088
+ /**
1089
+ * aggregate의 dimension key 집합 해시 (shape mismatch 감지용). custom event 없는 날은 "pageview-only".
1090
+ */
1091
+ schemaShape: string;
1092
+ /**
1093
+ * Per-event dimension/page/referrer aggregates. Populated by snapshot cron when registered events have Redis data.
1094
+ */
1095
+ eventDetails?: {
1096
+ eventName: string;
1097
+ dimensions?: {
1098
+ dimension: string;
1099
+ values?: {
1100
+ value: string;
1101
+ count: number;
1102
+ id?: string | null;
1103
+ }[] | null;
1104
+ id?: string | null;
1105
+ }[] | null;
1106
+ pages?: {
1107
+ pathname: string;
1108
+ count: number;
1109
+ id?: string | null;
1110
+ }[] | null;
1111
+ referrers?: {
1112
+ source: string;
1113
+ count: number;
1114
+ id?: string | null;
1115
+ }[] | null;
1116
+ id?: string | null;
1117
+ }[] | null;
1118
+ updatedAt: string;
1119
+ createdAt: string;
1120
+ }
1121
+ /**
1122
+ * This interface was referenced by `Config`'s JSON-Schema
1123
+ * via the `definition` "analytics-event-schemas".
1124
+ */
1125
+ interface AnalyticsEventSchema {
1126
+ id: string;
1127
+ tenant?: (string | null) | Tenant;
1128
+ /**
1129
+ * snake_case identifier. Must match /^[a-z][a-z0-9_]*$/
1130
+ */
1131
+ eventName: string;
1132
+ enabled: boolean;
1133
+ dimensions?: {
1134
+ key: string;
1135
+ type: 'enum' | 'boolean';
1136
+ /**
1137
+ * Comma-separated. Required when type=enum. Boolean auto-derives {true,false}. Max 20 values per key.
1138
+ */
1139
+ allowedValues?: string | null;
1140
+ description?: string | null;
1141
+ id?: string | null;
1142
+ }[] | null;
1143
+ createdBy?: (string | null) | User;
1144
+ updatedBy?: (string | null) | User;
1145
+ updatedAt: string;
1146
+ createdAt: string;
1147
+ }
1148
+ /**
1149
+ * This interface was referenced by `Config`'s JSON-Schema
1150
+ * via the `definition` "tenant-entitlements".
1151
+ */
1152
+ interface TenantEntitlement {
1153
+ id: string;
1154
+ tenant: string | Tenant;
1155
+ plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
1156
+ status: 'active' | 'scheduled' | 'expired' | 'revoked';
1157
+ sourceType: 'subscription' | 'manual' | 'support' | 'promo' | 'trial' | 'legacy_migration' | 'enterprise_contract';
1158
+ sourceSubscription?: (string | null) | Subscription;
1159
+ priority: number;
1160
+ startsAt: string;
1161
+ endsAt?: string | null;
1162
+ reason?: string | null;
1163
+ grantedBy?: (string | null) | User;
1164
+ revokedAt?: string | null;
1165
+ revokedBy?: (string | null) | User;
1020
1166
  updatedAt: string;
1021
1167
  createdAt: string;
1022
1168
  }
@@ -1035,7 +1181,7 @@ interface Subscription {
1035
1181
  amount: number;
1036
1182
  status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
1037
1183
  currency: 'KRW' | 'USD';
1038
- provider: 'toss' | 'polar';
1184
+ provider: 'toss';
1039
1185
  currentPeriodStart?: string | null;
1040
1186
  currentPeriodEnd?: string | null;
1041
1187
  trialStartAt?: string | null;
@@ -1061,14 +1207,6 @@ interface Subscription {
1061
1207
  number?: string | null;
1062
1208
  cardType?: string | null;
1063
1209
  };
1064
- /**
1065
- * Provider subscription ID
1066
- */
1067
- providerSubscriptionId?: string | null;
1068
- /**
1069
- * Provider customer ID
1070
- */
1071
- providerCustomerId?: string | null;
1072
1210
  /**
1073
1211
  * Additional provider metadata
1074
1212
  */
@@ -1107,7 +1245,7 @@ interface BillingHistory {
1107
1245
  * Plan at time of payment
1108
1246
  */
1109
1247
  plan: 'starter' | 'basic' | 'pro';
1110
- provider: 'toss' | 'polar';
1248
+ provider: 'toss';
1111
1249
  currency: 'KRW' | 'USD';
1112
1250
  billingCycle?: ('monthly' | 'yearly') | null;
1113
1251
  periodStart?: string | null;
@@ -1127,16 +1265,6 @@ interface BillingHistory {
1127
1265
  tossResponse?: {
1128
1266
  [k: string]: unknown;
1129
1267
  } | unknown[] | string | number | boolean | null;
1130
- /**
1131
- * Polar order ID
1132
- */
1133
- polarOrderId?: string | null;
1134
- /**
1135
- * Full Polar API response
1136
- */
1137
- polarResponse?: {
1138
- [k: string]: unknown;
1139
- } | unknown[] | string | number | boolean | null;
1140
1268
  errorMessage?: string | null;
1141
1269
  /**
1142
1270
  * Original billing record for retry
@@ -1153,6 +1281,11 @@ interface TenantLogo {
1153
1281
  id: string;
1154
1282
  tenant?: (string | null) | Tenant;
1155
1283
  alt?: string | null;
1284
+ caption?: string | null;
1285
+ /**
1286
+ * Photographer or source attribution
1287
+ */
1288
+ credit?: string | null;
1156
1289
  /**
1157
1290
  * Low quality image placeholder
1158
1291
  */
@@ -2216,6 +2349,14 @@ interface CustomerAddress {
2216
2349
  postalCode?: string | null;
2217
2350
  address1?: string | null;
2218
2351
  address2?: string | null;
2352
+ /**
2353
+ * Road name vs jibun address type
2354
+ */
2355
+ addressType?: ('road' | 'jibun') | null;
2356
+ /**
2357
+ * ISO 3166-1 alpha-2 country code
2358
+ */
2359
+ country?: string | null;
2219
2360
  isDefault?: boolean | null;
2220
2361
  /**
2221
2362
  * Default delivery message
@@ -2239,6 +2380,11 @@ interface OrderItem {
2239
2380
  * Price per unit at time of order
2240
2381
  */
2241
2382
  unitPrice: number;
2383
+ variantTitle?: string | null;
2384
+ sku?: string | null;
2385
+ compareAtPrice?: number | null;
2386
+ weight?: number | null;
2387
+ requiresShipping?: boolean | null;
2242
2388
  /**
2243
2389
  * unitPrice × quantity
2244
2390
  */
@@ -2408,6 +2554,7 @@ interface ReturnItem {
2408
2554
  product: string | Product;
2409
2555
  variant?: (string | null) | ProductVariant;
2410
2556
  quantity: number;
2557
+ restockAction: 'return_to_stock' | 'discard';
2411
2558
  productTitle?: string | null;
2412
2559
  updatedAt: string;
2413
2560
  createdAt: string;
@@ -2475,6 +2622,9 @@ interface Cart {
2475
2622
  */
2476
2623
  discountAmount?: number | null;
2477
2624
  totalAmount?: number | null;
2625
+ /**
2626
+ * Guest cart identity token. Immutable after creation.
2627
+ */
2478
2628
  cartToken?: string | null;
2479
2629
  lastActivityAt?: string | null;
2480
2630
  abandonedAt?: string | null;
@@ -2626,7 +2776,7 @@ interface Post {
2626
2776
  };
2627
2777
  [k: string]: unknown;
2628
2778
  } | null;
2629
- author?: (string | null) | PostAuthor;
2779
+ authors?: (string | PostAuthor)[] | null;
2630
2780
  categories?: (string | PostCategory)[] | null;
2631
2781
  tags?: (string | PostTag)[] | null;
2632
2782
  videos?: (string | Video)[] | null;
@@ -2670,7 +2820,6 @@ interface Post {
2670
2820
  thumbnail?: (string | null) | Image;
2671
2821
  images?: (string | Image)[] | null;
2672
2822
  publishedAt?: string | null;
2673
- customer?: (string | null) | Customer;
2674
2823
  isFeatured?: boolean | null;
2675
2824
  /**
2676
2825
  * Reading time (minutes)
@@ -2822,7 +2971,11 @@ interface Document {
2822
2971
  */
2823
2972
  changeLog?: string | null;
2824
2973
  /**
2825
- * Document that requires user agreement
2974
+ * Audience/timing for required agreement
2975
+ */
2976
+ agreementScope?: ('all_users' | 'new_users' | 'on_update') | null;
2977
+ /**
2978
+ * Legacy compatibility field; replaced by agreementScope
2826
2979
  */
2827
2980
  requiresAgreement?: boolean | null;
2828
2981
  /**
@@ -3113,7 +3266,6 @@ interface Track {
3113
3266
  */
3114
3267
  sourceProvider?: string | null;
3115
3268
  sourceId?: string | null;
3116
- createdBy?: (string | null) | Customer;
3117
3269
  /**
3118
3270
  * ISRC
3119
3271
  */
@@ -3182,7 +3334,6 @@ interface TrackAsset {
3182
3334
  id: string;
3183
3335
  tenant?: (string | null) | Tenant;
3184
3336
  title?: string | null;
3185
- customer?: (string | null) | Customer;
3186
3337
  metadata?: {
3187
3338
  [k: string]: unknown;
3188
3339
  } | unknown[] | string | number | boolean | null;
@@ -3389,6 +3540,8 @@ interface Link {
3389
3540
  opensInNewTab?: boolean | null;
3390
3541
  noFollow?: boolean | null;
3391
3542
  expiresAt?: string | null;
3543
+ clickCount?: number | null;
3544
+ lastClickedAt?: string | null;
3392
3545
  status?: ('draft' | 'published' | 'archived') | null;
3393
3546
  isFeatured?: boolean | null;
3394
3547
  metadata?: {
@@ -4137,12 +4290,24 @@ interface PayloadLockedDocument {
4137
4290
  } | null) | ({
4138
4291
  relationTo: 'tenant-metadata';
4139
4292
  value: string | TenantMetadatum;
4293
+ } | null) | ({
4294
+ relationTo: 'tenant-auth-settings';
4295
+ value: string | TenantAuthSetting;
4296
+ } | null) | ({
4297
+ relationTo: 'tenant-community-settings';
4298
+ value: string | TenantCommunitySetting;
4140
4299
  } | null) | ({
4141
4300
  relationTo: 'api-usage';
4142
4301
  value: string | ApiUsage;
4143
4302
  } | null) | ({
4144
4303
  relationTo: 'tenant-analytics-daily';
4145
4304
  value: string | TenantAnalyticsDaily;
4305
+ } | null) | ({
4306
+ relationTo: 'analytics-event-schemas';
4307
+ value: string | AnalyticsEventSchema;
4308
+ } | null) | ({
4309
+ relationTo: 'tenant-entitlements';
4310
+ value: string | TenantEntitlement;
4146
4311
  } | null) | ({
4147
4312
  relationTo: 'subscriptions';
4148
4313
  value: string | Subscription;
@@ -4392,6 +4557,7 @@ interface PayloadMigration {
4392
4557
  * via the `definition` "users_select".
4393
4558
  */
4394
4559
  interface UsersSelect<T extends boolean = true> {
4560
+ _users_members_order?: T;
4395
4561
  roles?: T;
4396
4562
  tenants?: T | {
4397
4563
  tenant?: T;
@@ -4452,6 +4618,8 @@ interface FieldConfigsSelect<T extends boolean = true> {
4452
4618
  interface ImagesSelect<T extends boolean = true> {
4453
4619
  tenant?: T;
4454
4620
  alt?: T;
4621
+ caption?: T;
4622
+ credit?: T;
4455
4623
  lqip?: T;
4456
4624
  palette?: T | {
4457
4625
  vibrant?: T;
@@ -4624,21 +4792,22 @@ interface TenantsSelect<T extends boolean = true> {
4624
4792
  name?: T;
4625
4793
  slug?: T;
4626
4794
  owner?: T;
4627
- plan?: T;
4628
- features?: T;
4629
- requiresEmailVerification?: T;
4630
- requiresPostApproval?: T;
4795
+ features?: T | {
4796
+ feature?: T;
4797
+ provenance?: T;
4798
+ id?: T;
4799
+ };
4800
+ disabledFeatures?: T;
4631
4801
  isDevMode?: T;
4632
4802
  status?: T;
4633
- trialEndsAt?: T;
4634
- deletionScheduledAt?: T;
4803
+ publishableKey?: T;
4635
4804
  cors?: T | {
4636
4805
  origin?: T;
4637
4806
  id?: T;
4638
4807
  };
4639
- publishableKey?: T;
4640
4808
  webhooks?: T | {
4641
4809
  name?: T;
4810
+ purpose?: T;
4642
4811
  url?: T;
4643
4812
  secret?: T;
4644
4813
  isEnabled?: T;
@@ -4651,6 +4820,8 @@ interface TenantsSelect<T extends boolean = true> {
4651
4820
  origin?: T;
4652
4821
  id?: T;
4653
4822
  };
4823
+ timezone?: T;
4824
+ tzLocked?: T;
4654
4825
  };
4655
4826
  updatedAt?: T;
4656
4827
  createdAt?: T;
@@ -4719,6 +4890,26 @@ interface TenantMetadataSelect<T extends boolean = true> {
4719
4890
  updatedAt?: T;
4720
4891
  createdAt?: T;
4721
4892
  }
4893
+ /**
4894
+ * This interface was referenced by `Config`'s JSON-Schema
4895
+ * via the `definition` "tenant-auth-settings_select".
4896
+ */
4897
+ interface TenantAuthSettingsSelect<T extends boolean = true> {
4898
+ tenant?: T;
4899
+ requiresEmailVerification?: T;
4900
+ updatedAt?: T;
4901
+ createdAt?: T;
4902
+ }
4903
+ /**
4904
+ * This interface was referenced by `Config`'s JSON-Schema
4905
+ * via the `definition` "tenant-community-settings_select".
4906
+ */
4907
+ interface TenantCommunitySettingsSelect<T extends boolean = true> {
4908
+ tenant?: T;
4909
+ requiresPostApproval?: T;
4910
+ updatedAt?: T;
4911
+ createdAt?: T;
4912
+ }
4722
4913
  /**
4723
4914
  * This interface was referenced by `Config`'s JSON-Schema
4724
4915
  * via the `definition` "api-usage_select".
@@ -4767,8 +4958,78 @@ interface TenantAnalyticsDailySelect<T extends boolean = true> {
4767
4958
  eventsDropped?: T | {
4768
4959
  cardinality?: T;
4769
4960
  schema?: T;
4961
+ late?: T;
4962
+ origin?: T;
4963
+ key?: T;
4964
+ rate?: T;
4965
+ disabled?: T;
4770
4966
  };
4771
4967
  snapshottedAt?: T;
4968
+ bucketTz?: T;
4969
+ schemaShape?: T;
4970
+ eventDetails?: T | {
4971
+ eventName?: T;
4972
+ dimensions?: T | {
4973
+ dimension?: T;
4974
+ values?: T | {
4975
+ value?: T;
4976
+ count?: T;
4977
+ id?: T;
4978
+ };
4979
+ id?: T;
4980
+ };
4981
+ pages?: T | {
4982
+ pathname?: T;
4983
+ count?: T;
4984
+ id?: T;
4985
+ };
4986
+ referrers?: T | {
4987
+ source?: T;
4988
+ count?: T;
4989
+ id?: T;
4990
+ };
4991
+ id?: T;
4992
+ };
4993
+ updatedAt?: T;
4994
+ createdAt?: T;
4995
+ }
4996
+ /**
4997
+ * This interface was referenced by `Config`'s JSON-Schema
4998
+ * via the `definition` "analytics-event-schemas_select".
4999
+ */
5000
+ interface AnalyticsEventSchemasSelect<T extends boolean = true> {
5001
+ tenant?: T;
5002
+ eventName?: T;
5003
+ enabled?: T;
5004
+ dimensions?: T | {
5005
+ key?: T;
5006
+ type?: T;
5007
+ allowedValues?: T;
5008
+ description?: T;
5009
+ id?: T;
5010
+ };
5011
+ createdBy?: T;
5012
+ updatedBy?: T;
5013
+ updatedAt?: T;
5014
+ createdAt?: T;
5015
+ }
5016
+ /**
5017
+ * This interface was referenced by `Config`'s JSON-Schema
5018
+ * via the `definition` "tenant-entitlements_select".
5019
+ */
5020
+ interface TenantEntitlementsSelect<T extends boolean = true> {
5021
+ tenant?: T;
5022
+ plan?: T;
5023
+ status?: T;
5024
+ sourceType?: T;
5025
+ sourceSubscription?: T;
5026
+ priority?: T;
5027
+ startsAt?: T;
5028
+ endsAt?: T;
5029
+ reason?: T;
5030
+ grantedBy?: T;
5031
+ revokedAt?: T;
5032
+ revokedBy?: T;
4772
5033
  updatedAt?: T;
4773
5034
  createdAt?: T;
4774
5035
  }
@@ -4797,8 +5058,6 @@ interface SubscriptionsSelect<T extends boolean = true> {
4797
5058
  number?: T;
4798
5059
  cardType?: T;
4799
5060
  };
4800
- providerSubscriptionId?: T;
4801
- providerCustomerId?: T;
4802
5061
  providerMetadata?: T;
4803
5062
  cancelAtPeriodEnd?: T;
4804
5063
  canceledAt?: T;
@@ -4834,8 +5093,6 @@ interface BillingHistorySelect<T extends boolean = true> {
4834
5093
  orderName?: T;
4835
5094
  paymentKey?: T;
4836
5095
  tossResponse?: T;
4837
- polarOrderId?: T;
4838
- polarResponse?: T;
4839
5096
  errorMessage?: T;
4840
5097
  retryOf?: T;
4841
5098
  updatedAt?: T;
@@ -4848,6 +5105,8 @@ interface BillingHistorySelect<T extends boolean = true> {
4848
5105
  interface TenantLogosSelect<T extends boolean = true> {
4849
5106
  tenant?: T;
4850
5107
  alt?: T;
5108
+ caption?: T;
5109
+ credit?: T;
4851
5110
  lqip?: T;
4852
5111
  palette?: T | {
4853
5112
  vibrant?: T;
@@ -5163,6 +5422,8 @@ interface BrandsSelect<T extends boolean = true> {
5163
5422
  interface BrandLogosSelect<T extends boolean = true> {
5164
5423
  tenant?: T;
5165
5424
  alt?: T;
5425
+ caption?: T;
5426
+ credit?: T;
5166
5427
  lqip?: T;
5167
5428
  palette?: T | {
5168
5429
  vibrant?: T;
@@ -5307,6 +5568,11 @@ interface OrderItemsSelect<T extends boolean = true> {
5307
5568
  variant?: T;
5308
5569
  quantity?: T;
5309
5570
  unitPrice?: T;
5571
+ variantTitle?: T;
5572
+ sku?: T;
5573
+ compareAtPrice?: T;
5574
+ weight?: T;
5575
+ requiresShipping?: T;
5310
5576
  totalPrice?: T;
5311
5577
  productTitle?: T;
5312
5578
  updatedAt?: T;
@@ -5436,6 +5702,7 @@ interface ReturnItemsSelect<T extends boolean = true> {
5436
5702
  product?: T;
5437
5703
  variant?: T;
5438
5704
  quantity?: T;
5705
+ restockAction?: T;
5439
5706
  productTitle?: T;
5440
5707
  updatedAt?: T;
5441
5708
  createdAt?: T;
@@ -5553,6 +5820,8 @@ interface CustomerAddressesSelect<T extends boolean = true> {
5553
5820
  postalCode?: T;
5554
5821
  address1?: T;
5555
5822
  address2?: T;
5823
+ addressType?: T;
5824
+ country?: T;
5556
5825
  isDefault?: T;
5557
5826
  deliveryMessage?: T;
5558
5827
  updatedAt?: T;
@@ -5683,7 +5952,7 @@ interface PostsSelect<T extends boolean = true> {
5683
5952
  subtitle?: T;
5684
5953
  description?: T;
5685
5954
  content?: T;
5686
- author?: T;
5955
+ authors?: T;
5687
5956
  categories?: T;
5688
5957
  tags?: T;
5689
5958
  videos?: T;
@@ -5703,7 +5972,6 @@ interface PostsSelect<T extends boolean = true> {
5703
5972
  thumbnail?: T;
5704
5973
  images?: T;
5705
5974
  publishedAt?: T;
5706
- customer?: T;
5707
5975
  isFeatured?: T;
5708
5976
  readingMinutes?: T;
5709
5977
  excerpt?: T;
@@ -5789,6 +6057,7 @@ interface DocumentsSelect<T extends boolean = true> {
5789
6057
  effectiveAt?: T;
5790
6058
  expiresAt?: T;
5791
6059
  changeLog?: T;
6060
+ agreementScope?: T;
5792
6061
  requiresAgreement?: T;
5793
6062
  keywords?: T | {
5794
6063
  keyword?: T;
@@ -5959,7 +6228,6 @@ interface TracksSelect<T extends boolean = true> {
5959
6228
  sourceUrl?: T;
5960
6229
  sourceProvider?: T;
5961
6230
  sourceId?: T;
5962
- createdBy?: T;
5963
6231
  isrc?: T;
5964
6232
  isExplicit?: T;
5965
6233
  previewUrl?: T;
@@ -5974,7 +6242,6 @@ interface TracksSelect<T extends boolean = true> {
5974
6242
  interface TrackAssetsSelect<T extends boolean = true> {
5975
6243
  tenant?: T;
5976
6244
  title?: T;
5977
- customer?: T;
5978
6245
  metadata?: T;
5979
6246
  prefix?: T;
5980
6247
  updatedAt?: T;
@@ -6137,6 +6404,8 @@ interface LinksSelect<T extends boolean = true> {
6137
6404
  opensInNewTab?: T;
6138
6405
  noFollow?: T;
6139
6406
  expiresAt?: T;
6407
+ clickCount?: T;
6408
+ lastClickedAt?: T;
6140
6409
  status?: T;
6141
6410
  isFeatured?: T;
6142
6411
  metadata?: T;