@miradorlabs/web-grpc 2.38.0 → 2.40.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/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +3934 -0
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +184 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +6734 -0
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var proto_gateway_web_v1_ai_gateway_pb = require('../../../../proto/gateway/web/v1/ai_gateway_pb.js');
|
|
6
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
|
+
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_gateway_web_v1_AISessionEventEnvelope(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.AISessionEventEnvelope)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.AISessionEventEnvelope');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_gateway_web_v1_AISessionEventEnvelope(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_ai_gateway_pb.AISessionEventEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_gateway_web_v1_ListGitActivitiesRequest(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesRequest)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.ListGitActivitiesRequest');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_gateway_web_v1_ListGitActivitiesRequest(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_gateway_web_v1_ListGitActivitiesResponse(arg) {
|
|
32
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesResponse)) {
|
|
33
|
+
throw new Error('Expected argument of type gateway.web.v1.ListGitActivitiesResponse');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_gateway_web_v1_ListGitActivitiesResponse(buffer_arg) {
|
|
39
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_gateway_web_v1_ListPrincipalsRequest(arg) {
|
|
43
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsRequest)) {
|
|
44
|
+
throw new Error('Expected argument of type gateway.web.v1.ListPrincipalsRequest');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_gateway_web_v1_ListPrincipalsRequest(buffer_arg) {
|
|
50
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_gateway_web_v1_ListPrincipalsResponse(arg) {
|
|
54
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsResponse)) {
|
|
55
|
+
throw new Error('Expected argument of type gateway.web.v1.ListPrincipalsResponse');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_gateway_web_v1_ListPrincipalsResponse(buffer_arg) {
|
|
61
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_gateway_web_v1_ListSessionsRequest(arg) {
|
|
65
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionsRequest)) {
|
|
66
|
+
throw new Error('Expected argument of type gateway.web.v1.ListSessionsRequest');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_gateway_web_v1_ListSessionsRequest(buffer_arg) {
|
|
72
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListSessionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function serialize_gateway_web_v1_ListSessionsResponse(arg) {
|
|
76
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionsResponse)) {
|
|
77
|
+
throw new Error('Expected argument of type gateway.web.v1.ListSessionsResponse');
|
|
78
|
+
}
|
|
79
|
+
return Buffer.from(arg.serializeBinary());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deserialize_gateway_web_v1_ListSessionsResponse(buffer_arg) {
|
|
83
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListSessionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function serialize_gateway_web_v1_StreamSessionRequest(arg) {
|
|
87
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.StreamSessionRequest)) {
|
|
88
|
+
throw new Error('Expected argument of type gateway.web.v1.StreamSessionRequest');
|
|
89
|
+
}
|
|
90
|
+
return Buffer.from(arg.serializeBinary());
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function deserialize_gateway_web_v1_StreamSessionRequest(buffer_arg) {
|
|
94
|
+
return proto_gateway_web_v1_ai_gateway_pb.StreamSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function serialize_gateway_web_v1_UpdatePrincipalRequest(arg) {
|
|
98
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalRequest)) {
|
|
99
|
+
throw new Error('Expected argument of type gateway.web.v1.UpdatePrincipalRequest');
|
|
100
|
+
}
|
|
101
|
+
return Buffer.from(arg.serializeBinary());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function deserialize_gateway_web_v1_UpdatePrincipalRequest(buffer_arg) {
|
|
105
|
+
return proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function serialize_gateway_web_v1_UpdatePrincipalResponse(arg) {
|
|
109
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalResponse)) {
|
|
110
|
+
throw new Error('Expected argument of type gateway.web.v1.UpdatePrincipalResponse');
|
|
111
|
+
}
|
|
112
|
+
return Buffer.from(arg.serializeBinary());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function deserialize_gateway_web_v1_UpdatePrincipalResponse(buffer_arg) {
|
|
116
|
+
return proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// AIGatewayService is the frontend-facing proxy over telemetry.api.v1.AIService:
|
|
121
|
+
// the AI session catalog, one session's conversational replay, and the principal
|
|
122
|
+
// id->name catalog (read + alias write). A thin proxy — it resolves the caller's
|
|
123
|
+
// identity, stamps the authorized organization/project, and forwards. Messages
|
|
124
|
+
// duplicate the telemetry-api shape (proto domain isolation); unary responses
|
|
125
|
+
// carry ResponseStatus, streams do not.
|
|
126
|
+
var AIGatewayServiceService = exports.AIGatewayServiceService = {
|
|
127
|
+
listSessions: {
|
|
128
|
+
path: '/gateway.web.v1.AIGatewayService/ListSessions',
|
|
129
|
+
requestStream: false,
|
|
130
|
+
responseStream: false,
|
|
131
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ListSessionsRequest,
|
|
132
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ListSessionsResponse,
|
|
133
|
+
requestSerialize: serialize_gateway_web_v1_ListSessionsRequest,
|
|
134
|
+
requestDeserialize: deserialize_gateway_web_v1_ListSessionsRequest,
|
|
135
|
+
responseSerialize: serialize_gateway_web_v1_ListSessionsResponse,
|
|
136
|
+
responseDeserialize: deserialize_gateway_web_v1_ListSessionsResponse,
|
|
137
|
+
},
|
|
138
|
+
streamSession: {
|
|
139
|
+
path: '/gateway.web.v1.AIGatewayService/StreamSession',
|
|
140
|
+
requestStream: false,
|
|
141
|
+
responseStream: true,
|
|
142
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.StreamSessionRequest,
|
|
143
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.AISessionEventEnvelope,
|
|
144
|
+
requestSerialize: serialize_gateway_web_v1_StreamSessionRequest,
|
|
145
|
+
requestDeserialize: deserialize_gateway_web_v1_StreamSessionRequest,
|
|
146
|
+
responseSerialize: serialize_gateway_web_v1_AISessionEventEnvelope,
|
|
147
|
+
responseDeserialize: deserialize_gateway_web_v1_AISessionEventEnvelope,
|
|
148
|
+
},
|
|
149
|
+
listPrincipals: {
|
|
150
|
+
path: '/gateway.web.v1.AIGatewayService/ListPrincipals',
|
|
151
|
+
requestStream: false,
|
|
152
|
+
responseStream: false,
|
|
153
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsRequest,
|
|
154
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ListPrincipalsResponse,
|
|
155
|
+
requestSerialize: serialize_gateway_web_v1_ListPrincipalsRequest,
|
|
156
|
+
requestDeserialize: deserialize_gateway_web_v1_ListPrincipalsRequest,
|
|
157
|
+
responseSerialize: serialize_gateway_web_v1_ListPrincipalsResponse,
|
|
158
|
+
responseDeserialize: deserialize_gateway_web_v1_ListPrincipalsResponse,
|
|
159
|
+
},
|
|
160
|
+
updatePrincipal: {
|
|
161
|
+
path: '/gateway.web.v1.AIGatewayService/UpdatePrincipal',
|
|
162
|
+
requestStream: false,
|
|
163
|
+
responseStream: false,
|
|
164
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalRequest,
|
|
165
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.UpdatePrincipalResponse,
|
|
166
|
+
requestSerialize: serialize_gateway_web_v1_UpdatePrincipalRequest,
|
|
167
|
+
requestDeserialize: deserialize_gateway_web_v1_UpdatePrincipalRequest,
|
|
168
|
+
responseSerialize: serialize_gateway_web_v1_UpdatePrincipalResponse,
|
|
169
|
+
responseDeserialize: deserialize_gateway_web_v1_UpdatePrincipalResponse,
|
|
170
|
+
},
|
|
171
|
+
listGitActivities: {
|
|
172
|
+
path: '/gateway.web.v1.AIGatewayService/ListGitActivities',
|
|
173
|
+
requestStream: false,
|
|
174
|
+
responseStream: false,
|
|
175
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesRequest,
|
|
176
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesResponse,
|
|
177
|
+
requestSerialize: serialize_gateway_web_v1_ListGitActivitiesRequest,
|
|
178
|
+
requestDeserialize: deserialize_gateway_web_v1_ListGitActivitiesRequest,
|
|
179
|
+
responseSerialize: serialize_gateway_web_v1_ListGitActivitiesResponse,
|
|
180
|
+
responseDeserialize: deserialize_gateway_web_v1_ListGitActivitiesResponse,
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');
|