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

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.
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
1
+ export declare const UrlSafetySchema: "network.xyo.url.safety" & {
2
+ readonly __schema: true;
3
+ };
4
+ export type UrlSafetySchema = typeof UrlSafetySchema;
5
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;CAA2C,CAAA;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,15 @@
1
+ // src/Plugin.ts
2
+ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
3
+
4
+ // src/Schema.ts
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var UrlSafetySchema = asSchema("network.xyo.url.safety", true);
7
+
8
+ // src/Plugin.ts
9
+ var UrlSafetyPayloadPlugin = () => createPayloadPlugin({ schema: UrlSafetySchema });
10
+ export {
11
+ UrlSafetyPayloadPlugin,
12
+ UrlSafetySchema,
13
+ UrlSafetyPayloadPlugin as default
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
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","import { asSchema } from '@xyo-network/payload-model'\n\nexport const UrlSafetySchema = asSchema('network.xyo.url.safety', true)\nexport type UrlSafetySchema = typeof UrlSafetySchema\n"],"mappings":";AAAA,SAAS,2BAA2B;;;ACApC,SAAS,gBAAgB;AAElB,IAAM,kBAAkB,SAAS,0BAA0B,IAAI;;;ADG/D,IAAM,yBAAyB,MACpC,oBAAsC,EAAE,QAAQ,gBAAgB,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/url-safety-payload-plugin",
3
- "version": "5.3.2",
3
+ "version": "5.3.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,23 +30,25 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
- "!**/*.bench.*",
35
- "!**/*.spec.*",
36
- "!**/*.test.*"
33
+ "README.md"
37
34
  ],
35
+ "dependencies": {
36
+ "@xyo-network/url-payload-plugin": "workspace:^"
37
+ },
38
38
  "devDependencies": {
39
39
  "@xylabs/sdk-js": "^5.0.90",
40
+ "@xylabs/ts-scripts-common": "~7.5.10",
40
41
  "@xylabs/ts-scripts-yarn3": "~7.5.10",
41
42
  "@xylabs/tsconfig": "~7.5.10",
42
43
  "@xyo-network/payload-model": "~5.3.5",
43
44
  "@xyo-network/payload-plugin": "~5.3.5",
44
- "@xyo-network/url-payload-plugin": "5.3.2",
45
45
  "typescript": "~5.9.3",
46
46
  "zod": "^4.3.6"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@xylabs/sdk-js": "^5",
50
+ "@xyo-network/payload-model": "^5",
51
+ "@xyo-network/payload-plugin": "^5",
50
52
  "zod": "^4"
51
53
  },
52
54
  "publishConfig": {
package/src/Payload.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
- import type { UrlPayload } from '@xyo-network/url-payload-plugin'
3
-
4
- import type { UrlSafetySchema } from './Schema.ts'
5
-
6
- export type UrlSafetyThreatType = 'SOCIAL_ENGINEERING' | 'POTENTIALLY_HARMFUL_APPLICATION' | 'UNWANTED_SOFTWARE' | 'THREAT_TYPE_UNSPECIFIED'
7
-
8
- export type UrlSafetyPayload = Payload<
9
- Omit<UrlPayload, 'schema'> & {
10
- threatTypes?: UrlSafetyThreatType[]
11
- },
12
- UrlSafetySchema
13
- >
package/src/Plugin.ts DELETED
@@ -1,7 +0,0 @@
1
- import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
-
3
- import type { UrlSafetyPayload } from './Payload.ts'
4
- import { UrlSafetySchema } from './Schema.ts'
5
-
6
- export const UrlSafetyPayloadPlugin = () =>
7
- createPayloadPlugin<UrlSafetyPayload>({ schema: UrlSafetySchema })
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const UrlSafetySchema = asSchema('network.xyo.url.safety', true)
4
- export type UrlSafetySchema = typeof UrlSafetySchema
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts'
2
- export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin.ts'
3
- export * from './Schema.ts'