@riverbankcms/sdk 0.60.6 → 0.60.7

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 (92) hide show
  1. package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
  2. package/dist/_dts/api/src/bookingConfig.d.ts +6 -0
  3. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +45 -3
  4. package/dist/_dts/api/src/bookingOperations.d.ts +40 -3
  5. package/dist/_dts/api/src/courses.d.ts +1 -5
  6. package/dist/_dts/api/src/endpoints.d.ts +80 -1
  7. package/dist/_dts/api/src/index.d.ts +3 -2
  8. package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
  9. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  10. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -1
  11. package/dist/_dts/api/src/resources.d.ts +1 -1
  12. package/dist/_dts/api/src/siteBanner.d.ts +8 -8
  13. package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
  14. package/dist/_dts/api/src/teamMembers.d.ts +27 -0
  15. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +35 -29
  16. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -5
  17. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +40 -34
  18. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -5
  19. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1 -1
  20. package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
  21. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
  22. package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +24 -0
  23. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +18 -8
  24. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  25. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  26. package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
  27. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
  28. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -2
  29. package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
  30. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  31. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +4 -4
  32. package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
  33. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
  34. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  35. package/dist/_dts/content-model/src/metadataConfig.d.ts +1 -0
  36. package/dist/_dts/core/src/branded.d.ts +2 -0
  37. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +124 -8
  38. package/dist/_dts/db/src/schemas/forms.d.ts +61 -61
  39. package/dist/_dts/sdk/src/client/types.d.ts +9 -2
  40. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  41. package/dist/_dts/sdk/src/config/validation.d.ts +40 -37
  42. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +17 -8
  43. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +1 -1
  44. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
  45. package/dist/_dts/sdk/src/public-api/contracts.d.ts +87 -69
  46. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -5
  48. package/dist/_dts/sdk/src/version.d.ts +1 -1
  49. package/dist/_dts/theme-core/src/accordions/types.d.ts +11 -11
  50. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +10 -10
  51. package/dist/_dts/theme-core/src/buttons/types.d.ts +27 -27
  52. package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
  53. package/dist/_dts/theme-core/src/inputs/types.d.ts +14 -14
  54. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +2 -2
  55. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +438 -438
  56. package/dist/_dts/theme-core/src/navigation/types.d.ts +16 -16
  57. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +15 -15
  58. package/dist/_dts/theme-core/src/schema.d.ts +662 -662
  59. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +4 -4
  60. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +15 -15
  61. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
  62. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  63. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +5 -5
  64. package/dist/_dts/ui/src/badge.d.ts +1 -1
  65. package/dist/_dts/ui/src/button-group.d.ts +1 -1
  66. package/dist/_dts/ui/src/button.d.ts +2 -2
  67. package/dist/_dts/ui/src/callout.d.ts +1 -1
  68. package/dist/_dts/ui/src/card.d.ts +1 -1
  69. package/dist/_dts/ui/src/surface.d.ts +2 -2
  70. package/dist/_dts/ui/src/toggle.d.ts +4 -4
  71. package/dist/cli/index.mjs +276 -24
  72. package/dist/client/client.mjs +607 -306
  73. package/dist/client/hooks.mjs +272 -23
  74. package/dist/client/rendering/client.mjs +179 -130
  75. package/dist/client/rendering/islands.mjs +68 -43
  76. package/dist/client/rendering.mjs +646 -363
  77. package/dist/preview-next/before-render.mjs +147 -1
  78. package/dist/preview-next/client/runtime.mjs +338 -43
  79. package/dist/preview-next/middleware.mjs +147 -1
  80. package/dist/server/components.mjs +727 -470
  81. package/dist/server/config-validation.mjs +488 -254
  82. package/dist/server/config.mjs +488 -254
  83. package/dist/server/data.mjs +272 -23
  84. package/dist/server/index.mjs +168 -2
  85. package/dist/server/next.mjs +476 -185
  86. package/dist/server/page-converter.mjs +335 -249
  87. package/dist/server/prebuild.mjs +1 -1
  88. package/dist/server/rendering/server.mjs +742 -469
  89. package/dist/server/rendering.mjs +742 -469
  90. package/dist/server/routing.mjs +274 -24
  91. package/dist/server/server.mjs +291 -24
  92. package/package.json +1 -1
