@otonoma/paranet-client 2.18.2 → 2.19.0-rc.12
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/dist/cjs/graphql.d.ts.map +1 -1
- package/dist/cjs/{index-AtS3JMf_.cjs → index-eBiJ1Egw.cjs} +161 -295
- package/dist/cjs/index-eBiJ1Egw.cjs.map +1 -0
- package/dist/cjs/index.cjs +80 -227
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/pncp.d.ts +0 -10
- package/dist/cjs/pncp.d.ts.map +1 -1
- package/dist/cjs/proto/broker.grpc.client.d.ts +19 -34
- package/dist/cjs/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/cjs/proto/broker.grpc.d.ts.map +1 -1
- package/dist/cjs/proto/broker_api.d.ts +59 -25
- package/dist/cjs/proto/broker_api.d.ts.map +1 -1
- package/dist/cjs/proto/google/protobuf/descriptor.d.ts +177 -177
- package/dist/cjs/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/cjs/proto/google/protobuf/timestamp.d.ts +2 -2
- package/dist/cjs/proto/grpc/health/v1/health.client.d.ts +4 -4
- package/dist/cjs/proto/grpc/health/v1/health.d.ts +2 -2
- package/dist/cjs/proto/identifiers.d.ts +4 -4
- package/dist/cjs/proto/observation.d.ts +27 -27
- package/dist/cjs/proto/otonoma/common/value.d.ts +10 -10
- package/dist/cjs/proto/pncp.d.ts +49 -100
- package/dist/cjs/proto/pncp.d.ts.map +1 -1
- package/dist/cjs/schema/paranet.d.ts +4 -32
- package/dist/cjs/schema/paranet.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/esm/graphql.d.ts.map +1 -1
- package/dist/esm/{index-HCY5Ez1I.mjs → index-PztyZob7.mjs} +161 -295
- package/dist/esm/index-PztyZob7.mjs.map +1 -0
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.mjs +80 -225
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/pncp.d.ts +0 -10
- package/dist/esm/pncp.d.ts.map +1 -1
- package/dist/esm/proto/broker.grpc.client.d.ts +19 -34
- package/dist/esm/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/esm/proto/broker.grpc.d.ts.map +1 -1
- package/dist/esm/proto/broker_api.d.ts +59 -25
- package/dist/esm/proto/broker_api.d.ts.map +1 -1
- package/dist/esm/proto/google/protobuf/descriptor.d.ts +177 -177
- package/dist/esm/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/esm/proto/google/protobuf/timestamp.d.ts +2 -2
- package/dist/esm/proto/grpc/health/v1/health.client.d.ts +4 -4
- package/dist/esm/proto/grpc/health/v1/health.d.ts +2 -2
- package/dist/esm/proto/identifiers.d.ts +4 -4
- package/dist/esm/proto/observation.d.ts +27 -27
- package/dist/esm/proto/otonoma/common/value.d.ts +10 -10
- package/dist/esm/proto/pncp.d.ts +49 -100
- package/dist/esm/proto/pncp.d.ts.map +1 -1
- package/dist/esm/schema/paranet.d.ts +4 -32
- package/dist/esm/schema/paranet.d.ts.map +1 -1
- package/dist/graphql.d.ts.map +1 -1
- package/dist/graphql.js +0 -2
- package/dist/index.d.cts +197 -321
- package/dist/index.d.mts +197 -321
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/pncp.d.ts +0 -10
- package/dist/pncp.d.ts.map +1 -1
- package/dist/pncp.js +0 -3
- package/dist/proto/broker.grpc.client.d.ts +19 -34
- package/dist/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/proto/broker.grpc.client.js +8 -18
- package/dist/proto/broker.grpc.d.ts.map +1 -1
- package/dist/proto/broker.grpc.js +4 -6
- package/dist/proto/broker_api.d.ts +59 -25
- package/dist/proto/broker_api.d.ts.map +1 -1
- package/dist/proto/broker_api.js +76 -2
- package/dist/proto/google/protobuf/descriptor.d.ts +177 -177
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.js +136 -110
- package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
- package/dist/proto/google/protobuf/timestamp.js +1 -1
- package/dist/proto/grpc/health/v1/health.client.d.ts +4 -4
- package/dist/proto/grpc/health/v1/health.client.js +2 -2
- package/dist/proto/grpc/health/v1/health.d.ts +2 -2
- package/dist/proto/grpc/health/v1/health.js +1 -1
- package/dist/proto/identifiers.d.ts +4 -4
- package/dist/proto/observation.d.ts +27 -27
- package/dist/proto/observation.js +1 -1
- package/dist/proto/otonoma/common/value.d.ts +10 -10
- package/dist/proto/otonoma/common/value.js +2 -2
- package/dist/proto/pncp.d.ts +49 -100
- package/dist/proto/pncp.d.ts.map +1 -1
- package/dist/proto/pncp.js +1 -89
- package/dist/schema/paranet.d.ts +4 -32
- package/dist/schema/paranet.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-AtS3JMf_.cjs.map +0 -1
- package/dist/cjs/proto/mediums.d.ts +0 -71
- package/dist/cjs/proto/mediums.d.ts.map +0 -1
- package/dist/esm/index-HCY5Ez1I.mjs.map +0 -1
- package/dist/esm/proto/mediums.d.ts +0 -71
- package/dist/esm/proto/mediums.d.ts.map +0 -1
- package/dist/proto/mediums.d.ts +0 -71
- package/dist/proto/mediums.d.ts.map +0 -1
- package/dist/proto/mediums.js +0 -120
package/dist/cjs/index.cjs
CHANGED
|
@@ -3004,7 +3004,7 @@ class Timestamp$Type extends MessageType {
|
|
|
3004
3004
|
const msg = this.create();
|
|
3005
3005
|
const ms = date.getTime();
|
|
3006
3006
|
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
3007
|
-
msg.nanos = (ms % 1000) * 1000000;
|
|
3007
|
+
msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
3008
3008
|
return msg;
|
|
3009
3009
|
}
|
|
3010
3010
|
/**
|
|
@@ -3403,7 +3403,7 @@ class Struct$Type extends MessageType {
|
|
|
3403
3403
|
case 2:
|
|
3404
3404
|
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
|
3405
3405
|
break;
|
|
3406
|
-
default: throw new globalThis.Error("unknown map entry field for
|
|
3406
|
+
default: throw new globalThis.Error("unknown map entry field for otonoma.common.Struct.fields");
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
3409
|
map[key ?? ""] = val ?? Value.create();
|
|
@@ -3430,7 +3430,7 @@ const Struct = new Struct$Type();
|
|
|
3430
3430
|
class ListValue$Type extends MessageType {
|
|
3431
3431
|
constructor() {
|
|
3432
3432
|
super("otonoma.common.ListValue", [
|
|
3433
|
-
{ no: 1, name: "values", kind: "message", repeat:
|
|
3433
|
+
{ no: 1, name: "values", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Value }
|
|
3434
3434
|
]);
|
|
3435
3435
|
}
|
|
3436
3436
|
create(value) {
|
|
@@ -3642,8 +3642,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
3642
3642
|
{ no: 5, name: "match_strategy", kind: "enum", T: () => ["pncp.v1.SkillMatchStrategy", exports.SkillMatchStrategy] },
|
|
3643
3643
|
{ no: 6, name: "version_req", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3644
3644
|
{ no: 7, name: "target_actor_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3645
|
-
{ no: 8, name: "key", kind: "message", T: () => Value },
|
|
3646
|
-
{ no: 9, name: "medium_info", kind: "message", T: () => PncpRequestMediumInfo },
|
|
3647
3645
|
{ no: 10, name: "must_match", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3648
3646
|
{ no: 11, name: "use_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3649
3647
|
{ no: 13, name: "partition", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
@@ -3684,12 +3682,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
3684
3682
|
case /* optional string target_actor_id */ 7:
|
|
3685
3683
|
message.targetActorId = reader.string();
|
|
3686
3684
|
break;
|
|
3687
|
-
case /* optional otonoma.common.Value key */ 8:
|
|
3688
|
-
message.key = Value.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
|
3689
|
-
break;
|
|
3690
|
-
case /* optional pncp.v1.PncpRequestMediumInfo medium_info */ 9:
|
|
3691
|
-
message.mediumInfo = PncpRequestMediumInfo.internalBinaryRead(reader, reader.uint32(), options, message.mediumInfo);
|
|
3692
|
-
break;
|
|
3693
3685
|
case /* bool must_match */ 10:
|
|
3694
3686
|
message.mustMatch = reader.bool();
|
|
3695
3687
|
break;
|
|
@@ -3732,12 +3724,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
3732
3724
|
/* optional string target_actor_id = 7; */
|
|
3733
3725
|
if (message.targetActorId !== undefined)
|
|
3734
3726
|
writer.tag(7, WireType.LengthDelimited).string(message.targetActorId);
|
|
3735
|
-
/* optional otonoma.common.Value key = 8; */
|
|
3736
|
-
if (message.key)
|
|
3737
|
-
Value.internalBinaryWrite(message.key, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
3738
|
-
/* optional pncp.v1.PncpRequestMediumInfo medium_info = 9; */
|
|
3739
|
-
if (message.mediumInfo)
|
|
3740
|
-
PncpRequestMediumInfo.internalBinaryWrite(message.mediumInfo, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
3741
3727
|
/* bool must_match = 10; */
|
|
3742
3728
|
if (message.mustMatch !== false)
|
|
3743
3729
|
writer.tag(10, WireType.Varint).bool(message.mustMatch);
|
|
@@ -3758,59 +3744,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
3758
3744
|
*/
|
|
3759
3745
|
const PncpRequest = new PncpRequest$Type();
|
|
3760
3746
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3761
|
-
class PncpRequestMediumInfo$Type extends MessageType {
|
|
3762
|
-
constructor() {
|
|
3763
|
-
super("pncp.v1.PncpRequestMediumInfo", [
|
|
3764
|
-
{ no: 1, name: "id", kind: "message", T: () => EntityId },
|
|
3765
|
-
{ no: 2, name: "user_info", kind: "message", T: () => Value }
|
|
3766
|
-
]);
|
|
3767
|
-
}
|
|
3768
|
-
create(value) {
|
|
3769
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
3770
|
-
if (value !== undefined)
|
|
3771
|
-
reflectionMergePartial(this, message, value);
|
|
3772
|
-
return message;
|
|
3773
|
-
}
|
|
3774
|
-
internalBinaryRead(reader, length, options, target) {
|
|
3775
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3776
|
-
while (reader.pos < end) {
|
|
3777
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3778
|
-
switch (fieldNo) {
|
|
3779
|
-
case /* pncp.v1.EntityId id */ 1:
|
|
3780
|
-
message.id = EntityId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
3781
|
-
break;
|
|
3782
|
-
case /* optional otonoma.common.Value user_info */ 2:
|
|
3783
|
-
message.userInfo = Value.internalBinaryRead(reader, reader.uint32(), options, message.userInfo);
|
|
3784
|
-
break;
|
|
3785
|
-
default:
|
|
3786
|
-
let u = options.readUnknownField;
|
|
3787
|
-
if (u === "throw")
|
|
3788
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3789
|
-
let d = reader.skip(wireType);
|
|
3790
|
-
if (u !== false)
|
|
3791
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3792
|
-
}
|
|
3793
|
-
}
|
|
3794
|
-
return message;
|
|
3795
|
-
}
|
|
3796
|
-
internalBinaryWrite(message, writer, options) {
|
|
3797
|
-
/* pncp.v1.EntityId id = 1; */
|
|
3798
|
-
if (message.id)
|
|
3799
|
-
EntityId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3800
|
-
/* optional otonoma.common.Value user_info = 2; */
|
|
3801
|
-
if (message.userInfo)
|
|
3802
|
-
Value.internalBinaryWrite(message.userInfo, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3803
|
-
let u = options.writeUnknownFields;
|
|
3804
|
-
if (u !== false)
|
|
3805
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3806
|
-
return writer;
|
|
3807
|
-
}
|
|
3808
|
-
}
|
|
3809
|
-
/**
|
|
3810
|
-
* @generated MessageType for protobuf message pncp.v1.PncpRequestMediumInfo
|
|
3811
|
-
*/
|
|
3812
|
-
const PncpRequestMediumInfo = new PncpRequestMediumInfo$Type();
|
|
3813
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3814
3747
|
class PncpSkillMessage$Type extends MessageType {
|
|
3815
3748
|
constructor() {
|
|
3816
3749
|
super("pncp.v1.PncpSkillMessage", [
|
|
@@ -4247,11 +4180,9 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
4247
4180
|
{ no: 1, name: "id", kind: "message", T: () => ConversationId },
|
|
4248
4181
|
{ no: 2, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4249
4182
|
{ no: 3, name: "time_created", kind: "message", T: () => Timestamp },
|
|
4250
|
-
{ no: 4, name: "key", kind: "message", T: () => Value },
|
|
4251
4183
|
{ no: 5, name: "message", kind: "message", T: () => PncpMessage },
|
|
4252
4184
|
{ no: 6, name: "params", kind: "message", T: () => Value },
|
|
4253
4185
|
{ no: 7, name: "callback", kind: "message", T: () => Value },
|
|
4254
|
-
{ no: 8, name: "medium", kind: "message", T: () => Value },
|
|
4255
4186
|
{ no: 9, name: "conversation_state", kind: "enum", T: () => ["pncp.v1.ConversationState", exports.ConversationState] },
|
|
4256
4187
|
{ no: 10, name: "partition", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
4257
4188
|
]);
|
|
@@ -4278,9 +4209,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
4278
4209
|
case /* google.protobuf.Timestamp time_created */ 3:
|
|
4279
4210
|
message.timeCreated = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timeCreated);
|
|
4280
4211
|
break;
|
|
4281
|
-
case /* optional otonoma.common.Value key */ 4:
|
|
4282
|
-
message.key = Value.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
|
4283
|
-
break;
|
|
4284
4212
|
case /* pncp.v1.PncpMessage message */ 5:
|
|
4285
4213
|
message.message = PncpMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
4286
4214
|
break;
|
|
@@ -4290,9 +4218,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
4290
4218
|
case /* optional otonoma.common.Value callback */ 7:
|
|
4291
4219
|
message.callback = Value.internalBinaryRead(reader, reader.uint32(), options, message.callback);
|
|
4292
4220
|
break;
|
|
4293
|
-
case /* optional otonoma.common.Value medium */ 8:
|
|
4294
|
-
message.medium = Value.internalBinaryRead(reader, reader.uint32(), options, message.medium);
|
|
4295
|
-
break;
|
|
4296
4221
|
case /* pncp.v1.ConversationState conversation_state */ 9:
|
|
4297
4222
|
message.conversationState = reader.int32();
|
|
4298
4223
|
break;
|
|
@@ -4320,9 +4245,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
4320
4245
|
/* google.protobuf.Timestamp time_created = 3; */
|
|
4321
4246
|
if (message.timeCreated)
|
|
4322
4247
|
Timestamp.internalBinaryWrite(message.timeCreated, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4323
|
-
/* optional otonoma.common.Value key = 4; */
|
|
4324
|
-
if (message.key)
|
|
4325
|
-
Value.internalBinaryWrite(message.key, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4326
4248
|
/* pncp.v1.PncpMessage message = 5; */
|
|
4327
4249
|
if (message.message)
|
|
4328
4250
|
PncpMessage.internalBinaryWrite(message.message, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -4332,9 +4254,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
4332
4254
|
/* optional otonoma.common.Value callback = 7; */
|
|
4333
4255
|
if (message.callback)
|
|
4334
4256
|
Value.internalBinaryWrite(message.callback, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
4335
|
-
/* optional otonoma.common.Value medium = 8; */
|
|
4336
|
-
if (message.medium)
|
|
4337
|
-
Value.internalBinaryWrite(message.medium, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
4338
4257
|
/* pncp.v1.ConversationState conversation_state = 9; */
|
|
4339
4258
|
if (message.conversationState !== 0)
|
|
4340
4259
|
writer.tag(9, WireType.Varint).int32(message.conversationState);
|
|
@@ -4356,8 +4275,7 @@ class ParameterData$Type extends MessageType {
|
|
|
4356
4275
|
constructor() {
|
|
4357
4276
|
super("pncp.v1.ParameterData", [
|
|
4358
4277
|
{ no: 1, name: "provider", kind: "message", T: () => Value },
|
|
4359
|
-
{ no: 2, name: "skill", kind: "message", T: () => Value }
|
|
4360
|
-
{ no: 3, name: "medium", kind: "message", T: () => Value }
|
|
4278
|
+
{ no: 2, name: "skill", kind: "message", T: () => Value }
|
|
4361
4279
|
]);
|
|
4362
4280
|
}
|
|
4363
4281
|
create(value) {
|
|
@@ -4377,9 +4295,6 @@ class ParameterData$Type extends MessageType {
|
|
|
4377
4295
|
case /* optional otonoma.common.Value skill */ 2:
|
|
4378
4296
|
message.skill = Value.internalBinaryRead(reader, reader.uint32(), options, message.skill);
|
|
4379
4297
|
break;
|
|
4380
|
-
case /* optional otonoma.common.Value medium */ 3:
|
|
4381
|
-
message.medium = Value.internalBinaryRead(reader, reader.uint32(), options, message.medium);
|
|
4382
|
-
break;
|
|
4383
4298
|
default:
|
|
4384
4299
|
let u = options.readUnknownField;
|
|
4385
4300
|
if (u === "throw")
|
|
@@ -4398,9 +4313,6 @@ class ParameterData$Type extends MessageType {
|
|
|
4398
4313
|
/* optional otonoma.common.Value skill = 2; */
|
|
4399
4314
|
if (message.skill)
|
|
4400
4315
|
Value.internalBinaryWrite(message.skill, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4401
|
-
/* optional otonoma.common.Value medium = 3; */
|
|
4402
|
-
if (message.medium)
|
|
4403
|
-
Value.internalBinaryWrite(message.medium, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4404
4316
|
let u = options.writeUnknownFields;
|
|
4405
4317
|
if (u !== false)
|
|
4406
4318
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4412,72 +4324,34 @@ class ParameterData$Type extends MessageType {
|
|
|
4412
4324
|
*/
|
|
4413
4325
|
const ParameterData = new ParameterData$Type();
|
|
4414
4326
|
|
|
4415
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4416
|
-
class KeyOrId$Type extends MessageType {
|
|
4417
|
-
constructor() {
|
|
4418
|
-
super("pncp.v1.KeyOrId", [
|
|
4419
|
-
{ no: 1, name: "id", kind: "message", oneof: "body", T: () => ConversationId },
|
|
4420
|
-
{ no: 2, name: "key", kind: "message", oneof: "body", T: () => Value }
|
|
4421
|
-
]);
|
|
4422
|
-
}
|
|
4423
|
-
create(value) {
|
|
4424
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4425
|
-
message.body = { oneofKind: undefined };
|
|
4426
|
-
if (value !== undefined)
|
|
4427
|
-
reflectionMergePartial(this, message, value);
|
|
4428
|
-
return message;
|
|
4429
|
-
}
|
|
4430
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4431
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4432
|
-
while (reader.pos < end) {
|
|
4433
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4434
|
-
switch (fieldNo) {
|
|
4435
|
-
case /* pncp.v1.ConversationId id */ 1:
|
|
4436
|
-
message.body = {
|
|
4437
|
-
oneofKind: "id",
|
|
4438
|
-
id: ConversationId.internalBinaryRead(reader, reader.uint32(), options, message.body.id)
|
|
4439
|
-
};
|
|
4440
|
-
break;
|
|
4441
|
-
case /* otonoma.common.Value key */ 2:
|
|
4442
|
-
message.body = {
|
|
4443
|
-
oneofKind: "key",
|
|
4444
|
-
key: Value.internalBinaryRead(reader, reader.uint32(), options, message.body.key)
|
|
4445
|
-
};
|
|
4446
|
-
break;
|
|
4447
|
-
default:
|
|
4448
|
-
let u = options.readUnknownField;
|
|
4449
|
-
if (u === "throw")
|
|
4450
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4451
|
-
let d = reader.skip(wireType);
|
|
4452
|
-
if (u !== false)
|
|
4453
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4454
|
-
}
|
|
4455
|
-
}
|
|
4456
|
-
return message;
|
|
4457
|
-
}
|
|
4458
|
-
internalBinaryWrite(message, writer, options) {
|
|
4459
|
-
/* pncp.v1.ConversationId id = 1; */
|
|
4460
|
-
if (message.body.oneofKind === "id")
|
|
4461
|
-
ConversationId.internalBinaryWrite(message.body.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4462
|
-
/* otonoma.common.Value key = 2; */
|
|
4463
|
-
if (message.body.oneofKind === "key")
|
|
4464
|
-
Value.internalBinaryWrite(message.body.key, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4465
|
-
let u = options.writeUnknownFields;
|
|
4466
|
-
if (u !== false)
|
|
4467
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4468
|
-
return writer;
|
|
4469
|
-
}
|
|
4470
|
-
}
|
|
4471
4327
|
/**
|
|
4472
|
-
* @generated
|
|
4328
|
+
* @generated from protobuf enum pncp.v1.ResponseKind
|
|
4473
4329
|
*/
|
|
4474
|
-
|
|
4330
|
+
exports.ResponseKind = void 0;
|
|
4331
|
+
(function (ResponseKind) {
|
|
4332
|
+
/**
|
|
4333
|
+
* @generated from protobuf enum value: MATCH = 0;
|
|
4334
|
+
*/
|
|
4335
|
+
ResponseKind[ResponseKind["MATCH"] = 0] = "MATCH";
|
|
4336
|
+
/**
|
|
4337
|
+
* @generated from protobuf enum value: BROADCAST = 1;
|
|
4338
|
+
*/
|
|
4339
|
+
ResponseKind[ResponseKind["BROADCAST"] = 1] = "BROADCAST";
|
|
4340
|
+
/**
|
|
4341
|
+
* @generated from protobuf enum value: DATA = 2;
|
|
4342
|
+
*/
|
|
4343
|
+
ResponseKind[ResponseKind["DATA"] = 2] = "DATA";
|
|
4344
|
+
/**
|
|
4345
|
+
* @generated from protobuf enum value: UNMATCHED = 3;
|
|
4346
|
+
*/
|
|
4347
|
+
ResponseKind[ResponseKind["UNMATCHED"] = 3] = "UNMATCHED";
|
|
4348
|
+
})(exports.ResponseKind || (exports.ResponseKind = {}));
|
|
4475
4349
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4476
|
-
class
|
|
4350
|
+
class PncpMessageRequestWrapper$Type extends MessageType {
|
|
4477
4351
|
constructor() {
|
|
4478
|
-
super("pncp.v1.
|
|
4479
|
-
{ no: 1, name: "
|
|
4480
|
-
{ no: 2, name: "
|
|
4352
|
+
super("pncp.v1.PncpMessageRequestWrapper", [
|
|
4353
|
+
{ no: 1, name: "message", kind: "message", T: () => PncpMessage },
|
|
4354
|
+
{ no: 2, name: "author_override", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
4481
4355
|
]);
|
|
4482
4356
|
}
|
|
4483
4357
|
create(value) {
|
|
@@ -4491,11 +4365,11 @@ class PncpMediumMessage$Type extends MessageType {
|
|
|
4491
4365
|
while (reader.pos < end) {
|
|
4492
4366
|
let [fieldNo, wireType] = reader.tag();
|
|
4493
4367
|
switch (fieldNo) {
|
|
4494
|
-
case /* pncp.v1.
|
|
4495
|
-
message.
|
|
4368
|
+
case /* pncp.v1.PncpMessage message */ 1:
|
|
4369
|
+
message.message = PncpMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
4496
4370
|
break;
|
|
4497
|
-
case /*
|
|
4498
|
-
message.
|
|
4371
|
+
case /* optional string author_override */ 2:
|
|
4372
|
+
message.authorOverride = reader.string();
|
|
4499
4373
|
break;
|
|
4500
4374
|
default:
|
|
4501
4375
|
let u = options.readUnknownField;
|
|
@@ -4509,12 +4383,12 @@ class PncpMediumMessage$Type extends MessageType {
|
|
|
4509
4383
|
return message;
|
|
4510
4384
|
}
|
|
4511
4385
|
internalBinaryWrite(message, writer, options) {
|
|
4512
|
-
/* pncp.v1.
|
|
4513
|
-
if (message.
|
|
4514
|
-
|
|
4515
|
-
/*
|
|
4516
|
-
if (message.
|
|
4517
|
-
|
|
4386
|
+
/* pncp.v1.PncpMessage message = 1; */
|
|
4387
|
+
if (message.message)
|
|
4388
|
+
PncpMessage.internalBinaryWrite(message.message, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4389
|
+
/* optional string author_override = 2; */
|
|
4390
|
+
if (message.authorOverride !== undefined)
|
|
4391
|
+
writer.tag(2, WireType.LengthDelimited).string(message.authorOverride);
|
|
4518
4392
|
let u = options.writeUnknownFields;
|
|
4519
4393
|
if (u !== false)
|
|
4520
4394
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4522,32 +4396,9 @@ class PncpMediumMessage$Type extends MessageType {
|
|
|
4522
4396
|
}
|
|
4523
4397
|
}
|
|
4524
4398
|
/**
|
|
4525
|
-
* @generated MessageType for protobuf message pncp.v1.
|
|
4399
|
+
* @generated MessageType for protobuf message pncp.v1.PncpMessageRequestWrapper
|
|
4526
4400
|
*/
|
|
4527
|
-
const
|
|
4528
|
-
|
|
4529
|
-
/**
|
|
4530
|
-
* @generated from protobuf enum pncp.v1.ResponseKind
|
|
4531
|
-
*/
|
|
4532
|
-
exports.ResponseKind = void 0;
|
|
4533
|
-
(function (ResponseKind) {
|
|
4534
|
-
/**
|
|
4535
|
-
* @generated from protobuf enum value: MATCH = 0;
|
|
4536
|
-
*/
|
|
4537
|
-
ResponseKind[ResponseKind["MATCH"] = 0] = "MATCH";
|
|
4538
|
-
/**
|
|
4539
|
-
* @generated from protobuf enum value: BROADCAST = 1;
|
|
4540
|
-
*/
|
|
4541
|
-
ResponseKind[ResponseKind["BROADCAST"] = 1] = "BROADCAST";
|
|
4542
|
-
/**
|
|
4543
|
-
* @generated from protobuf enum value: DATA = 2;
|
|
4544
|
-
*/
|
|
4545
|
-
ResponseKind[ResponseKind["DATA"] = 2] = "DATA";
|
|
4546
|
-
/**
|
|
4547
|
-
* @generated from protobuf enum value: UNMATCHED = 3;
|
|
4548
|
-
*/
|
|
4549
|
-
ResponseKind[ResponseKind["UNMATCHED"] = 3] = "UNMATCHED";
|
|
4550
|
-
})(exports.ResponseKind || (exports.ResponseKind = {}));
|
|
4401
|
+
const PncpMessageRequestWrapper = new PncpMessageRequestWrapper$Type();
|
|
4551
4402
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4552
4403
|
class MessageResponse$Type extends MessageType {
|
|
4553
4404
|
constructor() {
|
|
@@ -4638,7 +4489,8 @@ class PncpCallbackRequest$Type extends MessageType {
|
|
|
4638
4489
|
super("pncp.v1.PncpCallbackRequest", [
|
|
4639
4490
|
{ no: 1, name: "disable_skill_forwarding", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4640
4491
|
{ no: 2, name: "send_open_messages", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4641
|
-
{ no: 3, name: "actor_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
4492
|
+
{ no: 3, name: "actor_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
4493
|
+
{ no: 4, name: "base_actor_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
4642
4494
|
]);
|
|
4643
4495
|
}
|
|
4644
4496
|
create(value) {
|
|
@@ -4664,6 +4516,9 @@ class PncpCallbackRequest$Type extends MessageType {
|
|
|
4664
4516
|
case /* repeated string actor_ids */ 3:
|
|
4665
4517
|
message.actorIds.push(reader.string());
|
|
4666
4518
|
break;
|
|
4519
|
+
case /* optional string base_actor_id */ 4:
|
|
4520
|
+
message.baseActorId = reader.string();
|
|
4521
|
+
break;
|
|
4667
4522
|
default:
|
|
4668
4523
|
let u = options.readUnknownField;
|
|
4669
4524
|
if (u === "throw")
|
|
@@ -4685,6 +4540,9 @@ class PncpCallbackRequest$Type extends MessageType {
|
|
|
4685
4540
|
/* repeated string actor_ids = 3; */
|
|
4686
4541
|
for (let i = 0; i < message.actorIds.length; i++)
|
|
4687
4542
|
writer.tag(3, WireType.LengthDelimited).string(message.actorIds[i]);
|
|
4543
|
+
/* optional string base_actor_id = 4; */
|
|
4544
|
+
if (message.baseActorId !== undefined)
|
|
4545
|
+
writer.tag(4, WireType.LengthDelimited).string(message.baseActorId);
|
|
4688
4546
|
let u = options.writeUnknownFields;
|
|
4689
4547
|
if (u !== false)
|
|
4690
4548
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5082,7 +4940,20 @@ class CrossDomainFederationSync$Type extends MessageType {
|
|
|
5082
4940
|
return message;
|
|
5083
4941
|
}
|
|
5084
4942
|
internalBinaryRead(reader, length, options, target) {
|
|
5085
|
-
|
|
4943
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4944
|
+
while (reader.pos < end) {
|
|
4945
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4946
|
+
switch (fieldNo) {
|
|
4947
|
+
default:
|
|
4948
|
+
let u = options.readUnknownField;
|
|
4949
|
+
if (u === "throw")
|
|
4950
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4951
|
+
let d = reader.skip(wireType);
|
|
4952
|
+
if (u !== false)
|
|
4953
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
return message;
|
|
5086
4957
|
}
|
|
5087
4958
|
internalBinaryWrite(message, writer, options) {
|
|
5088
4959
|
let u = options.writeUnknownFields;
|
|
@@ -5245,7 +5116,7 @@ class ObservationInit$Type extends MessageType {
|
|
|
5245
5116
|
{ no: 2, name: "action", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5246
5117
|
{ no: 3, name: "requester", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5247
5118
|
{ no: 4, name: "fulfiller", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5248
|
-
{ no: 5, name: "filters", kind: "message", repeat:
|
|
5119
|
+
{ no: 5, name: "filters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObservationMessageFilter },
|
|
5249
5120
|
{ no: 6, name: "conversation_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
5250
5121
|
]);
|
|
5251
5122
|
}
|
|
@@ -6034,7 +5905,7 @@ function stackIntercept(kind, transport, method, options, input) {
|
|
|
6034
5905
|
assertNever(kind);
|
|
6035
5906
|
}
|
|
6036
5907
|
|
|
6037
|
-
// @generated by protobuf-ts 2.
|
|
5908
|
+
// @generated by protobuf-ts 2.11.1
|
|
6038
5909
|
// @generated from protobuf file "broker.grpc.proto" (package "pncp.v1", syntax proto3)
|
|
6039
5910
|
// tslint:disable
|
|
6040
5911
|
/**
|
|
@@ -6042,14 +5913,13 @@ function stackIntercept(kind, transport, method, options, input) {
|
|
|
6042
5913
|
*/
|
|
6043
5914
|
const Broker = new ServiceType("pncp.v1.Broker", [
|
|
6044
5915
|
{ name: "SkillRequest", options: {}, I: PncpRequest, O: MessageResponse },
|
|
6045
|
-
{ name: "PncpMessageRequest", options: {}, I:
|
|
5916
|
+
{ name: "PncpMessageRequest", options: {}, I: PncpMessageRequestWrapper, O: MessageResponse },
|
|
6046
5917
|
{ name: "PncpCallbackStream", serverStreaming: true, options: {}, I: PncpCallbackRequest, O: PncpCallback },
|
|
6047
5918
|
{ name: "CreateObserverStream", serverStreaming: true, options: {}, I: ObservationRequest, O: ObservationMessageWrapper },
|
|
6048
5919
|
{ name: "CrossDomainRequest", options: {}, I: CrossDomainMessage, O: CrossDomainResponse },
|
|
6049
5920
|
{ name: "CrossDomainStream", serverStreaming: true, clientStreaming: true, options: {}, I: CrossDomainResponse, O: CrossDomainStreamMessage },
|
|
6050
5921
|
{ name: "Login", options: { unauthenticated: true }, I: LoginRequest, O: LoginResponse },
|
|
6051
|
-
{ name: "RefreshToken", options: { unauthenticated: true }, I: RefreshTokenRequest, O: LoginResponse }
|
|
6052
|
-
{ name: "PncpMediumMessageRequest", options: { unauthenticated: true }, I: PncpMediumMessage, O: MessageResponse }
|
|
5922
|
+
{ name: "RefreshToken", options: { unauthenticated: true }, I: RefreshTokenRequest, O: LoginResponse }
|
|
6053
5923
|
]);
|
|
6054
5924
|
|
|
6055
5925
|
// NOTE (JAB, 2024-06-11): Some protobuf compilers (notably, protoc) don't like it when your rpc and
|
|
@@ -6072,7 +5942,7 @@ class BrokerClient {
|
|
|
6072
5942
|
* Messages are forwarded to actors depending on the actor configuration, but the majority of actors
|
|
6073
5943
|
* will receive their messages as a callback on `PncpCallbackStream`.
|
|
6074
5944
|
*
|
|
6075
|
-
* @generated from protobuf rpc: SkillRequest
|
|
5945
|
+
* @generated from protobuf rpc: SkillRequest
|
|
6076
5946
|
*/
|
|
6077
5947
|
skillRequest(input, options) {
|
|
6078
5948
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
@@ -6081,7 +5951,7 @@ class BrokerClient {
|
|
|
6081
5951
|
/**
|
|
6082
5952
|
* Follow up messages within a conversation are sent with via this endpoint.
|
|
6083
5953
|
*
|
|
6084
|
-
* @generated from protobuf rpc: PncpMessageRequest
|
|
5954
|
+
* @generated from protobuf rpc: PncpMessageRequest
|
|
6085
5955
|
*/
|
|
6086
5956
|
pncpMessageRequest(input, options) {
|
|
6087
5957
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
@@ -6091,7 +5961,7 @@ class BrokerClient {
|
|
|
6091
5961
|
* The callback stream for an actor to receive all Pncp type messages. This includes skill requests
|
|
6092
5962
|
* and all additional Pncp messages sent in the conversation thread.
|
|
6093
5963
|
*
|
|
6094
|
-
* @generated from protobuf rpc: PncpCallbackStream
|
|
5964
|
+
* @generated from protobuf rpc: PncpCallbackStream
|
|
6095
5965
|
*/
|
|
6096
5966
|
pncpCallbackStream(input, options) {
|
|
6097
5967
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
@@ -6100,7 +5970,7 @@ class BrokerClient {
|
|
|
6100
5970
|
/**
|
|
6101
5971
|
* Creates a new observation stream.
|
|
6102
5972
|
*
|
|
6103
|
-
* @generated from protobuf rpc: CreateObserverStream
|
|
5973
|
+
* @generated from protobuf rpc: CreateObserverStream
|
|
6104
5974
|
*/
|
|
6105
5975
|
createObserverStream(input, options) {
|
|
6106
5976
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
@@ -6110,7 +5980,7 @@ class BrokerClient {
|
|
|
6110
5980
|
* A direct cross domain request, posted from one node to another. The other node is often expected to post
|
|
6111
5981
|
* the results back.
|
|
6112
5982
|
*
|
|
6113
|
-
* @generated from protobuf rpc: CrossDomainRequest
|
|
5983
|
+
* @generated from protobuf rpc: CrossDomainRequest
|
|
6114
5984
|
*/
|
|
6115
5985
|
crossDomainRequest(input, options) {
|
|
6116
5986
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
@@ -6121,36 +5991,26 @@ class BrokerClient {
|
|
|
6121
5991
|
* connects to can stream messages back to the edge node. The edge node is then required to stream
|
|
6122
5992
|
* `MessageResponse` to each incoming message back to the connected node.
|
|
6123
5993
|
*
|
|
6124
|
-
* @generated from protobuf rpc: CrossDomainStream
|
|
5994
|
+
* @generated from protobuf rpc: CrossDomainStream
|
|
6125
5995
|
*/
|
|
6126
5996
|
crossDomainStream(options) {
|
|
6127
5997
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
6128
5998
|
return stackIntercept("duplex", this._transport, method, opt);
|
|
6129
5999
|
}
|
|
6130
6000
|
/**
|
|
6131
|
-
* @generated from protobuf rpc: Login
|
|
6001
|
+
* @generated from protobuf rpc: Login
|
|
6132
6002
|
*/
|
|
6133
6003
|
login(input, options) {
|
|
6134
6004
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
6135
6005
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
6136
6006
|
}
|
|
6137
6007
|
/**
|
|
6138
|
-
* @generated from protobuf rpc: RefreshToken
|
|
6008
|
+
* @generated from protobuf rpc: RefreshToken
|
|
6139
6009
|
*/
|
|
6140
6010
|
refreshToken(input, options) {
|
|
6141
6011
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
6142
6012
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
6143
6013
|
}
|
|
6144
|
-
/**
|
|
6145
|
-
* A PNCP message received from a medium. Note, that we are likely to rework mediums.
|
|
6146
|
-
* Given currently limitations with mediums this route is left unauthenticated.
|
|
6147
|
-
*
|
|
6148
|
-
* @generated from protobuf rpc: PncpMediumMessageRequest(pncp.v1.PncpMediumMessage) returns (pncp.v1.MessageResponse);
|
|
6149
|
-
*/
|
|
6150
|
-
pncpMediumMessageRequest(input, options) {
|
|
6151
|
-
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
6152
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
6153
|
-
}
|
|
6154
6014
|
}
|
|
6155
6015
|
|
|
6156
6016
|
class InvalidTokenError extends Error {
|
|
@@ -6977,7 +6837,7 @@ ListValue.toJson = (message) => {
|
|
|
6977
6837
|
return message.values.map(v => Value.toJson(v));
|
|
6978
6838
|
};
|
|
6979
6839
|
|
|
6980
|
-
// @generated by protobuf-ts 2.
|
|
6840
|
+
// @generated by protobuf-ts 2.11.1
|
|
6981
6841
|
// @generated from protobuf file "grpc/health/v1/health.proto" (package "grpc.health.v1", syntax proto3)
|
|
6982
6842
|
// tslint:disable
|
|
6983
6843
|
//
|
|
@@ -7139,7 +6999,7 @@ class HealthClient {
|
|
|
7139
6999
|
* If the requested service is unknown, the call will fail with status
|
|
7140
7000
|
* NOT_FOUND.
|
|
7141
7001
|
*
|
|
7142
|
-
* @generated from protobuf rpc: Check
|
|
7002
|
+
* @generated from protobuf rpc: Check
|
|
7143
7003
|
*/
|
|
7144
7004
|
check(input, options) {
|
|
7145
7005
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
@@ -7162,7 +7022,7 @@ class HealthClient {
|
|
|
7162
7022
|
* call. If the call terminates with any other status (including OK),
|
|
7163
7023
|
* clients should retry the call with appropriate exponential backoff.
|
|
7164
7024
|
*
|
|
7165
|
-
* @generated from protobuf rpc: Watch
|
|
7025
|
+
* @generated from protobuf rpc: Watch
|
|
7166
7026
|
*/
|
|
7167
7027
|
watch(input, options) {
|
|
7168
7028
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
@@ -7175,7 +7035,7 @@ class HealthClient {
|
|
|
7175
7035
|
let undiciModule = null;
|
|
7176
7036
|
async function getUndici() {
|
|
7177
7037
|
if (!undiciModule) {
|
|
7178
|
-
undiciModule = await Promise.resolve().then(function () { return require('./index-
|
|
7038
|
+
undiciModule = await Promise.resolve().then(function () { return require('./index-eBiJ1Egw.cjs'); }).then(function (n) { return n.index; });
|
|
7179
7039
|
}
|
|
7180
7040
|
return undiciModule;
|
|
7181
7041
|
}
|
|
@@ -7287,7 +7147,7 @@ class PncpClient {
|
|
|
7287
7147
|
return await this.directPncpMessage(pncpMsg);
|
|
7288
7148
|
}
|
|
7289
7149
|
async directPncpMessage(data) {
|
|
7290
|
-
let response = await this.issue(data, BrokerClient.prototype.pncpMessageRequest);
|
|
7150
|
+
let response = await this.issue({ message: data }, BrokerClient.prototype.pncpMessageRequest);
|
|
7291
7151
|
return response;
|
|
7292
7152
|
}
|
|
7293
7153
|
// Creates a new pncp callback listener.
|
|
@@ -7733,11 +7593,9 @@ function gqlSimplifyPncpRequest(req) {
|
|
|
7733
7593
|
action: req.body.action,
|
|
7734
7594
|
body: req.body.body,
|
|
7735
7595
|
},
|
|
7736
|
-
key: req.key,
|
|
7737
7596
|
author: req.author,
|
|
7738
7597
|
callback: req.callback,
|
|
7739
7598
|
parentId: req.parentId ? req.parentId : undefined,
|
|
7740
|
-
mediumInfo: req.mediumInfo ? { id: req.mediumInfo.id, userInfo: req.mediumInfo.userInfo } : undefined,
|
|
7741
7599
|
versionReq: req.versionReq ? req.versionReq : undefined,
|
|
7742
7600
|
matchStrategy: req.matchStrategy ? simplifyMatchStrategy(req.matchStrategy) : exports.SkillMatchStrategy.BEST,
|
|
7743
7601
|
};
|
|
@@ -7855,7 +7713,6 @@ function simplifyPncpRequestCallback(cb) {
|
|
|
7855
7713
|
parameters: {
|
|
7856
7714
|
provider: cb.parameters?.provider && Value.toJson(cb.parameters.provider),
|
|
7857
7715
|
skill: cb.parameters?.skill && Value.toJson(cb.parameters.skill),
|
|
7858
|
-
medium: cb.parameters?.medium && Value.toJson(cb.parameters.medium),
|
|
7859
7716
|
},
|
|
7860
7717
|
partition: cb.partition,
|
|
7861
7718
|
};
|
|
@@ -7866,11 +7723,9 @@ function simplifyPncpMessageCallback(cb) {
|
|
|
7866
7723
|
id: cb.id,
|
|
7867
7724
|
messageId: cb.messageId,
|
|
7868
7725
|
timeCreated: Timestamp.toDate(cb.timeCreated),
|
|
7869
|
-
key: cb.key && Value.toJson(cb.key),
|
|
7870
7726
|
message: simplifyPncpMessage(cb.message),
|
|
7871
7727
|
params: cb.params && Value.toJson(cb.params),
|
|
7872
7728
|
callback: cb.callback && Value.toJson(cb.callback),
|
|
7873
|
-
medium: cb.medium && Value.toJson(cb.medium),
|
|
7874
7729
|
conversationState: cb.conversationState,
|
|
7875
7730
|
partition: cb.partition,
|
|
7876
7731
|
};
|
|
@@ -7938,7 +7793,6 @@ exports.CrossDomainMessage = CrossDomainMessage;
|
|
|
7938
7793
|
exports.CrossDomainResponse = CrossDomainResponse;
|
|
7939
7794
|
exports.CrossDomainStreamMessage = CrossDomainStreamMessage;
|
|
7940
7795
|
exports.EntityId = EntityId;
|
|
7941
|
-
exports.KeyOrId = KeyOrId;
|
|
7942
7796
|
exports.ListValue = ListValue;
|
|
7943
7797
|
exports.LoginRequest = LoginRequest;
|
|
7944
7798
|
exports.LoginResponse = LoginResponse;
|
|
@@ -7957,14 +7811,13 @@ exports.PncpCallback = PncpCallback;
|
|
|
7957
7811
|
exports.PncpCallbackRequest = PncpCallbackRequest;
|
|
7958
7812
|
exports.PncpClient = PncpClient;
|
|
7959
7813
|
exports.PncpListener = PncpListener;
|
|
7960
|
-
exports.PncpMediumMessage = PncpMediumMessage;
|
|
7961
7814
|
exports.PncpMessage = PncpMessage;
|
|
7962
7815
|
exports.PncpMessageCallback = PncpMessageCallback;
|
|
7816
|
+
exports.PncpMessageRequestWrapper = PncpMessageRequestWrapper;
|
|
7963
7817
|
exports.PncpPacket = PncpPacket;
|
|
7964
7818
|
exports.PncpQuestionEx = PncpQuestionEx;
|
|
7965
7819
|
exports.PncpRequest = PncpRequest;
|
|
7966
7820
|
exports.PncpRequestCallback = PncpRequestCallback;
|
|
7967
|
-
exports.PncpRequestMediumInfo = PncpRequestMediumInfo;
|
|
7968
7821
|
exports.PncpSkillMessage = PncpSkillMessage;
|
|
7969
7822
|
exports.RefreshTokenRequest = RefreshTokenRequest;
|
|
7970
7823
|
exports.Struct = Struct;
|