@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,29 @@
|
|
|
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 { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
15
|
+
import { file_kei_contracts_v1_options } from "../../../contracts/v1/options_pb.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file kei/connectors/github/v1/pulls.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_kei_connectors_github_v1_pulls = /*@__PURE__*/ fileDesc("CiRrZWkvY29ubmVjdG9ycy9naXRodWIvdjEvcHVsbHMucHJvdG8SGGtlaS5jb25uZWN0b3JzLmdpdGh1Yi52MSK1AQoVR2V0UHVsbFJlcXVlc3RSZXF1ZXN0Eg0KBW93bmVyGAEgASgJEhIKCnJlcG9zaXRvcnkYAiABKAkSEwoLcHVsbF9udW1iZXIYAyABKAM6ZJKCGWAKEGdpdGh1Yi5wdWxscy5nZXQSBmdpdGh1YhgBKgNHRVQyLy9yZXBvcy97b3duZXJ9L3tyZXBvc2l0b3J5fS9wdWxscy97cHVsbF9udW1iZXJ9OgpwdWxsczpyZWFkQAEitQEKFkdldFB1bGxSZXF1ZXN0UmVzcG9uc2USCgoCaWQYASABKAMSDgoGbnVtYmVyGAIgASgDEg0KBXRpdGxlGAMgASgJEg0KBXN0YXRlGAQgASgJEhEKBGJvZHkYBSABKAlIAIgBARIQCghodG1sX3VybBgGIAEoCRINCgVkcmFmdBgHIAEoCBIWCgltZXJnZWRfYXQYCCABKAlIAYgBAUIHCgVfYm9keUIMCgpfbWVyZ2VkX2F0QlZaVGdpdGh1Yi5jb20vSGFpa2VpTGFicy9rZWktY29ubmVjdG9yLWNvbnRyYWN0cy9nZW4vZ28va2VpL2Nvbm5lY3RvcnMvZ2l0aHViL3YxO2dpdGh1YmIGcHJvdG8z", [file_kei_contracts_v1_options]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kei.connectors.github.v1.GetPullRequestRequest.
|
|
22
|
+
* Use `create(GetPullRequestRequestSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const GetPullRequestRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_github_v1_pulls, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message kei.connectors.github.v1.GetPullRequestResponse.
|
|
27
|
+
* Use `create(GetPullRequestResponseSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const GetPullRequestResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_github_v1_pulls, 1);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file kei/connectors/http_api/v1/records.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_kei_connectors_http_api_v1_records: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* ListRecordsRequest lists the records of one collection.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message kei.connectors.http_api.v1.ListRecordsRequest
|
|
11
|
+
*/
|
|
12
|
+
export type ListRecordsRequest = Message<"kei.connectors.http_api.v1.ListRecordsRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string collection = 1;
|
|
15
|
+
*/
|
|
16
|
+
collection: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: optional int32 limit = 2;
|
|
19
|
+
*/
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: optional string cursor = 3;
|
|
23
|
+
*/
|
|
24
|
+
cursor?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message kei.connectors.http_api.v1.ListRecordsRequest.
|
|
28
|
+
* Use `create(ListRecordsRequestSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ListRecordsRequestSchema: GenMessage<ListRecordsRequest>;
|
|
31
|
+
/**
|
|
32
|
+
* ListRecordsResponse models one page of a collection listing.
|
|
33
|
+
*
|
|
34
|
+
* @generated from message kei.connectors.http_api.v1.ListRecordsResponse
|
|
35
|
+
*/
|
|
36
|
+
export type ListRecordsResponse = Message<"kei.connectors.http_api.v1.ListRecordsResponse"> & {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: repeated google.protobuf.Struct records = 1;
|
|
39
|
+
*/
|
|
40
|
+
records: JsonObject[];
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: optional string next_cursor = 2;
|
|
43
|
+
*/
|
|
44
|
+
nextCursor?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message kei.connectors.http_api.v1.ListRecordsResponse.
|
|
48
|
+
* Use `create(ListRecordsResponseSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export declare const ListRecordsResponseSchema: GenMessage<ListRecordsResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* GetRecordRequest reads one record of a collection.
|
|
53
|
+
*
|
|
54
|
+
* @generated from message kei.connectors.http_api.v1.GetRecordRequest
|
|
55
|
+
*/
|
|
56
|
+
export type GetRecordRequest = Message<"kei.connectors.http_api.v1.GetRecordRequest"> & {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string collection = 1;
|
|
59
|
+
*/
|
|
60
|
+
collection: string;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: string record_id = 2;
|
|
63
|
+
*/
|
|
64
|
+
recordId: string;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message kei.connectors.http_api.v1.GetRecordRequest.
|
|
68
|
+
* Use `create(GetRecordRequestSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export declare const GetRecordRequestSchema: GenMessage<GetRecordRequest>;
|
|
71
|
+
/**
|
|
72
|
+
* GetRecordResponse models one record body as a Struct.
|
|
73
|
+
*
|
|
74
|
+
* @generated from message kei.connectors.http_api.v1.GetRecordResponse
|
|
75
|
+
*/
|
|
76
|
+
export type GetRecordResponse = Message<"kei.connectors.http_api.v1.GetRecordResponse"> & {
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: google.protobuf.Struct record = 1;
|
|
79
|
+
*/
|
|
80
|
+
record?: JsonObject | undefined;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message kei.connectors.http_api.v1.GetRecordResponse.
|
|
84
|
+
* Use `create(GetRecordResponseSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const GetRecordResponseSchema: GenMessage<GetRecordResponse>;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
15
|
+
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
import { file_kei_contracts_v1_options } from "../../../contracts/v1/options_pb.js";
|
|
17
|
+
/**
|
|
18
|
+
* Describes the file kei/connectors/http_api/v1/records.proto.
|
|
19
|
+
*/
|
|
20
|
+
export const file_kei_connectors_http_api_v1_records = /*@__PURE__*/ fileDesc("CihrZWkvY29ubmVjdG9ycy9odHRwX2FwaS92MS9yZWNvcmRzLnByb3RvEhprZWkuY29ubmVjdG9ycy5odHRwX2FwaS52MSKzAQoSTGlzdFJlY29yZHNSZXF1ZXN0EhIKCmNvbGxlY3Rpb24YASABKAkSEgoFbGltaXQYAiABKAVIAIgBARITCgZjdXJzb3IYAyABKAlIAYgBATpLkoIZRwoVaHR0cF9hcGkucmVjb3Jkcy5saXN0EghodHRwX2FwaRgBKgNHRVQyDS97Y29sbGVjdGlvbn06DHJlY29yZHM6cmVhZEABQggKBl9saW1pdEIJCgdfY3Vyc29yImkKE0xpc3RSZWNvcmRzUmVzcG9uc2USKAoHcmVjb3JkcxgBIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSGAoLbmV4dF9jdXJzb3IYAiABKAlIAIgBAUIOCgxfbmV4dF9jdXJzb3IikQEKEEdldFJlY29yZFJlcXVlc3QSEgoKY29sbGVjdGlvbhgBIAEoCRIRCglyZWNvcmRfaWQYAiABKAk6VpKCGVIKFGh0dHBfYXBpLnJlY29yZHMuZ2V0EghodHRwX2FwaRgBKgNHRVQyGS97Y29sbGVjdGlvbn0ve3JlY29yZF9pZH06DHJlY29yZHM6cmVhZEABIjwKEUdldFJlY29yZFJlc3BvbnNlEicKBnJlY29yZBgBIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RCWlpYZ2l0aHViLmNvbS9IYWlrZWlMYWJzL2tlaS1jb25uZWN0b3ItY29udHJhY3RzL2dlbi9nby9rZWkvY29ubmVjdG9ycy9odHRwX2FwaS92MTtodHRwX2FwaWIGcHJvdG8z", [file_google_protobuf_struct, file_kei_contracts_v1_options]);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message kei.connectors.http_api.v1.ListRecordsRequest.
|
|
23
|
+
* Use `create(ListRecordsRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const ListRecordsRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_http_api_v1_records, 0);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message kei.connectors.http_api.v1.ListRecordsResponse.
|
|
28
|
+
* Use `create(ListRecordsResponseSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const ListRecordsResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_http_api_v1_records, 1);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message kei.connectors.http_api.v1.GetRecordRequest.
|
|
33
|
+
* Use `create(GetRecordRequestSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const GetRecordRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_http_api_v1_records, 2);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message kei.connectors.http_api.v1.GetRecordResponse.
|
|
38
|
+
* Use `create(GetRecordResponseSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const GetRecordResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_http_api_v1_records, 3);
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file kei/connectors/linear/v1/issues.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_kei_connectors_linear_v1_issues: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Issue models the subset of the Linear issue object the contract needs.
|
|
9
|
+
*
|
|
10
|
+
* @generated from message kei.connectors.linear.v1.Issue
|
|
11
|
+
*/
|
|
12
|
+
export type Issue = Message<"kei.connectors.linear.v1.Issue"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string identifier = 2;
|
|
19
|
+
*/
|
|
20
|
+
identifier: string;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: string title = 3;
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: optional string description = 4;
|
|
27
|
+
*/
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: string url = 5;
|
|
31
|
+
*/
|
|
32
|
+
url: string;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: string created_at = 6;
|
|
35
|
+
*/
|
|
36
|
+
createdAt: string;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: string updated_at = 7;
|
|
39
|
+
*/
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message kei.connectors.linear.v1.Issue.
|
|
44
|
+
* Use `create(IssueSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export declare const IssueSchema: GenMessage<Issue>;
|
|
47
|
+
/**
|
|
48
|
+
* GetIssueRequest reads a single Linear issue by id.
|
|
49
|
+
*
|
|
50
|
+
* @generated from message kei.connectors.linear.v1.GetIssueRequest
|
|
51
|
+
*/
|
|
52
|
+
export type GetIssueRequest = Message<"kei.connectors.linear.v1.GetIssueRequest"> & {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string id = 1;
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message kei.connectors.linear.v1.GetIssueRequest.
|
|
60
|
+
* Use `create(GetIssueRequestSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const GetIssueRequestSchema: GenMessage<GetIssueRequest>;
|
|
63
|
+
/**
|
|
64
|
+
* GetIssueResponse wraps the issue object the query returns.
|
|
65
|
+
*
|
|
66
|
+
* @generated from message kei.connectors.linear.v1.GetIssueResponse
|
|
67
|
+
*/
|
|
68
|
+
export type GetIssueResponse = Message<"kei.connectors.linear.v1.GetIssueResponse"> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: kei.connectors.linear.v1.Issue issue = 1;
|
|
71
|
+
*/
|
|
72
|
+
issue?: Issue | undefined;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message kei.connectors.linear.v1.GetIssueResponse.
|
|
76
|
+
* Use `create(GetIssueResponseSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetIssueResponseSchema: GenMessage<GetIssueResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* CreateIssueRequest creates a Linear issue. team_id is the GraphQL teamId
|
|
81
|
+
* argument key; description and priority are optional.
|
|
82
|
+
*
|
|
83
|
+
* @generated from message kei.connectors.linear.v1.CreateIssueRequest
|
|
84
|
+
*/
|
|
85
|
+
export type CreateIssueRequest = Message<"kei.connectors.linear.v1.CreateIssueRequest"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string title = 1;
|
|
88
|
+
*/
|
|
89
|
+
title: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: string team_id = 2;
|
|
92
|
+
*/
|
|
93
|
+
teamId: string;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: optional string description = 3;
|
|
96
|
+
*/
|
|
97
|
+
description?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: optional int32 priority = 4;
|
|
100
|
+
*/
|
|
101
|
+
priority?: number | undefined;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message kei.connectors.linear.v1.CreateIssueRequest.
|
|
105
|
+
* Use `create(CreateIssueRequestSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const CreateIssueRequestSchema: GenMessage<CreateIssueRequest>;
|
|
108
|
+
/**
|
|
109
|
+
* CreateIssueResponse mirrors Linear's IssuePayload: success plus the created
|
|
110
|
+
* issue.
|
|
111
|
+
*
|
|
112
|
+
* @generated from message kei.connectors.linear.v1.CreateIssueResponse
|
|
113
|
+
*/
|
|
114
|
+
export type CreateIssueResponse = Message<"kei.connectors.linear.v1.CreateIssueResponse"> & {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: bool success = 1;
|
|
117
|
+
*/
|
|
118
|
+
success: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: kei.connectors.linear.v1.Issue issue = 2;
|
|
121
|
+
*/
|
|
122
|
+
issue?: Issue | undefined;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message kei.connectors.linear.v1.CreateIssueResponse.
|
|
126
|
+
* Use `create(CreateIssueResponseSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export declare const CreateIssueResponseSchema: GenMessage<CreateIssueResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* SearchIssuesRequest searches Linear issues. after is the pagination cursor.
|
|
131
|
+
*
|
|
132
|
+
* @generated from message kei.connectors.linear.v1.SearchIssuesRequest
|
|
133
|
+
*/
|
|
134
|
+
export type SearchIssuesRequest = Message<"kei.connectors.linear.v1.SearchIssuesRequest"> & {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string term = 1;
|
|
137
|
+
*/
|
|
138
|
+
term: string;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: optional int32 first = 2;
|
|
141
|
+
*/
|
|
142
|
+
first?: number | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: optional string after = 3;
|
|
145
|
+
*/
|
|
146
|
+
after?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Describes the message kei.connectors.linear.v1.SearchIssuesRequest.
|
|
150
|
+
* Use `create(SearchIssuesRequestSchema)` to create a new message.
|
|
151
|
+
*/
|
|
152
|
+
export declare const SearchIssuesRequestSchema: GenMessage<SearchIssuesRequest>;
|
|
153
|
+
/**
|
|
154
|
+
* PageInfo models Linear's pagination cursor.
|
|
155
|
+
*
|
|
156
|
+
* @generated from message kei.connectors.linear.v1.PageInfo
|
|
157
|
+
*/
|
|
158
|
+
export type PageInfo = Message<"kei.connectors.linear.v1.PageInfo"> & {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: bool has_next_page = 1;
|
|
161
|
+
*/
|
|
162
|
+
hasNextPage: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: optional string end_cursor = 2;
|
|
165
|
+
*/
|
|
166
|
+
endCursor?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Describes the message kei.connectors.linear.v1.PageInfo.
|
|
170
|
+
* Use `create(PageInfoSchema)` to create a new message.
|
|
171
|
+
*/
|
|
172
|
+
export declare const PageInfoSchema: GenMessage<PageInfo>;
|
|
173
|
+
/**
|
|
174
|
+
* SearchIssuesResponse models the issue connection the search returns.
|
|
175
|
+
*
|
|
176
|
+
* @generated from message kei.connectors.linear.v1.SearchIssuesResponse
|
|
177
|
+
*/
|
|
178
|
+
export type SearchIssuesResponse = Message<"kei.connectors.linear.v1.SearchIssuesResponse"> & {
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: repeated kei.connectors.linear.v1.Issue nodes = 1;
|
|
181
|
+
*/
|
|
182
|
+
nodes: Issue[];
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: kei.connectors.linear.v1.PageInfo page_info = 2;
|
|
185
|
+
*/
|
|
186
|
+
pageInfo?: PageInfo | undefined;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message kei.connectors.linear.v1.SearchIssuesResponse.
|
|
190
|
+
* Use `create(SearchIssuesResponseSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const SearchIssuesResponseSchema: GenMessage<SearchIssuesResponse>;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
15
|
+
import { file_kei_contracts_v1_options } from "../../../contracts/v1/options_pb.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file kei/connectors/linear/v1/issues.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_kei_connectors_linear_v1_issues = /*@__PURE__*/ fileDesc("CiVrZWkvY29ubmVjdG9ycy9saW5lYXIvdjEvaXNzdWVzLnByb3RvEhhrZWkuY29ubmVjdG9ycy5saW5lYXIudjEilQEKBUlzc3VlEgoKAmlkGAEgASgJEhIKCmlkZW50aWZpZXIYAiABKAkSDQoFdGl0bGUYAyABKAkSGAoLZGVzY3JpcHRpb24YBCABKAlIAIgBARILCgN1cmwYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRISCgp1cGRhdGVkX2F0GAcgASgJQg4KDF9kZXNjcmlwdGlvbiJfCg9HZXRJc3N1ZVJlcXVlc3QSCgoCaWQYASABKAk6QJKCGTwKEWxpbmVhci5pc3N1ZXMuZ2V0EgZsaW5lYXIYASoEUE9TVDIIL2dyYXBocWw6C2lzc3VlczpyZWFkQAEiQgoQR2V0SXNzdWVSZXNwb25zZRIuCgVpc3N1ZRgBIAEoCzIfLmtlaS5jb25uZWN0b3JzLmxpbmVhci52MS5Jc3N1ZSLIAQoSQ3JlYXRlSXNzdWVSZXF1ZXN0Eg0KBXRpdGxlGAEgASgJEg8KB3RlYW1faWQYAiABKAkSGAoLZGVzY3JpcHRpb24YAyABKAlIAIgBARIVCghwcmlvcml0eRgEIAEoBUgBiAEBOkSSghlAChRsaW5lYXIuaXNzdWVzLmNyZWF0ZRIGbGluZWFyGAIqBFBPU1QyCC9ncmFwaHFsOgxpc3N1ZXM6d3JpdGVAAUIOCgxfZGVzY3JpcHRpb25CCwoJX3ByaW9yaXR5IlYKE0NyZWF0ZUlzc3VlUmVzcG9uc2USDwoHc3VjY2VzcxgBIAEoCBIuCgVpc3N1ZRgCIAEoCzIfLmtlaS5jb25uZWN0b3JzLmxpbmVhci52MS5Jc3N1ZSKkAQoTU2VhcmNoSXNzdWVzUmVxdWVzdBIMCgR0ZXJtGAEgASgJEhIKBWZpcnN0GAIgASgFSACIAQESEgoFYWZ0ZXIYAyABKAlIAYgBATpDkoIZPwoUbGluZWFyLmlzc3Vlcy5zZWFyY2gSBmxpbmVhchgBKgRQT1NUMggvZ3JhcGhxbDoLaXNzdWVzOnJlYWRAAUIICgZfZmlyc3RCCAoGX2FmdGVyIkkKCFBhZ2VJbmZvEhUKDWhhc19uZXh0X3BhZ2UYASABKAgSFwoKZW5kX2N1cnNvchgCIAEoCUgAiAEBQg0KC19lbmRfY3Vyc29yIn0KFFNlYXJjaElzc3Vlc1Jlc3BvbnNlEi4KBW5vZGVzGAEgAygLMh8ua2VpLmNvbm5lY3RvcnMubGluZWFyLnYxLklzc3VlEjUKCXBhZ2VfaW5mbxgCIAEoCzIiLmtlaS5jb25uZWN0b3JzLmxpbmVhci52MS5QYWdlSW5mb0JWWlRnaXRodWIuY29tL0hhaWtlaUxhYnMva2VpLWNvbm5lY3Rvci1jb250cmFjdHMvZ2VuL2dvL2tlaS9jb25uZWN0b3JzL2xpbmVhci92MTtsaW5lYXJiBnByb3RvMw", [file_kei_contracts_v1_options]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kei.connectors.linear.v1.Issue.
|
|
22
|
+
* Use `create(IssueSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const IssueSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message kei.connectors.linear.v1.GetIssueRequest.
|
|
27
|
+
* Use `create(GetIssueRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const GetIssueRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 1);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message kei.connectors.linear.v1.GetIssueResponse.
|
|
32
|
+
* Use `create(GetIssueResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const GetIssueResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 2);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message kei.connectors.linear.v1.CreateIssueRequest.
|
|
37
|
+
* Use `create(CreateIssueRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const CreateIssueRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 3);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message kei.connectors.linear.v1.CreateIssueResponse.
|
|
42
|
+
* Use `create(CreateIssueResponseSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const CreateIssueResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 4);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message kei.connectors.linear.v1.SearchIssuesRequest.
|
|
47
|
+
* Use `create(SearchIssuesRequestSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const SearchIssuesRequestSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 5);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message kei.connectors.linear.v1.PageInfo.
|
|
52
|
+
* Use `create(PageInfoSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const PageInfoSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 6);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message kei.connectors.linear.v1.SearchIssuesResponse.
|
|
57
|
+
* Use `create(SearchIssuesResponseSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const SearchIssuesResponseSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_linear_v1_issues, 7);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file kei/connectors/mcp/v1/tool.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_kei_connectors_mcp_v1_tool: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* ToolCall is the request shape of one tool invocation on a remote MCP
|
|
9
|
+
* server. server and tool are the MCP-facing names; the operation id is
|
|
10
|
+
* derived from them (mcp.<server>.<tool>, normalized to [a-z0-9_]).
|
|
11
|
+
* arguments carries the tool input as free-form JSON — MCP tool schemas vary
|
|
12
|
+
* per server, so like the http_api record bodies this stays a Struct: typed
|
|
13
|
+
* enough to audit, open enough to carry any tool input. It is filled by JSON
|
|
14
|
+
* unmarshal of what the harness sends.
|
|
15
|
+
*
|
|
16
|
+
* @generated from message kei.connectors.mcp.v1.ToolCall
|
|
17
|
+
*/
|
|
18
|
+
export type ToolCall = Message<"kei.connectors.mcp.v1.ToolCall"> & {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: string server = 1;
|
|
21
|
+
*/
|
|
22
|
+
server: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string tool = 2;
|
|
25
|
+
*/
|
|
26
|
+
tool: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: google.protobuf.Struct arguments = 3;
|
|
29
|
+
*/
|
|
30
|
+
arguments?: JsonObject | undefined;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message kei.connectors.mcp.v1.ToolCall.
|
|
34
|
+
* Use `create(ToolCallSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ToolCallSchema: GenMessage<ToolCall>;
|
|
37
|
+
/**
|
|
38
|
+
* ToolResult is the response shape of one tool invocation. content holds the
|
|
39
|
+
* content blocks the tool returned as free-form JSON; is_error is the MCP
|
|
40
|
+
* isError flag (false means the call succeeded). It is filled by JSON
|
|
41
|
+
* unmarshal of the tool's result.
|
|
42
|
+
*
|
|
43
|
+
* @generated from message kei.connectors.mcp.v1.ToolResult
|
|
44
|
+
*/
|
|
45
|
+
export type ToolResult = Message<"kei.connectors.mcp.v1.ToolResult"> & {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: repeated google.protobuf.Struct content = 1;
|
|
48
|
+
*/
|
|
49
|
+
content: JsonObject[];
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: bool is_error = 2;
|
|
52
|
+
*/
|
|
53
|
+
isError: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message kei.connectors.mcp.v1.ToolResult.
|
|
57
|
+
* Use `create(ToolResultSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export declare const ToolResultSchema: GenMessage<ToolResult>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
15
|
+
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file kei/connectors/mcp/v1/tool.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_kei_connectors_mcp_v1_tool = /*@__PURE__*/ fileDesc("CiBrZWkvY29ubmVjdG9ycy9tY3AvdjEvdG9vbC5wcm90bxIVa2VpLmNvbm5lY3RvcnMubWNwLnYxIlQKCFRvb2xDYWxsEg4KBnNlcnZlchgBIAEoCRIMCgR0b29sGAIgASgJEioKCWFyZ3VtZW50cxgDIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiSAoKVG9vbFJlc3VsdBIoCgdjb250ZW50GAEgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIQCghpc19lcnJvchgCIAEoCEJQWk5naXRodWIuY29tL0hhaWtlaUxhYnMva2VpLWNvbm5lY3Rvci1jb250cmFjdHMvZ2VuL2dvL2tlaS9jb25uZWN0b3JzL21jcC92MTttY3BiBnByb3RvMw", [file_google_protobuf_struct]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kei.connectors.mcp.v1.ToolCall.
|
|
22
|
+
* Use `create(ToolCallSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ToolCallSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_mcp_v1_tool, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message kei.connectors.mcp.v1.ToolResult.
|
|
27
|
+
* Use `create(ToolResultSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const ToolResultSchema = /*@__PURE__*/ messageDesc(file_kei_connectors_mcp_v1_tool, 1);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { MessageOptions } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file kei/contracts/v1/options.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_kei_contracts_v1_options: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Operation declares how a connector operation is invoked and governed.
|
|
10
|
+
*
|
|
11
|
+
* Attach it to a request message with the operation message option below.
|
|
12
|
+
* The id must be unique across all connectors and dotted
|
|
13
|
+
* (connector.domain.action); the connector field must equal the first id
|
|
14
|
+
* segment. Write operations must declare at least one scope.
|
|
15
|
+
*
|
|
16
|
+
* @generated from message kei.contracts.v1.Operation
|
|
17
|
+
*/
|
|
18
|
+
export type Operation = Message<"kei.contracts.v1.Operation"> & {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: string id = 1;
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string connector = 2;
|
|
25
|
+
*/
|
|
26
|
+
connector: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: kei.contracts.v1.OperationClass class = 3;
|
|
29
|
+
*/
|
|
30
|
+
class: OperationClass;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: bool destructive = 4;
|
|
33
|
+
*/
|
|
34
|
+
destructive: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string http_method = 5;
|
|
37
|
+
*/
|
|
38
|
+
httpMethod: string;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string path_template = 6;
|
|
41
|
+
*/
|
|
42
|
+
pathTemplate: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: repeated string scopes = 7;
|
|
45
|
+
*/
|
|
46
|
+
scopes: string[];
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: kei.contracts.v1.CredentialPlacement credential_placement = 8;
|
|
49
|
+
*/
|
|
50
|
+
credentialPlacement: CredentialPlacement;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message kei.contracts.v1.Operation.
|
|
54
|
+
* Use `create(OperationSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export declare const OperationSchema: GenMessage<Operation>;
|
|
57
|
+
/**
|
|
58
|
+
* OperationClass classifies what an operation does to the connector's
|
|
59
|
+
* backing resource. Reads are safe to retry and never change state; writes
|
|
60
|
+
* may create, modify, or delete.
|
|
61
|
+
*
|
|
62
|
+
* @generated from enum kei.contracts.v1.OperationClass
|
|
63
|
+
*/
|
|
64
|
+
export declare enum OperationClass {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: OPERATION_CLASS_UNSPECIFIED = 0;
|
|
67
|
+
*/
|
|
68
|
+
UNSPECIFIED = 0,
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: OPERATION_CLASS_READ = 1;
|
|
71
|
+
*/
|
|
72
|
+
READ = 1,
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: OPERATION_CLASS_WRITE = 2;
|
|
75
|
+
*/
|
|
76
|
+
WRITE = 2
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Describes the enum kei.contracts.v1.OperationClass.
|
|
80
|
+
*/
|
|
81
|
+
export declare const OperationClassSchema: GenEnum<OperationClass>;
|
|
82
|
+
/**
|
|
83
|
+
* CredentialPlacement describes where the connector runtime places the
|
|
84
|
+
* resolved credential on the outgoing HTTP request. The credential itself is
|
|
85
|
+
* never part of the contract: it is resolved from a secret backend at
|
|
86
|
+
* invocation time.
|
|
87
|
+
*
|
|
88
|
+
* @generated from enum kei.contracts.v1.CredentialPlacement
|
|
89
|
+
*/
|
|
90
|
+
export declare enum CredentialPlacement {
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_UNSPECIFIED = 0;
|
|
93
|
+
*/
|
|
94
|
+
UNSPECIFIED = 0,
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_HEADER_BEARER = 1;
|
|
97
|
+
*/
|
|
98
|
+
HEADER_BEARER = 1,
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_HEADER_CUSTOM = 2;
|
|
101
|
+
*/
|
|
102
|
+
HEADER_CUSTOM = 2,
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_QUERY = 3;
|
|
105
|
+
*/
|
|
106
|
+
QUERY = 3,
|
|
107
|
+
/**
|
|
108
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_BASIC = 4;
|
|
109
|
+
*/
|
|
110
|
+
BASIC = 4,
|
|
111
|
+
/**
|
|
112
|
+
* @generated from enum value: CREDENTIAL_PLACEMENT_NONE = 5;
|
|
113
|
+
*/
|
|
114
|
+
NONE = 5
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Describes the enum kei.contracts.v1.CredentialPlacement.
|
|
118
|
+
*/
|
|
119
|
+
export declare const CredentialPlacementSchema: GenEnum<CredentialPlacement>;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from extension: kei.contracts.v1.Operation operation = 51234;
|
|
122
|
+
*/
|
|
123
|
+
export declare const operation: GenExtension<MessageOptions, Operation>;
|