@otonoma/paranet-client 2.18.2 → 2.19.0-rc.14
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 +110 -246
- 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 +29 -31
- package/dist/cjs/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/cjs/proto/broker_api.d.ts +32 -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 +74 -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/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 +111 -245
- 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 +29 -31
- package/dist/esm/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/esm/proto/broker_api.d.ts +32 -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 +74 -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 +206 -319
- package/dist/index.d.mts +206 -319
- 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 +29 -31
- package/dist/proto/broker.grpc.client.d.ts.map +1 -1
- package/dist/proto/broker.grpc.client.js +22 -23
- package/dist/proto/broker.grpc.js +4 -4
- package/dist/proto/broker_api.d.ts +32 -25
- package/dist/proto/broker_api.d.ts.map +1 -1
- package/dist/proto/broker_api.js +22 -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 +74 -100
- package/dist/proto/pncp.d.ts.map +1 -1
- package/dist/proto/pncp.js +55 -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/proto/pncp.js
CHANGED
|
@@ -174,8 +174,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
174
174
|
{ no: 5, name: "match_strategy", kind: "enum", T: () => ["pncp.v1.SkillMatchStrategy", SkillMatchStrategy] },
|
|
175
175
|
{ no: 6, name: "version_req", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
176
176
|
{ no: 7, name: "target_actor_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
177
|
-
{ no: 8, name: "key", kind: "message", T: () => Value },
|
|
178
|
-
{ no: 9, name: "medium_info", kind: "message", T: () => PncpRequestMediumInfo },
|
|
179
177
|
{ no: 10, name: "must_match", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
180
178
|
{ no: 11, name: "use_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
181
179
|
{ no: 13, name: "partition", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
@@ -216,12 +214,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
216
214
|
case /* optional string target_actor_id */ 7:
|
|
217
215
|
message.targetActorId = reader.string();
|
|
218
216
|
break;
|
|
219
|
-
case /* optional otonoma.common.Value key */ 8:
|
|
220
|
-
message.key = Value.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
|
221
|
-
break;
|
|
222
|
-
case /* optional pncp.v1.PncpRequestMediumInfo medium_info */ 9:
|
|
223
|
-
message.mediumInfo = PncpRequestMediumInfo.internalBinaryRead(reader, reader.uint32(), options, message.mediumInfo);
|
|
224
|
-
break;
|
|
225
217
|
case /* bool must_match */ 10:
|
|
226
218
|
message.mustMatch = reader.bool();
|
|
227
219
|
break;
|
|
@@ -264,12 +256,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
264
256
|
/* optional string target_actor_id = 7; */
|
|
265
257
|
if (message.targetActorId !== undefined)
|
|
266
258
|
writer.tag(7, WireType.LengthDelimited).string(message.targetActorId);
|
|
267
|
-
/* optional otonoma.common.Value key = 8; */
|
|
268
|
-
if (message.key)
|
|
269
|
-
Value.internalBinaryWrite(message.key, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
270
|
-
/* optional pncp.v1.PncpRequestMediumInfo medium_info = 9; */
|
|
271
|
-
if (message.mediumInfo)
|
|
272
|
-
PncpRequestMediumInfo.internalBinaryWrite(message.mediumInfo, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
273
259
|
/* bool must_match = 10; */
|
|
274
260
|
if (message.mustMatch !== false)
|
|
275
261
|
writer.tag(10, WireType.Varint).bool(message.mustMatch);
|
|
@@ -290,59 +276,6 @@ class PncpRequest$Type extends MessageType {
|
|
|
290
276
|
*/
|
|
291
277
|
export const PncpRequest = new PncpRequest$Type();
|
|
292
278
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
293
|
-
class PncpRequestMediumInfo$Type extends MessageType {
|
|
294
|
-
constructor() {
|
|
295
|
-
super("pncp.v1.PncpRequestMediumInfo", [
|
|
296
|
-
{ no: 1, name: "id", kind: "message", T: () => EntityId },
|
|
297
|
-
{ no: 2, name: "user_info", kind: "message", T: () => Value }
|
|
298
|
-
]);
|
|
299
|
-
}
|
|
300
|
-
create(value) {
|
|
301
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
302
|
-
if (value !== undefined)
|
|
303
|
-
reflectionMergePartial(this, message, value);
|
|
304
|
-
return message;
|
|
305
|
-
}
|
|
306
|
-
internalBinaryRead(reader, length, options, target) {
|
|
307
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
308
|
-
while (reader.pos < end) {
|
|
309
|
-
let [fieldNo, wireType] = reader.tag();
|
|
310
|
-
switch (fieldNo) {
|
|
311
|
-
case /* pncp.v1.EntityId id */ 1:
|
|
312
|
-
message.id = EntityId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
313
|
-
break;
|
|
314
|
-
case /* optional otonoma.common.Value user_info */ 2:
|
|
315
|
-
message.userInfo = Value.internalBinaryRead(reader, reader.uint32(), options, message.userInfo);
|
|
316
|
-
break;
|
|
317
|
-
default:
|
|
318
|
-
let u = options.readUnknownField;
|
|
319
|
-
if (u === "throw")
|
|
320
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
321
|
-
let d = reader.skip(wireType);
|
|
322
|
-
if (u !== false)
|
|
323
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
return message;
|
|
327
|
-
}
|
|
328
|
-
internalBinaryWrite(message, writer, options) {
|
|
329
|
-
/* pncp.v1.EntityId id = 1; */
|
|
330
|
-
if (message.id)
|
|
331
|
-
EntityId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
332
|
-
/* optional otonoma.common.Value user_info = 2; */
|
|
333
|
-
if (message.userInfo)
|
|
334
|
-
Value.internalBinaryWrite(message.userInfo, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
335
|
-
let u = options.writeUnknownFields;
|
|
336
|
-
if (u !== false)
|
|
337
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
338
|
-
return writer;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* @generated MessageType for protobuf message pncp.v1.PncpRequestMediumInfo
|
|
343
|
-
*/
|
|
344
|
-
export const PncpRequestMediumInfo = new PncpRequestMediumInfo$Type();
|
|
345
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
346
279
|
class PncpSkillMessage$Type extends MessageType {
|
|
347
280
|
constructor() {
|
|
348
281
|
super("pncp.v1.PncpSkillMessage", [
|
|
@@ -602,6 +535,60 @@ class PncpAnswerEx$Type extends MessageType {
|
|
|
602
535
|
*/
|
|
603
536
|
export const PncpAnswerEx = new PncpAnswerEx$Type();
|
|
604
537
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
538
|
+
class PncpMediumMessage$Type extends MessageType {
|
|
539
|
+
constructor() {
|
|
540
|
+
super("pncp.v1.PncpMediumMessage", [
|
|
541
|
+
{ no: 1, name: "message", kind: "message", T: () => PncpMessage },
|
|
542
|
+
{ no: 2, name: "author_override", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
543
|
+
]);
|
|
544
|
+
}
|
|
545
|
+
create(value) {
|
|
546
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
547
|
+
message.authorOverride = "";
|
|
548
|
+
if (value !== undefined)
|
|
549
|
+
reflectionMergePartial(this, message, value);
|
|
550
|
+
return message;
|
|
551
|
+
}
|
|
552
|
+
internalBinaryRead(reader, length, options, target) {
|
|
553
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
554
|
+
while (reader.pos < end) {
|
|
555
|
+
let [fieldNo, wireType] = reader.tag();
|
|
556
|
+
switch (fieldNo) {
|
|
557
|
+
case /* pncp.v1.PncpMessage message */ 1:
|
|
558
|
+
message.message = PncpMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
559
|
+
break;
|
|
560
|
+
case /* string author_override */ 2:
|
|
561
|
+
message.authorOverride = reader.string();
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
let u = options.readUnknownField;
|
|
565
|
+
if (u === "throw")
|
|
566
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
567
|
+
let d = reader.skip(wireType);
|
|
568
|
+
if (u !== false)
|
|
569
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return message;
|
|
573
|
+
}
|
|
574
|
+
internalBinaryWrite(message, writer, options) {
|
|
575
|
+
/* pncp.v1.PncpMessage message = 1; */
|
|
576
|
+
if (message.message)
|
|
577
|
+
PncpMessage.internalBinaryWrite(message.message, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
578
|
+
/* string author_override = 2; */
|
|
579
|
+
if (message.authorOverride !== "")
|
|
580
|
+
writer.tag(2, WireType.LengthDelimited).string(message.authorOverride);
|
|
581
|
+
let u = options.writeUnknownFields;
|
|
582
|
+
if (u !== false)
|
|
583
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
584
|
+
return writer;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* @generated MessageType for protobuf message pncp.v1.PncpMediumMessage
|
|
589
|
+
*/
|
|
590
|
+
export const PncpMediumMessage = new PncpMediumMessage$Type();
|
|
591
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
605
592
|
class PncpCallback$Type extends MessageType {
|
|
606
593
|
constructor() {
|
|
607
594
|
super("pncp.v1.PncpCallback", [
|
|
@@ -779,11 +766,9 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
779
766
|
{ no: 1, name: "id", kind: "message", T: () => ConversationId },
|
|
780
767
|
{ no: 2, name: "message_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
781
768
|
{ no: 3, name: "time_created", kind: "message", T: () => Timestamp },
|
|
782
|
-
{ no: 4, name: "key", kind: "message", T: () => Value },
|
|
783
769
|
{ no: 5, name: "message", kind: "message", T: () => PncpMessage },
|
|
784
770
|
{ no: 6, name: "params", kind: "message", T: () => Value },
|
|
785
771
|
{ no: 7, name: "callback", kind: "message", T: () => Value },
|
|
786
|
-
{ no: 8, name: "medium", kind: "message", T: () => Value },
|
|
787
772
|
{ no: 9, name: "conversation_state", kind: "enum", T: () => ["pncp.v1.ConversationState", ConversationState] },
|
|
788
773
|
{ no: 10, name: "partition", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
789
774
|
]);
|
|
@@ -810,9 +795,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
810
795
|
case /* google.protobuf.Timestamp time_created */ 3:
|
|
811
796
|
message.timeCreated = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timeCreated);
|
|
812
797
|
break;
|
|
813
|
-
case /* optional otonoma.common.Value key */ 4:
|
|
814
|
-
message.key = Value.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
|
815
|
-
break;
|
|
816
798
|
case /* pncp.v1.PncpMessage message */ 5:
|
|
817
799
|
message.message = PncpMessage.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
818
800
|
break;
|
|
@@ -822,9 +804,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
822
804
|
case /* optional otonoma.common.Value callback */ 7:
|
|
823
805
|
message.callback = Value.internalBinaryRead(reader, reader.uint32(), options, message.callback);
|
|
824
806
|
break;
|
|
825
|
-
case /* optional otonoma.common.Value medium */ 8:
|
|
826
|
-
message.medium = Value.internalBinaryRead(reader, reader.uint32(), options, message.medium);
|
|
827
|
-
break;
|
|
828
807
|
case /* pncp.v1.ConversationState conversation_state */ 9:
|
|
829
808
|
message.conversationState = reader.int32();
|
|
830
809
|
break;
|
|
@@ -852,9 +831,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
852
831
|
/* google.protobuf.Timestamp time_created = 3; */
|
|
853
832
|
if (message.timeCreated)
|
|
854
833
|
Timestamp.internalBinaryWrite(message.timeCreated, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
855
|
-
/* optional otonoma.common.Value key = 4; */
|
|
856
|
-
if (message.key)
|
|
857
|
-
Value.internalBinaryWrite(message.key, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
858
834
|
/* pncp.v1.PncpMessage message = 5; */
|
|
859
835
|
if (message.message)
|
|
860
836
|
PncpMessage.internalBinaryWrite(message.message, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -864,9 +840,6 @@ class PncpMessageCallback$Type extends MessageType {
|
|
|
864
840
|
/* optional otonoma.common.Value callback = 7; */
|
|
865
841
|
if (message.callback)
|
|
866
842
|
Value.internalBinaryWrite(message.callback, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
867
|
-
/* optional otonoma.common.Value medium = 8; */
|
|
868
|
-
if (message.medium)
|
|
869
|
-
Value.internalBinaryWrite(message.medium, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
870
843
|
/* pncp.v1.ConversationState conversation_state = 9; */
|
|
871
844
|
if (message.conversationState !== 0)
|
|
872
845
|
writer.tag(9, WireType.Varint).int32(message.conversationState);
|
|
@@ -888,8 +861,7 @@ class ParameterData$Type extends MessageType {
|
|
|
888
861
|
constructor() {
|
|
889
862
|
super("pncp.v1.ParameterData", [
|
|
890
863
|
{ no: 1, name: "provider", kind: "message", T: () => Value },
|
|
891
|
-
{ no: 2, name: "skill", kind: "message", T: () => Value }
|
|
892
|
-
{ no: 3, name: "medium", kind: "message", T: () => Value }
|
|
864
|
+
{ no: 2, name: "skill", kind: "message", T: () => Value }
|
|
893
865
|
]);
|
|
894
866
|
}
|
|
895
867
|
create(value) {
|
|
@@ -909,9 +881,6 @@ class ParameterData$Type extends MessageType {
|
|
|
909
881
|
case /* optional otonoma.common.Value skill */ 2:
|
|
910
882
|
message.skill = Value.internalBinaryRead(reader, reader.uint32(), options, message.skill);
|
|
911
883
|
break;
|
|
912
|
-
case /* optional otonoma.common.Value medium */ 3:
|
|
913
|
-
message.medium = Value.internalBinaryRead(reader, reader.uint32(), options, message.medium);
|
|
914
|
-
break;
|
|
915
884
|
default:
|
|
916
885
|
let u = options.readUnknownField;
|
|
917
886
|
if (u === "throw")
|
|
@@ -930,9 +899,6 @@ class ParameterData$Type extends MessageType {
|
|
|
930
899
|
/* optional otonoma.common.Value skill = 2; */
|
|
931
900
|
if (message.skill)
|
|
932
901
|
Value.internalBinaryWrite(message.skill, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
933
|
-
/* optional otonoma.common.Value medium = 3; */
|
|
934
|
-
if (message.medium)
|
|
935
|
-
Value.internalBinaryWrite(message.medium, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
936
902
|
let u = options.writeUnknownFields;
|
|
937
903
|
if (u !== false)
|
|
938
904
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/schema/paranet.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export type PncpPacket = {
|
|
|
17
17
|
};
|
|
18
18
|
export type ConversationId = string;
|
|
19
19
|
export type EntityReq = string;
|
|
20
|
-
export type EntityId = string;
|
|
21
20
|
export type PncpMessageBody = {
|
|
22
21
|
type: "response";
|
|
23
22
|
body: PncpDataMessage;
|
|
@@ -48,7 +47,8 @@ export type PncpMessageBody = {
|
|
|
48
47
|
*/
|
|
49
48
|
export type SkillMatchStrategy = "BEST" | "FIRST" | "STRICT";
|
|
50
49
|
export type Id = string;
|
|
51
|
-
export type ResponseKind = "MATCH" | "BROADCAST" | "UNMATCHED" | "
|
|
50
|
+
export type ResponseKind = "MATCH" | "BROADCAST" | "UNMATCHED" | "DATA";
|
|
51
|
+
export type EntityId = string;
|
|
52
52
|
/**
|
|
53
53
|
* Represents all message types that can be sent from the paranet to an actor.
|
|
54
54
|
*/
|
|
@@ -142,16 +142,6 @@ export interface PncpRequest {
|
|
|
142
142
|
* When specified, the particular actor is called if the skill matches.
|
|
143
143
|
*/
|
|
144
144
|
targetActorId?: EntityReq | null;
|
|
145
|
-
/**
|
|
146
|
-
* An arbitrary key that is allowed to be set and provided on further messages from mediums.
|
|
147
|
-
*/
|
|
148
|
-
key?: {
|
|
149
|
-
[k: string]: any;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* ID of the medium that made the request.
|
|
153
|
-
*/
|
|
154
|
-
mediumInfo?: PncpRequestMediumInfo | null;
|
|
155
145
|
/**
|
|
156
146
|
* If this is true, a match is required to be made upon the initial request. If it is false, the
|
|
157
147
|
* broker can store the message and conversation in an unmatched state and rematch it at a later
|
|
@@ -164,11 +154,6 @@ export interface PncpRequest {
|
|
|
164
154
|
* If this is true, then this request should use the provided actor lock.
|
|
165
155
|
*/
|
|
166
156
|
useLock?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* If this is true, then the request can use open networking and search other nodes open nodes on the
|
|
169
|
-
* network for a fulfiller if this node doesn't know of a fulfiller.
|
|
170
|
-
*/
|
|
171
|
-
allowOpenMatch?: boolean;
|
|
172
157
|
[k: string]: any;
|
|
173
158
|
}
|
|
174
159
|
/**
|
|
@@ -187,11 +172,6 @@ export interface PncpSkillMessage {
|
|
|
187
172
|
taint?: string | null;
|
|
188
173
|
[k: string]: any;
|
|
189
174
|
}
|
|
190
|
-
export interface PncpRequestMediumInfo {
|
|
191
|
-
id: EntityId;
|
|
192
|
-
userInfo: any;
|
|
193
|
-
[k: string]: any;
|
|
194
|
-
}
|
|
195
175
|
/**
|
|
196
176
|
* PNCP Message. Messages are a variety of types of data sent within a conversation.
|
|
197
177
|
*/
|
|
@@ -243,7 +223,7 @@ export interface MessageResponse {
|
|
|
243
223
|
/**
|
|
244
224
|
* Current state of the conversation after this request was made.
|
|
245
225
|
*/
|
|
246
|
-
state:
|
|
226
|
+
state: "IN_PROGRESS" | "COMPLETED" | "ERRORED" | "CANCELED" | "UNMATCHED";
|
|
247
227
|
kind: ResponseKind;
|
|
248
228
|
matched_id?: EntityId | null;
|
|
249
229
|
[k: string]: any;
|
|
@@ -299,7 +279,6 @@ export interface ParameterData {
|
|
|
299
279
|
skill?: {
|
|
300
280
|
[k: string]: any;
|
|
301
281
|
};
|
|
302
|
-
medium?: any;
|
|
303
282
|
[k: string]: any;
|
|
304
283
|
}
|
|
305
284
|
/**
|
|
@@ -313,12 +292,6 @@ export interface PncpMessageCallback {
|
|
|
313
292
|
id: string;
|
|
314
293
|
messageId: Id;
|
|
315
294
|
timeCreated: string;
|
|
316
|
-
/**
|
|
317
|
-
* Key provided from response to initial call.
|
|
318
|
-
*/
|
|
319
|
-
key?: {
|
|
320
|
-
[k: string]: any;
|
|
321
|
-
};
|
|
322
295
|
message: PncpMessage;
|
|
323
296
|
params?: any;
|
|
324
297
|
/**
|
|
@@ -327,11 +300,10 @@ export interface PncpMessageCallback {
|
|
|
327
300
|
callback?: {
|
|
328
301
|
[k: string]: any;
|
|
329
302
|
};
|
|
330
|
-
medium?: any;
|
|
331
303
|
/**
|
|
332
304
|
* Any change to the conversation state will be present here.
|
|
333
305
|
*/
|
|
334
|
-
conversationState:
|
|
306
|
+
conversationState: "IN_PROGRESS" | "COMPLETED" | "ERRORED" | "CANCELED" | "UNMATCHED";
|
|
335
307
|
[k: string]: any;
|
|
336
308
|
}
|
|
337
309
|
//# sourceMappingURL=paranet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paranet.d.ts","sourceRoot":"","sources":["../../src/schema/paranet.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;GAEG;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