@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.
Files changed (96) hide show
  1. package/dist/cjs/graphql.d.ts.map +1 -1
  2. package/dist/cjs/{index-AtS3JMf_.cjs → index-eBiJ1Egw.cjs} +161 -295
  3. package/dist/cjs/index-eBiJ1Egw.cjs.map +1 -0
  4. package/dist/cjs/index.cjs +110 -246
  5. package/dist/cjs/index.cjs.map +1 -1
  6. package/dist/cjs/index.d.ts +0 -1
  7. package/dist/cjs/index.d.ts.map +1 -1
  8. package/dist/cjs/pncp.d.ts +0 -10
  9. package/dist/cjs/pncp.d.ts.map +1 -1
  10. package/dist/cjs/proto/broker.grpc.client.d.ts +29 -31
  11. package/dist/cjs/proto/broker.grpc.client.d.ts.map +1 -1
  12. package/dist/cjs/proto/broker_api.d.ts +32 -25
  13. package/dist/cjs/proto/broker_api.d.ts.map +1 -1
  14. package/dist/cjs/proto/google/protobuf/descriptor.d.ts +177 -177
  15. package/dist/cjs/proto/google/protobuf/descriptor.d.ts.map +1 -1
  16. package/dist/cjs/proto/google/protobuf/timestamp.d.ts +2 -2
  17. package/dist/cjs/proto/grpc/health/v1/health.client.d.ts +4 -4
  18. package/dist/cjs/proto/grpc/health/v1/health.d.ts +2 -2
  19. package/dist/cjs/proto/identifiers.d.ts +4 -4
  20. package/dist/cjs/proto/observation.d.ts +27 -27
  21. package/dist/cjs/proto/otonoma/common/value.d.ts +10 -10
  22. package/dist/cjs/proto/pncp.d.ts +74 -100
  23. package/dist/cjs/proto/pncp.d.ts.map +1 -1
  24. package/dist/cjs/schema/paranet.d.ts +4 -32
  25. package/dist/cjs/schema/paranet.d.ts.map +1 -1
  26. package/dist/esm/graphql.d.ts.map +1 -1
  27. package/dist/esm/{index-HCY5Ez1I.mjs → index-PztyZob7.mjs} +161 -295
  28. package/dist/esm/index-PztyZob7.mjs.map +1 -0
  29. package/dist/esm/index.d.ts +0 -1
  30. package/dist/esm/index.d.ts.map +1 -1
  31. package/dist/esm/index.mjs +111 -245
  32. package/dist/esm/index.mjs.map +1 -1
  33. package/dist/esm/pncp.d.ts +0 -10
  34. package/dist/esm/pncp.d.ts.map +1 -1
  35. package/dist/esm/proto/broker.grpc.client.d.ts +29 -31
  36. package/dist/esm/proto/broker.grpc.client.d.ts.map +1 -1
  37. package/dist/esm/proto/broker_api.d.ts +32 -25
  38. package/dist/esm/proto/broker_api.d.ts.map +1 -1
  39. package/dist/esm/proto/google/protobuf/descriptor.d.ts +177 -177
  40. package/dist/esm/proto/google/protobuf/descriptor.d.ts.map +1 -1
  41. package/dist/esm/proto/google/protobuf/timestamp.d.ts +2 -2
  42. package/dist/esm/proto/grpc/health/v1/health.client.d.ts +4 -4
  43. package/dist/esm/proto/grpc/health/v1/health.d.ts +2 -2
  44. package/dist/esm/proto/identifiers.d.ts +4 -4
  45. package/dist/esm/proto/observation.d.ts +27 -27
  46. package/dist/esm/proto/otonoma/common/value.d.ts +10 -10
  47. package/dist/esm/proto/pncp.d.ts +74 -100
  48. package/dist/esm/proto/pncp.d.ts.map +1 -1
  49. package/dist/esm/schema/paranet.d.ts +4 -32
  50. package/dist/esm/schema/paranet.d.ts.map +1 -1
  51. package/dist/graphql.d.ts.map +1 -1
  52. package/dist/graphql.js +0 -2
  53. package/dist/index.d.cts +206 -319
  54. package/dist/index.d.mts +206 -319
  55. package/dist/index.d.ts +0 -1
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +0 -1
  58. package/dist/pncp.d.ts +0 -10
  59. package/dist/pncp.d.ts.map +1 -1
  60. package/dist/pncp.js +0 -3
  61. package/dist/proto/broker.grpc.client.d.ts +29 -31
  62. package/dist/proto/broker.grpc.client.d.ts.map +1 -1
  63. package/dist/proto/broker.grpc.client.js +22 -23
  64. package/dist/proto/broker.grpc.js +4 -4
  65. package/dist/proto/broker_api.d.ts +32 -25
  66. package/dist/proto/broker_api.d.ts.map +1 -1
  67. package/dist/proto/broker_api.js +22 -2
  68. package/dist/proto/google/protobuf/descriptor.d.ts +177 -177
  69. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  70. package/dist/proto/google/protobuf/descriptor.js +136 -110
  71. package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
  72. package/dist/proto/google/protobuf/timestamp.js +1 -1
  73. package/dist/proto/grpc/health/v1/health.client.d.ts +4 -4
  74. package/dist/proto/grpc/health/v1/health.client.js +2 -2
  75. package/dist/proto/grpc/health/v1/health.d.ts +2 -2
  76. package/dist/proto/grpc/health/v1/health.js +1 -1
  77. package/dist/proto/identifiers.d.ts +4 -4
  78. package/dist/proto/observation.d.ts +27 -27
  79. package/dist/proto/observation.js +1 -1
  80. package/dist/proto/otonoma/common/value.d.ts +10 -10
  81. package/dist/proto/otonoma/common/value.js +2 -2
  82. package/dist/proto/pncp.d.ts +74 -100
  83. package/dist/proto/pncp.d.ts.map +1 -1
  84. package/dist/proto/pncp.js +55 -89
  85. package/dist/schema/paranet.d.ts +4 -32
  86. package/dist/schema/paranet.d.ts.map +1 -1
  87. package/package.json +1 -1
  88. package/dist/cjs/index-AtS3JMf_.cjs.map +0 -1
  89. package/dist/cjs/proto/mediums.d.ts +0 -71
  90. package/dist/cjs/proto/mediums.d.ts.map +0 -1
  91. package/dist/esm/index-HCY5Ez1I.mjs.map +0 -1
  92. package/dist/esm/proto/mediums.d.ts +0 -71
  93. package/dist/esm/proto/mediums.d.ts.map +0 -1
  94. package/dist/proto/mediums.d.ts +0 -71
  95. package/dist/proto/mediums.d.ts.map +0 -1
  96. package/dist/proto/mediums.js +0 -120
