@xyo-network/url-safety-payload-plugin 2.94.3 → 2.94.4

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 { Payload } from '@xyo-network/payload-model';
2
+ import { UrlPayload } from '@xyo-network/url-payload-plugin';
3
+ import { UrlSafetySchema } from './Schema';
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,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,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,8 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { UrlPayload } from '@xyo-network/url-payload-plugin';
3
+ import { UrlSafetySchema } from './Schema';
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,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,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,8 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { UrlPayload } from '@xyo-network/url-payload-plugin';
3
+ import { UrlSafetySchema } from './Schema';
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,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,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,9 @@
1
+ export declare const UrlSafetyPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
+ schema: "network.xyo.url";
3
+ url: string;
4
+ }, "schema"> & {
5
+ threatTypes?: import("./Payload").UrlSafetyThreatType[] | undefined;
6
+ } & {
7
+ schema: "network.xyo.url.safety";
8
+ }>;
9
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAG/B,CAAA"}
@@ -0,0 +1,9 @@
1
+ export declare const UrlSafetyPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
+ schema: "network.xyo.url";
3
+ url: string;
4
+ }, "schema"> & {
5
+ threatTypes?: import("./Payload").UrlSafetyThreatType[] | undefined;
6
+ } & {
7
+ schema: "network.xyo.url.safety";
8
+ }>;
9
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAG/B,CAAA"}
@@ -0,0 +1,9 @@
1
+ export declare const UrlSafetyPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
+ schema: "network.xyo.url";
3
+ url: string;
4
+ }, "schema"> & {
5
+ threatTypes?: import("./Payload").UrlSafetyThreatType[] | undefined;
6
+ } & {
7
+ schema: "network.xyo.url.safety";
8
+ }>;
9
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAG/B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const UrlSafetySchema = "network.xyo.url.safety";
2
+ export type UrlSafetySchema = typeof UrlSafetySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export declare const UrlSafetySchema = "network.xyo.url.safety";
2
+ export type UrlSafetySchema = typeof UrlSafetySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export declare const UrlSafetySchema = "network.xyo.url.safety";
2
+ export type UrlSafetySchema = typeof UrlSafetySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ UrlSafetyPayloadPlugin: () => UrlSafetyPayloadPlugin,
24
+ UrlSafetySchema: () => UrlSafetySchema,
25
+ default: () => UrlSafetyPayloadPlugin
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+
29
+ // src/Plugin.ts
30
+ var import_payload_plugin = require("@xyo-network/payload-plugin");
31
+
32
+ // src/Schema.ts
33
+ var UrlSafetySchema = "network.xyo.url.safety";
34
+
35
+ // src/Plugin.ts
36
+ var UrlSafetyPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
37
+ schema: UrlSafetySchema
38
+ });
39
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Payload'\nexport { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin'\nexport * from './Schema'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { UrlSafetyPayload } from './Payload'\nimport { UrlSafetySchema } from './Schema'\n\nexport const UrlSafetyPayloadPlugin = () =>\n createPayloadPlugin<UrlSafetyPayload>({\n schema: UrlSafetySchema,\n })\n","export const UrlSafetySchema = 'network.xyo.url.safety'\nexport type UrlSafetySchema = typeof UrlSafetySchema\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAoC;;;ACA7B,IAAM,kBAAkB;;;ADKxB,IAAM,yBAAyB,UACpC,2CAAsC;AAAA,EACpC,QAAQ;AACV,CAAC;","names":[]}
@@ -0,0 +1,4 @@
1
+ export * from './Payload';
2
+ export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin';
3
+ export * from './Schema';
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,WAAW,CAAA;AACzB,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACpF,cAAc,UAAU,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Payload';
2
+ export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin';
3
+ export * from './Schema';
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,WAAW,CAAA;AACzB,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACpF,cAAc,UAAU,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Payload';
2
+ export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin';
3
+ export * from './Schema';
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,WAAW,CAAA;AACzB,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACpF,cAAc,UAAU,CAAA"}
@@ -0,0 +1,16 @@
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({
9
+ schema: UrlSafetySchema
10
+ });
11
+ export {
12
+ UrlSafetyPayloadPlugin,
13
+ UrlSafetySchema,
14
+ UrlSafetyPayloadPlugin as default
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { UrlSafetyPayload } from './Payload'\nimport { UrlSafetySchema } from './Schema'\n\nexport const UrlSafetyPayloadPlugin = () =>\n createPayloadPlugin<UrlSafetyPayload>({\n schema: UrlSafetySchema,\n })\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;AAAA,EACpC,QAAQ;AACV,CAAC;","names":[]}
package/package.json CHANGED
@@ -10,13 +10,13 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/payload-model": "^2.99.1",
14
- "@xyo-network/payload-plugin": "^2.99.1",
15
- "@xyo-network/url-payload-plugin": "~2.94.3"
13
+ "@xyo-network/payload-model": "^2.99.3",
14
+ "@xyo-network/payload-plugin": "^2.99.3",
15
+ "@xyo-network/url-payload-plugin": "~2.94.4"
16
16
  },
17
17
  "devDependencies": {
18
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
19
- "@xylabs/tsconfig": "^3.9.1",
18
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
19
+ "@xylabs/tsconfig": "^3.10.0",
20
20
  "typescript": "^5.4.5"
21
21
  },
22
22
  "description": "Typescript/Javascript Plugins for XYO Platform",
@@ -58,6 +58,6 @@
58
58
  "url": "https://github.com/XYOracleNetwork/plugins.git"
59
59
  },
60
60
  "sideEffects": false,
61
- "version": "2.94.3",
61
+ "version": "2.94.4",
62
62
  "type": "module"
63
63
  }