@@ -27,8 +27,8 @@ export declare const internalLinkSchema: z.ZodObject<{
27
27
  routeId: z.ZodString;
28
28
  entityId: z.ZodOptional<z.ZodString>;
29
29
  entityType: z.ZodOptional<z.ZodEnum<{
30
- page: "page";
31
30
  content: "content";
31
+ page: "page";
32
32
  }>>;
33
33
  href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
34
34
  title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -77,8 +77,8 @@ export declare const linkSchema: z.ZodUnion<readonly [z.ZodObject<{
77
77
  routeId: z.ZodString;
78
78
  entityId: z.ZodOptional<z.ZodString>;
79
79
  entityType: z.ZodOptional<z.ZodEnum<{
80
- page: "page";
81
80
  content: "content";
81
+ page: "page";
82
82
  }>>;
83
83
  href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
84
84
  title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -9,8 +9,8 @@ export declare const bindingSchema: z.ZodObject<{
9
9
  }, z.core.$strip>>>;
10
10
  pick: z.ZodDefault<z.ZodEnum<{
11
11
  value: "value";
12
- collection: "collection";
13
12
  context: "context";
13
+ collection: "collection";
14
14
  }>>;
15
15
  coerce: z.ZodOptional<z.ZodEnum<{
16
16
  string: "string";
@@ -29,8 +29,8 @@ export declare const repeatSchema: z.ZodObject<{
29
29
  }, z.core.$strip>>>;
30
30
  pick: z.ZodDefault<z.ZodEnum<{
31
31
  value: "value";
32
- collection: "collection";
33
32
  context: "context";
33
+ collection: "collection";
34
34
  }>>;
35
35
  coerce: z.ZodOptional<z.ZodEnum<{
36
36
  string: "string";
@@ -44,8 +44,8 @@ export declare const repeatSchema: z.ZodObject<{
44
44
  sortBy: z.ZodOptional<z.ZodObject<{
45
45
  path: z.ZodString;
46
46
  direction: z.ZodDefault<z.ZodEnum<{
47
- desc: "desc";
48
47
  asc: "asc";
48
+ desc: "desc";
49
49
  }>>;
50
50
  }, z.core.$strip>>;
51
51
  }, z.core.$strip>;
@@ -60,8 +60,8 @@ export declare const conditionSchema: z.ZodObject<{
60
60
  }, z.core.$strip>>>;
61
61
  pick: z.ZodDefault<z.ZodEnum<{
62
62
  value: "value";
63
- collection: "collection";
64
63
  context: "context";
64
+ collection: "collection";
65
65
  }>>;
66
66
  coerce: z.ZodOptional<z.ZodEnum<{
67
67
  string: "string";
@@ -84,8 +84,8 @@ export declare const dataScopeSchema: z.ZodObject<{
84
84
  }, z.core.$strip>>>;
85
85
  pick: z.ZodDefault<z.ZodEnum<{
86
86
  value: "value";
87
- collection: "collection";
88
87
  context: "context";
88
+ collection: "collection";
89
89
  }>>;
90
90
  coerce: z.ZodOptional<z.ZodEnum<{
91
91
  string: "string";
@@ -1409,7 +1409,7 @@ export declare const runtimeBackedBlockModes: {
1409
1409
  readonly shop: "passes-memberships";
1410
1410
  };
1411
1411
  export type RuntimeBackedBlockMode<TKind extends RuntimeBackedBlockKind> = typeof runtimeBackedBlockModes[TKind];
1412
- export declare const runtimeBackedBlockKinds: readonly ("form" | "event-registration" | "course-registration" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "cart" | "checkout" | "gifting" | "newsletter-form")[];
1412
+ export declare const runtimeBackedBlockKinds: readonly ("cart" | "event-registration" | "form" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "checkout" | "gifting" | "course-registration" | "newsletter-form")[];
1413
1413
  export declare const runtimeBackedBlockServerRegistry: Readonly<{
1414
1414
  readonly form: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
1415
1415
  readonly 'event-listing': React.ElementType<any, keyof React.JSX.IntrinsicElements>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const previewStageSchema: z.ZodEnum<{
3
- published: "published";
4
3
  preview: "preview";
4
+ published: "published";
5
5
  }>;
6
6
  export declare const registrationButtonVariantSchema: z.ZodEnum<{
7
7
  primary: "primary";
@@ -16,8 +16,8 @@ export declare const eventButtonVariantSchema: z.ZodEnum<{
16
16
  }>;
17
17
  export declare const eventLayoutSchema: z.ZodEnum<{
18
18
  compact: "compact";
19
- grid: "grid";
20
19
  stack: "stack";
20
+ grid: "grid";
21
21
  }>;
22
22
  export declare const columnOptionSchema: z.ZodEnum<{
23
23
  2: "2";
@@ -29,12 +29,12 @@ export declare const weekStartSchema: z.ZodEnum<{
29
29
  monday: "monday";
30
30
  }>;
31
31
  export declare const filterAutoShowSchema: z.ZodEnum<{
32
+ never: "never";
32
33
  auto: "auto";
33
34
  always: "always";
34
- never: "never";
35
35
  }>;
36
36
  export declare const calendarTabViewsSchema: z.ZodEnum<{
37
- week: "week";
38
37
  month: "month";
39
38
  both: "both";
39
+ week: "week";
40
40
  }>;
@@ -45,8 +45,8 @@ declare const twoColumnContainerClassOptionsSchema: z.ZodObject<{
45
45
  export declare const twoColumnContainerClassTransform: TransformDefinition<z.infer<typeof twoColumnContainerClassOptionsSchema>>;
46
46
  declare const twoColumnFlexBasisOptionsSchema: z.ZodObject<{
47
47
  side: z.ZodEnum<{
48
- image: "image";
49
48
  text: "text";
49
+ image: "image";
50
50
  }>;
51
51
  }, z.core.$strip>;
52
52
  export declare const twoColumnFlexBasisTransform: TransformDefinition<z.infer<typeof twoColumnFlexBasisOptionsSchema>>;
@@ -68,7 +68,7 @@ export declare const transformDefinitions: {
68
68
  reverseClass: string;
69
69
  }>;
70
70
  readonly "ui.twoColumnFlexBasis": TransformDefinition<{
71
- side: "image" | "text";
71
+ side: "text" | "image";
72
72
  }>;
73
73
  readonly "media.fromUrl": TransformDefinition<{
74
74
  width?: number;
@@ -104,9 +104,9 @@ export declare function bindProp(from: string, opts?: {
104
104
  pick?: "value" | "collection" | "context";
105
105
  }): {
106
106
  readonly $bind: {
107
- readonly pick?: "value" | "collection" | "context" | undefined;
107
+ readonly pick?: "value" | "context" | "collection" | undefined;
108
108
  readonly fallback?: {} | null | undefined;
109
- readonly transforms?: TransformStep<"date.formatShort" | "string.uppercase" | "value.fallback" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.footerRootStyle" | "ui.headerNavLinkClass" | "ui.headingClassFromAlignment" | "ui.bodyClassFromAlignment" | "ui.stackAlignFromAlignment" | "ui.sectionStateTone" | "ui.heroContentWrapperClass" | "ui.heroCtaJustify" | "ui.heroStackJustifyFromVerticalAlignment" | "ui.heroGridClassFromVerticalAlignment" | "ui.conditionalClass" | "ui.twoColumnContainerClass" | "ui.twoColumnFlexBasis" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitNavSingleClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible">[] | undefined;
109
+ readonly transforms?: TransformStep<"string.uppercase" | "value.fallback" | "date.formatShort" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.footerRootStyle" | "ui.headerNavLinkClass" | "ui.headingClassFromAlignment" | "ui.bodyClassFromAlignment" | "ui.stackAlignFromAlignment" | "ui.sectionStateTone" | "ui.heroContentWrapperClass" | "ui.heroCtaJustify" | "ui.heroStackJustifyFromVerticalAlignment" | "ui.heroGridClassFromVerticalAlignment" | "ui.conditionalClass" | "ui.twoColumnContainerClass" | "ui.twoColumnFlexBasis" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitNavSingleClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible">[] | undefined;
110
110
  readonly from: string;
111
111
  };
112
112
  };
@@ -7,19 +7,19 @@ declare const BaseContentFieldSchema: z.ZodObject<{
7
7
  type: z.ZodEnum<{
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
10
+ link: "link";
11
11
  url: "url";
12
+ date: "date";
13
+ text: "text";
14
+ textarea: "textarea";
15
+ select: "select";
12
16
  media: "media";
13
17
  button: "button";
14
- link: "link";
15
- select: "select";
16
- textarea: "textarea";
17
- text: "text";
18
- richText: "richText";
18
+ group: "group";
19
19
  datetime: "datetime";
20
20
  reference: "reference";
21
+ richText: "richText";
21
22
  repeater: "repeater";
22
- group: "group";
23
23
  }>;
24
24
  label: z.ZodOptional<z.ZodString>;
25
25
  description: z.ZodOptional<z.ZodString>;
@@ -51,8 +51,8 @@ declare const BaseContentFieldSchema: z.ZodObject<{
51
51
  }, z.core.$strip>>;
52
52
  valueFrom: z.ZodOptional<z.ZodEnum<{
53
53
  id: "id";
54
- identifier: "identifier";
55
54
  slug: "slug";
55
+ identifier: "identifier";
56
56
  }>>;
57
57
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58
58
  itemLabel: z.ZodOptional<z.ZodString>;
@@ -77,6 +77,7 @@ export declare const ROUTE_METADATA_MANAGED_FIELDS_BY_TYPE: {
77
77
  readonly course: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
78
78
  readonly product: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
79
79
  readonly "product-category": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
80
+ readonly "team-member": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
80
81
  };
81
82
  export declare function getManagedRouteMetadataFieldIdsForType(typeKey: string | null | undefined): ReadonlyArray<RouteMetadataFieldId>;
82
83
  export declare function isRouteMetadataFieldEditableForType(typeKey: string | null | undefined, fieldId: string): boolean;
@@ -60,6 +60,7 @@ export type AppointmentId = Brand<string, 'AppointmentId'>;
60
60
  export type AppointmentServiceId = Brand<string, 'AppointmentServiceId'>;
61
61
  export type AppointmentResourceId = Brand<string, 'AppointmentResourceId'>;
62
62
  export type StaffMemberId = Brand<string, 'StaffMemberId'>;
63
+ export type ContentEntryId = Brand<string, 'ContentEntryId'>;
63
64
  export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
64
65
  export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
65
66
  export type EmailAuditRowId = Brand<string, 'EmailAuditRowId'>;
@@ -134,6 +135,7 @@ export declare const asAppointmentId: (id: string) => AppointmentId;
134
135
  export declare const asAppointmentServiceId: (id: string) => AppointmentServiceId;
135
136
  export declare const asAppointmentResourceId: (id: string) => AppointmentResourceId;
136
137
  export declare const asStaffMemberId: (id: string) => StaffMemberId;
138
+ export declare const asContentEntryId: (id: string) => ContentEntryId;
137
139
  export declare const asStripeInvoiceId: (id: string) => StripeInvoiceId;
138
140
  export declare const asNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
139
141
  export declare const asEmailAuditRowId: (id: string) => EmailAuditRowId;
@@ -461,7 +461,7 @@ export type Database = {
461
461
  foreignKeyName: "appointment_availability_rules_resource_id_fkey";
462
462
  columns: ["resource_id"];
463
463
  isOneToOne: false;
464
- referencedRelation: "appointment_resources";
464
+ referencedRelation: "staff_members";
465
465
  referencedColumns: ["id"];
466
466
  },
467
467
  {
@@ -513,7 +513,7 @@ export type Database = {
513
513
  foreignKeyName: "appointment_blackouts_resource_id_fkey";
514
514
  columns: ["resource_id"];
515
515
  isOneToOne: false;
516
- referencedRelation: "appointment_resources";
516
+ referencedRelation: "staff_members";
517
517
  referencedColumns: ["id"];
518
518
  },
519
519
  {
@@ -579,7 +579,7 @@ export type Database = {
579
579
  foreignKeyName: "appointment_calendar_connections_resource_id_fkey";
580
580
  columns: ["resource_id"];
581
581
  isOneToOne: false;
582
- referencedRelation: "appointment_resources";
582
+ referencedRelation: "staff_members";
583
583
  referencedColumns: ["id"];
584
584
  },
585
585
  {
@@ -722,6 +722,7 @@ export type Database = {
722
722
  };
723
723
  appointment_resources: {
724
724
  Row: {
725
+ archived_at: string | null;
725
726
  avatar_asset_id: string | null;
726
727
  bio: string | null;
727
728
  calendar_sync_enabled: boolean;
@@ -735,6 +736,7 @@ export type Database = {
735
736
  user_id: string | null;
736
737
  };
737
738
  Insert: {
739
+ archived_at?: string | null;
738
740
  avatar_asset_id?: string | null;
739
741
  bio?: string | null;
740
742
  calendar_sync_enabled?: boolean;
@@ -748,6 +750,7 @@ export type Database = {
748
750
  user_id?: string | null;
749
751
  };
750
752
  Update: {
753
+ archived_at?: string | null;
751
754
  avatar_asset_id?: string | null;
752
755
  bio?: string | null;
753
756
  calendar_sync_enabled?: boolean;
@@ -954,7 +957,7 @@ export type Database = {
954
957
  foreignKeyName: "appointments_resource_id_fkey";
955
958
  columns: ["resource_id"];
956
959
  isOneToOne: false;
957
- referencedRelation: "appointment_resources";
960
+ referencedRelation: "staff_members";
958
961
  referencedColumns: ["id"];
959
962
  },
960
963
  {
@@ -3615,6 +3618,7 @@ export type Database = {
3615
3618
  sdk_content_hash: string | null;
3616
3619
  sdk_synced_at: string | null;
3617
3620
  site_id: string;
3621
+ staff_member_owner_id: string | null;
3618
3622
  updated_at: string;
3619
3623
  updated_by: string | null;
3620
3624
  };
@@ -3632,6 +3636,7 @@ export type Database = {
3632
3636
  sdk_content_hash?: string | null;
3633
3637
  sdk_synced_at?: string | null;
3634
3638
  site_id: string;
3639
+ staff_member_owner_id?: string | null;
3635
3640
  updated_at?: string;
3636
3641
  updated_by?: string | null;
3637
3642
  };
@@ -3649,6 +3654,7 @@ export type Database = {
3649
3654
  sdk_content_hash?: string | null;
3650
3655
  sdk_synced_at?: string | null;
3651
3656
  site_id?: string;
3657
+ staff_member_owner_id?: string | null;
3652
3658
  updated_at?: string;
3653
3659
  updated_by?: string | null;
3654
3660
  };
@@ -3687,6 +3693,13 @@ export type Database = {
3687
3693
  isOneToOne: false;
3688
3694
  referencedRelation: "sites";
3689
3695
  referencedColumns: ["id"];
3696
+ },
3697
+ {
3698
+ foreignKeyName: "content_entries_staff_member_owner_id_fkey";
3699
+ columns: ["staff_member_owner_id"];
3700
+ isOneToOne: false;
3701
+ referencedRelation: "staff_members";
3702
+ referencedColumns: ["id"];
3690
3703
  }
3691
3704
  ];
3692
3705
  };
@@ -6151,7 +6164,7 @@ export type Database = {
6151
6164
  foreignKeyName: "event_occurrence_staff_members_staff_member_id_fkey";
6152
6165
  columns: ["staff_member_id"];
6153
6166
  isOneToOne: false;
6154
- referencedRelation: "appointment_resources";
6167
+ referencedRelation: "staff_members";
6155
6168
  referencedColumns: ["id"];
6156
6169
  }
6157
6170
  ];
@@ -6582,7 +6595,7 @@ export type Database = {
6582
6595
  foreignKeyName: "event_series_staff_members_staff_member_id_fkey";
6583
6596
  columns: ["staff_member_id"];
6584
6597
  isOneToOne: false;
6585
- referencedRelation: "appointment_resources";
6598
+ referencedRelation: "staff_members";
6586
6599
  referencedColumns: ["id"];
6587
6600
  }
6588
6601
  ];
@@ -10651,7 +10664,7 @@ export type Database = {
10651
10664
  foreignKeyName: "service_resources_resource_id_fkey";
10652
10665
  columns: ["resource_id"];
10653
10666
  isOneToOne: false;
10654
- referencedRelation: "appointment_resources";
10667
+ referencedRelation: "staff_members";
10655
10668
  referencedColumns: ["id"];
10656
10669
  },
10657
10670
  {
@@ -11537,7 +11550,7 @@ export type Database = {
11537
11550
  foreignKeyName: "site_memberships_linked_staff_member_id_fkey";
11538
11551
  columns: ["linked_staff_member_id"];
11539
11552
  isOneToOne: false;
11540
- referencedRelation: "appointment_resources";
11553
+ referencedRelation: "staff_members";
11541
11554
  referencedColumns: ["id"];
11542
11555
  },
11543
11556
  {
@@ -12137,6 +12150,85 @@ export type Database = {
12137
12150
  };
12138
12151
  Relationships: [];
12139
12152
  };
12153
+ staff_members: {
12154
+ Row: {
12155
+ archived_at: string | null;
12156
+ archived_by: string | null;
12157
+ avatar_asset_id: string | null;
12158
+ bio: string | null;
12159
+ calendar_sync_enabled: boolean;
12160
+ color_hex: string | null;
12161
+ content_entry_id: string | null;
12162
+ created_at: string;
12163
+ display_name: string;
12164
+ id: string;
12165
+ role_label: string | null;
12166
+ short_bio: string | null;
12167
+ site_id: string;
12168
+ timezone: string;
12169
+ updated_at: string;
12170
+ user_id: string | null;
12171
+ };
12172
+ Insert: {
12173
+ archived_at?: string | null;
12174
+ archived_by?: string | null;
12175
+ avatar_asset_id?: string | null;
12176
+ bio?: string | null;
12177
+ calendar_sync_enabled?: boolean;
12178
+ color_hex?: string | null;
12179
+ content_entry_id?: string | null;
12180
+ created_at?: string;
12181
+ display_name: string;
12182
+ id?: string;
12183
+ role_label?: string | null;
12184
+ short_bio?: string | null;
12185
+ site_id: string;
12186
+ timezone?: string;
12187
+ updated_at?: string;
12188
+ user_id?: string | null;
12189
+ };
12190
+ Update: {
12191
+ archived_at?: string | null;
12192
+ archived_by?: string | null;
12193
+ avatar_asset_id?: string | null;
12194
+ bio?: string | null;
12195
+ calendar_sync_enabled?: boolean;
12196
+ color_hex?: string | null;
12197
+ content_entry_id?: string | null;
12198
+ created_at?: string;
12199
+ display_name?: string;
12200
+ id?: string;
12201
+ role_label?: string | null;
12202
+ short_bio?: string | null;
12203
+ site_id?: string;
12204
+ timezone?: string;
12205
+ updated_at?: string;
12206
+ user_id?: string | null;
12207
+ };
12208
+ Relationships: [
12209
+ {
12210
+ foreignKeyName: "staff_members_avatar_asset_id_fkey";
12211
+ columns: ["avatar_asset_id"];
12212
+ isOneToOne: false;
12213
+ referencedRelation: "media_assets";
12214
+ referencedColumns: ["id"];
12215
+ },
12216
+ {
12217
+ foreignKeyName: "staff_members_content_entry_id_fkey";
12218
+ columns: ["content_entry_id"];
12219
+ isOneToOne: true;
12220
+ referencedRelation: "content_entries";
12221
+ referencedColumns: ["id"];
12222
+ },
12223
+ {
12224
+ foreignKeyName: "staff_members_site_id_fkey";
12225
+ columns: ["site_id"];
12226
+ isOneToOne: false;
12227
+ referencedRelation: "sites";
12228
+ referencedColumns: ["id"];
12229
+ }
12230
+ ];
12231
+ };
12140
12232
  themes: {
12141
12233
  Row: {
12142
12234
  created_at: string;
@@ -13523,6 +13615,30 @@ export type Database = {
13523
13615
  };
13524
13616
  };
13525
13617
  Functions: {
13618
+ accept_site_invitation: {
13619
+ Args: {
13620
+ p_invitation_id: string;
13621
+ p_user?: string;
13622
+ };
13623
+ Returns: {
13624
+ accepted_at: string | null;
13625
+ created_at: string;
13626
+ id: string;
13627
+ invited_by: string | null;
13628
+ linked_staff_member_id: string | null;
13629
+ removed_at: string | null;
13630
+ role: Database["public"]["Enums"]["site_role"];
13631
+ site_id: string;
13632
+ updated_at: string;
13633
+ user_id: string;
13634
+ };
13635
+ SetofOptions: {
13636
+ from: "*";
13637
+ to: "site_memberships";
13638
+ isOneToOne: true;
13639
+ isSetofReturn: false;
13640
+ };
13641
+ };
13526
13642
  adjust_product_inventory: {
13527
13643
  Args: {
13528
13644
  p_enforce_available?: boolean;