@xyo-network/url-safety-payload-plugin 5.2.4 → 5.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/url-safety-payload-plugin",
3
- "version": "5.2.4",
3
+ "version": "5.3.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,17 +35,21 @@
35
35
  "!**/*.spec.*",
36
36
  "!**/*.test.*"
37
37
  ],
38
- "dependencies": {
39
- "@xyo-network/payload-model": "~5.2.14",
40
- "@xyo-network/payload-plugin": "~5.2.14",
41
- "@xyo-network/url-payload-plugin": "~5.2.4"
42
- },
43
38
  "devDependencies": {
44
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
45
- "@xylabs/tsconfig": "~7.2.8",
46
- "typescript": "~5.9.3"
39
+ "@xylabs/sdk-js": "^5.0.90",
40
+ "@xylabs/ts-scripts-yarn3": "~7.5.10",
41
+ "@xylabs/tsconfig": "~7.5.10",
42
+ "@xyo-network/payload-model": "~5.3.5",
43
+ "@xyo-network/payload-plugin": "~5.3.5",
44
+ "@xyo-network/url-payload-plugin": "5.3.2",
45
+ "typescript": "~5.9.3",
46
+ "zod": "^4.3.6"
47
+ },
48
+ "peerDependencies": {
49
+ "@xylabs/sdk-js": "^5",
50
+ "zod": "^4"
47
51
  },
48
52
  "publishConfig": {
49
53
  "access": "public"
50
54
  }
51
- }
55
+ }
package/src/Schema.ts CHANGED
@@ -1,2 +1,4 @@
1
- export const UrlSafetySchema = 'network.xyo.url.safety'
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
3
+ export const UrlSafetySchema = asSchema('network.xyo.url.safety', true)
2
4
  export type UrlSafetySchema = typeof UrlSafetySchema
@@ -1,8 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model';
2
- import type { UrlPayload } from '@xyo-network/url-payload-plugin';
3
- import type { UrlSafetySchema } from './Schema.ts';
4
- export type UrlSafetyThreatType = 'SOCIAL_ENGINEERING' | 'POTENTIALLY_HARMFUL_APPLICATION' | 'UNWANTED_SOFTWARE' | 'THREAT_TYPE_UNSPECIFIED';
5
- export type UrlSafetyPayload = Payload<Omit<UrlPayload, 'schema'> & {
6
- threatTypes?: UrlSafetyThreatType[];
7
- }, UrlSafetySchema>;
8
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,iCAAiC,GAAG,mBAAmB,GAAG,yBAAyB,CAAA;AAE5I,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG;IAC3B,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACpC,EACD,eAAe,CAChB,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { UrlSafetyPayload } from './Payload.ts';
2
- export declare const UrlSafetyPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<UrlSafetyPayload>;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAGpD,eAAO,MAAM,sBAAsB,6EACiC,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const UrlSafetySchema = "network.xyo.url.safety";
2
- export type UrlSafetySchema = typeof UrlSafetySchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Payload.ts';
2
- export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin.ts';
3
- export * from './Schema.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACvF,cAAc,aAAa,CAAA"}
@@ -1,14 +0,0 @@
1
- // src/Plugin.ts
2
- import { createPayloadPlugin } from "@xyo-network/payload-plugin";
3
-
4
- // src/Schema.ts
5
- var UrlSafetySchema = "network.xyo.url.safety";
6
-
7
- // src/Plugin.ts
8
- var UrlSafetyPayloadPlugin = () => createPayloadPlugin({ schema: UrlSafetySchema });
9
- export {
10
- UrlSafetyPayloadPlugin,
11
- UrlSafetySchema,
12
- UrlSafetyPayloadPlugin as default
13
- };
14
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { UrlSafetyPayload } from './Payload.ts'\nimport { UrlSafetySchema } from './Schema.ts'\n\nexport const UrlSafetyPayloadPlugin = () =>\n createPayloadPlugin<UrlSafetyPayload>({ schema: UrlSafetySchema })\n","export const UrlSafetySchema = 'network.xyo.url.safety'\nexport type UrlSafetySchema = typeof UrlSafetySchema\n"],"mappings":";AAAA,SAAS,2BAA2B;;;ACA7B,IAAM,kBAAkB;;;ADKxB,IAAM,yBAAyB,MACpC,oBAAsC,EAAE,QAAQ,gBAAgB,CAAC;","names":[]}