@wealthsweet/embed-react
Advanced tools
+27
-95
@@ -33,103 +33,34 @@ import { z } from 'zod'; | ||
| } & CommonEmbedMessageFields; | ||
| declare const embedMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{ | ||
| declare const embedMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ | ||
| type: z.ZodLiteral<"INITIALISING">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "INITIALISING"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "INITIALISING"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"INITIALISING_DONE">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "INITIALISING_DONE"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "INITIALISING_DONE"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"RENDERING">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "RENDERING"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "RENDERING"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"RENDERING_DONE">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "RENDERING_DONE"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "RENDERING_DONE"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"USER_EVENT">; | ||
| userEventTime: z.ZodNullable<z.ZodNumber>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "USER_EVENT"; | ||
| userEventTime: number | null; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "USER_EVENT"; | ||
| userEventTime: number | null; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"USER_IDLE">; | ||
| lastActiveTime: z.ZodNullable<z.ZodNumber>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "USER_IDLE"; | ||
| lastActiveTime: number | null; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "USER_IDLE"; | ||
| lastActiveTime: number | null; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"ERROR">; | ||
| errorDigest: z.ZodOptional<z.ZodString>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "ERROR"; | ||
| message?: string | undefined; | ||
| errorDigest?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "ERROR"; | ||
| message?: string | undefined; | ||
| errorDigest?: string | undefined; | ||
| }>]>; | ||
| }, z.core.$strip>]>; | ||
| type EmbedMessage = InitialisingEmbedMessage | InitialisingDoneEmbedMessage | RenderingEmbedMessage | RenderingDoneEmbedMessage | UserEventEmbedMessage | UserIdleEmbedMessage | ErrorEmbedMessage; | ||
@@ -165,2 +96,13 @@ | ||
| }; | ||
| serviceHealth: { | ||
| /** | ||
| * @description The health of the service | ||
| * @enum {string} | ||
| */ | ||
| health: "Healthy" | "Unhealthy"; | ||
| /** @description A message relating to the health of a service */ | ||
| message?: string; | ||
| /** @description The error associated with with an unhealthy service */ | ||
| error?: string; | ||
| }; | ||
| generateAuthTokenResponse: { | ||
@@ -174,3 +116,10 @@ /** @description Authorisation token */ | ||
| }; | ||
| serviceHealth: { | ||
| serviceHealthResponse: { | ||
| api: components["schemas"]["serviceHealthOutput"]; | ||
| database: components["schemas"]["serviceHealthOutput"]; | ||
| pubStorage: components["schemas"]["serviceHealthOutput"]; | ||
| /** @deprecated */ | ||
| azure: components["schemas"]["serviceHealthOutput"]; | ||
| }; | ||
| serviceHealthOutput: { | ||
| /** | ||
@@ -186,19 +135,2 @@ * @description The health of the service | ||
| }; | ||
| serviceHealthResponse: { | ||
| api: components["schemas"]["serviceHealth"]; | ||
| database: components["schemas"]["serviceHealth"]; | ||
| pubStorage: components["schemas"]["serviceHealth"]; | ||
| /** @deprecated */ | ||
| azure: { | ||
| /** | ||
| * @description The health of the service | ||
| * @enum {string} | ||
| */ | ||
| health: "Healthy" | "Unhealthy"; | ||
| /** @description A message relating to the health of a service */ | ||
| message?: string; | ||
| /** @description The error associated with with an unhealthy service */ | ||
| error?: string; | ||
| }; | ||
| }; | ||
| }; | ||
@@ -205,0 +137,0 @@ responses: never; |
+27
-95
@@ -33,103 +33,34 @@ import { z } from 'zod'; | ||
| } & CommonEmbedMessageFields; | ||
| declare const embedMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{ | ||
| declare const embedMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ | ||
| type: z.ZodLiteral<"INITIALISING">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "INITIALISING"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "INITIALISING"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"INITIALISING_DONE">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "INITIALISING_DONE"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "INITIALISING_DONE"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"RENDERING">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "RENDERING"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "RENDERING"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"RENDERING_DONE">; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "RENDERING_DONE"; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "RENDERING_DONE"; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"USER_EVENT">; | ||
| userEventTime: z.ZodNullable<z.ZodNumber>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "USER_EVENT"; | ||
| userEventTime: number | null; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "USER_EVENT"; | ||
| userEventTime: number | null; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"USER_IDLE">; | ||
| lastActiveTime: z.ZodNullable<z.ZodNumber>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "USER_IDLE"; | ||
| lastActiveTime: number | null; | ||
| message?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "USER_IDLE"; | ||
| lastActiveTime: number | null; | ||
| message?: string | undefined; | ||
| }>, z.ZodObject<z.objectUtil.extendShape<{ | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"ERROR">; | ||
| errorDigest: z.ZodOptional<z.ZodString>; | ||
| }, { | ||
| messageTime: z.ZodNumber; | ||
| message: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
| messageTime: number; | ||
| type: "ERROR"; | ||
| message?: string | undefined; | ||
| errorDigest?: string | undefined; | ||
| }, { | ||
| messageTime: number; | ||
| type: "ERROR"; | ||
| message?: string | undefined; | ||
| errorDigest?: string | undefined; | ||
| }>]>; | ||
| }, z.core.$strip>]>; | ||
| type EmbedMessage = InitialisingEmbedMessage | InitialisingDoneEmbedMessage | RenderingEmbedMessage | RenderingDoneEmbedMessage | UserEventEmbedMessage | UserIdleEmbedMessage | ErrorEmbedMessage; | ||
@@ -165,2 +96,13 @@ | ||
| }; | ||
| serviceHealth: { | ||
| /** | ||
| * @description The health of the service | ||
| * @enum {string} | ||
| */ | ||
| health: "Healthy" | "Unhealthy"; | ||
| /** @description A message relating to the health of a service */ | ||
| message?: string; | ||
| /** @description The error associated with with an unhealthy service */ | ||
| error?: string; | ||
| }; | ||
| generateAuthTokenResponse: { | ||
@@ -174,3 +116,10 @@ /** @description Authorisation token */ | ||
| }; | ||
| serviceHealth: { | ||
| serviceHealthResponse: { | ||
| api: components["schemas"]["serviceHealthOutput"]; | ||
| database: components["schemas"]["serviceHealthOutput"]; | ||
| pubStorage: components["schemas"]["serviceHealthOutput"]; | ||
| /** @deprecated */ | ||
| azure: components["schemas"]["serviceHealthOutput"]; | ||
| }; | ||
| serviceHealthOutput: { | ||
| /** | ||
@@ -186,19 +135,2 @@ * @description The health of the service | ||
| }; | ||
| serviceHealthResponse: { | ||
| api: components["schemas"]["serviceHealth"]; | ||
| database: components["schemas"]["serviceHealth"]; | ||
| pubStorage: components["schemas"]["serviceHealth"]; | ||
| /** @deprecated */ | ||
| azure: { | ||
| /** | ||
| * @description The health of the service | ||
| * @enum {string} | ||
| */ | ||
| health: "Healthy" | "Unhealthy"; | ||
| /** @description A message relating to the health of a service */ | ||
| message?: string; | ||
| /** @description The error associated with with an unhealthy service */ | ||
| error?: string; | ||
| }; | ||
| }; | ||
| }; | ||
@@ -205,0 +137,0 @@ responses: never; |
+14
-14
| { | ||
| "name": "@wealthsweet/embed-react", | ||
| "version": "1.2.1", | ||
| "version": "1.2.2", | ||
| "devDependencies": { | ||
| "@eslint/compat": "^1.2.7", | ||
| "@eslint/eslintrc": "^3.3.0", | ||
| "@eslint/js": "^9.13.0", | ||
| "@types/react": "19.0.10", | ||
| "eslint": "^9.13.0", | ||
| "eslint-plugin-react": "^7.37.4", | ||
| "@eslint/compat": "^1.3.1", | ||
| "@eslint/eslintrc": "^3.3.1", | ||
| "@eslint/js": "^9.32.0", | ||
| "@types/react": "19.1.9", | ||
| "eslint": "^9.32.0", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-react-hooks": "^5.2.0", | ||
| "globals": "^16.0.0", | ||
| "prettier": "^3.3.3", | ||
| "tsup": "^8.2.4", | ||
| "typescript": "5.5.4", | ||
| "typescript-eslint": "^8.25.0", | ||
| "@wealthsweet/embed-message-api": "1.1.0", | ||
| "@wealthsweet/http-apis": "1.3.0" | ||
| "globals": "^16.3.0", | ||
| "prettier": "^3.6.2", | ||
| "tsup": "^8.5.0", | ||
| "typescript": "5.9.2", | ||
| "typescript-eslint": "^8.39.0", | ||
| "@wealthsweet/embed-message-api": "1.1.1", | ||
| "@wealthsweet/http-apis": "1.3.1" | ||
| }, | ||
@@ -20,0 +20,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
570447
213.07%2496
137.71%6
-71.43%