@7k-inari/api-client 0.5.2 → 0.7.0-0933ff8
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/gen/ts/proto/inari/agent/v1/agent_pb.ts +207 -276
- package/gen/ts/proto/inari/agent/v1/commands_pb.ts +434 -361
- package/gen/ts/proto/inari/agent/v1/credentials_pb.ts +87 -0
- package/gen/ts/proto/inari/agent/v1/events_pb.ts +298 -482
- package/gen/ts/proto/inari/agent/v1/registration_pb.ts +87 -114
- package/gen/ts/proto/inari/plugin/v1/plugin_pb.ts +340 -463
- package/gen/ts/proto/inari/tunnel/v1/tunnel_pb.ts +231 -0
- package/gen/ts/proto/inari/tunnel/v2/tunnel_pb.ts +252 -0
- package/gen/ts/rest/client.ts +6345 -1970
- package/gen/ts/smoke.ts +60 -30
- package/package.json +7 -7
- package/gen/ts/proto/inari/agent/v1/agent_connect.ts +0 -30
- package/gen/ts/proto/inari/agent/v1/registration_connect.ts +0 -30
- package/gen/ts/proto/inari/plugin/v1/plugin_connect.ts +0 -56
|
@@ -1,69 +1,16 @@
|
|
|
1
|
-
// @generated by protoc-gen-es
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inari/plugin/v1/plugin.proto (package inari.plugin.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
4
|
|
|
6
|
-
import type {
|
|
7
|
-
import {
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* programmatically. Values mirror common gRPC/HTTP semantics.
|
|
12
|
-
*
|
|
13
|
-
* @generated from enum inari.plugin.v1.ErrorCode
|
|
10
|
+
* Describes the file inari/plugin/v1/plugin.proto.
|
|
14
11
|
*/
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
18
|
-
*/
|
|
19
|
-
UNSPECIFIED = 0,
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
|
|
23
|
-
*/
|
|
24
|
-
INVALID_ARGUMENT = 1,
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 2;
|
|
28
|
-
*/
|
|
29
|
-
UNAUTHENTICATED = 2,
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 3;
|
|
33
|
-
*/
|
|
34
|
-
PERMISSION_DENIED = 3,
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @generated from enum value: ERROR_CODE_NOT_FOUND = 4;
|
|
38
|
-
*/
|
|
39
|
-
NOT_FOUND = 4,
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 5;
|
|
43
|
-
*/
|
|
44
|
-
FAILED_PRECONDITION = 5,
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @generated from enum value: ERROR_CODE_INTERNAL = 6;
|
|
48
|
-
*/
|
|
49
|
-
INTERNAL = 6,
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @generated from enum value: ERROR_CODE_UNAVAILABLE = 7;
|
|
53
|
-
*/
|
|
54
|
-
UNAVAILABLE = 7,
|
|
55
|
-
}
|
|
56
|
-
// Retrieve enum metadata with: proto3.getEnumType(ErrorCode)
|
|
57
|
-
proto3.util.setEnumType(ErrorCode, "inari.plugin.v1.ErrorCode", [
|
|
58
|
-
{ no: 0, name: "ERROR_CODE_UNSPECIFIED" },
|
|
59
|
-
{ no: 1, name: "ERROR_CODE_INVALID_ARGUMENT" },
|
|
60
|
-
{ no: 2, name: "ERROR_CODE_UNAUTHENTICATED" },
|
|
61
|
-
{ no: 3, name: "ERROR_CODE_PERMISSION_DENIED" },
|
|
62
|
-
{ no: 4, name: "ERROR_CODE_NOT_FOUND" },
|
|
63
|
-
{ no: 5, name: "ERROR_CODE_FAILED_PRECONDITION" },
|
|
64
|
-
{ no: 6, name: "ERROR_CODE_INTERNAL" },
|
|
65
|
-
{ no: 7, name: "ERROR_CODE_UNAVAILABLE" },
|
|
66
|
-
]);
|
|
12
|
+
export const file_inari_plugin_v1_plugin: GenFile = /*@__PURE__*/
|
|
13
|
+
fileDesc("ChxpbmFyaS9wbHVnaW4vdjEvcGx1Z2luLnByb3RvEg9pbmFyaS5wbHVnaW4udjEiYQoPSGFuZHNoYWtlQ29uZmlnEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSGAoQbWFnaWNfY29va2llX2tleRgCIAEoCRIaChJtYWdpY19jb29raWVfdmFsdWUYAyABKAkiQAoKUGx1Z2luSW5mbxIMCgRuYW1lGAEgASgJEg8KB3ZlcnNpb24YAiABKAkSEwoLYXBpX3ZlcnNpb24YAyABKAkiEAoOR2V0SW5mb1JlcXVlc3QibwoPR2V0SW5mb1Jlc3BvbnNlEikKBGluZm8YASABKAsyGy5pbmFyaS5wbHVnaW4udjEuUGx1Z2luSW5mbxIxCgxhdXRoX21ldGhvZHMYAiADKAsyGy5pbmFyaS5wbHVnaW4udjEuQXV0aE1ldGhvZCKEAgoKQXV0aE1ldGhvZBIuCgR0eXBlGAEgASgOMiAuaW5hcmkucGx1Z2luLnYxLkF1dGhNZXRob2QuVHlwZRIQCghhdWRpZW5jZRgCIAEoCRIOCgZzY29wZXMYAyADKAkSEgoKaXNfZGVmYXVsdBgEIAEoCCKPAQoEVHlwZRIUChBUWVBFX1VOU1BFQ0lGSUVEEAASEgoOVFlQRV9PSURDX1VTRVIQARIYChRUWVBFX1NFUlZJQ0VfQUNDT1VOVBACEhAKDFRZUEVfQVBJX0tFWRADEhYKElRZUEVfU0hBUkVEX1NFQ1JFVBAEEhkKFVRZUEVfT0lEQ19TU09fU0VTU0lPThAFIsUBCgtBdXRoQ29udGV4dBIUCgxwcmluY2lwYWxfaWQYASABKAkSEQoJdGVuYW50X2lkGAIgASgJEhQKDGRpc3BsYXlfbmFtZRgDIAEoCRIOCgZncm91cHMYBCADKAkSOAoGY2xhaW1zGAUgAygLMiguaW5hcmkucGx1Z2luLnYxLkF1dGhDb250ZXh0LkNsYWltc0VudHJ5Gi0KC0NsYWltc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiWAoGQWN0aW9uEgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSFAoMaW5wdXRfc2NoZW1hGAMgASgMEhUKDW91dHB1dF9zY2hlbWEYBCABKAwiGAoWR2V0Q2FwYWJpbGl0aWVzUmVxdWVzdCJDChdHZXRDYXBhYmlsaXRpZXNSZXNwb25zZRIoCgdhY3Rpb25zGAEgAygLMhcuaW5hcmkucGx1Z2luLnYxLkFjdGlvbiK0AQoLUGx1Z2luRXJyb3ISKAoEY29kZRgBIAEoDjIaLmluYXJpLnBsdWdpbi52MS5FcnJvckNvZGUSDwoHbWVzc2FnZRgCIAEoCRI6CgdkZXRhaWxzGAMgAygLMikuaW5hcmkucGx1Z2luLnYxLlBsdWdpbkVycm9yLkRldGFpbHNFbnRyeRouCgxEZXRhaWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJ4Cg1JbnZva2VSZXF1ZXN0Eg4KBmFjdGlvbhgBIAEoCRIyCgxhdXRoX2NvbnRleHQYAiABKAsyHC5pbmFyaS5wbHVnaW4udjEuQXV0aENvbnRleHQSDwoHcGF5bG9hZBgDIAEoDBISCgpyZXF1ZXN0X2lkGAQgASgJIk0KDkludm9rZVJlc3BvbnNlEg4KBnJlc3VsdBgBIAEoDBIrCgVlcnJvchgCIAEoCzIcLmluYXJpLnBsdWdpbi52MS5QbHVnaW5FcnJvciIUChJIZWFsdGhDaGVja1JlcXVlc3Qi1wEKE0hlYWx0aENoZWNrUmVzcG9uc2USQgoGc3RhdHVzGAEgASgOMjIuaW5hcmkucGx1Z2luLnYxLkhlYWx0aENoZWNrUmVzcG9uc2UuU2VydmluZ1N0YXR1cxIPCgdtZXNzYWdlGAIgASgJImsKDVNlcnZpbmdTdGF0dXMSHgoaU0VSVklOR19TVEFUVVNfVU5TUEVDSUZJRUQQABIaChZTRVJWSU5HX1NUQVRVU19TRVJWSU5HEAESHgoaU0VSVklOR19TVEFUVVNfTk9UX1NFUlZJTkcQAir9AQoJRXJyb3JDb2RlEhoKFkVSUk9SX0NPREVfVU5TUEVDSUZJRUQQABIfChtFUlJPUl9DT0RFX0lOVkFMSURfQVJHVU1FTlQQARIeChpFUlJPUl9DT0RFX1VOQVVUSEVOVElDQVRFRBACEiAKHEVSUk9SX0NPREVfUEVSTUlTU0lPTl9ERU5JRUQQAxIYChRFUlJPUl9DT0RFX05PVF9GT1VORBAEEiIKHkVSUk9SX0NPREVfRkFJTEVEX1BSRUNPTkRJVElPThAFEhcKE0VSUk9SX0NPREVfSU5URVJOQUwQBhIaChZFUlJPUl9DT0RFX1VOQVZBSUxBQkxFEAcy8AIKFVBsdWdpbkNvbnRyYWN0U2VydmljZRJMCgdHZXRJbmZvEh8uaW5hcmkucGx1Z2luLnYxLkdldEluZm9SZXF1ZXN0GiAuaW5hcmkucGx1Z2luLnYxLkdldEluZm9SZXNwb25zZRJkCg9HZXRDYXBhYmlsaXRpZXMSJy5pbmFyaS5wbHVnaW4udjEuR2V0Q2FwYWJpbGl0aWVzUmVxdWVzdBooLmluYXJpLnBsdWdpbi52MS5HZXRDYXBhYmlsaXRpZXNSZXNwb25zZRJJCgZJbnZva2USHi5pbmFyaS5wbHVnaW4udjEuSW52b2tlUmVxdWVzdBofLmluYXJpLnBsdWdpbi52MS5JbnZva2VSZXNwb25zZRJYCgtIZWFsdGhDaGVjaxIjLmluYXJpLnBsdWdpbi52MS5IZWFsdGhDaGVja1JlcXVlc3QaJC5pbmFyaS5wbHVnaW4udjEuSGVhbHRoQ2hlY2tSZXNwb25zZUI/Wj1naXRodWIuY29tLzdLLUluYXJpL2luYXJpLWFwaS9nZW4vZ28vaW5hcmkvcGx1Z2luL3YxO3BsdWdpbnYxYgZwcm90bzM");
|
|
67
14
|
|
|
68
15
|
/**
|
|
69
16
|
* HandshakeConfig mirrors the hashicorp go-plugin handshake model
|
|
@@ -72,173 +19,197 @@ proto3.util.setEnumType(ErrorCode, "inari.plugin.v1.ErrorCode", [
|
|
|
72
19
|
*
|
|
73
20
|
* @generated from message inari.plugin.v1.HandshakeConfig
|
|
74
21
|
*/
|
|
75
|
-
export
|
|
22
|
+
export type HandshakeConfig = Message<"inari.plugin.v1.HandshakeConfig"> & {
|
|
76
23
|
/**
|
|
77
24
|
* @generated from field: string protocol_version = 1;
|
|
78
25
|
*/
|
|
79
|
-
protocolVersion
|
|
26
|
+
protocolVersion: string;
|
|
80
27
|
|
|
81
28
|
/**
|
|
82
29
|
* @generated from field: string magic_cookie_key = 2;
|
|
83
30
|
*/
|
|
84
|
-
magicCookieKey
|
|
31
|
+
magicCookieKey: string;
|
|
85
32
|
|
|
86
33
|
/**
|
|
87
34
|
* @generated from field: string magic_cookie_value = 3;
|
|
88
35
|
*/
|
|
89
|
-
magicCookieValue
|
|
36
|
+
magicCookieValue: string;
|
|
37
|
+
};
|
|
90
38
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
static readonly typeName = "inari.plugin.v1.HandshakeConfig";
|
|
98
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
99
|
-
{ no: 1, name: "protocol_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
100
|
-
{ no: 2, name: "magic_cookie_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
|
-
{ no: 3, name: "magic_cookie_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
-
]);
|
|
103
|
-
|
|
104
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandshakeConfig {
|
|
105
|
-
return new HandshakeConfig().fromBinary(bytes, options);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandshakeConfig {
|
|
109
|
-
return new HandshakeConfig().fromJson(jsonValue, options);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandshakeConfig {
|
|
113
|
-
return new HandshakeConfig().fromJsonString(jsonString, options);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
static equals(a: HandshakeConfig | PlainMessage<HandshakeConfig> | undefined, b: HandshakeConfig | PlainMessage<HandshakeConfig> | undefined): boolean {
|
|
117
|
-
return proto3.util.equals(HandshakeConfig, a, b);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message inari.plugin.v1.HandshakeConfig.
|
|
41
|
+
* Use `create(HandshakeConfigSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const HandshakeConfigSchema: GenMessage<HandshakeConfig> = /*@__PURE__*/
|
|
44
|
+
messageDesc(file_inari_plugin_v1_plugin, 0);
|
|
120
45
|
|
|
121
46
|
/**
|
|
122
47
|
* PluginInfo describes a plugin's identity and the contract version it serves.
|
|
123
48
|
*
|
|
124
49
|
* @generated from message inari.plugin.v1.PluginInfo
|
|
125
50
|
*/
|
|
126
|
-
export
|
|
51
|
+
export type PluginInfo = Message<"inari.plugin.v1.PluginInfo"> & {
|
|
127
52
|
/**
|
|
128
53
|
* @generated from field: string name = 1;
|
|
129
54
|
*/
|
|
130
|
-
name
|
|
55
|
+
name: string;
|
|
131
56
|
|
|
132
57
|
/**
|
|
133
58
|
* @generated from field: string version = 2;
|
|
134
59
|
*/
|
|
135
|
-
version
|
|
60
|
+
version: string;
|
|
136
61
|
|
|
137
62
|
/**
|
|
138
63
|
* Contract version implemented by the plugin, e.g. "inari.plugin.v1".
|
|
139
64
|
*
|
|
140
65
|
* @generated from field: string api_version = 3;
|
|
141
66
|
*/
|
|
142
|
-
apiVersion
|
|
143
|
-
|
|
144
|
-
constructor(data?: PartialMessage<PluginInfo>) {
|
|
145
|
-
super();
|
|
146
|
-
proto3.util.initPartial(data, this);
|
|
147
|
-
}
|
|
67
|
+
apiVersion: string;
|
|
68
|
+
};
|
|
148
69
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
]);
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message inari.plugin.v1.PluginInfo.
|
|
72
|
+
* Use `create(PluginInfoSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const PluginInfoSchema: GenMessage<PluginInfo> = /*@__PURE__*/
|
|
75
|
+
messageDesc(file_inari_plugin_v1_plugin, 1);
|
|
156
76
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message inari.plugin.v1.GetInfoRequest
|
|
79
|
+
*/
|
|
80
|
+
export type GetInfoRequest = Message<"inari.plugin.v1.GetInfoRequest"> & {
|
|
81
|
+
};
|
|
160
82
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message inari.plugin.v1.GetInfoRequest.
|
|
85
|
+
* Use `create(GetInfoRequestSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export const GetInfoRequestSchema: GenMessage<GetInfoRequest> = /*@__PURE__*/
|
|
88
|
+
messageDesc(file_inari_plugin_v1_plugin, 2);
|
|
164
89
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message inari.plugin.v1.GetInfoResponse
|
|
92
|
+
*/
|
|
93
|
+
export type GetInfoResponse = Message<"inari.plugin.v1.GetInfoResponse"> & {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: inari.plugin.v1.PluginInfo info = 1;
|
|
96
|
+
*/
|
|
97
|
+
info?: PluginInfo | undefined;
|
|
168
98
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Authentication methods the plugin supports for downstream calls. The
|
|
101
|
+
* host picks one (preferring is_default) and injects the corresponding
|
|
102
|
+
* credentials out-of-band via headers/metadata; credentials never travel
|
|
103
|
+
* inside AuthContext.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: repeated inari.plugin.v1.AuthMethod auth_methods = 2;
|
|
106
|
+
*/
|
|
107
|
+
authMethods: AuthMethod[];
|
|
108
|
+
};
|
|
173
109
|
|
|
174
110
|
/**
|
|
175
|
-
*
|
|
111
|
+
* Describes the message inari.plugin.v1.GetInfoResponse.
|
|
112
|
+
* Use `create(GetInfoResponseSchema)` to create a new message.
|
|
176
113
|
*/
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
super();
|
|
180
|
-
proto3.util.initPartial(data, this);
|
|
181
|
-
}
|
|
114
|
+
export const GetInfoResponseSchema: GenMessage<GetInfoResponse> = /*@__PURE__*/
|
|
115
|
+
messageDesc(file_inari_plugin_v1_plugin, 3);
|
|
182
116
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
117
|
+
/**
|
|
118
|
+
* AuthMethod declares one way a plugin accepts downstream authentication
|
|
119
|
+
* (platform plan §5.8, extension OIDC pass-through). It is a declaration of
|
|
120
|
+
* capability only: the host performs any token exchange and injects the
|
|
121
|
+
* resulting credential separately from AuthContext.
|
|
122
|
+
*
|
|
123
|
+
* @generated from message inari.plugin.v1.AuthMethod
|
|
124
|
+
*/
|
|
125
|
+
export type AuthMethod = Message<"inari.plugin.v1.AuthMethod"> & {
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: inari.plugin.v1.AuthMethod.Type type = 1;
|
|
128
|
+
*/
|
|
129
|
+
type: AuthMethod_Type;
|
|
187
130
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
131
|
+
/**
|
|
132
|
+
* Target audience for OIDC token exchange (TYPE_OIDC_USER); empty
|
|
133
|
+
* otherwise.
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string audience = 2;
|
|
136
|
+
*/
|
|
137
|
+
audience: string;
|
|
191
138
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
139
|
+
/**
|
|
140
|
+
* OAuth scopes requested during exchange; empty means provider defaults.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: repeated string scopes = 3;
|
|
143
|
+
*/
|
|
144
|
+
scopes: string[];
|
|
195
145
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Exactly one method should be marked default; hosts fall back to the
|
|
148
|
+
* first entry when none is.
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: bool is_default = 4;
|
|
151
|
+
*/
|
|
152
|
+
isDefault: boolean;
|
|
153
|
+
};
|
|
199
154
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message inari.plugin.v1.AuthMethod.
|
|
157
|
+
* Use `create(AuthMethodSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export const AuthMethodSchema: GenMessage<AuthMethod> = /*@__PURE__*/
|
|
160
|
+
messageDesc(file_inari_plugin_v1_plugin, 4);
|
|
204
161
|
|
|
205
162
|
/**
|
|
206
|
-
* @generated from
|
|
163
|
+
* @generated from enum inari.plugin.v1.AuthMethod.Type
|
|
207
164
|
*/
|
|
208
|
-
export
|
|
165
|
+
export enum AuthMethod_Type {
|
|
209
166
|
/**
|
|
210
|
-
* @generated from
|
|
167
|
+
* @generated from enum value: TYPE_UNSPECIFIED = 0;
|
|
211
168
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
constructor(data?: PartialMessage<GetInfoResponse>) {
|
|
215
|
-
super();
|
|
216
|
-
proto3.util.initPartial(data, this);
|
|
217
|
-
}
|
|
169
|
+
UNSPECIFIED = 0,
|
|
218
170
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
171
|
+
/**
|
|
172
|
+
* OIDC token exchange for the end user's identity (audience-scoped).
|
|
173
|
+
*
|
|
174
|
+
* @generated from enum value: TYPE_OIDC_USER = 1;
|
|
175
|
+
*/
|
|
176
|
+
OIDC_USER = 1,
|
|
224
177
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Plugin-managed service account (e.g. Kubernetes TokenRequest).
|
|
180
|
+
*
|
|
181
|
+
* @generated from enum value: TYPE_SERVICE_ACCOUNT = 2;
|
|
182
|
+
*/
|
|
183
|
+
SERVICE_ACCOUNT = 2,
|
|
228
184
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Static API key held by the host secret store.
|
|
187
|
+
*
|
|
188
|
+
* @generated from enum value: TYPE_API_KEY = 3;
|
|
189
|
+
*/
|
|
190
|
+
API_KEY = 3,
|
|
232
191
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Shared secret held by the host secret store.
|
|
194
|
+
*
|
|
195
|
+
* @generated from enum value: TYPE_SHARED_SECRET = 4;
|
|
196
|
+
*/
|
|
197
|
+
SHARED_SECRET = 4,
|
|
236
198
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Reuse of the caller's SSO session token (no exchange).
|
|
201
|
+
*
|
|
202
|
+
* @generated from enum value: TYPE_OIDC_SSO_SESSION = 5;
|
|
203
|
+
*/
|
|
204
|
+
OIDC_SSO_SESSION = 5,
|
|
240
205
|
}
|
|
241
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Describes the enum inari.plugin.v1.AuthMethod.Type.
|
|
209
|
+
*/
|
|
210
|
+
export const AuthMethod_TypeSchema: GenEnum<AuthMethod_Type> = /*@__PURE__*/
|
|
211
|
+
enumDesc(file_inari_plugin_v1_plugin, 4, 0);
|
|
212
|
+
|
|
242
213
|
/**
|
|
243
214
|
* AuthContext carries the authenticated principal and tenant identity from the
|
|
244
215
|
* control plane to the plugin (platform plan §5.8): the control plane
|
|
@@ -247,89 +218,65 @@ export class GetInfoResponse extends Message<GetInfoResponse> {
|
|
|
247
218
|
*
|
|
248
219
|
* @generated from message inari.plugin.v1.AuthContext
|
|
249
220
|
*/
|
|
250
|
-
export
|
|
221
|
+
export type AuthContext = Message<"inari.plugin.v1.AuthContext"> & {
|
|
251
222
|
/**
|
|
252
223
|
* Stable authenticated principal identifier (subject claim).
|
|
253
224
|
*
|
|
254
225
|
* @generated from field: string principal_id = 1;
|
|
255
226
|
*/
|
|
256
|
-
principalId
|
|
227
|
+
principalId: string;
|
|
257
228
|
|
|
258
229
|
/**
|
|
259
230
|
* Tenant the call is scoped to (Keycloak Organization id, "org:<id>").
|
|
260
231
|
*
|
|
261
232
|
* @generated from field: string tenant_id = 2;
|
|
262
233
|
*/
|
|
263
|
-
tenantId
|
|
234
|
+
tenantId: string;
|
|
264
235
|
|
|
265
236
|
/**
|
|
266
237
|
* Human-readable principal name for display/audit.
|
|
267
238
|
*
|
|
268
239
|
* @generated from field: string display_name = 3;
|
|
269
240
|
*/
|
|
270
|
-
displayName
|
|
241
|
+
displayName: string;
|
|
271
242
|
|
|
272
243
|
/**
|
|
273
244
|
* Group memberships (e.g. "tenant-acme/platform-team").
|
|
274
245
|
*
|
|
275
246
|
* @generated from field: repeated string groups = 4;
|
|
276
247
|
*/
|
|
277
|
-
groups: string[]
|
|
248
|
+
groups: string[];
|
|
278
249
|
|
|
279
250
|
/**
|
|
280
251
|
* Additional verified claims the control plane chooses to forward.
|
|
281
252
|
*
|
|
282
253
|
* @generated from field: map<string, string> claims = 5;
|
|
283
254
|
*/
|
|
284
|
-
claims: { [key: string]: string }
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
294
|
-
{ no: 1, name: "principal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
295
|
-
{ no: 2, name: "tenant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
296
|
-
{ no: 3, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
297
|
-
{ no: 4, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
298
|
-
{ no: 5, name: "claims", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
299
|
-
]);
|
|
300
|
-
|
|
301
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthContext {
|
|
302
|
-
return new AuthContext().fromBinary(bytes, options);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthContext {
|
|
306
|
-
return new AuthContext().fromJson(jsonValue, options);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthContext {
|
|
310
|
-
return new AuthContext().fromJsonString(jsonString, options);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
static equals(a: AuthContext | PlainMessage<AuthContext> | undefined, b: AuthContext | PlainMessage<AuthContext> | undefined): boolean {
|
|
314
|
-
return proto3.util.equals(AuthContext, a, b);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
255
|
+
claims: { [key: string]: string };
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Describes the message inari.plugin.v1.AuthContext.
|
|
260
|
+
* Use `create(AuthContextSchema)` to create a new message.
|
|
261
|
+
*/
|
|
262
|
+
export const AuthContextSchema: GenMessage<AuthContext> = /*@__PURE__*/
|
|
263
|
+
messageDesc(file_inari_plugin_v1_plugin, 5);
|
|
317
264
|
|
|
318
265
|
/**
|
|
319
266
|
* Action describes a single invocable capability of a plugin.
|
|
320
267
|
*
|
|
321
268
|
* @generated from message inari.plugin.v1.Action
|
|
322
269
|
*/
|
|
323
|
-
export
|
|
270
|
+
export type Action = Message<"inari.plugin.v1.Action"> & {
|
|
324
271
|
/**
|
|
325
272
|
* @generated from field: string name = 1;
|
|
326
273
|
*/
|
|
327
|
-
name
|
|
274
|
+
name: string;
|
|
328
275
|
|
|
329
276
|
/**
|
|
330
277
|
* @generated from field: string description = 2;
|
|
331
278
|
*/
|
|
332
|
-
description
|
|
279
|
+
description: string;
|
|
333
280
|
|
|
334
281
|
/**
|
|
335
282
|
* Optional JSON Schema (OpenAPI v3 subset) documents for the payload and
|
|
@@ -338,111 +285,50 @@ export class Action extends Message<Action> {
|
|
|
338
285
|
*
|
|
339
286
|
* @generated from field: bytes input_schema = 3;
|
|
340
287
|
*/
|
|
341
|
-
inputSchema
|
|
288
|
+
inputSchema: Uint8Array;
|
|
342
289
|
|
|
343
290
|
/**
|
|
344
291
|
* @generated from field: bytes output_schema = 4;
|
|
345
292
|
*/
|
|
346
|
-
outputSchema
|
|
347
|
-
|
|
348
|
-
constructor(data?: PartialMessage<Action>) {
|
|
349
|
-
super();
|
|
350
|
-
proto3.util.initPartial(data, this);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
354
|
-
static readonly typeName = "inari.plugin.v1.Action";
|
|
355
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
356
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
357
|
-
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
358
|
-
{ no: 3, name: "input_schema", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
359
|
-
{ no: 4, name: "output_schema", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
360
|
-
]);
|
|
361
|
-
|
|
362
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Action {
|
|
363
|
-
return new Action().fromBinary(bytes, options);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Action {
|
|
367
|
-
return new Action().fromJson(jsonValue, options);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Action {
|
|
371
|
-
return new Action().fromJsonString(jsonString, options);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
static equals(a: Action | PlainMessage<Action> | undefined, b: Action | PlainMessage<Action> | undefined): boolean {
|
|
375
|
-
return proto3.util.equals(Action, a, b);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
293
|
+
outputSchema: Uint8Array;
|
|
294
|
+
};
|
|
378
295
|
|
|
379
296
|
/**
|
|
380
|
-
*
|
|
297
|
+
* Describes the message inari.plugin.v1.Action.
|
|
298
|
+
* Use `create(ActionSchema)` to create a new message.
|
|
381
299
|
*/
|
|
382
|
-
export
|
|
383
|
-
|
|
384
|
-
super();
|
|
385
|
-
proto3.util.initPartial(data, this);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
389
|
-
static readonly typeName = "inari.plugin.v1.GetCapabilitiesRequest";
|
|
390
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
391
|
-
]);
|
|
300
|
+
export const ActionSchema: GenMessage<Action> = /*@__PURE__*/
|
|
301
|
+
messageDesc(file_inari_plugin_v1_plugin, 6);
|
|
392
302
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return new GetCapabilitiesRequest().fromJson(jsonValue, options);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCapabilitiesRequest {
|
|
402
|
-
return new GetCapabilitiesRequest().fromJsonString(jsonString, options);
|
|
403
|
-
}
|
|
303
|
+
/**
|
|
304
|
+
* @generated from message inari.plugin.v1.GetCapabilitiesRequest
|
|
305
|
+
*/
|
|
306
|
+
export type GetCapabilitiesRequest = Message<"inari.plugin.v1.GetCapabilitiesRequest"> & {
|
|
307
|
+
};
|
|
404
308
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
309
|
+
/**
|
|
310
|
+
* Describes the message inari.plugin.v1.GetCapabilitiesRequest.
|
|
311
|
+
* Use `create(GetCapabilitiesRequestSchema)` to create a new message.
|
|
312
|
+
*/
|
|
313
|
+
export const GetCapabilitiesRequestSchema: GenMessage<GetCapabilitiesRequest> = /*@__PURE__*/
|
|
314
|
+
messageDesc(file_inari_plugin_v1_plugin, 7);
|
|
409
315
|
|
|
410
316
|
/**
|
|
411
317
|
* @generated from message inari.plugin.v1.GetCapabilitiesResponse
|
|
412
318
|
*/
|
|
413
|
-
export
|
|
319
|
+
export type GetCapabilitiesResponse = Message<"inari.plugin.v1.GetCapabilitiesResponse"> & {
|
|
414
320
|
/**
|
|
415
321
|
* @generated from field: repeated inari.plugin.v1.Action actions = 1;
|
|
416
322
|
*/
|
|
417
|
-
actions: Action[]
|
|
323
|
+
actions: Action[];
|
|
324
|
+
};
|
|
418
325
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
static readonly typeName = "inari.plugin.v1.GetCapabilitiesResponse";
|
|
426
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
427
|
-
{ no: 1, name: "actions", kind: "message", T: Action, repeated: true },
|
|
428
|
-
]);
|
|
429
|
-
|
|
430
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCapabilitiesResponse {
|
|
431
|
-
return new GetCapabilitiesResponse().fromBinary(bytes, options);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCapabilitiesResponse {
|
|
435
|
-
return new GetCapabilitiesResponse().fromJson(jsonValue, options);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCapabilitiesResponse {
|
|
439
|
-
return new GetCapabilitiesResponse().fromJsonString(jsonString, options);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
static equals(a: GetCapabilitiesResponse | PlainMessage<GetCapabilitiesResponse> | undefined, b: GetCapabilitiesResponse | PlainMessage<GetCapabilitiesResponse> | undefined): boolean {
|
|
443
|
-
return proto3.util.equals(GetCapabilitiesResponse, a, b);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
326
|
+
/**
|
|
327
|
+
* Describes the message inari.plugin.v1.GetCapabilitiesResponse.
|
|
328
|
+
* Use `create(GetCapabilitiesResponseSchema)` to create a new message.
|
|
329
|
+
*/
|
|
330
|
+
export const GetCapabilitiesResponseSchema: GenMessage<GetCapabilitiesResponse> = /*@__PURE__*/
|
|
331
|
+
messageDesc(file_inari_plugin_v1_plugin, 8);
|
|
446
332
|
|
|
447
333
|
/**
|
|
448
334
|
* PluginError is the structured error carried in an InvokeResponse. Handlers
|
|
@@ -450,241 +336,136 @@ export class GetCapabilitiesResponse extends Message<GetCapabilitiesResponse> {
|
|
|
450
336
|
*
|
|
451
337
|
* @generated from message inari.plugin.v1.PluginError
|
|
452
338
|
*/
|
|
453
|
-
export
|
|
339
|
+
export type PluginError = Message<"inari.plugin.v1.PluginError"> & {
|
|
454
340
|
/**
|
|
455
341
|
* @generated from field: inari.plugin.v1.ErrorCode code = 1;
|
|
456
342
|
*/
|
|
457
|
-
code
|
|
343
|
+
code: ErrorCode;
|
|
458
344
|
|
|
459
345
|
/**
|
|
460
346
|
* @generated from field: string message = 2;
|
|
461
347
|
*/
|
|
462
|
-
message
|
|
348
|
+
message: string;
|
|
463
349
|
|
|
464
350
|
/**
|
|
465
351
|
* Optional machine-readable details (e.g. field violations).
|
|
466
352
|
*
|
|
467
353
|
* @generated from field: map<string, string> details = 3;
|
|
468
354
|
*/
|
|
469
|
-
details: { [key: string]: string }
|
|
470
|
-
|
|
471
|
-
constructor(data?: PartialMessage<PluginError>) {
|
|
472
|
-
super();
|
|
473
|
-
proto3.util.initPartial(data, this);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
477
|
-
static readonly typeName = "inari.plugin.v1.PluginError";
|
|
478
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
479
|
-
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(ErrorCode) },
|
|
480
|
-
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
481
|
-
{ no: 3, name: "details", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
482
|
-
]);
|
|
483
|
-
|
|
484
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PluginError {
|
|
485
|
-
return new PluginError().fromBinary(bytes, options);
|
|
486
|
-
}
|
|
355
|
+
details: { [key: string]: string };
|
|
356
|
+
};
|
|
487
357
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
static equals(a: PluginError | PlainMessage<PluginError> | undefined, b: PluginError | PlainMessage<PluginError> | undefined): boolean {
|
|
497
|
-
return proto3.util.equals(PluginError, a, b);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
358
|
+
/**
|
|
359
|
+
* Describes the message inari.plugin.v1.PluginError.
|
|
360
|
+
* Use `create(PluginErrorSchema)` to create a new message.
|
|
361
|
+
*/
|
|
362
|
+
export const PluginErrorSchema: GenMessage<PluginError> = /*@__PURE__*/
|
|
363
|
+
messageDesc(file_inari_plugin_v1_plugin, 9);
|
|
500
364
|
|
|
501
365
|
/**
|
|
502
366
|
* InvokeRequest is the request envelope for a single action call.
|
|
503
367
|
*
|
|
504
368
|
* @generated from message inari.plugin.v1.InvokeRequest
|
|
505
369
|
*/
|
|
506
|
-
export
|
|
370
|
+
export type InvokeRequest = Message<"inari.plugin.v1.InvokeRequest"> & {
|
|
507
371
|
/**
|
|
508
372
|
* Name of the action to invoke (from GetCapabilities).
|
|
509
373
|
*
|
|
510
374
|
* @generated from field: string action = 1;
|
|
511
375
|
*/
|
|
512
|
-
action
|
|
376
|
+
action: string;
|
|
513
377
|
|
|
514
378
|
/**
|
|
515
379
|
* Authenticated identity forwarded by the control plane.
|
|
516
380
|
*
|
|
517
381
|
* @generated from field: inari.plugin.v1.AuthContext auth_context = 2;
|
|
518
382
|
*/
|
|
519
|
-
authContext?: AuthContext;
|
|
383
|
+
authContext?: AuthContext | undefined;
|
|
520
384
|
|
|
521
385
|
/**
|
|
522
386
|
* Action payload, JSON-encoded per the action's input schema.
|
|
523
387
|
*
|
|
524
388
|
* @generated from field: bytes payload = 3;
|
|
525
389
|
*/
|
|
526
|
-
payload
|
|
390
|
+
payload: Uint8Array;
|
|
527
391
|
|
|
528
392
|
/**
|
|
529
393
|
* Host-assigned idempotency/correlation id; echoed in logs and audit.
|
|
530
394
|
*
|
|
531
395
|
* @generated from field: string request_id = 4;
|
|
532
396
|
*/
|
|
533
|
-
requestId
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
543
|
-
{ no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
544
|
-
{ no: 2, name: "auth_context", kind: "message", T: AuthContext },
|
|
545
|
-
{ no: 3, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
546
|
-
{ no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
547
|
-
]);
|
|
548
|
-
|
|
549
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeRequest {
|
|
550
|
-
return new InvokeRequest().fromBinary(bytes, options);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeRequest {
|
|
554
|
-
return new InvokeRequest().fromJson(jsonValue, options);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeRequest {
|
|
558
|
-
return new InvokeRequest().fromJsonString(jsonString, options);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
static equals(a: InvokeRequest | PlainMessage<InvokeRequest> | undefined, b: InvokeRequest | PlainMessage<InvokeRequest> | undefined): boolean {
|
|
562
|
-
return proto3.util.equals(InvokeRequest, a, b);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
397
|
+
requestId: string;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Describes the message inari.plugin.v1.InvokeRequest.
|
|
402
|
+
* Use `create(InvokeRequestSchema)` to create a new message.
|
|
403
|
+
*/
|
|
404
|
+
export const InvokeRequestSchema: GenMessage<InvokeRequest> = /*@__PURE__*/
|
|
405
|
+
messageDesc(file_inari_plugin_v1_plugin, 10);
|
|
565
406
|
|
|
566
407
|
/**
|
|
567
408
|
* InvokeResponse is the response envelope: exactly one of result or error.
|
|
568
409
|
*
|
|
569
410
|
* @generated from message inari.plugin.v1.InvokeResponse
|
|
570
411
|
*/
|
|
571
|
-
export
|
|
412
|
+
export type InvokeResponse = Message<"inari.plugin.v1.InvokeResponse"> & {
|
|
572
413
|
/**
|
|
573
414
|
* Action result, JSON-encoded per the action's output schema.
|
|
574
415
|
*
|
|
575
416
|
* @generated from field: bytes result = 1;
|
|
576
417
|
*/
|
|
577
|
-
result
|
|
418
|
+
result: Uint8Array;
|
|
578
419
|
|
|
579
420
|
/**
|
|
580
421
|
* @generated from field: inari.plugin.v1.PluginError error = 2;
|
|
581
422
|
*/
|
|
582
|
-
error?: PluginError;
|
|
583
|
-
|
|
584
|
-
constructor(data?: PartialMessage<InvokeResponse>) {
|
|
585
|
-
super();
|
|
586
|
-
proto3.util.initPartial(data, this);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
590
|
-
static readonly typeName = "inari.plugin.v1.InvokeResponse";
|
|
591
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
592
|
-
{ no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
593
|
-
{ no: 2, name: "error", kind: "message", T: PluginError },
|
|
594
|
-
]);
|
|
423
|
+
error?: PluginError | undefined;
|
|
424
|
+
};
|
|
595
425
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeResponse {
|
|
605
|
-
return new InvokeResponse().fromJsonString(jsonString, options);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
static equals(a: InvokeResponse | PlainMessage<InvokeResponse> | undefined, b: InvokeResponse | PlainMessage<InvokeResponse> | undefined): boolean {
|
|
609
|
-
return proto3.util.equals(InvokeResponse, a, b);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
426
|
+
/**
|
|
427
|
+
* Describes the message inari.plugin.v1.InvokeResponse.
|
|
428
|
+
* Use `create(InvokeResponseSchema)` to create a new message.
|
|
429
|
+
*/
|
|
430
|
+
export const InvokeResponseSchema: GenMessage<InvokeResponse> = /*@__PURE__*/
|
|
431
|
+
messageDesc(file_inari_plugin_v1_plugin, 11);
|
|
612
432
|
|
|
613
433
|
/**
|
|
614
434
|
* @generated from message inari.plugin.v1.HealthCheckRequest
|
|
615
435
|
*/
|
|
616
|
-
export
|
|
617
|
-
|
|
618
|
-
super();
|
|
619
|
-
proto3.util.initPartial(data, this);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
623
|
-
static readonly typeName = "inari.plugin.v1.HealthCheckRequest";
|
|
624
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
625
|
-
]);
|
|
626
|
-
|
|
627
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheckRequest {
|
|
628
|
-
return new HealthCheckRequest().fromBinary(bytes, options);
|
|
629
|
-
}
|
|
436
|
+
export type HealthCheckRequest = Message<"inari.plugin.v1.HealthCheckRequest"> & {
|
|
437
|
+
};
|
|
630
438
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
static equals(a: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined, b: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined): boolean {
|
|
640
|
-
return proto3.util.equals(HealthCheckRequest, a, b);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
439
|
+
/**
|
|
440
|
+
* Describes the message inari.plugin.v1.HealthCheckRequest.
|
|
441
|
+
* Use `create(HealthCheckRequestSchema)` to create a new message.
|
|
442
|
+
*/
|
|
443
|
+
export const HealthCheckRequestSchema: GenMessage<HealthCheckRequest> = /*@__PURE__*/
|
|
444
|
+
messageDesc(file_inari_plugin_v1_plugin, 12);
|
|
643
445
|
|
|
644
446
|
/**
|
|
645
447
|
* @generated from message inari.plugin.v1.HealthCheckResponse
|
|
646
448
|
*/
|
|
647
|
-
export
|
|
449
|
+
export type HealthCheckResponse = Message<"inari.plugin.v1.HealthCheckResponse"> & {
|
|
648
450
|
/**
|
|
649
451
|
* @generated from field: inari.plugin.v1.HealthCheckResponse.ServingStatus status = 1;
|
|
650
452
|
*/
|
|
651
|
-
status
|
|
453
|
+
status: HealthCheckResponse_ServingStatus;
|
|
652
454
|
|
|
653
455
|
/**
|
|
654
456
|
* Optional human-readable detail (e.g. degraded dependency).
|
|
655
457
|
*
|
|
656
458
|
* @generated from field: string message = 2;
|
|
657
459
|
*/
|
|
658
|
-
message
|
|
659
|
-
|
|
660
|
-
constructor(data?: PartialMessage<HealthCheckResponse>) {
|
|
661
|
-
super();
|
|
662
|
-
proto3.util.initPartial(data, this);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
666
|
-
static readonly typeName = "inari.plugin.v1.HealthCheckResponse";
|
|
667
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
668
|
-
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(HealthCheckResponse_ServingStatus) },
|
|
669
|
-
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
670
|
-
]);
|
|
460
|
+
message: string;
|
|
461
|
+
};
|
|
671
462
|
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheckResponse {
|
|
681
|
-
return new HealthCheckResponse().fromJsonString(jsonString, options);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
static equals(a: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined, b: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined): boolean {
|
|
685
|
-
return proto3.util.equals(HealthCheckResponse, a, b);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
463
|
+
/**
|
|
464
|
+
* Describes the message inari.plugin.v1.HealthCheckResponse.
|
|
465
|
+
* Use `create(HealthCheckResponseSchema)` to create a new message.
|
|
466
|
+
*/
|
|
467
|
+
export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> = /*@__PURE__*/
|
|
468
|
+
messageDesc(file_inari_plugin_v1_plugin, 13);
|
|
688
469
|
|
|
689
470
|
/**
|
|
690
471
|
* @generated from enum inari.plugin.v1.HealthCheckResponse.ServingStatus
|
|
@@ -705,10 +486,106 @@ export enum HealthCheckResponse_ServingStatus {
|
|
|
705
486
|
*/
|
|
706
487
|
NOT_SERVING = 2,
|
|
707
488
|
}
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Describes the enum inari.plugin.v1.HealthCheckResponse.ServingStatus.
|
|
492
|
+
*/
|
|
493
|
+
export const HealthCheckResponse_ServingStatusSchema: GenEnum<HealthCheckResponse_ServingStatus> = /*@__PURE__*/
|
|
494
|
+
enumDesc(file_inari_plugin_v1_plugin, 13, 0);
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* ErrorCode classifies plugin errors so hosts and clients can react
|
|
498
|
+
* programmatically. Values mirror common gRPC/HTTP semantics.
|
|
499
|
+
*
|
|
500
|
+
* @generated from enum inari.plugin.v1.ErrorCode
|
|
501
|
+
*/
|
|
502
|
+
export enum ErrorCode {
|
|
503
|
+
/**
|
|
504
|
+
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
505
|
+
*/
|
|
506
|
+
UNSPECIFIED = 0,
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
|
|
510
|
+
*/
|
|
511
|
+
INVALID_ARGUMENT = 1,
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 2;
|
|
515
|
+
*/
|
|
516
|
+
UNAUTHENTICATED = 2,
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 3;
|
|
520
|
+
*/
|
|
521
|
+
PERMISSION_DENIED = 3,
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @generated from enum value: ERROR_CODE_NOT_FOUND = 4;
|
|
525
|
+
*/
|
|
526
|
+
NOT_FOUND = 4,
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 5;
|
|
530
|
+
*/
|
|
531
|
+
FAILED_PRECONDITION = 5,
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @generated from enum value: ERROR_CODE_INTERNAL = 6;
|
|
535
|
+
*/
|
|
536
|
+
INTERNAL = 6,
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* @generated from enum value: ERROR_CODE_UNAVAILABLE = 7;
|
|
540
|
+
*/
|
|
541
|
+
UNAVAILABLE = 7,
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Describes the enum inari.plugin.v1.ErrorCode.
|
|
546
|
+
*/
|
|
547
|
+
export const ErrorCodeSchema: GenEnum<ErrorCode> = /*@__PURE__*/
|
|
548
|
+
enumDesc(file_inari_plugin_v1_plugin, 0);
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* PluginContractService is the versioned gRPC surface every plugin serves
|
|
552
|
+
* (platform plan §5.8). Changes are additive within inari.plugin.v1.
|
|
553
|
+
*
|
|
554
|
+
* @generated from service inari.plugin.v1.PluginContractService
|
|
555
|
+
*/
|
|
556
|
+
export const PluginContractService: GenService<{
|
|
557
|
+
/**
|
|
558
|
+
* @generated from rpc inari.plugin.v1.PluginContractService.GetInfo
|
|
559
|
+
*/
|
|
560
|
+
getInfo: {
|
|
561
|
+
methodKind: "unary";
|
|
562
|
+
input: typeof GetInfoRequestSchema;
|
|
563
|
+
output: typeof GetInfoResponseSchema;
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* @generated from rpc inari.plugin.v1.PluginContractService.GetCapabilities
|
|
567
|
+
*/
|
|
568
|
+
getCapabilities: {
|
|
569
|
+
methodKind: "unary";
|
|
570
|
+
input: typeof GetCapabilitiesRequestSchema;
|
|
571
|
+
output: typeof GetCapabilitiesResponseSchema;
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
* @generated from rpc inari.plugin.v1.PluginContractService.Invoke
|
|
575
|
+
*/
|
|
576
|
+
invoke: {
|
|
577
|
+
methodKind: "unary";
|
|
578
|
+
input: typeof InvokeRequestSchema;
|
|
579
|
+
output: typeof InvokeResponseSchema;
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
* @generated from rpc inari.plugin.v1.PluginContractService.HealthCheck
|
|
583
|
+
*/
|
|
584
|
+
healthCheck: {
|
|
585
|
+
methodKind: "unary";
|
|
586
|
+
input: typeof HealthCheckRequestSchema;
|
|
587
|
+
output: typeof HealthCheckResponseSchema;
|
|
588
|
+
},
|
|
589
|
+
}> = /*@__PURE__*/
|
|
590
|
+
serviceDesc(file_inari_plugin_v1_plugin, 0);
|
|
714
591
|
|