@veruna/api-contracts 1.0.77 → 1.0.82
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/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +4 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/open-graph.controllers.d.ts +2 -0
- package/build/controllers/open-graph.controllers.js +6 -0
- package/build/controllers/open-graph.controllers.js.map +1 -0
- package/build/rest-api.d.ts +8 -0
- package/build/rest-api.js +8 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +3 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/open-graph.routes.d.ts +3 -0
- package/build/routes/open-graph.routes.js +7 -0
- package/build/routes/open-graph.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +2 -1
- package/build/v1/ai/tool-id.enum.js +1 -0
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +48 -3
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +48 -3
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +48 -3
- package/build/v1/ai-model/schemas/create-model-request.schema.js +1 -1
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +209 -0
- package/build/v1/ai-model/schemas/model-settings.schema.js +41 -1
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +48 -3
- package/build/v1/ai-model/schemas/update-model-request.schema.js +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/message/schemas/generation-step.schema.d.ts +2 -1
- package/build/v1/message/schemas/generation-step.schema.js +1 -0
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/open-graph/index.d.ts +4 -0
- package/build/v1/open-graph/index.js +25 -0
- package/build/v1/open-graph/index.js.map +1 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-reg.query.d.ts +16 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-reg.query.js +14 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-reg.query.js.map +1 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-unreg.query.d.ts +16 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-unreg.query.js +14 -0
- package/build/v1/open-graph/queries/get-open-graph-preview-unreg.query.js.map +1 -0
- package/build/v1/open-graph/queries/index.d.ts +2 -0
- package/build/v1/open-graph/queries/index.js +19 -0
- package/build/v1/open-graph/queries/index.js.map +1 -0
- package/build/v1/open-graph/schemas/index.d.ts +2 -0
- package/build/v1/open-graph/schemas/index.js +19 -0
- package/build/v1/open-graph/schemas/index.js.map +1 -0
- package/build/v1/open-graph/schemas/open-graph-preview-request.schema.d.ts +5 -0
- package/build/v1/open-graph/schemas/open-graph-preview-request.schema.js +8 -0
- package/build/v1/open-graph/schemas/open-graph-preview-request.schema.js.map +1 -0
- package/build/v1/open-graph/schemas/open-graph-preview-response.schema.d.ts +7 -0
- package/build/v1/open-graph/schemas/open-graph-preview-response.schema.js +10 -0
- package/build/v1/open-graph/schemas/open-graph-preview-response.schema.js.map +1 -0
- package/package.json +1 -1
|
@@ -42,11 +42,13 @@ export declare const UpdateModelRequestSchema: z.ZodObject<{
|
|
|
42
42
|
settings: z.ZodOptional<z.ZodObject<{
|
|
43
43
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
44
|
toolId: z.ZodEnum<typeof ToolId>;
|
|
45
|
-
settings: z.ZodArray<z.ZodObject<{
|
|
46
|
-
key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
|
|
45
|
+
settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
46
|
title: z.ZodString;
|
|
48
47
|
icon: z.ZodOptional<z.ZodString>;
|
|
49
48
|
inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
49
|
+
defaultOptionId: z.ZodString;
|
|
50
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
key: z.ZodLiteral<import("./model-settings.schema").SettingKey.STYLE>;
|
|
50
52
|
options: z.ZodArray<z.ZodObject<{
|
|
51
53
|
id: z.ZodString;
|
|
52
54
|
title: z.ZodString;
|
|
@@ -55,9 +57,52 @@ export declare const UpdateModelRequestSchema: z.ZodObject<{
|
|
|
55
57
|
providerValue: z.ZodOptional<z.ZodString>;
|
|
56
58
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
57
59
|
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
63
|
+
inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
58
64
|
defaultOptionId: z.ZodString;
|
|
59
65
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
|
|
66
|
+
key: z.ZodLiteral<import("./model-settings.schema").SettingKey.MAX_RESULTS>;
|
|
67
|
+
options: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
title: z.ZodString;
|
|
70
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
71
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
72
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
73
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
78
|
+
inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
79
|
+
defaultOptionId: z.ZodString;
|
|
80
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
key: z.ZodLiteral<import("./model-settings.schema").SettingKey.ASPECT_RATIO>;
|
|
82
|
+
options: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
title: z.ZodString;
|
|
85
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
86
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
87
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
88
|
+
providerValue: z.ZodString;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
title: z.ZodString;
|
|
92
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
93
|
+
inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
94
|
+
defaultOptionId: z.ZodString;
|
|
95
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
key: z.ZodLiteral<import("./model-settings.schema").SettingKey.RESOLUTION>;
|
|
97
|
+
options: z.ZodArray<z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
101
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
103
|
+
providerValue: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>], "key">>;
|
|
61
106
|
}, z.core.$strip>>>;
|
|
62
107
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
63
108
|
imagePrice: z.ZodNumber;
|
|
@@ -69,6 +69,6 @@ exports.UpdateModelRequestSchema = zod_1.z.object({
|
|
|
69
69
|
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
70
70
|
isAvailableForUnreg: zod_1.z.boolean().optional(),
|
|
71
71
|
plugins: plugins_types_1.PluginsConfigArraySchema.optional(),
|
|
72
|
-
settings: model_settings_schema_1.
|
|
72
|
+
settings: model_settings_schema_1.ModelSettingsWriteSchema.optional(),
|
|
73
73
|
});
|
|
74
74
|
//# sourceMappingURL=update-model-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/update-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;AAClE,oDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"update-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/update-model-request.schema.ts"],"names":[],"mappings":"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"}
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -45,4 +45,5 @@ __exportStar(require("./admin-file"), exports);
|
|
|
45
45
|
__exportStar(require("./client-file"), exports);
|
|
46
46
|
__exportStar(require("./file"), exports);
|
|
47
47
|
__exportStar(require("./forms"), exports);
|
|
48
|
+
__exportStar(require("./open-graph"), exports);
|
|
48
49
|
//# sourceMappingURL=index.js.map
|
package/build/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -13,7 +13,8 @@ export declare enum GenerationStepType {
|
|
|
13
13
|
TEXT_GENERATION = "text_generation",
|
|
14
14
|
IMAGE_GENERATION = "image_generation",
|
|
15
15
|
UPLOAD = "upload",
|
|
16
|
-
WEB_SEARCH = "web_search"
|
|
16
|
+
WEB_SEARCH = "web_search",
|
|
17
|
+
VIDEO_ANALYSIS = "video_analysis"
|
|
17
18
|
}
|
|
18
19
|
export declare const GenerationStepSchema: z.ZodObject<{
|
|
19
20
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
@@ -19,6 +19,7 @@ var GenerationStepType;
|
|
|
19
19
|
GenerationStepType["IMAGE_GENERATION"] = "image_generation";
|
|
20
20
|
GenerationStepType["UPLOAD"] = "upload";
|
|
21
21
|
GenerationStepType["WEB_SEARCH"] = "web_search";
|
|
22
|
+
GenerationStepType["VIDEO_ANALYSIS"] = "video_analysis";
|
|
22
23
|
})(GenerationStepType || (exports.GenerationStepType = GenerationStepType = {}));
|
|
23
24
|
exports.GenerationStepSchema = zod_1.z.object({
|
|
24
25
|
type: zod_1.z.nativeEnum(GenerationStepType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKD,IAAY,
|
|
1
|
+
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKD,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAE1B,6CAAuB,CAAA;IAEvB,6DAAuC,CAAA;IAEvC,yDAAmC,CAAA;IAEnC,2DAAqC,CAAA;IAErC,uCAAiB,CAAA;IAEjB,+CAAyB,CAAA;IAEzB,uDAAiC,CAAA;AACrC,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAKY,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEzC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAEtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IAEnB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAErC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OPEN_GRAPH_ROUTES = exports.OPEN_GRAPH_UNREG_CONTROLLER = exports.OPEN_GRAPH_REG_CONTROLLER = void 0;
|
|
18
|
+
__exportStar(require("./queries"), exports);
|
|
19
|
+
__exportStar(require("./schemas"), exports);
|
|
20
|
+
var controllers_1 = require("../../controllers");
|
|
21
|
+
Object.defineProperty(exports, "OPEN_GRAPH_REG_CONTROLLER", { enumerable: true, get: function () { return controllers_1.OPEN_GRAPH_REG_CONTROLLER; } });
|
|
22
|
+
Object.defineProperty(exports, "OPEN_GRAPH_UNREG_CONTROLLER", { enumerable: true, get: function () { return controllers_1.OPEN_GRAPH_UNREG_CONTROLLER; } });
|
|
23
|
+
var routes_1 = require("../../routes");
|
|
24
|
+
Object.defineProperty(exports, "OPEN_GRAPH_ROUTES", { enumerable: true, get: function () { return routes_1.OPEN_GRAPH_ROUTES; } });
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/open-graph/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,iDAA2F;AAAlF,wHAAA,yBAAyB,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAC/D,uCAAiD;AAAxC,2GAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetOpenGraphPreviewRegQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
title: z.ZodNullable<z.ZodString>;
|
|
10
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
const URL: "/api/v1/open-graph";
|
|
13
|
+
const METHOD = HttpMethod.GET;
|
|
14
|
+
type RequestType = z.infer<typeof Request>;
|
|
15
|
+
type ResponseType = z.infer<typeof Response>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOpenGraphPreviewRegQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
var GetOpenGraphPreviewRegQuery;
|
|
8
|
+
(function (GetOpenGraphPreviewRegQuery) {
|
|
9
|
+
GetOpenGraphPreviewRegQuery.Request = schemas_1.OpenGraphPreviewRequestSchema;
|
|
10
|
+
GetOpenGraphPreviewRegQuery.Response = schemas_1.OpenGraphPreviewResponseSchema;
|
|
11
|
+
GetOpenGraphPreviewRegQuery.URL = rest_api_1.REST_API.V1.OPEN_GRAPH.REG.PREVIEW;
|
|
12
|
+
GetOpenGraphPreviewRegQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
13
|
+
})(GetOpenGraphPreviewRegQuery || (exports.GetOpenGraphPreviewRegQuery = GetOpenGraphPreviewRegQuery = {}));
|
|
14
|
+
//# sourceMappingURL=get-open-graph-preview-reg.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-open-graph-preview-reg.query.js","sourceRoot":"","sources":["../../../../v1/open-graph/queries/get-open-graph-preview-reg.query.ts"],"names":[],"mappings":";;;AACA,wCAA2F;AAC3F,6DAAyD;AACzD,gDAA6C;AAE7C,IAAiB,2BAA2B,CAQ3C;AARD,WAAiB,2BAA2B;IAC3B,mCAAO,GAAG,uCAA6B,CAAC;IACxC,oCAAQ,GAAG,wCAA8B,CAAC;IAC1C,+BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC;IACzC,kCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,2BAA2B,2CAA3B,2BAA2B,QAQ3C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetOpenGraphPreviewUnregQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
title: z.ZodNullable<z.ZodString>;
|
|
10
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
const URL: "/api/v1/unreg/open-graph";
|
|
13
|
+
const METHOD = HttpMethod.GET;
|
|
14
|
+
type RequestType = z.infer<typeof Request>;
|
|
15
|
+
type ResponseType = z.infer<typeof Response>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOpenGraphPreviewUnregQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
var GetOpenGraphPreviewUnregQuery;
|
|
8
|
+
(function (GetOpenGraphPreviewUnregQuery) {
|
|
9
|
+
GetOpenGraphPreviewUnregQuery.Request = schemas_1.OpenGraphPreviewRequestSchema;
|
|
10
|
+
GetOpenGraphPreviewUnregQuery.Response = schemas_1.OpenGraphPreviewResponseSchema;
|
|
11
|
+
GetOpenGraphPreviewUnregQuery.URL = rest_api_1.REST_API.V1.OPEN_GRAPH.UNREG.PREVIEW;
|
|
12
|
+
GetOpenGraphPreviewUnregQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
13
|
+
})(GetOpenGraphPreviewUnregQuery || (exports.GetOpenGraphPreviewUnregQuery = GetOpenGraphPreviewUnregQuery = {}));
|
|
14
|
+
//# sourceMappingURL=get-open-graph-preview-unreg.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-open-graph-preview-unreg.query.js","sourceRoot":"","sources":["../../../../v1/open-graph/queries/get-open-graph-preview-unreg.query.ts"],"names":[],"mappings":";;;AACA,wCAA2F;AAC3F,6DAAyD;AACzD,gDAA6C;AAE7C,IAAiB,6BAA6B,CAQ7C;AARD,WAAiB,6BAA6B;IAC7B,qCAAO,GAAG,uCAA6B,CAAC;IACxC,sCAAQ,GAAG,wCAA8B,CAAC;IAC1C,iCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3C,oCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,6BAA6B,6CAA7B,6BAA6B,QAQ7C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-open-graph-preview-reg.query"), exports);
|
|
18
|
+
__exportStar(require("./get-open-graph-preview-unreg.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/open-graph/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,uEAAqD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./open-graph-preview-request.schema"), exports);
|
|
18
|
+
__exportStar(require("./open-graph-preview-response.schema"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/open-graph/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenGraphPreviewRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.OpenGraphPreviewRequestSchema = zod_1.z.object({
|
|
6
|
+
url: zod_1.z.string().url({ message: 'OpenGraphPreviewRequest.url.invalid' }),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=open-graph-preview-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-graph-preview-request.schema.js","sourceRoot":"","sources":["../../../../v1/open-graph/schemas/open-graph-preview-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;CAC1E,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OpenGraphPreviewResponseSchema: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type OpenGraphPreviewResponseDto = z.infer<typeof OpenGraphPreviewResponseSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenGraphPreviewResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.OpenGraphPreviewResponseSchema = zod_1.z.object({
|
|
6
|
+
url: zod_1.z.string().url(),
|
|
7
|
+
title: zod_1.z.string().nullable(),
|
|
8
|
+
heading: zod_1.z.string().nullable(),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=open-graph-preview-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-graph-preview-response.schema.js","sourceRoot":"","sources":["../../../../v1/open-graph/schemas/open-graph-preview-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
|