@haikeilabs/connector-contracts 0.0.0-stage → 0.1.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/README.md +35 -2
- package/dist/kei/connectors/database/v1/query_pb.d.ts +117 -0
- package/dist/kei/connectors/database/v1/query_pb.js +72 -0
- package/dist/kei/connectors/github/v1/contents_pb.d.ts +121 -0
- package/dist/kei/connectors/github/v1/contents_pb.js +39 -0
- package/dist/kei/connectors/github/v1/issues_pb.d.ts +151 -0
- package/dist/kei/connectors/github/v1/issues_pb.js +44 -0
- package/dist/kei/connectors/github/v1/pulls_pb.d.ts +75 -0
- package/dist/kei/connectors/github/v1/pulls_pb.js +29 -0
- package/dist/kei/connectors/http_api/v1/records_pb.d.ts +86 -0
- package/dist/kei/connectors/http_api/v1/records_pb.js +40 -0
- package/dist/kei/connectors/linear/v1/issues_pb.d.ts +192 -0
- package/dist/kei/connectors/linear/v1/issues_pb.js +59 -0
- package/dist/kei/connectors/mcp/v1/tool_pb.d.ts +59 -0
- package/dist/kei/connectors/mcp/v1/tool_pb.js +29 -0
- package/dist/kei/contracts/v1/options_pb.d.ts +123 -0
- package/dist/kei/contracts/v1/options_pb.js +93 -0
- package/package.json +28 -4
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// Copyright 2026 Haikei Labs
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
15
|
+
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file kei/contracts/v1/options.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_kei_contracts_v1_options = /*@__PURE__*/ fileDesc("Ch5rZWkvY29udHJhY3RzL3YxL29wdGlvbnMucHJvdG8SEGtlaS5jb250cmFjdHMudjEi8QEKCU9wZXJhdGlvbhIKCgJpZBgBIAEoCRIRCgljb25uZWN0b3IYAiABKAkSLwoFY2xhc3MYAyABKA4yIC5rZWkuY29udHJhY3RzLnYxLk9wZXJhdGlvbkNsYXNzEhMKC2Rlc3RydWN0aXZlGAQgASgIEhMKC2h0dHBfbWV0aG9kGAUgASgJEhUKDXBhdGhfdGVtcGxhdGUYBiABKAkSDgoGc2NvcGVzGAcgAygJEkMKFGNyZWRlbnRpYWxfcGxhY2VtZW50GAggASgOMiUua2VpLmNvbnRyYWN0cy52MS5DcmVkZW50aWFsUGxhY2VtZW50KmYKDk9wZXJhdGlvbkNsYXNzEh8KG09QRVJBVElPTl9DTEFTU19VTlNQRUNJRklFRBAAEhgKFE9QRVJBVElPTl9DTEFTU19SRUFEEAESGQoVT1BFUkFUSU9OX0NMQVNTX1dSSVRFEAIq6gEKE0NyZWRlbnRpYWxQbGFjZW1lbnQSJAogQ1JFREVOVElBTF9QTEFDRU1FTlRfVU5TUEVDSUZJRUQQABImCiJDUkVERU5USUFMX1BMQUNFTUVOVF9IRUFERVJfQkVBUkVSEAESJgoiQ1JFREVOVElBTF9QTEFDRU1FTlRfSEVBREVSX0NVU1RPTRACEh4KGkNSRURFTlRJQUxfUExBQ0VNRU5UX1FVRVJZEAMSHgoaQ1JFREVOVElBTF9QTEFDRU1FTlRfQkFTSUMQBBIdChlDUkVERU5USUFMX1BMQUNFTUVOVF9OT05FEAU6XAoJb3BlcmF0aW9uEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGKKQAyABKAsyGy5rZWkuY29udHJhY3RzLnYxLk9wZXJhdGlvblIJb3BlcmF0aW9uQlFaT2dpdGh1Yi5jb20vSGFpa2VpTGFicy9rZWktY29ubmVjdG9yLWNvbnRyYWN0cy9nZW4vZ28va2VpL2NvbnRyYWN0cy92MTtjb250cmFjdHNiBnByb3RvMw", [file_google_protobuf_descriptor]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kei.contracts.v1.Operation.
|
|
22
|
+
* Use `create(OperationSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const OperationSchema = /*@__PURE__*/ messageDesc(file_kei_contracts_v1_options, 0);
|
|
25
|
+
/**
|
|
26
|
+
* OperationClass classifies what an operation does to the connector's
|
|
27
|
+
* backing resource. Reads are safe to retry and never change state; writes
|
|
28
|
+
* may create, modify, or delete.
|
|
29
|
+
*
|
|
30
|
+
* @generated from enum kei.contracts.v1.OperationClass
|
|
31
|
+
*/
|
|
32
|
+
export var OperationClass;
|
|
33
|
+
(function (OperationClass) {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: OPERATION_CLASS_UNSPECIFIED = 0;
|
|
36
|
+
*/
|
|
37
|
+
OperationClass[OperationClass["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: OPERATION_CLASS_READ = 1;
|
|
40
|
+
*/
|
|
41
|
+
OperationClass[OperationClass["READ"] = 1] = "READ";
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum value: OPERATION_CLASS_WRITE = 2;
|
|
44
|
+
*/
|
|
45
|
+
OperationClass[OperationClass["WRITE"] = 2] = "WRITE";
|
|
46
|
+
})(OperationClass || (OperationClass = {}));
|
|
47
|
+
/**
|
|
48
|
+
* Describes the enum kei.contracts.v1.OperationClass.
|
|
49
|
+
*/
|
|
50
|
+
export const OperationClassSchema = /*@__PURE__*/ enumDesc(file_kei_contracts_v1_options, 0);
|
|
51
|
+
/**
|
|
52
|
+
* CredentialPlacement describes where the connector runtime places the
|
|
53
|
+
* resolved credential on the outgoing HTTP request. The credential itself is
|
|
54
|
+
* never part of the contract: it is resolved from a secret backend at
|
|
55
|
+
* invocation time.
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum kei.contracts.v1.CredentialPlacement
|
|
58
|
+
*/
|
|
59
|
+
export var CredentialPlacement;
|
|
60
|
+
(function (CredentialPlacement) {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_UNSPECIFIED = 0;
|
|
63
|
+
*/
|
|
64
|
+
CredentialPlacement[CredentialPlacement["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_HEADER_BEARER = 1;
|
|
67
|
+
*/
|
|
68
|
+
CredentialPlacement[CredentialPlacement["HEADER_BEARER"] = 1] = "HEADER_BEARER";
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_HEADER_CUSTOM = 2;
|
|
71
|
+
*/
|
|
72
|
+
CredentialPlacement[CredentialPlacement["HEADER_CUSTOM"] = 2] = "HEADER_CUSTOM";
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_QUERY = 3;
|
|
75
|
+
*/
|
|
76
|
+
CredentialPlacement[CredentialPlacement["QUERY"] = 3] = "QUERY";
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_BASIC = 4;
|
|
79
|
+
*/
|
|
80
|
+
CredentialPlacement[CredentialPlacement["BASIC"] = 4] = "BASIC";
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_NONE = 5;
|
|
83
|
+
*/
|
|
84
|
+
CredentialPlacement[CredentialPlacement["NONE"] = 5] = "NONE";
|
|
85
|
+
})(CredentialPlacement || (CredentialPlacement = {}));
|
|
86
|
+
/**
|
|
87
|
+
* Describes the enum kei.contracts.v1.CredentialPlacement.
|
|
88
|
+
*/
|
|
89
|
+
export const CredentialPlacementSchema = /*@__PURE__*/ enumDesc(file_kei_contracts_v1_options, 1);
|
|
90
|
+
/**
|
|
91
|
+
* @generated from extension: kei.contracts.v1.Operation operation = 51234;
|
|
92
|
+
*/
|
|
93
|
+
export const operation = /*@__PURE__*/ extDesc(file_kei_contracts_v1_options, 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haikeilabs/connector-contracts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Generated connector operation contracts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./*": {
|
|
9
|
+
"types": "./dist/*.d.ts",
|
|
10
|
+
"import": "./dist/*.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"prepack": "npm run build"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@bufbuild/protobuf": "2.17.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"lossless-json": "^4.3.3",
|
|
27
|
+
"typescript": "^5.8.3",
|
|
28
|
+
"vitest": "^3.2.4"
|
|
29
|
+
}
|
|
30
|
+
}
|