@veruna/api-contracts 12.6.0 → 13.0.0
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/connectors.controllers.d.ts +2 -0
- package/build/controllers/connectors.controllers.js +6 -0
- package/build/controllers/connectors.controllers.js.map +1 -0
- package/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +5 -2
- package/build/controllers/index.js.map +1 -1
- package/build/locales/validation.d.ts +260 -0
- package/build/locales/validation.js +260 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +23 -0
- package/build/rest-api.js +23 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/connectors-admin.routes.d.ts +10 -0
- package/build/routes/connectors-admin.routes.js +14 -0
- package/build/routes/connectors-admin.routes.js.map +1 -0
- package/build/routes/connectors-reg.routes.d.ts +11 -0
- package/build/routes/connectors-reg.routes.js +15 -0
- package/build/routes/connectors-reg.routes.js.map +1 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +6 -2
- package/build/routes/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/connector/admin/commands/create-connector-provider.command.d.ts +49 -0
- package/build/v1/connector/admin/commands/create-connector-provider.command.js +14 -0
- package/build/v1/connector/admin/commands/create-connector-provider.command.js.map +1 -0
- package/build/v1/connector/admin/commands/delete-connector-provider.command.d.ts +11 -0
- package/build/v1/connector/admin/commands/delete-connector-provider.command.js +15 -0
- package/build/v1/connector/admin/commands/delete-connector-provider.command.js.map +1 -0
- package/build/v1/connector/admin/commands/grant-connector-access.command.d.ts +16 -0
- package/build/v1/connector/admin/commands/grant-connector-access.command.js +14 -0
- package/build/v1/connector/admin/commands/grant-connector-access.command.js.map +1 -0
- package/build/v1/connector/admin/commands/index.d.ts +5 -0
- package/build/v1/connector/admin/commands/index.js +22 -0
- package/build/v1/connector/admin/commands/index.js.map +1 -0
- package/build/v1/connector/admin/commands/revoke-connector-access.command.d.ts +12 -0
- package/build/v1/connector/admin/commands/revoke-connector-access.command.js +15 -0
- package/build/v1/connector/admin/commands/revoke-connector-access.command.js.map +1 -0
- package/build/v1/connector/admin/commands/update-connector-provider.command.d.ts +46 -0
- package/build/v1/connector/admin/commands/update-connector-provider.command.js +14 -0
- package/build/v1/connector/admin/commands/update-connector-provider.command.js.map +1 -0
- package/build/v1/connector/admin/index.d.ts +2 -0
- package/build/v1/connector/admin/index.js +19 -0
- package/build/v1/connector/admin/index.js.map +1 -0
- package/build/v1/connector/admin/queries/get-connector-access.query.d.ts +15 -0
- package/build/v1/connector/admin/queries/get-connector-access.query.js +15 -0
- package/build/v1/connector/admin/queries/get-connector-access.query.js.map +1 -0
- package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.d.ts +30 -0
- package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.js +15 -0
- package/build/v1/connector/admin/queries/get-connector-provider-by-id.query.js.map +1 -0
- package/build/v1/connector/admin/queries/get-connector-providers.query.d.ts +32 -0
- package/build/v1/connector/admin/queries/get-connector-providers.query.js +15 -0
- package/build/v1/connector/admin/queries/get-connector-providers.query.js.map +1 -0
- package/build/v1/connector/admin/queries/index.d.ts +3 -0
- package/build/v1/connector/admin/queries/index.js +20 -0
- package/build/v1/connector/admin/queries/index.js.map +1 -0
- package/build/v1/connector/connector-runtime.constants.d.ts +1 -0
- package/build/v1/connector/connector-runtime.constants.js +5 -0
- package/build/v1/connector/connector-runtime.constants.js.map +1 -0
- package/build/v1/connector/connector.errors.d.ts +28 -0
- package/build/v1/connector/connector.errors.js +129 -0
- package/build/v1/connector/connector.errors.js.map +1 -0
- package/build/v1/connector/index.d.ts +5 -0
- package/build/v1/connector/index.js +22 -0
- package/build/v1/connector/index.js.map +1 -0
- package/build/v1/connector/public/commands/authorize-connector.command.d.ts +11 -0
- package/build/v1/connector/public/commands/authorize-connector.command.js +15 -0
- package/build/v1/connector/public/commands/authorize-connector.command.js.map +1 -0
- package/build/v1/connector/public/commands/check-connection.command.d.ts +14 -0
- package/build/v1/connector/public/commands/check-connection.command.js +15 -0
- package/build/v1/connector/public/commands/check-connection.command.js.map +1 -0
- package/build/v1/connector/public/commands/connector-oauth-callback.command.d.ts +25 -0
- package/build/v1/connector/public/commands/connector-oauth-callback.command.js +14 -0
- package/build/v1/connector/public/commands/connector-oauth-callback.command.js.map +1 -0
- package/build/v1/connector/public/commands/create-custom-mcp.command.d.ts +32 -0
- package/build/v1/connector/public/commands/create-custom-mcp.command.js +14 -0
- package/build/v1/connector/public/commands/create-custom-mcp.command.js.map +1 -0
- package/build/v1/connector/public/commands/delete-connection.command.d.ts +11 -0
- package/build/v1/connector/public/commands/delete-connection.command.js +15 -0
- package/build/v1/connector/public/commands/delete-connection.command.js.map +1 -0
- package/build/v1/connector/public/commands/index.d.ts +7 -0
- package/build/v1/connector/public/commands/index.js +24 -0
- package/build/v1/connector/public/commands/index.js.map +1 -0
- package/build/v1/connector/public/commands/resync-custom-mcp.command.d.ts +23 -0
- package/build/v1/connector/public/commands/resync-custom-mcp.command.js +14 -0
- package/build/v1/connector/public/commands/resync-custom-mcp.command.js.map +1 -0
- package/build/v1/connector/public/commands/update-custom-mcp.command.d.ts +26 -0
- package/build/v1/connector/public/commands/update-custom-mcp.command.js +14 -0
- package/build/v1/connector/public/commands/update-custom-mcp.command.js.map +1 -0
- package/build/v1/connector/public/index.d.ts +2 -0
- package/build/v1/connector/public/index.js +19 -0
- package/build/v1/connector/public/index.js.map +1 -0
- package/build/v1/connector/public/queries/get-connector-catalog.query.d.ts +23 -0
- package/build/v1/connector/public/queries/get-connector-catalog.query.js +15 -0
- package/build/v1/connector/public/queries/get-connector-catalog.query.js.map +1 -0
- package/build/v1/connector/public/queries/get-my-connections.query.d.ts +23 -0
- package/build/v1/connector/public/queries/get-my-connections.query.js +15 -0
- package/build/v1/connector/public/queries/get-my-connections.query.js.map +1 -0
- package/build/v1/connector/public/queries/index.d.ts +2 -0
- package/build/v1/connector/public/queries/index.js +19 -0
- package/build/v1/connector/public/queries/index.js.map +1 -0
- package/build/v1/connector/schemas/connection.schema.d.ts +95 -0
- package/build/v1/connector/schemas/connection.schema.js +85 -0
- package/build/v1/connector/schemas/connection.schema.js.map +1 -0
- package/build/v1/connector/schemas/connector-access-mode.enum.d.ts +4 -0
- package/build/v1/connector/schemas/connector-access-mode.enum.js +9 -0
- package/build/v1/connector/schemas/connector-access-mode.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-access.schema.d.ts +24 -0
- package/build/v1/connector/schemas/connector-access.schema.js +23 -0
- package/build/v1/connector/schemas/connector-access.schema.js.map +1 -0
- package/build/v1/connector/schemas/connector-auth-type.enum.d.ts +5 -0
- package/build/v1/connector/schemas/connector-auth-type.enum.js +10 -0
- package/build/v1/connector/schemas/connector-auth-type.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-oauth-request-status.enum.d.ts +5 -0
- package/build/v1/connector/schemas/connector-oauth-request-status.enum.js +10 -0
- package/build/v1/connector/schemas/connector-oauth-request-status.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-provider-status.enum.d.ts +4 -0
- package/build/v1/connector/schemas/connector-provider-status.enum.js +9 -0
- package/build/v1/connector/schemas/connector-provider-status.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-provider.schema.d.ts +170 -0
- package/build/v1/connector/schemas/connector-provider.schema.js +151 -0
- package/build/v1/connector/schemas/connector-provider.schema.js.map +1 -0
- package/build/v1/connector/schemas/connector-selection.schema.d.ts +11 -0
- package/build/v1/connector/schemas/connector-selection.schema.js +29 -0
- package/build/v1/connector/schemas/connector-selection.schema.js.map +1 -0
- package/build/v1/connector/schemas/connector-sensitivity.enum.d.ts +4 -0
- package/build/v1/connector/schemas/connector-sensitivity.enum.js +9 -0
- package/build/v1/connector/schemas/connector-sensitivity.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-vendor.enum.d.ts +4 -0
- package/build/v1/connector/schemas/connector-vendor.enum.js +9 -0
- package/build/v1/connector/schemas/connector-vendor.enum.js.map +1 -0
- package/build/v1/connector/schemas/connector-visibility.enum.d.ts +4 -0
- package/build/v1/connector/schemas/connector-visibility.enum.js +9 -0
- package/build/v1/connector/schemas/connector-visibility.enum.js.map +1 -0
- package/build/v1/connector/schemas/index.d.ts +14 -0
- package/build/v1/connector/schemas/index.js +31 -0
- package/build/v1/connector/schemas/index.js.map +1 -0
- package/build/v1/connector/schemas/tool-snapshot.schema.d.ts +7 -0
- package/build/v1/connector/schemas/tool-snapshot.schema.js +10 -0
- package/build/v1/connector/schemas/tool-snapshot.schema.js.map +1 -0
- package/build/v1/connector/schemas/user-connection-status.enum.d.ts +6 -0
- package/build/v1/connector/schemas/user-connection-status.enum.js +11 -0
- package/build/v1/connector/schemas/user-connection-status.enum.js.map +1 -0
- package/build/v1/connector/schemas/user-connection-type.enum.d.ts +4 -0
- package/build/v1/connector/schemas/user-connection-type.enum.js +9 -0
- package/build/v1/connector/schemas/user-connection-type.enum.js.map +1 -0
- 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/commands/create-message.command.d.ts +5 -0
- package/build/v1/message/schemas/create-message-request.schema.d.ts +5 -0
- package/build/v1/message/schemas/create-message-request.schema.js +5 -0
- package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace CreateConnectorProviderCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
description: z.ZodString;
|
|
8
|
+
vendor: z.ZodEnum<typeof import("../../schemas").ConnectorVendor>;
|
|
9
|
+
authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
|
|
10
|
+
accessMode: z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>;
|
|
11
|
+
visibility: z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>;
|
|
12
|
+
sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
|
|
13
|
+
status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>>;
|
|
14
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
mode: z.ZodLiteral<"internal">;
|
|
17
|
+
path: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
mode: z.ZodLiteral<"external">;
|
|
20
|
+
url: z.ZodString;
|
|
21
|
+
}, z.core.$strip>], "mode">;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
const Response: z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
description: z.ZodString;
|
|
28
|
+
vendor: z.ZodEnum<typeof import("../../schemas").ConnectorVendor>;
|
|
29
|
+
authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
|
|
30
|
+
accessMode: z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>;
|
|
31
|
+
visibility: z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>;
|
|
32
|
+
sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
|
|
33
|
+
status: z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>;
|
|
34
|
+
order: z.ZodNumber;
|
|
35
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
mode: z.ZodLiteral<"internal">;
|
|
37
|
+
path: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
mode: z.ZodLiteral<"external">;
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
}, z.core.$strip>], "mode">;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
const URL: "/api/v1/admin/connectors/";
|
|
46
|
+
const METHOD = HttpMethod.POST;
|
|
47
|
+
type RequestType = z.infer<typeof Request>;
|
|
48
|
+
type ResponseType = z.infer<typeof Response>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateConnectorProviderCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
7
|
+
var CreateConnectorProviderCommand;
|
|
8
|
+
(function (CreateConnectorProviderCommand) {
|
|
9
|
+
CreateConnectorProviderCommand.Request = schemas_1.CreateConnectorProviderRequestSchema;
|
|
10
|
+
CreateConnectorProviderCommand.Response = schemas_1.ConnectorProviderAdminSchema;
|
|
11
|
+
CreateConnectorProviderCommand.URL = rest_api_1.REST_API.V1.CONNECTORS.ADMIN.CREATE;
|
|
12
|
+
CreateConnectorProviderCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
13
|
+
})(CreateConnectorProviderCommand || (exports.CreateConnectorProviderCommand = CreateConnectorProviderCommand = {}));
|
|
14
|
+
//# sourceMappingURL=create-connector-provider.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-connector-provider.command.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/create-connector-provider.command.ts"],"names":[],"mappings":";;;AACA,2CAAmG;AACnG,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC9B,sCAAO,GAAG,8CAAoC,CAAC;IAC/C,uCAAQ,GAAG,sCAA4B,CAAC;IACxC,kCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC;IAC1C,qCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace DeleteConnectorProviderCommand {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (uuid: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type ResponseType = z.infer<typeof Response>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteConnectorProviderCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var DeleteConnectorProviderCommand;
|
|
9
|
+
(function (DeleteConnectorProviderCommand) {
|
|
10
|
+
DeleteConnectorProviderCommand.Request = zod_1.z.void();
|
|
11
|
+
DeleteConnectorProviderCommand.Response = schemas_1.DeleteConnectorProviderResponseSchema;
|
|
12
|
+
DeleteConnectorProviderCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.DELETE(uuid);
|
|
13
|
+
DeleteConnectorProviderCommand.METHOD = http_method_enum_1.HttpMethod.DELETE;
|
|
14
|
+
})(DeleteConnectorProviderCommand || (exports.DeleteConnectorProviderCommand = DeleteConnectorProviderCommand = {}));
|
|
15
|
+
//# sourceMappingURL=delete-connector-provider.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-connector-provider.command.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/delete-connector-provider.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAsE;AACtE,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,8BAA8B,CAM9C;AAND,WAAiB,8BAA8B;IAC9B,sCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,uCAAQ,GAAG,+CAAqC,CAAC;IACjD,kCAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClE,qCAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;AAE5C,CAAC,EANgB,8BAA8B,8CAA9B,8BAA8B,QAM9C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace GrantConnectorAccessCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
userUuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
userUuid: z.ZodString;
|
|
10
|
+
createdAt: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
const URL: (uuid: string) => string;
|
|
13
|
+
const METHOD = HttpMethod.POST;
|
|
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.GrantConnectorAccessCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
7
|
+
var GrantConnectorAccessCommand;
|
|
8
|
+
(function (GrantConnectorAccessCommand) {
|
|
9
|
+
GrantConnectorAccessCommand.Request = schemas_1.GrantConnectorAccessRequestSchema;
|
|
10
|
+
GrantConnectorAccessCommand.Response = schemas_1.ConnectorAccessGrantSchema;
|
|
11
|
+
GrantConnectorAccessCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.GRANT_ACCESS(uuid);
|
|
12
|
+
GrantConnectorAccessCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
13
|
+
})(GrantConnectorAccessCommand || (exports.GrantConnectorAccessCommand = GrantConnectorAccessCommand = {}));
|
|
14
|
+
//# sourceMappingURL=grant-connector-access.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grant-connector-access.command.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/grant-connector-access.command.ts"],"names":[],"mappings":";;;AACA,2CAA8F;AAC9F,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC3B,mCAAO,GAAG,2CAAiC,CAAC;IAC5C,oCAAQ,GAAG,oCAA0B,CAAC;IACtC,+BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACxE,kCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./create-connector-provider.command"), exports);
|
|
18
|
+
__exportStar(require("./update-connector-provider.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-connector-provider.command"), exports);
|
|
20
|
+
__exportStar(require("./grant-connector-access.command"), exports);
|
|
21
|
+
__exportStar(require("./revoke-connector-access.command"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,mEAAiD;AACjD,oEAAkD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace RevokeConnectorAccessCommand {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
userUuid: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const URL: (uuid: string, userUuid: string) => string;
|
|
10
|
+
const METHOD = HttpMethod.DELETE;
|
|
11
|
+
type ResponseType = z.infer<typeof Response>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RevokeConnectorAccessCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var RevokeConnectorAccessCommand;
|
|
9
|
+
(function (RevokeConnectorAccessCommand) {
|
|
10
|
+
RevokeConnectorAccessCommand.Request = zod_1.z.void();
|
|
11
|
+
RevokeConnectorAccessCommand.Response = schemas_1.RevokeConnectorAccessResponseSchema;
|
|
12
|
+
RevokeConnectorAccessCommand.URL = (uuid, userUuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.REVOKE_ACCESS(uuid, userUuid);
|
|
13
|
+
RevokeConnectorAccessCommand.METHOD = http_method_enum_1.HttpMethod.DELETE;
|
|
14
|
+
})(RevokeConnectorAccessCommand || (exports.RevokeConnectorAccessCommand = RevokeConnectorAccessCommand = {}));
|
|
15
|
+
//# sourceMappingURL=revoke-connector-access.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoke-connector-access.command.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/revoke-connector-access.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAoE;AACpE,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,qCAAQ,GAAG,6CAAmC,CAAC;IAC/C,gCAAG,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE,CAClD,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAClD,mCAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;AAE5C,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace UpdateConnectorProviderCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
accessMode: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>>;
|
|
8
|
+
visibility: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>>;
|
|
9
|
+
sensitivity: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>>;
|
|
11
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
mode: z.ZodLiteral<"internal">;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
mode: z.ZodLiteral<"external">;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
}, z.core.$strip>], "mode">>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
const Response: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodString;
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
description: z.ZodString;
|
|
25
|
+
vendor: z.ZodEnum<typeof import("../../schemas").ConnectorVendor>;
|
|
26
|
+
authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
|
|
27
|
+
accessMode: z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>;
|
|
28
|
+
visibility: z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>;
|
|
29
|
+
sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
|
|
30
|
+
status: z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>;
|
|
31
|
+
order: z.ZodNumber;
|
|
32
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
|
+
mode: z.ZodLiteral<"internal">;
|
|
34
|
+
path: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
mode: z.ZodLiteral<"external">;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
}, z.core.$strip>], "mode">;
|
|
39
|
+
createdAt: z.ZodString;
|
|
40
|
+
updatedAt: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
const URL: (uuid: string) => string;
|
|
43
|
+
const METHOD = HttpMethod.PATCH;
|
|
44
|
+
type RequestType = z.infer<typeof Request>;
|
|
45
|
+
type ResponseType = z.infer<typeof Response>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateConnectorProviderCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
7
|
+
var UpdateConnectorProviderCommand;
|
|
8
|
+
(function (UpdateConnectorProviderCommand) {
|
|
9
|
+
UpdateConnectorProviderCommand.Request = schemas_1.UpdateConnectorProviderRequestSchema;
|
|
10
|
+
UpdateConnectorProviderCommand.Response = schemas_1.ConnectorProviderAdminSchema;
|
|
11
|
+
UpdateConnectorProviderCommand.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.UPDATE(uuid);
|
|
12
|
+
UpdateConnectorProviderCommand.METHOD = http_method_enum_1.HttpMethod.PATCH;
|
|
13
|
+
})(UpdateConnectorProviderCommand || (exports.UpdateConnectorProviderCommand = UpdateConnectorProviderCommand = {}));
|
|
14
|
+
//# sourceMappingURL=update-connector-provider.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-connector-provider.command.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/commands/update-connector-provider.command.ts"],"names":[],"mappings":";;;AACA,2CAAmG;AACnG,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC9B,sCAAO,GAAG,8CAAoC,CAAC;IAC/C,uCAAQ,GAAG,sCAA4B,CAAC;IACxC,kCAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClE,qCAAM,GAAG,6BAAU,CAAC,KAAK,CAAC;AAG3C,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C"}
|
|
@@ -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("./commands"), exports);
|
|
18
|
+
__exportStar(require("./queries"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/connector/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace GetConnectorAccessQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
userUuid: z.ZodString;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
const URL: (uuid: string) => string;
|
|
13
|
+
const METHOD = HttpMethod.GET;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConnectorAccessQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var GetConnectorAccessQuery;
|
|
9
|
+
(function (GetConnectorAccessQuery) {
|
|
10
|
+
GetConnectorAccessQuery.Request = zod_1.z.void();
|
|
11
|
+
GetConnectorAccessQuery.Response = schemas_1.ConnectorAccessListSchema;
|
|
12
|
+
GetConnectorAccessQuery.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.GET_ACCESS(uuid);
|
|
13
|
+
GetConnectorAccessQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(GetConnectorAccessQuery || (exports.GetConnectorAccessQuery = GetConnectorAccessQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-connector-access.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-connector-access.query.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/queries/get-connector-access.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA0D;AAC1D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,uBAAuB,CAMvC;AAND,WAAiB,uBAAuB;IACvB,+BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,gCAAQ,GAAG,mCAAyB,CAAC;IACrC,2BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtE,8BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,uBAAuB,uCAAvB,uBAAuB,QAMvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace GetConnectorProviderByIdQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
10
|
+
vendor: z.ZodEnum<typeof import("../../schemas").ConnectorVendor>;
|
|
11
|
+
authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
|
|
12
|
+
accessMode: z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>;
|
|
13
|
+
visibility: z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>;
|
|
14
|
+
sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
mode: z.ZodLiteral<"internal">;
|
|
19
|
+
path: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
mode: z.ZodLiteral<"external">;
|
|
22
|
+
url: z.ZodString;
|
|
23
|
+
}, z.core.$strip>], "mode">;
|
|
24
|
+
createdAt: z.ZodString;
|
|
25
|
+
updatedAt: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
const URL: (uuid: string) => string;
|
|
28
|
+
const METHOD = HttpMethod.GET;
|
|
29
|
+
type ResponseType = z.infer<typeof Response>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConnectorProviderByIdQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var GetConnectorProviderByIdQuery;
|
|
9
|
+
(function (GetConnectorProviderByIdQuery) {
|
|
10
|
+
GetConnectorProviderByIdQuery.Request = zod_1.z.void();
|
|
11
|
+
GetConnectorProviderByIdQuery.Response = schemas_1.ConnectorProviderAdminSchema;
|
|
12
|
+
GetConnectorProviderByIdQuery.URL = (uuid) => rest_api_1.REST_API.V1.CONNECTORS.ADMIN.GET_BY_ID(uuid);
|
|
13
|
+
GetConnectorProviderByIdQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(GetConnectorProviderByIdQuery || (exports.GetConnectorProviderByIdQuery = GetConnectorProviderByIdQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-connector-provider-by-id.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-connector-provider-by-id.query.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/queries/get-connector-provider-by-id.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA6D;AAC7D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,6BAA6B,CAM7C;AAND,WAAiB,6BAA6B;IAC7B,qCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,sCAAQ,GAAG,sCAA4B,CAAC;IACxC,iCAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACrE,oCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,6BAA6B,6CAA7B,6BAA6B,QAM7C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace GetConnectorProvidersQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
11
|
+
vendor: z.ZodEnum<typeof import("../../schemas").ConnectorVendor>;
|
|
12
|
+
authType: z.ZodEnum<typeof import("../../schemas").ConnectorAuthType>;
|
|
13
|
+
accessMode: z.ZodEnum<typeof import("../../schemas").ConnectorAccessMode>;
|
|
14
|
+
visibility: z.ZodEnum<typeof import("../../schemas").ConnectorVisibility>;
|
|
15
|
+
sensitivity: z.ZodEnum<typeof import("../../schemas").ConnectorSensitivity>;
|
|
16
|
+
status: z.ZodEnum<typeof import("../../schemas").ConnectorProviderStatus>;
|
|
17
|
+
order: z.ZodNumber;
|
|
18
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
mode: z.ZodLiteral<"internal">;
|
|
20
|
+
path: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
mode: z.ZodLiteral<"external">;
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
}, z.core.$strip>], "mode">;
|
|
25
|
+
createdAt: z.ZodString;
|
|
26
|
+
updatedAt: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
const URL: "/api/v1/admin/connectors/";
|
|
30
|
+
const METHOD = HttpMethod.GET;
|
|
31
|
+
type ResponseType = z.infer<typeof Response>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConnectorProvidersQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var GetConnectorProvidersQuery;
|
|
9
|
+
(function (GetConnectorProvidersQuery) {
|
|
10
|
+
GetConnectorProvidersQuery.Request = zod_1.z.void();
|
|
11
|
+
GetConnectorProvidersQuery.Response = schemas_1.ConnectorProviderAdminListSchema;
|
|
12
|
+
GetConnectorProvidersQuery.URL = rest_api_1.REST_API.V1.CONNECTORS.ADMIN.GET_ALL;
|
|
13
|
+
GetConnectorProvidersQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(GetConnectorProvidersQuery || (exports.GetConnectorProvidersQuery = GetConnectorProvidersQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-connector-providers.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-connector-providers.query.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/queries/get-connector-providers.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAiE;AACjE,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,0BAA0B,CAM1C;AAND,WAAiB,0BAA0B;IAC1B,kCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,mCAAQ,GAAG,0CAAgC,CAAC;IAC5C,8BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3C,iCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,0BAA0B,0CAA1B,0BAA0B,QAM1C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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-connector-providers.query"), exports);
|
|
18
|
+
__exportStar(require("./get-connector-provider-by-id.query"), exports);
|
|
19
|
+
__exportStar(require("./get-connector-access.query"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/connector/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,uEAAqD;AACrD,+DAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CONNECTOR_GATEWAY_HANDLER_KEY = "CONNECTOR_GATEWAY";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-runtime.constants.js","sourceRoot":"","sources":["../../../v1/connector/connector-runtime.constants.ts"],"names":[],"mappings":";;;AASa,QAAA,6BAA6B,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum ConnectorErrorCode {
|
|
3
|
+
PROVIDER_NOT_FOUND = "PROVIDER_NOT_FOUND",
|
|
4
|
+
CONNECTION_NOT_FOUND = "CONNECTION_NOT_FOUND",
|
|
5
|
+
PROVIDER_DISABLED = "PROVIDER_DISABLED",
|
|
6
|
+
CONNECTION_NOT_ACTIVE = "CONNECTION_NOT_ACTIVE",
|
|
7
|
+
CONNECTION_ALREADY_EXISTS = "CONNECTION_ALREADY_EXISTS",
|
|
8
|
+
PROVIDER_ALREADY_EXISTS = "PROVIDER_ALREADY_EXISTS",
|
|
9
|
+
ACCESS_DENIED = "ACCESS_DENIED",
|
|
10
|
+
OAUTH_REQUEST_NOT_FOUND = "OAUTH_REQUEST_NOT_FOUND",
|
|
11
|
+
OAUTH_REQUEST_EXPIRED = "OAUTH_REQUEST_EXPIRED",
|
|
12
|
+
OAUTH_STATE_MISMATCH = "OAUTH_STATE_MISMATCH",
|
|
13
|
+
OAUTH_EXCHANGE_FAILED = "OAUTH_EXCHANGE_FAILED",
|
|
14
|
+
MCP_HANDSHAKE_FAILED = "MCP_HANDSHAKE_FAILED",
|
|
15
|
+
MCP_URL_FORBIDDEN = "MCP_URL_FORBIDDEN",
|
|
16
|
+
CONNECTOR_URL_NOT_ALLOWED = "CONNECTOR_URL_NOT_ALLOWED",
|
|
17
|
+
MCP_TOOLS_LIMIT_EXCEEDED = "MCP_TOOLS_LIMIT_EXCEEDED",
|
|
18
|
+
MCP_SNAPSHOT_STALE = "MCP_SNAPSHOT_STALE",
|
|
19
|
+
MIXED_TRUST_CONFIRMATION_REQUIRED = "MIXED_TRUST_CONFIRMATION_REQUIRED",
|
|
20
|
+
MCP_SERVER_UNREACHABLE = "MCP_SERVER_UNREACHABLE",
|
|
21
|
+
MCP_TOOL_UNAVAILABLE = "MCP_TOOL_UNAVAILABLE",
|
|
22
|
+
CONNECTOR_LIMIT_EXCEEDED = "CONNECTOR_LIMIT_EXCEEDED",
|
|
23
|
+
CONNECTOR_UPSTREAM_ERROR = "CONNECTOR_UPSTREAM_ERROR",
|
|
24
|
+
CONNECTOR_RESOURCE_NOT_FOUND = "CONNECTOR_RESOURCE_NOT_FOUND",
|
|
25
|
+
CONNECTOR_CONTENT_TOO_LARGE = "CONNECTOR_CONTENT_TOO_LARGE",
|
|
26
|
+
VENDOR_REAUTH_REQUIRED = "VENDOR_REAUTH_REQUIRED"
|
|
27
|
+
}
|
|
28
|
+
export declare const CONNECTOR_ERRORS: Record<ConnectorErrorCode, ErrorMetadata>;
|