@sanity/types 4.7.0-next.9 → 4.7.1-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -717,6 +717,18 @@ export declare interface CanvasAppOptions {
717
717
  purpose?: string
718
718
  }
719
719
 
720
+ /**
721
+ * @internal
722
+ * Payload that will be passed by canvas to our notifications system to display the notification in canvas.
723
+ * */
724
+ export declare interface CanvasNotificationPayload extends DashboardNotificationPayload {
725
+ applicationType: 'canvas'
726
+ link: {
727
+ type: 'dashboard'
728
+ path: string
729
+ }
730
+ }
731
+
720
732
  /** @public */
721
733
  export declare interface CollapseOptions {
722
734
  collapsed?: boolean
@@ -908,6 +920,34 @@ export declare type CustomValidatorResult =
908
920
  | ValidationError[]
909
921
  | LocalizedValidationMessages
910
922
 
923
+ /**
924
+ * @internal
925
+ * Payload notifications have to provide to the notification system in order to display correctly in dashboard
926
+ */
927
+ export declare interface DashboardNotificationPayload {
928
+ version: '1.0.0'
929
+ applicationType: string
930
+ createdAt: string
931
+ /**
932
+ * The user who took the action which triggered the notification.
933
+ */
934
+ actor: User
935
+ title: PortableTextBlock[]
936
+ body: PortableTextBlock[] | undefined
937
+ organizationId: string
938
+ applicationId?: string
939
+ workspaceName?: string
940
+ link:
941
+ | {
942
+ type: 'url'
943
+ url: string
944
+ }
945
+ | {
946
+ type: 'dashboard'
947
+ path: string
948
+ }
949
+ }
950
+
911
951
  /** @public */
912
952
  export declare interface DateDefinition extends BaseSchemaDefinition {
913
953
  type: 'date'
@@ -3483,6 +3523,20 @@ export declare interface StringSchemaType extends BaseSchemaType {
3483
3523
  initialValue?: InitialValueProperty<any, string>
3484
3524
  }
3485
3525
 
3526
+ /**
3527
+ * @internal
3528
+ * Payload that will be passed by the comments backend to our notifications system to display the notification in dashboard.
3529
+ * */
3530
+ export declare interface StudioNotificationPayload extends DashboardNotificationPayload {
3531
+ applicationType: 'studio'
3532
+ applicationId: string | undefined
3533
+ workspaceName: string | undefined
3534
+ link: {
3535
+ type: 'url'
3536
+ url: string
3537
+ }
3538
+ }
3539
+
3486
3540
  /** @public */
3487
3541
  export declare type SwatchName =
3488
3542
  | 'darkMuted'
package/lib/index.d.ts CHANGED
@@ -717,6 +717,18 @@ export declare interface CanvasAppOptions {
717
717
  purpose?: string
718
718
  }
719
719
 
720
+ /**
721
+ * @internal
722
+ * Payload that will be passed by canvas to our notifications system to display the notification in canvas.
723
+ * */
724
+ export declare interface CanvasNotificationPayload extends DashboardNotificationPayload {
725
+ applicationType: 'canvas'
726
+ link: {
727
+ type: 'dashboard'
728
+ path: string
729
+ }
730
+ }
731
+
720
732
  /** @public */
721
733
  export declare interface CollapseOptions {
722
734
  collapsed?: boolean
@@ -908,6 +920,34 @@ export declare type CustomValidatorResult =
908
920
  | ValidationError[]
909
921
  | LocalizedValidationMessages
910
922
 
923
+ /**
924
+ * @internal
925
+ * Payload notifications have to provide to the notification system in order to display correctly in dashboard
926
+ */
927
+ export declare interface DashboardNotificationPayload {
928
+ version: '1.0.0'
929
+ applicationType: string
930
+ createdAt: string
931
+ /**
932
+ * The user who took the action which triggered the notification.
933
+ */
934
+ actor: User
935
+ title: PortableTextBlock[]
936
+ body: PortableTextBlock[] | undefined
937
+ organizationId: string
938
+ applicationId?: string
939
+ workspaceName?: string
940
+ link:
941
+ | {
942
+ type: 'url'
943
+ url: string
944
+ }
945
+ | {
946
+ type: 'dashboard'
947
+ path: string
948
+ }
949
+ }
950
+
911
951
  /** @public */
912
952
  export declare interface DateDefinition extends BaseSchemaDefinition {
913
953
  type: 'date'
@@ -3483,6 +3523,20 @@ export declare interface StringSchemaType extends BaseSchemaType {
3483
3523
  initialValue?: InitialValueProperty<any, string>
3484
3524
  }
3485
3525
 
3526
+ /**
3527
+ * @internal
3528
+ * Payload that will be passed by the comments backend to our notifications system to display the notification in dashboard.
3529
+ * */
3530
+ export declare interface StudioNotificationPayload extends DashboardNotificationPayload {
3531
+ applicationType: 'studio'
3532
+ applicationId: string | undefined
3533
+ workspaceName: string | undefined
3534
+ link: {
3535
+ type: 'url'
3536
+ url: string
3537
+ }
3538
+ }
3539
+
3486
3540
  /** @public */
3487
3541
  export declare type SwatchName =
3488
3542
  | 'darkMuted'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "4.7.0-next.9+4f61f1088c",
3
+ "version": "4.7.1-next.1+b0f0c79715",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "sanity",
@@ -40,19 +40,19 @@
40
40
  "lib"
41
41
  ],
42
42
  "dependencies": {
43
- "@sanity/client": "^7.10.0",
43
+ "@sanity/client": "^7.11.0",
44
44
  "@sanity/media-library-types": "^1.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@sanity/insert-menu": "2.0.1",
47
+ "@sanity/insert-menu": "2.0.2",
48
48
  "@types/react": "^19.1.9",
49
49
  "@vitejs/plugin-react": "^4.6.0",
50
- "react": "^18.3.1",
50
+ "react": "^19.1.1",
51
51
  "rimraf": "^5.0.10",
52
52
  "vitest": "^3.2.4",
53
- "@repo/eslint-config": "4.7.0-next.9+4f61f1088c",
54
- "@repo/test-config": "4.7.0-next.9+4f61f1088c",
55
- "@repo/package.config": "4.7.0-next.9+4f61f1088c"
53
+ "@repo/eslint-config": "4.7.1-next.1+b0f0c79715",
54
+ "@repo/test-config": "4.7.1-next.1+b0f0c79715",
55
+ "@repo/package.config": "4.7.1-next.1+b0f0c79715"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@types/react": "18 || 19"