@kinotic-ai/core 1.9.0 → 1.9.1
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/index.cjs +6 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -145,6 +145,7 @@ var EventConstants;
|
|
|
145
145
|
EventConstants2["REPLY_DESTINATION_SCHEME"] = "reply";
|
|
146
146
|
EventConstants2["CONTENT_JSON"] = "application/json";
|
|
147
147
|
EventConstants2["CONTENT_TEXT"] = "text/plain";
|
|
148
|
+
EventConstants2["CONTENT_OCTET_STREAM"] = "application/octet-stream";
|
|
148
149
|
EventConstants2["TRACEPARENT_HEADER"] = "traceparent";
|
|
149
150
|
EventConstants2["TRACESTATE_HEADER"] = "tracestate";
|
|
150
151
|
})(EventConstants ||= {});
|
|
@@ -1035,7 +1036,7 @@ var import_operators2 = require("rxjs/operators");
|
|
|
1035
1036
|
// packages/core/package.json
|
|
1036
1037
|
var package_default = {
|
|
1037
1038
|
name: "@kinotic-ai/core",
|
|
1038
|
-
version: "1.9.
|
|
1039
|
+
version: "1.9.1",
|
|
1039
1040
|
type: "module",
|
|
1040
1041
|
files: [
|
|
1041
1042
|
"dist"
|
|
@@ -1240,10 +1241,12 @@ class ServiceProxy {
|
|
|
1240
1241
|
return eventBusToUse.requestStream(event, sendControlEvents).pipe(import_operators2.map((value) => {
|
|
1241
1242
|
const contentType = value.getHeader("content-type" /* CONTENT_TYPE_HEADER */);
|
|
1242
1243
|
if (contentType !== undefined) {
|
|
1243
|
-
if (contentType === "application/json") {
|
|
1244
|
+
if (contentType === "application/json" /* CONTENT_JSON */) {
|
|
1244
1245
|
return JSON.parse(value.getDataString());
|
|
1245
|
-
} else if (contentType === "text/plain") {
|
|
1246
|
+
} else if (contentType === "text/plain" /* CONTENT_TEXT */) {
|
|
1246
1247
|
return value.getDataString();
|
|
1248
|
+
} else if (contentType === "application/octet-stream" /* CONTENT_OCTET_STREAM */) {
|
|
1249
|
+
return value.data.orUndefined();
|
|
1247
1250
|
} else {
|
|
1248
1251
|
throw new Error("Content Type " + contentType + " is not supported");
|
|
1249
1252
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -266,8 +266,7 @@ declare enum EventConstants {
|
|
|
266
266
|
*/
|
|
267
267
|
CORRELATION_ID_HEADER = "__correlation-id",
|
|
268
268
|
/**
|
|
269
|
-
* Origin service CRI the server sends on stream replies so the client can
|
|
270
|
-
* it. The __ prefix persists it across messages.
|
|
269
|
+
* Origin service CRI the server sends on stream replies so the client can route a cancel back to it.
|
|
271
270
|
*/
|
|
272
271
|
ORIGIN_CRI_HEADER = "__origin-cri",
|
|
273
272
|
/**
|
|
@@ -297,6 +296,7 @@ declare enum EventConstants {
|
|
|
297
296
|
REPLY_DESTINATION_SCHEME = "reply",
|
|
298
297
|
CONTENT_JSON = "application/json",
|
|
299
298
|
CONTENT_TEXT = "text/plain",
|
|
299
|
+
CONTENT_OCTET_STREAM = "application/octet-stream",
|
|
300
300
|
/**
|
|
301
301
|
* The traceparent HTTP header field identifies the incoming request in a tracing system. It has four fields:
|
|
302
302
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -266,8 +266,7 @@ declare enum EventConstants {
|
|
|
266
266
|
*/
|
|
267
267
|
CORRELATION_ID_HEADER = "__correlation-id",
|
|
268
268
|
/**
|
|
269
|
-
* Origin service CRI the server sends on stream replies so the client can
|
|
270
|
-
* it. The __ prefix persists it across messages.
|
|
269
|
+
* Origin service CRI the server sends on stream replies so the client can route a cancel back to it.
|
|
271
270
|
*/
|
|
272
271
|
ORIGIN_CRI_HEADER = "__origin-cri",
|
|
273
272
|
/**
|
|
@@ -297,6 +296,7 @@ declare enum EventConstants {
|
|
|
297
296
|
REPLY_DESTINATION_SCHEME = "reply",
|
|
298
297
|
CONTENT_JSON = "application/json",
|
|
299
298
|
CONTENT_TEXT = "text/plain",
|
|
299
|
+
CONTENT_OCTET_STREAM = "application/octet-stream",
|
|
300
300
|
/**
|
|
301
301
|
* The traceparent HTTP header field identifies the incoming request in a tracing system. It has four fields:
|
|
302
302
|
*
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,7 @@ var EventConstants;
|
|
|
44
44
|
EventConstants2["REPLY_DESTINATION_SCHEME"] = "reply";
|
|
45
45
|
EventConstants2["CONTENT_JSON"] = "application/json";
|
|
46
46
|
EventConstants2["CONTENT_TEXT"] = "text/plain";
|
|
47
|
+
EventConstants2["CONTENT_OCTET_STREAM"] = "application/octet-stream";
|
|
47
48
|
EventConstants2["TRACEPARENT_HEADER"] = "traceparent";
|
|
48
49
|
EventConstants2["TRACESTATE_HEADER"] = "tracestate";
|
|
49
50
|
})(EventConstants ||= {});
|
|
@@ -937,7 +938,7 @@ import { first, map as map2 } from "rxjs/operators";
|
|
|
937
938
|
// packages/core/package.json
|
|
938
939
|
var package_default = {
|
|
939
940
|
name: "@kinotic-ai/core",
|
|
940
|
-
version: "1.9.
|
|
941
|
+
version: "1.9.1",
|
|
941
942
|
type: "module",
|
|
942
943
|
files: [
|
|
943
944
|
"dist"
|
|
@@ -1142,10 +1143,12 @@ class ServiceProxy {
|
|
|
1142
1143
|
return eventBusToUse.requestStream(event, sendControlEvents).pipe(map2((value) => {
|
|
1143
1144
|
const contentType = value.getHeader("content-type" /* CONTENT_TYPE_HEADER */);
|
|
1144
1145
|
if (contentType !== undefined) {
|
|
1145
|
-
if (contentType === "application/json") {
|
|
1146
|
+
if (contentType === "application/json" /* CONTENT_JSON */) {
|
|
1146
1147
|
return JSON.parse(value.getDataString());
|
|
1147
|
-
} else if (contentType === "text/plain") {
|
|
1148
|
+
} else if (contentType === "text/plain" /* CONTENT_TEXT */) {
|
|
1148
1149
|
return value.getDataString();
|
|
1150
|
+
} else if (contentType === "application/octet-stream" /* CONTENT_OCTET_STREAM */) {
|
|
1151
|
+
return value.data.orUndefined();
|
|
1149
1152
|
} else {
|
|
1150
1153
|
throw new Error("Content Type " + contentType + " is not supported");
|
|
1151
1154
|
}
|