@otonoma/paranet-client 2.11.0-rc.18
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 +2 -0
- package/dist/client.d.ts +168 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +497 -0
- package/dist/graphql.d.ts +8 -0
- package/dist/graphql.d.ts.map +1 -0
- package/dist/graphql.js +113 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/pncp.d.ts +129 -0
- package/dist/pncp.d.ts.map +1 -0
- package/dist/pncp.js +100 -0
- package/dist/proto/broker.grpc.client.d.ts +154 -0
- package/dist/proto/broker.grpc.client.d.ts.map +1 -0
- package/dist/proto/broker.grpc.client.js +102 -0
- package/dist/proto/broker.grpc.d.ts +6 -0
- package/dist/proto/broker.grpc.d.ts.map +1 -0
- package/dist/proto/broker.grpc.js +32 -0
- package/dist/proto/broker_api.d.ts +324 -0
- package/dist/proto/broker_api.d.ts.map +1 -0
- package/dist/proto/broker_api.js +566 -0
- package/dist/proto/google/protobuf/descriptor.d.ts +2492 -0
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/proto/google/protobuf/descriptor.js +3250 -0
- package/dist/proto/google/protobuf/timestamp.d.ts +157 -0
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/proto/google/protobuf/timestamp.js +132 -0
- package/dist/proto/grpc/health/v1/health.client.d.ts +79 -0
- package/dist/proto/grpc/health/v1/health.client.d.ts.map +1 -0
- package/dist/proto/grpc/health/v1/health.client.js +46 -0
- package/dist/proto/grpc/health/v1/health.d.ts +74 -0
- package/dist/proto/grpc/health/v1/health.d.ts.map +1 -0
- package/dist/proto/grpc/health/v1/health.js +152 -0
- package/dist/proto/identifiers.d.ts +82 -0
- package/dist/proto/identifiers.d.ts.map +1 -0
- package/dist/proto/identifiers.js +132 -0
- package/dist/proto/mediums.d.ts +71 -0
- package/dist/proto/mediums.d.ts.map +1 -0
- package/dist/proto/mediums.js +120 -0
- package/dist/proto/observation.d.ts +287 -0
- package/dist/proto/observation.d.ts.map +1 -0
- package/dist/proto/observation.js +443 -0
- package/dist/proto/otonoma/common/value.d.ts +127 -0
- package/dist/proto/otonoma/common/value.d.ts.map +1 -0
- package/dist/proto/otonoma/common/value.js +248 -0
- package/dist/proto/pncp.d.ts +607 -0
- package/dist/proto/pncp.d.ts.map +1 -0
- package/dist/proto/pncp.js +936 -0
- package/dist/schema/paranet.d.ts +245 -0
- package/dist/schema/paranet.d.ts.map +1 -0
- package/dist/schema/paranet.js +7 -0
- package/dist/util.d.ts +5 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +120 -0
- package/package.json +39 -0
- package/src/client.ts +677 -0
- package/src/graphql.ts +103 -0
- package/src/index.ts +14 -0
- package/src/pncp.ts +236 -0
- package/src/proto/broker.grpc.client.ts +193 -0
- package/src/proto/broker.grpc.ts +32 -0
- package/src/proto/broker_api.ts +778 -0
- package/src/proto/google/protobuf/descriptor.ts +4860 -0
- package/src/proto/google/protobuf/timestamp.ts +288 -0
- package/src/proto/grpc/health/v1/health.client.ts +106 -0
- package/src/proto/grpc/health/v1/health.ts +174 -0
- package/src/proto/identifiers.ts +176 -0
- package/src/proto/mediums.ts +168 -0
- package/src/proto/observation.ts +636 -0
- package/src/proto/otonoma/common/value.ts +334 -0
- package/src/proto/pncp.ts +1333 -0
- package/src/schema/paranet.ts +257 -0
- package/src/util.ts +129 -0
- package/tsconfig.json +27 -0
|
@@ -0,0 +1,778 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4
|
|
2
|
+
// @generated from protobuf file "broker_api.proto" (package "pncp.v1", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// TODO: Rename this file.
|
|
6
|
+
//
|
|
7
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
+
import { PncpPacket } from "./pncp";
|
|
17
|
+
import { EntityId } from "./identifiers";
|
|
18
|
+
import { ConversationState } from "./pncp";
|
|
19
|
+
import { Timestamp } from "./google/protobuf/timestamp";
|
|
20
|
+
import { ConversationId } from "./identifiers";
|
|
21
|
+
/**
|
|
22
|
+
* Response generated from the paranet in response to direct requests.
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf message pncp.v1.MessageResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface MessageResponse {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: pncp.v1.ConversationId id = 1;
|
|
29
|
+
*/
|
|
30
|
+
id?: ConversationId;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: string message_id = 2;
|
|
33
|
+
*/
|
|
34
|
+
messageId: string;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: google.protobuf.Timestamp time_created = 3;
|
|
37
|
+
*/
|
|
38
|
+
timeCreated?: Timestamp;
|
|
39
|
+
/**
|
|
40
|
+
* / Current state of the conversation after this request was made.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: pncp.v1.ConversationState state = 4;
|
|
43
|
+
*/
|
|
44
|
+
state: ConversationState;
|
|
45
|
+
/**
|
|
46
|
+
* Information on what happened with the message.
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf field: pncp.v1.ResponseKind kind = 5;
|
|
49
|
+
*/
|
|
50
|
+
kind: ResponseKind;
|
|
51
|
+
/**
|
|
52
|
+
* Id of the actor that was matched to, if the message was routed to an actor.
|
|
53
|
+
* Only optional for BROADCAST kind.
|
|
54
|
+
*
|
|
55
|
+
* @generated from protobuf field: optional pncp.v1.EntityId matched_id = 6;
|
|
56
|
+
*/
|
|
57
|
+
matchedId?: EntityId;
|
|
58
|
+
}
|
|
59
|
+
// Callback messages.
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Currently no inputs are required. This may change in the future.
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf message pncp.v1.PncpCallbackRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface PncpCallbackRequest {
|
|
67
|
+
/**
|
|
68
|
+
* If this is true, skill forwarding will not be checked when this actor connects.
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf field: bool disable_skill_forwarding = 1;
|
|
71
|
+
*/
|
|
72
|
+
disableSkillForwarding: boolean;
|
|
73
|
+
}
|
|
74
|
+
// Login messages.
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf message pncp.v1.LoginRequest
|
|
78
|
+
*/
|
|
79
|
+
export interface LoginRequest {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: string actor_id = 1;
|
|
82
|
+
*/
|
|
83
|
+
actorId: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf oneof: secret
|
|
86
|
+
*/
|
|
87
|
+
secret: {
|
|
88
|
+
oneofKind: "password";
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: string password = 2;
|
|
91
|
+
*/
|
|
92
|
+
password: string;
|
|
93
|
+
} | {
|
|
94
|
+
oneofKind: "token";
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: string token = 3;
|
|
97
|
+
*/
|
|
98
|
+
token: string;
|
|
99
|
+
} | {
|
|
100
|
+
oneofKind: "jwt";
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf field: string jwt = 4;
|
|
103
|
+
*/
|
|
104
|
+
jwt: string;
|
|
105
|
+
} | {
|
|
106
|
+
oneofKind: undefined;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf message pncp.v1.RefreshTokenRequest
|
|
111
|
+
*/
|
|
112
|
+
export interface RefreshTokenRequest {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf field: string token = 1;
|
|
115
|
+
*/
|
|
116
|
+
token: string;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: string refresh_token = 2;
|
|
119
|
+
*/
|
|
120
|
+
refreshToken: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf message pncp.v1.LoginResponse
|
|
124
|
+
*/
|
|
125
|
+
export interface LoginResponse {
|
|
126
|
+
/**
|
|
127
|
+
* Paranet token, must be provided on every request in the authorization header.
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: string token = 1;
|
|
130
|
+
*/
|
|
131
|
+
token: string;
|
|
132
|
+
/**
|
|
133
|
+
* Refresh token, usable to automatically regenerate a login token.
|
|
134
|
+
*
|
|
135
|
+
* @generated from protobuf field: string refresh_token = 2;
|
|
136
|
+
*/
|
|
137
|
+
refreshToken: string;
|
|
138
|
+
}
|
|
139
|
+
// Cross domain messages.
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @generated from protobuf message pncp.v1.CrossDomainMessage
|
|
143
|
+
*/
|
|
144
|
+
export interface CrossDomainMessage {
|
|
145
|
+
/**
|
|
146
|
+
* The originating conversation ID.
|
|
147
|
+
*
|
|
148
|
+
* @generated from protobuf field: pncp.v1.ConversationId id = 1;
|
|
149
|
+
*/
|
|
150
|
+
id?: ConversationId;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf field: pncp.v1.EntityId author = 2;
|
|
153
|
+
*/
|
|
154
|
+
author?: EntityId;
|
|
155
|
+
/**
|
|
156
|
+
* Pncp skill request or message.
|
|
157
|
+
*
|
|
158
|
+
* @generated from protobuf field: pncp.v1.PncpPacket body = 3;
|
|
159
|
+
*/
|
|
160
|
+
body?: PncpPacket;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf message pncp.v1.CrossDomainResponse
|
|
164
|
+
*/
|
|
165
|
+
export interface CrossDomainResponse {
|
|
166
|
+
/**
|
|
167
|
+
* The originating conversation ID.
|
|
168
|
+
*
|
|
169
|
+
* @generated from protobuf field: pncp.v1.ConversationId id = 1;
|
|
170
|
+
*/
|
|
171
|
+
id?: ConversationId;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf oneof: body
|
|
174
|
+
*/
|
|
175
|
+
body: {
|
|
176
|
+
oneofKind: "response";
|
|
177
|
+
/**
|
|
178
|
+
* The response generated from the request.
|
|
179
|
+
*
|
|
180
|
+
* @generated from protobuf field: pncp.v1.MessageResponse response = 2;
|
|
181
|
+
*/
|
|
182
|
+
response: MessageResponse;
|
|
183
|
+
} | {
|
|
184
|
+
oneofKind: "error";
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf field: string error = 3;
|
|
187
|
+
*/
|
|
188
|
+
error: string;
|
|
189
|
+
} | {
|
|
190
|
+
oneofKind: undefined;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @generated from protobuf message pncp.v1.CrossDomainStreamMessage
|
|
195
|
+
*/
|
|
196
|
+
export interface CrossDomainStreamMessage {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from protobuf oneof: body
|
|
199
|
+
*/
|
|
200
|
+
body: {
|
|
201
|
+
oneofKind: "msg";
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf field: pncp.v1.CrossDomainMessage msg = 1;
|
|
204
|
+
*/
|
|
205
|
+
msg: CrossDomainMessage;
|
|
206
|
+
} | {
|
|
207
|
+
oneofKind: "federationSync";
|
|
208
|
+
/**
|
|
209
|
+
* @generated from protobuf field: pncp.v1.CrossDomainFederationSync federation_sync = 2;
|
|
210
|
+
*/
|
|
211
|
+
federationSync: CrossDomainFederationSync;
|
|
212
|
+
} | {
|
|
213
|
+
oneofKind: undefined;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Message which indicates a cross domain sync should be started by the child node.
|
|
218
|
+
*
|
|
219
|
+
* @generated from protobuf message pncp.v1.CrossDomainFederationSync
|
|
220
|
+
*/
|
|
221
|
+
export interface CrossDomainFederationSync {
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @generated from protobuf enum pncp.v1.ResponseKind
|
|
225
|
+
*/
|
|
226
|
+
export enum ResponseKind {
|
|
227
|
+
/**
|
|
228
|
+
* @generated from protobuf enum value: MATCH = 0;
|
|
229
|
+
*/
|
|
230
|
+
MATCH = 0,
|
|
231
|
+
/**
|
|
232
|
+
* @generated from protobuf enum value: BROADCAST = 1;
|
|
233
|
+
*/
|
|
234
|
+
BROADCAST = 1,
|
|
235
|
+
/**
|
|
236
|
+
* @generated from protobuf enum value: DATA = 2;
|
|
237
|
+
*/
|
|
238
|
+
DATA = 2,
|
|
239
|
+
/**
|
|
240
|
+
* @generated from protobuf enum value: UNMATCHED = 3;
|
|
241
|
+
*/
|
|
242
|
+
UNMATCHED = 3,
|
|
243
|
+
/**
|
|
244
|
+
* @generated from protobuf enum value: NETWORKED = 4;
|
|
245
|
+
*/
|
|
246
|
+
NETWORKED = 4
|
|
247
|
+
}
|
|
248
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
249
|
+
class MessageResponse$Type extends MessageType<MessageResponse> {
|
|
250
|
+
constructor() {
|
|
251
|
+
super("pncp.v1.MessageResponse", [
|
|
252
|
+
{ no: 1, name: "id", kind: "message", T: () => ConversationId },
|
|
253
|
+
{ no: 2, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
254
|
+
{ no: 3, name: "time_created", kind: "message", T: () => Timestamp },
|
|
255
|
+
{ no: 4, name: "state", kind: "enum", T: () => ["pncp.v1.ConversationState", ConversationState] },
|
|
256
|
+
{ no: 5, name: "kind", kind: "enum", T: () => ["pncp.v1.ResponseKind", ResponseKind] },
|
|
257
|
+
{ no: 6, name: "matched_id", kind: "message", T: () => EntityId }
|
|
258
|
+
]);
|
|
259
|
+
}
|
|
260
|
+
create(value?: PartialMessage<MessageResponse>): MessageResponse {
|
|
261
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
262
|
+
message.messageId = "";
|
|
263
|
+
message.state = 0;
|
|
264
|
+
message.kind = 0;
|
|
265
|
+
if (value !== undefined)
|
|
266
|
+
reflectionMergePartial<MessageResponse>(this, message, value);
|
|
267
|
+
return message;
|
|
268
|
+
}
|
|
269
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageResponse): MessageResponse {
|
|
270
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
271
|
+
while (reader.pos < end) {
|
|
272
|
+
let [fieldNo, wireType] = reader.tag();
|
|
273
|
+
switch (fieldNo) {
|
|
274
|
+
case /* pncp.v1.ConversationId id */ 1:
|
|
275
|
+
message.id = ConversationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
276
|
+
break;
|
|
277
|
+
case /* string message_id */ 2:
|
|
278
|
+
message.messageId = reader.string();
|
|
279
|
+
break;
|
|
280
|
+
case /* google.protobuf.Timestamp time_created */ 3:
|
|
281
|
+
message.timeCreated = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timeCreated);
|
|
282
|
+
break;
|
|
283
|
+
case /* pncp.v1.ConversationState state */ 4:
|
|
284
|
+
message.state = reader.int32();
|
|
285
|
+
break;
|
|
286
|
+
case /* pncp.v1.ResponseKind kind */ 5:
|
|
287
|
+
message.kind = reader.int32();
|
|
288
|
+
break;
|
|
289
|
+
case /* optional pncp.v1.EntityId matched_id */ 6:
|
|
290
|
+
message.matchedId = EntityId.internalBinaryRead(reader, reader.uint32(), options, message.matchedId);
|
|
291
|
+
break;
|
|
292
|
+
default:
|
|
293
|
+
let u = options.readUnknownField;
|
|
294
|
+
if (u === "throw")
|
|
295
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
296
|
+
let d = reader.skip(wireType);
|
|
297
|
+
if (u !== false)
|
|
298
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return message;
|
|
302
|
+
}
|
|
303
|
+
internalBinaryWrite(message: MessageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
304
|
+
/* pncp.v1.ConversationId id = 1; */
|
|
305
|
+
if (message.id)
|
|
306
|
+
ConversationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
307
|
+
/* string message_id = 2; */
|
|
308
|
+
if (message.messageId !== "")
|
|
309
|
+
writer.tag(2, WireType.LengthDelimited).string(message.messageId);
|
|
310
|
+
/* google.protobuf.Timestamp time_created = 3; */
|
|
311
|
+
if (message.timeCreated)
|
|
312
|
+
Timestamp.internalBinaryWrite(message.timeCreated, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
313
|
+
/* pncp.v1.ConversationState state = 4; */
|
|
314
|
+
if (message.state !== 0)
|
|
315
|
+
writer.tag(4, WireType.Varint).int32(message.state);
|
|
316
|
+
/* pncp.v1.ResponseKind kind = 5; */
|
|
317
|
+
if (message.kind !== 0)
|
|
318
|
+
writer.tag(5, WireType.Varint).int32(message.kind);
|
|
319
|
+
/* optional pncp.v1.EntityId matched_id = 6; */
|
|
320
|
+
if (message.matchedId)
|
|
321
|
+
EntityId.internalBinaryWrite(message.matchedId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
322
|
+
let u = options.writeUnknownFields;
|
|
323
|
+
if (u !== false)
|
|
324
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
325
|
+
return writer;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @generated MessageType for protobuf message pncp.v1.MessageResponse
|
|
330
|
+
*/
|
|
331
|
+
export const MessageResponse = new MessageResponse$Type();
|
|
332
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
333
|
+
class PncpCallbackRequest$Type extends MessageType<PncpCallbackRequest> {
|
|
334
|
+
constructor() {
|
|
335
|
+
super("pncp.v1.PncpCallbackRequest", [
|
|
336
|
+
{ no: 1, name: "disable_skill_forwarding", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
337
|
+
]);
|
|
338
|
+
}
|
|
339
|
+
create(value?: PartialMessage<PncpCallbackRequest>): PncpCallbackRequest {
|
|
340
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
341
|
+
message.disableSkillForwarding = false;
|
|
342
|
+
if (value !== undefined)
|
|
343
|
+
reflectionMergePartial<PncpCallbackRequest>(this, message, value);
|
|
344
|
+
return message;
|
|
345
|
+
}
|
|
346
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PncpCallbackRequest): PncpCallbackRequest {
|
|
347
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
348
|
+
while (reader.pos < end) {
|
|
349
|
+
let [fieldNo, wireType] = reader.tag();
|
|
350
|
+
switch (fieldNo) {
|
|
351
|
+
case /* bool disable_skill_forwarding */ 1:
|
|
352
|
+
message.disableSkillForwarding = reader.bool();
|
|
353
|
+
break;
|
|
354
|
+
default:
|
|
355
|
+
let u = options.readUnknownField;
|
|
356
|
+
if (u === "throw")
|
|
357
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
358
|
+
let d = reader.skip(wireType);
|
|
359
|
+
if (u !== false)
|
|
360
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return message;
|
|
364
|
+
}
|
|
365
|
+
internalBinaryWrite(message: PncpCallbackRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
366
|
+
/* bool disable_skill_forwarding = 1; */
|
|
367
|
+
if (message.disableSkillForwarding !== false)
|
|
368
|
+
writer.tag(1, WireType.Varint).bool(message.disableSkillForwarding);
|
|
369
|
+
let u = options.writeUnknownFields;
|
|
370
|
+
if (u !== false)
|
|
371
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
372
|
+
return writer;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @generated MessageType for protobuf message pncp.v1.PncpCallbackRequest
|
|
377
|
+
*/
|
|
378
|
+
export const PncpCallbackRequest = new PncpCallbackRequest$Type();
|
|
379
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
380
|
+
class LoginRequest$Type extends MessageType<LoginRequest> {
|
|
381
|
+
constructor() {
|
|
382
|
+
super("pncp.v1.LoginRequest", [
|
|
383
|
+
{ no: 1, name: "actor_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
384
|
+
{ no: 2, name: "password", kind: "scalar", oneof: "secret", T: 9 /*ScalarType.STRING*/ },
|
|
385
|
+
{ no: 3, name: "token", kind: "scalar", oneof: "secret", T: 9 /*ScalarType.STRING*/ },
|
|
386
|
+
{ no: 4, name: "jwt", kind: "scalar", oneof: "secret", T: 9 /*ScalarType.STRING*/ }
|
|
387
|
+
]);
|
|
388
|
+
}
|
|
389
|
+
create(value?: PartialMessage<LoginRequest>): LoginRequest {
|
|
390
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
391
|
+
message.actorId = "";
|
|
392
|
+
message.secret = { oneofKind: undefined };
|
|
393
|
+
if (value !== undefined)
|
|
394
|
+
reflectionMergePartial<LoginRequest>(this, message, value);
|
|
395
|
+
return message;
|
|
396
|
+
}
|
|
397
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginRequest): LoginRequest {
|
|
398
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
399
|
+
while (reader.pos < end) {
|
|
400
|
+
let [fieldNo, wireType] = reader.tag();
|
|
401
|
+
switch (fieldNo) {
|
|
402
|
+
case /* string actor_id */ 1:
|
|
403
|
+
message.actorId = reader.string();
|
|
404
|
+
break;
|
|
405
|
+
case /* string password */ 2:
|
|
406
|
+
message.secret = {
|
|
407
|
+
oneofKind: "password",
|
|
408
|
+
password: reader.string()
|
|
409
|
+
};
|
|
410
|
+
break;
|
|
411
|
+
case /* string token */ 3:
|
|
412
|
+
message.secret = {
|
|
413
|
+
oneofKind: "token",
|
|
414
|
+
token: reader.string()
|
|
415
|
+
};
|
|
416
|
+
break;
|
|
417
|
+
case /* string jwt */ 4:
|
|
418
|
+
message.secret = {
|
|
419
|
+
oneofKind: "jwt",
|
|
420
|
+
jwt: reader.string()
|
|
421
|
+
};
|
|
422
|
+
break;
|
|
423
|
+
default:
|
|
424
|
+
let u = options.readUnknownField;
|
|
425
|
+
if (u === "throw")
|
|
426
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
427
|
+
let d = reader.skip(wireType);
|
|
428
|
+
if (u !== false)
|
|
429
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return message;
|
|
433
|
+
}
|
|
434
|
+
internalBinaryWrite(message: LoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
435
|
+
/* string actor_id = 1; */
|
|
436
|
+
if (message.actorId !== "")
|
|
437
|
+
writer.tag(1, WireType.LengthDelimited).string(message.actorId);
|
|
438
|
+
/* string password = 2; */
|
|
439
|
+
if (message.secret.oneofKind === "password")
|
|
440
|
+
writer.tag(2, WireType.LengthDelimited).string(message.secret.password);
|
|
441
|
+
/* string token = 3; */
|
|
442
|
+
if (message.secret.oneofKind === "token")
|
|
443
|
+
writer.tag(3, WireType.LengthDelimited).string(message.secret.token);
|
|
444
|
+
/* string jwt = 4; */
|
|
445
|
+
if (message.secret.oneofKind === "jwt")
|
|
446
|
+
writer.tag(4, WireType.LengthDelimited).string(message.secret.jwt);
|
|
447
|
+
let u = options.writeUnknownFields;
|
|
448
|
+
if (u !== false)
|
|
449
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
450
|
+
return writer;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* @generated MessageType for protobuf message pncp.v1.LoginRequest
|
|
455
|
+
*/
|
|
456
|
+
export const LoginRequest = new LoginRequest$Type();
|
|
457
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
458
|
+
class RefreshTokenRequest$Type extends MessageType<RefreshTokenRequest> {
|
|
459
|
+
constructor() {
|
|
460
|
+
super("pncp.v1.RefreshTokenRequest", [
|
|
461
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
462
|
+
{ no: 2, name: "refresh_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
463
|
+
]);
|
|
464
|
+
}
|
|
465
|
+
create(value?: PartialMessage<RefreshTokenRequest>): RefreshTokenRequest {
|
|
466
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
467
|
+
message.token = "";
|
|
468
|
+
message.refreshToken = "";
|
|
469
|
+
if (value !== undefined)
|
|
470
|
+
reflectionMergePartial<RefreshTokenRequest>(this, message, value);
|
|
471
|
+
return message;
|
|
472
|
+
}
|
|
473
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RefreshTokenRequest): RefreshTokenRequest {
|
|
474
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
475
|
+
while (reader.pos < end) {
|
|
476
|
+
let [fieldNo, wireType] = reader.tag();
|
|
477
|
+
switch (fieldNo) {
|
|
478
|
+
case /* string token */ 1:
|
|
479
|
+
message.token = reader.string();
|
|
480
|
+
break;
|
|
481
|
+
case /* string refresh_token */ 2:
|
|
482
|
+
message.refreshToken = reader.string();
|
|
483
|
+
break;
|
|
484
|
+
default:
|
|
485
|
+
let u = options.readUnknownField;
|
|
486
|
+
if (u === "throw")
|
|
487
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
488
|
+
let d = reader.skip(wireType);
|
|
489
|
+
if (u !== false)
|
|
490
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return message;
|
|
494
|
+
}
|
|
495
|
+
internalBinaryWrite(message: RefreshTokenRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
496
|
+
/* string token = 1; */
|
|
497
|
+
if (message.token !== "")
|
|
498
|
+
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
499
|
+
/* string refresh_token = 2; */
|
|
500
|
+
if (message.refreshToken !== "")
|
|
501
|
+
writer.tag(2, WireType.LengthDelimited).string(message.refreshToken);
|
|
502
|
+
let u = options.writeUnknownFields;
|
|
503
|
+
if (u !== false)
|
|
504
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
505
|
+
return writer;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @generated MessageType for protobuf message pncp.v1.RefreshTokenRequest
|
|
510
|
+
*/
|
|
511
|
+
export const RefreshTokenRequest = new RefreshTokenRequest$Type();
|
|
512
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
513
|
+
class LoginResponse$Type extends MessageType<LoginResponse> {
|
|
514
|
+
constructor() {
|
|
515
|
+
super("pncp.v1.LoginResponse", [
|
|
516
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
517
|
+
{ no: 2, name: "refresh_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
518
|
+
]);
|
|
519
|
+
}
|
|
520
|
+
create(value?: PartialMessage<LoginResponse>): LoginResponse {
|
|
521
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
522
|
+
message.token = "";
|
|
523
|
+
message.refreshToken = "";
|
|
524
|
+
if (value !== undefined)
|
|
525
|
+
reflectionMergePartial<LoginResponse>(this, message, value);
|
|
526
|
+
return message;
|
|
527
|
+
}
|
|
528
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LoginResponse): LoginResponse {
|
|
529
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
530
|
+
while (reader.pos < end) {
|
|
531
|
+
let [fieldNo, wireType] = reader.tag();
|
|
532
|
+
switch (fieldNo) {
|
|
533
|
+
case /* string token */ 1:
|
|
534
|
+
message.token = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case /* string refresh_token */ 2:
|
|
537
|
+
message.refreshToken = reader.string();
|
|
538
|
+
break;
|
|
539
|
+
default:
|
|
540
|
+
let u = options.readUnknownField;
|
|
541
|
+
if (u === "throw")
|
|
542
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
543
|
+
let d = reader.skip(wireType);
|
|
544
|
+
if (u !== false)
|
|
545
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return message;
|
|
549
|
+
}
|
|
550
|
+
internalBinaryWrite(message: LoginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
551
|
+
/* string token = 1; */
|
|
552
|
+
if (message.token !== "")
|
|
553
|
+
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
554
|
+
/* string refresh_token = 2; */
|
|
555
|
+
if (message.refreshToken !== "")
|
|
556
|
+
writer.tag(2, WireType.LengthDelimited).string(message.refreshToken);
|
|
557
|
+
let u = options.writeUnknownFields;
|
|
558
|
+
if (u !== false)
|
|
559
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
560
|
+
return writer;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* @generated MessageType for protobuf message pncp.v1.LoginResponse
|
|
565
|
+
*/
|
|
566
|
+
export const LoginResponse = new LoginResponse$Type();
|
|
567
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
568
|
+
class CrossDomainMessage$Type extends MessageType<CrossDomainMessage> {
|
|
569
|
+
constructor() {
|
|
570
|
+
super("pncp.v1.CrossDomainMessage", [
|
|
571
|
+
{ no: 1, name: "id", kind: "message", T: () => ConversationId },
|
|
572
|
+
{ no: 2, name: "author", kind: "message", T: () => EntityId },
|
|
573
|
+
{ no: 3, name: "body", kind: "message", T: () => PncpPacket }
|
|
574
|
+
]);
|
|
575
|
+
}
|
|
576
|
+
create(value?: PartialMessage<CrossDomainMessage>): CrossDomainMessage {
|
|
577
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
578
|
+
if (value !== undefined)
|
|
579
|
+
reflectionMergePartial<CrossDomainMessage>(this, message, value);
|
|
580
|
+
return message;
|
|
581
|
+
}
|
|
582
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossDomainMessage): CrossDomainMessage {
|
|
583
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
584
|
+
while (reader.pos < end) {
|
|
585
|
+
let [fieldNo, wireType] = reader.tag();
|
|
586
|
+
switch (fieldNo) {
|
|
587
|
+
case /* pncp.v1.ConversationId id */ 1:
|
|
588
|
+
message.id = ConversationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
589
|
+
break;
|
|
590
|
+
case /* pncp.v1.EntityId author */ 2:
|
|
591
|
+
message.author = EntityId.internalBinaryRead(reader, reader.uint32(), options, message.author);
|
|
592
|
+
break;
|
|
593
|
+
case /* pncp.v1.PncpPacket body */ 3:
|
|
594
|
+
message.body = PncpPacket.internalBinaryRead(reader, reader.uint32(), options, message.body);
|
|
595
|
+
break;
|
|
596
|
+
default:
|
|
597
|
+
let u = options.readUnknownField;
|
|
598
|
+
if (u === "throw")
|
|
599
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
600
|
+
let d = reader.skip(wireType);
|
|
601
|
+
if (u !== false)
|
|
602
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return message;
|
|
606
|
+
}
|
|
607
|
+
internalBinaryWrite(message: CrossDomainMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
608
|
+
/* pncp.v1.ConversationId id = 1; */
|
|
609
|
+
if (message.id)
|
|
610
|
+
ConversationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
611
|
+
/* pncp.v1.EntityId author = 2; */
|
|
612
|
+
if (message.author)
|
|
613
|
+
EntityId.internalBinaryWrite(message.author, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
614
|
+
/* pncp.v1.PncpPacket body = 3; */
|
|
615
|
+
if (message.body)
|
|
616
|
+
PncpPacket.internalBinaryWrite(message.body, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
617
|
+
let u = options.writeUnknownFields;
|
|
618
|
+
if (u !== false)
|
|
619
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
620
|
+
return writer;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* @generated MessageType for protobuf message pncp.v1.CrossDomainMessage
|
|
625
|
+
*/
|
|
626
|
+
export const CrossDomainMessage = new CrossDomainMessage$Type();
|
|
627
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
628
|
+
class CrossDomainResponse$Type extends MessageType<CrossDomainResponse> {
|
|
629
|
+
constructor() {
|
|
630
|
+
super("pncp.v1.CrossDomainResponse", [
|
|
631
|
+
{ no: 1, name: "id", kind: "message", T: () => ConversationId },
|
|
632
|
+
{ no: 2, name: "response", kind: "message", oneof: "body", T: () => MessageResponse },
|
|
633
|
+
{ no: 3, name: "error", kind: "scalar", oneof: "body", T: 9 /*ScalarType.STRING*/ }
|
|
634
|
+
]);
|
|
635
|
+
}
|
|
636
|
+
create(value?: PartialMessage<CrossDomainResponse>): CrossDomainResponse {
|
|
637
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
638
|
+
message.body = { oneofKind: undefined };
|
|
639
|
+
if (value !== undefined)
|
|
640
|
+
reflectionMergePartial<CrossDomainResponse>(this, message, value);
|
|
641
|
+
return message;
|
|
642
|
+
}
|
|
643
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossDomainResponse): CrossDomainResponse {
|
|
644
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
645
|
+
while (reader.pos < end) {
|
|
646
|
+
let [fieldNo, wireType] = reader.tag();
|
|
647
|
+
switch (fieldNo) {
|
|
648
|
+
case /* pncp.v1.ConversationId id */ 1:
|
|
649
|
+
message.id = ConversationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
650
|
+
break;
|
|
651
|
+
case /* pncp.v1.MessageResponse response */ 2:
|
|
652
|
+
message.body = {
|
|
653
|
+
oneofKind: "response",
|
|
654
|
+
response: MessageResponse.internalBinaryRead(reader, reader.uint32(), options, (message.body as any).response)
|
|
655
|
+
};
|
|
656
|
+
break;
|
|
657
|
+
case /* string error */ 3:
|
|
658
|
+
message.body = {
|
|
659
|
+
oneofKind: "error",
|
|
660
|
+
error: reader.string()
|
|
661
|
+
};
|
|
662
|
+
break;
|
|
663
|
+
default:
|
|
664
|
+
let u = options.readUnknownField;
|
|
665
|
+
if (u === "throw")
|
|
666
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
667
|
+
let d = reader.skip(wireType);
|
|
668
|
+
if (u !== false)
|
|
669
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return message;
|
|
673
|
+
}
|
|
674
|
+
internalBinaryWrite(message: CrossDomainResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
675
|
+
/* pncp.v1.ConversationId id = 1; */
|
|
676
|
+
if (message.id)
|
|
677
|
+
ConversationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
678
|
+
/* pncp.v1.MessageResponse response = 2; */
|
|
679
|
+
if (message.body.oneofKind === "response")
|
|
680
|
+
MessageResponse.internalBinaryWrite(message.body.response, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
681
|
+
/* string error = 3; */
|
|
682
|
+
if (message.body.oneofKind === "error")
|
|
683
|
+
writer.tag(3, WireType.LengthDelimited).string(message.body.error);
|
|
684
|
+
let u = options.writeUnknownFields;
|
|
685
|
+
if (u !== false)
|
|
686
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
687
|
+
return writer;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* @generated MessageType for protobuf message pncp.v1.CrossDomainResponse
|
|
692
|
+
*/
|
|
693
|
+
export const CrossDomainResponse = new CrossDomainResponse$Type();
|
|
694
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
695
|
+
class CrossDomainStreamMessage$Type extends MessageType<CrossDomainStreamMessage> {
|
|
696
|
+
constructor() {
|
|
697
|
+
super("pncp.v1.CrossDomainStreamMessage", [
|
|
698
|
+
{ no: 1, name: "msg", kind: "message", oneof: "body", T: () => CrossDomainMessage },
|
|
699
|
+
{ no: 2, name: "federation_sync", kind: "message", oneof: "body", T: () => CrossDomainFederationSync }
|
|
700
|
+
]);
|
|
701
|
+
}
|
|
702
|
+
create(value?: PartialMessage<CrossDomainStreamMessage>): CrossDomainStreamMessage {
|
|
703
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
704
|
+
message.body = { oneofKind: undefined };
|
|
705
|
+
if (value !== undefined)
|
|
706
|
+
reflectionMergePartial<CrossDomainStreamMessage>(this, message, value);
|
|
707
|
+
return message;
|
|
708
|
+
}
|
|
709
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossDomainStreamMessage): CrossDomainStreamMessage {
|
|
710
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
711
|
+
while (reader.pos < end) {
|
|
712
|
+
let [fieldNo, wireType] = reader.tag();
|
|
713
|
+
switch (fieldNo) {
|
|
714
|
+
case /* pncp.v1.CrossDomainMessage msg */ 1:
|
|
715
|
+
message.body = {
|
|
716
|
+
oneofKind: "msg",
|
|
717
|
+
msg: CrossDomainMessage.internalBinaryRead(reader, reader.uint32(), options, (message.body as any).msg)
|
|
718
|
+
};
|
|
719
|
+
break;
|
|
720
|
+
case /* pncp.v1.CrossDomainFederationSync federation_sync */ 2:
|
|
721
|
+
message.body = {
|
|
722
|
+
oneofKind: "federationSync",
|
|
723
|
+
federationSync: CrossDomainFederationSync.internalBinaryRead(reader, reader.uint32(), options, (message.body as any).federationSync)
|
|
724
|
+
};
|
|
725
|
+
break;
|
|
726
|
+
default:
|
|
727
|
+
let u = options.readUnknownField;
|
|
728
|
+
if (u === "throw")
|
|
729
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
730
|
+
let d = reader.skip(wireType);
|
|
731
|
+
if (u !== false)
|
|
732
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
}
|
|
737
|
+
internalBinaryWrite(message: CrossDomainStreamMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
738
|
+
/* pncp.v1.CrossDomainMessage msg = 1; */
|
|
739
|
+
if (message.body.oneofKind === "msg")
|
|
740
|
+
CrossDomainMessage.internalBinaryWrite(message.body.msg, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
741
|
+
/* pncp.v1.CrossDomainFederationSync federation_sync = 2; */
|
|
742
|
+
if (message.body.oneofKind === "federationSync")
|
|
743
|
+
CrossDomainFederationSync.internalBinaryWrite(message.body.federationSync, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
744
|
+
let u = options.writeUnknownFields;
|
|
745
|
+
if (u !== false)
|
|
746
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
747
|
+
return writer;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* @generated MessageType for protobuf message pncp.v1.CrossDomainStreamMessage
|
|
752
|
+
*/
|
|
753
|
+
export const CrossDomainStreamMessage = new CrossDomainStreamMessage$Type();
|
|
754
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
755
|
+
class CrossDomainFederationSync$Type extends MessageType<CrossDomainFederationSync> {
|
|
756
|
+
constructor() {
|
|
757
|
+
super("pncp.v1.CrossDomainFederationSync", []);
|
|
758
|
+
}
|
|
759
|
+
create(value?: PartialMessage<CrossDomainFederationSync>): CrossDomainFederationSync {
|
|
760
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
761
|
+
if (value !== undefined)
|
|
762
|
+
reflectionMergePartial<CrossDomainFederationSync>(this, message, value);
|
|
763
|
+
return message;
|
|
764
|
+
}
|
|
765
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossDomainFederationSync): CrossDomainFederationSync {
|
|
766
|
+
return target ?? this.create();
|
|
767
|
+
}
|
|
768
|
+
internalBinaryWrite(message: CrossDomainFederationSync, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
769
|
+
let u = options.writeUnknownFields;
|
|
770
|
+
if (u !== false)
|
|
771
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
772
|
+
return writer;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* @generated MessageType for protobuf message pncp.v1.CrossDomainFederationSync
|
|
777
|
+
*/
|
|
778
|
+
export const CrossDomainFederationSync = new CrossDomainFederationSync$Type();
|