@@ -14,7 +14,7 @@ export class HealthClient {
14
14
  * If the requested service is unknown, the call will fail with status
15
15
  * NOT_FOUND.
16
16
  *
17
- * @generated from protobuf rpc: Check(grpc.health.v1.HealthCheckRequest) returns (grpc.health.v1.HealthCheckResponse);
17
+ * @generated from protobuf rpc: Check
18
18
  */
19
19
  check(input, options) {
20
20
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -37,7 +37,7 @@ export class HealthClient {
37
37
  * call. If the call terminates with any other status (including OK),
38
38
  * clients should retry the call with appropriate exponential backoff.
39
39
  *
40
- * @generated from protobuf rpc: Watch(grpc.health.v1.HealthCheckRequest) returns (stream grpc.health.v1.HealthCheckResponse);
40
+ * @generated from protobuf rpc: Watch
41
41
  */
42
42
  watch(input, options) {
43
43
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
@@ -10,7 +10,7 @@ import { MessageType } from "@protobuf-ts/runtime";
10
10
  */
11
11
  export interface HealthCheckRequest {
12
12
  /**
13
- * @generated from protobuf field: string service = 1;
13
+ * @generated from protobuf field: string service = 1
14
14
  */
15
15
  service: string;
16
16
  }
@@ -19,7 +19,7 @@ export interface HealthCheckRequest {
19
19
  */
20
20
  export interface HealthCheckResponse {
21
21
  /**
22
- * @generated from protobuf field: grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;
22
+ * @generated from protobuf field: grpc.health.v1.HealthCheckResponse.ServingStatus status = 1
23
23
  */
24
24
  status: HealthCheckResponse_ServingStatus;
25
25
  }
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4
1
+ // @generated by protobuf-ts 2.11.1
2
2
  // @generated from protobuf file "grpc/health/v1/health.proto" (package "grpc.health.v1", syntax proto3)
3
3
  // tslint:disable
4
4
  //
@@ -13,11 +13,11 @@ import { MessageType } from "@protobuf-ts/runtime";
13
13
  */
14
14
  export interface ConversationId {
15
15
  /**
16
- * @generated from protobuf field: string id = 1;
16
+ * @generated from protobuf field: string id = 1
17
17
  */
18
18
  id: string;
19
19
  /**
20
- * @generated from protobuf field: pncp.v1.ConversationMembership membership = 2;
20
+ * @generated from protobuf field: pncp.v1.ConversationMembership membership = 2
21
21
  */
22
22
  membership: ConversationMembership;
23
23
  }
@@ -30,14 +30,14 @@ export interface EntityId {
30
30
  /**
31
31
  * A unique ID associated with an entity.
32
32
  *
33
- * @generated from protobuf field: string id = 1;
33
+ * @generated from protobuf field: string id = 1
34
34
  */
35
35
  id: string;
36
36
  /**
37
37
  * This is a packed semver version string. We could expand this out, but there is a lot of
38
38
  * complexity in semver, it is best to leave it as a string and use a library to parse it internally.
39
39
  *
40
- * @generated from protobuf field: string version = 2;
40
+ * @generated from protobuf field: string version = 2
41
41
  */
42
42
  version: string;
43
43
  }
@@ -18,40 +18,40 @@ import { EntityId } from "./identifiers";
18
18
  */
19
19
  export interface ObservationRequest {
20
20
  /**
21
- * @generated from protobuf field: pncp.v1.ObservationInit body = 1;
21
+ * @generated from protobuf field: pncp.v1.ObservationInit body = 1
22
22
  */
23
23
  body?: ObservationInit;
24
24
  /**
25
25
  * TODO: Figure out what to do with this one.
26
26
  *
27
- * @generated from protobuf field: optional string skill_observance = 2;
27
+ * @generated from protobuf field: optional string skill_observance = 2
28
28
  */
29
29
  skillObservance?: string;
30
30
  /**
31
31
  * This is analogous to the PncpRequest.author field. See notes there for why it is required.
32
32
  *
33
- * @generated from protobuf field: pncp.v1.EntityId author = 3;
33
+ * @generated from protobuf field: pncp.v1.EntityId author = 3
34
34
  */
35
35
  author?: EntityId;
36
36
  /**
37
- * @generated from protobuf field: pncp.v1.ObservationStartPoint start_point = 4;
37
+ * @generated from protobuf field: pncp.v1.ObservationStartPoint start_point = 4
38
38
  */
39
39
  startPoint: ObservationStartPoint;
40
40
  /**
41
41
  * Optional sequence ID, used to determine where the stream should start when start_point == OBS_START_SEQ.
42
42
  * Note, that this value is a message ID.
43
43
  *
44
- * @generated from protobuf field: optional string seq_id = 5;
44
+ * @generated from protobuf field: optional string seq_id = 5
45
45
  */
46
46
  seqId?: string;
47
47
  /**
48
- * @generated from protobuf field: optional otonoma.common.Value callback = 6;
48
+ * @generated from protobuf field: optional otonoma.common.Value callback = 6
49
49
  */
50
50
  callback?: Value;
51
51
  /**
52
52
  * If this is true then the observer stream is not tracked in the ledger.
53
53
  *
54
- * @generated from protobuf field: bool untracked = 7;
54
+ * @generated from protobuf field: bool untracked = 7
55
55
  */
56
56
  untracked: boolean;
57
57
  /**
@@ -64,7 +64,7 @@ export interface ObservationRequest {
64
64
  * N.B. (implementation detail): This requires a reordering in the ledger. As such, this query should be used with
65
65
  * only relatively small values (<10000) to avoid too much performance impact on the ledger.
66
66
  *
67
- * @generated from protobuf field: optional uint64 seq_offset = 8;
67
+ * @generated from protobuf field: optional uint64 seq_offset = 8
68
68
  */
69
69
  seqOffset?: bigint;
70
70
  }
@@ -75,27 +75,27 @@ export interface ObservationRequest {
75
75
  */
76
76
  export interface ObservationInit {
77
77
  /**
78
- * @generated from protobuf field: optional string subject = 1;
78
+ * @generated from protobuf field: optional string subject = 1
79
79
  */
80
80
  subject?: string;
81
81
  /**
82
- * @generated from protobuf field: optional string action = 2;
82
+ * @generated from protobuf field: optional string action = 2
83
83
  */
84
84
  action?: string;
85
85
  /**
86
- * @generated from protobuf field: optional string requester = 3;
86
+ * @generated from protobuf field: optional string requester = 3
87
87
  */
88
88
  requester?: string;
89
89
  /**
90
- * @generated from protobuf field: optional string fulfiller = 4;
90
+ * @generated from protobuf field: optional string fulfiller = 4
91
91
  */
92
92
  fulfiller?: string;
93
93
  /**
94
- * @generated from protobuf field: repeated pncp.v1.ObservationMessageFilter filters = 5;
94
+ * @generated from protobuf field: repeated pncp.v1.ObservationMessageFilter filters = 5
95
95
  */
96
96
  filters: ObservationMessageFilter[];
97
97
  /**
98
- * @generated from protobuf field: optional string conversation_id = 6;
98
+ * @generated from protobuf field: optional string conversation_id = 6
99
99
  */
100
100
  conversationId?: string;
101
101
  }
@@ -104,13 +104,13 @@ export interface ObservationInit {
104
104
  */
105
105
  export interface ObservationMessageFilter {
106
106
  /**
107
- * @generated from protobuf field: pncp.v1.ObservationMessageType kind = 1;
107
+ * @generated from protobuf field: pncp.v1.ObservationMessageType kind = 1
108
108
  */
109
109
  kind: ObservationMessageType;
110
110
  /**
111
111
  * if kind == PNCP then this field can be populated to further restrict the filter to specific PNCP types.
112
112
  *
113
- * @generated from protobuf field: optional pncp.v1.PncpMessageKind pncp = 2;
113
+ * @generated from protobuf field: optional pncp.v1.PncpMessageKind pncp = 2
114
114
  */
115
115
  pncp?: PncpMessageKind;
116
116
  }
@@ -123,59 +123,59 @@ export interface ObservationCallback {
123
123
  /**
124
124
  * Subject of the original skill request.
125
125
  *
126
- * @generated from protobuf field: string subject = 1;
126
+ * @generated from protobuf field: string subject = 1
127
127
  */
128
128
  subject: string;
129
129
  /**
130
130
  * Action of the original skill request.
131
131
  *
132
- * @generated from protobuf field: string action = 2;
132
+ * @generated from protobuf field: string action = 2
133
133
  */
134
134
  action: string;
135
135
  /**
136
136
  * Requester of the conversation, not this particular message.
137
137
  *
138
- * @generated from protobuf field: pncp.v1.EntityId requester = 3;
138
+ * @generated from protobuf field: pncp.v1.EntityId requester = 3
139
139
  */
140
140
  requester?: EntityId;
141
141
  /**
142
142
  * fulfiller, if one exists.
143
143
  *
144
- * @generated from protobuf field: optional pncp.v1.EntityId fulfiller = 4;
144
+ * @generated from protobuf field: optional pncp.v1.EntityId fulfiller = 4
145
145
  */
146
146
  fulfiller?: EntityId;
147
147
  /**
148
148
  * The callback message being observed.
149
149
  *
150
- * @generated from protobuf field: pncp.v1.PncpCallback message = 5;
150
+ * @generated from protobuf field: pncp.v1.PncpCallback message = 5
151
151
  */
152
152
  message?: PncpCallback;
153
153
  /**
154
154
  * This is a unique ID corresponding to this observation stream.
155
155
  *
156
- * @generated from protobuf field: pncp.v1.ConversationId id = 6;
156
+ * @generated from protobuf field: pncp.v1.ConversationId id = 6
157
157
  */
158
158
  id?: ConversationId;
159
159
  /**
160
160
  * Actor that initiated this stream.
161
161
  *
162
- * @generated from protobuf field: pncp.v1.EntityId author = 7;
162
+ * @generated from protobuf field: pncp.v1.EntityId author = 7
163
163
  */
164
164
  author?: EntityId;
165
165
  /**
166
166
  * Optional callback data used to identify this stream.
167
167
  *
168
- * @generated from protobuf field: optional otonoma.common.Value callback = 8;
168
+ * @generated from protobuf field: optional otonoma.common.Value callback = 8
169
169
  */
170
170
  callback?: Value;
171
171
  /**
172
172
  * The previous message ID, used for sequencing.
173
173
  *
174
- * @generated from protobuf field: optional string prev_mid = 9;
174
+ * @generated from protobuf field: optional string prev_mid = 9
175
175
  */
176
176
  prevMid?: string;
177
177
  /**
178
- * @generated from protobuf field: pncp.v1.EntityId skill_id = 10;
178
+ * @generated from protobuf field: pncp.v1.EntityId skill_id = 10
179
179
  */
180
180
  skillId?: EntityId;
181
181
  }
@@ -187,7 +187,7 @@ export interface ObservationCallback {
187
187
  */
188
188
  export interface ObservationMessageWrapper {
189
189
  /**
190
- * @generated from protobuf field: pncp.v1.ObservationCallback body = 1;
190
+ * @generated from protobuf field: pncp.v1.ObservationCallback body = 1
191
191
  */
192
192
  body?: ObservationCallback;
193
193
  }
@@ -156,7 +156,7 @@ class ObservationInit$Type extends MessageType {
156
156
  { no: 2, name: "action", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
157
157
  { no: 3, name: "requester", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
158
158
  { no: 4, name: "fulfiller", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
159
- { no: 5, name: "filters", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ObservationMessageFilter },
159
+ { no: 5, name: "filters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ObservationMessageFilter },
160
160
  { no: 6, name: "conversation_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
161
161
  ]);
162
162
  }
@@ -14,49 +14,49 @@ export interface Value {
14
14
  kind: {
15
15
  oneofKind: "nullValue";
16
16
  /**
17
- * @generated from protobuf field: otonoma.common.NullValue null_value = 1;
17
+ * @generated from protobuf field: otonoma.common.NullValue null_value = 1
18
18
  */
19
19
  nullValue: NullValue;
20
20
  } | {
21
21
  oneofKind: "numberValue";
22
22
  /**
23
- * @generated from protobuf field: double number_value = 2;
23
+ * @generated from protobuf field: double number_value = 2
24
24
  */
25
25
  numberValue: number;
26
26
  } | {
27
27
  oneofKind: "negIntValue";
28
28
  /**
29
- * @generated from protobuf field: int64 neg_int_value = 3;
29
+ * @generated from protobuf field: int64 neg_int_value = 3
30
30
  */
31
31
  negIntValue: bigint;
32
32
  } | {
33
33
  oneofKind: "posIntValue";
34
34
  /**
35
- * @generated from protobuf field: uint64 pos_int_value = 4;
35
+ * @generated from protobuf field: uint64 pos_int_value = 4
36
36
  */
37
37
  posIntValue: bigint;
38
38
  } | {
39
39
  oneofKind: "stringValue";
40
40
  /**
41
- * @generated from protobuf field: string string_value = 5;
41
+ * @generated from protobuf field: string string_value = 5
42
42
  */
43
43
  stringValue: string;
44
44
  } | {
45
45
  oneofKind: "boolValue";
46
46
  /**
47
- * @generated from protobuf field: bool bool_value = 6;
47
+ * @generated from protobuf field: bool bool_value = 6
48
48
  */
49
49
  boolValue: boolean;
50
50
  } | {
51
51
  oneofKind: "structValue";
52
52
  /**
53
- * @generated from protobuf field: otonoma.common.Struct struct_value = 7;
53
+ * @generated from protobuf field: otonoma.common.Struct struct_value = 7
54
54
  */
55
55
  structValue: Struct;
56
56
  } | {
57
57
  oneofKind: "listValue";
58
58
  /**
59
- * @generated from protobuf field: otonoma.common.ListValue list_value = 8;
59
+ * @generated from protobuf field: otonoma.common.ListValue list_value = 8
60
60
  */
61
61
  listValue: ListValue;
62
62
  } | {
@@ -68,7 +68,7 @@ export interface Value {
68
68
  */
69
69
  export interface Struct {
70
70
  /**
71
- * @generated from protobuf field: map<string, otonoma.common.Value> fields = 1;
71
+ * @generated from protobuf field: map<string, otonoma.common.Value> fields = 1
72
72
  */
73
73
  fields: {
74
74
  [key: string]: Value;
@@ -79,7 +79,7 @@ export interface Struct {
79
79
  */
80
80
  export interface ListValue {
81
81
  /**
82
- * @generated from protobuf field: repeated otonoma.common.Value values = 1;
82
+ * @generated from protobuf field: repeated otonoma.common.Value values = 1
83
83
  */
84
84
  values: Value[];
85
85
  }
@@ -176,7 +176,7 @@ class Struct$Type extends MessageType {
176
176
  case 2:
177
177
  val = Value.internalBinaryRead(reader, reader.uint32(), options);
178
178
  break;
179
- default: throw new globalThis.Error("unknown map entry field for field otonoma.common.Struct.fields");
179
+ default: throw new globalThis.Error("unknown map entry field for otonoma.common.Struct.fields");
180
180
  }
181
181
  }
182
182
  map[key ?? ""] = val ?? Value.create();
@@ -203,7 +203,7 @@ export const Struct = new Struct$Type();
203
203
  class ListValue$Type extends MessageType {
204
204
  constructor() {
205
205
  super("otonoma.common.ListValue", [
206
- { no: 1, name: "values", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Value }
206
+ { no: 1, name: "values", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Value }
207
207
  ]);
208
208
  }
209
209
  create(value) {