@rivet-gg/chat 0.0.4 → 0.0.5

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.
@@ -46,7 +46,7 @@ const serializeAws_restJson1GetThreadHistoryCommand = async (input, context) =>
46
46
  throw new Error('No value provided for input HTTP label: threadId.');
47
47
  }
48
48
  const query = {
49
- ...(input.ts !== undefined && { "ts": (input.ts.toISOString().split('.')[0] + "Z").toString() }),
49
+ ...(input.ts !== undefined && { "ts": input.ts.toISOString().toString() }),
50
50
  ...(input.count !== undefined && { "count": input.count.toString() }),
51
51
  ...(input.queryDirection !== undefined && { "query_direction": input.queryDirection }),
52
52
  };
@@ -129,7 +129,7 @@ const serializeAws_restJson1SetThreadReadCommand = async (input, context) => {
129
129
  }
130
130
  let body;
131
131
  body = JSON.stringify({
132
- ...(input.lastReadTs !== undefined && input.lastReadTs !== null && { "last_read_ts": (input.lastReadTs.toISOString().split('.')[0] + "Z") }),
132
+ ...(input.lastReadTs !== undefined && input.lastReadTs !== null && { "last_read_ts": input.lastReadTs.toISOString() }),
133
133
  });
134
134
  return new protocol_http_1.HttpRequest({
135
135
  protocol,
@@ -53,7 +53,7 @@ export var serializeAws_restJson1GetThreadHistoryCommand = function (input, cont
53
53
  else {
54
54
  throw new Error('No value provided for input HTTP label: threadId.');
55
55
  }
56
- query = __assign(__assign(__assign({}, (input.ts !== undefined && { "ts": (input.ts.toISOString().split('.')[0] + "Z").toString() })), (input.count !== undefined && { "count": input.count.toString() })), (input.queryDirection !== undefined && { "query_direction": input.queryDirection }));
56
+ query = __assign(__assign(__assign({}, (input.ts !== undefined && { "ts": input.ts.toISOString().toString() })), (input.count !== undefined && { "count": input.count.toString() })), (input.queryDirection !== undefined && { "query_direction": input.queryDirection }));
57
57
  return [2, new __HttpRequest({
58
58
  protocol: protocol,
59
59
  hostname: hostname,
@@ -143,7 +143,7 @@ export var serializeAws_restJson1SetThreadReadCommand = function (input, context
143
143
  else {
144
144
  throw new Error('No value provided for input HTTP label: threadId.');
145
145
  }
146
- body = JSON.stringify(__assign({}, (input.lastReadTs !== undefined && input.lastReadTs !== null && { "last_read_ts": (input.lastReadTs.toISOString().split('.')[0] + "Z") })));
146
+ body = JSON.stringify(__assign({}, (input.lastReadTs !== undefined && input.lastReadTs !== null && { "last_read_ts": input.lastReadTs.toISOString() })));
147
147
  return [2, new __HttpRequest({
148
148
  protocol: protocol,
149
149
  hostname: hostname,
@@ -1279,7 +1279,7 @@ export declare class InternalError extends __BaseException {
1279
1279
  readonly name: "InternalError";
1280
1280
  readonly $fault: "server";
1281
1281
  $retryable: {};
1282
- code?: string;
1282
+ code: string | undefined;
1283
1283
  /**
1284
1284
  * Unstructured metadata relating to an error. Must be manually parsed.
1285
1285
  */
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"Rivet Gaming, LLC","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"email":"developer@rivet.gg"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.99.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.99.0","@aws-sdk/util-defaults-mode-node":"3.99.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@rivet-gg/common":"git+https://github.com/rivet-gg/rivet-sdk-js.git#d24322cab81419f6a1684e4f80e7f4dfc6e2e271","tslib":"^2.3.1"},"description":"Rivet service enabling identities to send and receive chat messages","devDependencies":{"@aws-sdk/service-client-documentation-generator":"git+https://github.com/rivet-gg/service-client-documentation-generator.git","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"^3.0.0","typedoc":"^0.19.2","typescript":"~4.6.2"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://rivet.gg/","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@rivet-gg/chat","overrides":{"typedoc":{"typescript":"~4.6.2"}},"private":false,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"scripts":{"build":"yarn run build:cjs && yarn run build:es && yarn run build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","prepack":"yarn run clean && yarn run build"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"0.0.4"}
1
+ {"author":"Rivet Gaming, LLC","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"email":"developer@rivet.gg"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.99.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.99.0","@aws-sdk/util-defaults-mode-node":"3.99.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@rivet-gg/common":"git+https://github.com/rivet-gg/rivet-sdk-js.git#ce562016be3be5ce2bdcd2d662c89acb7567ecd1","tslib":"^2.3.1"},"description":"Rivet service enabling identities to send and receive chat messages","devDependencies":{"@aws-sdk/service-client-documentation-generator":"git+https://github.com/rivet-gg/service-client-documentation-generator.git","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"^3.0.0","typedoc":"^0.19.2","typescript":"~4.6.2"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://rivet.gg/","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@rivet-gg/chat","overrides":{"typedoc":{"typescript":"~4.6.2"}},"private":false,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"scripts":{"build":"yarn run build:cjs && yarn run build:es && yarn run build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","prepack":"yarn run clean && yarn run build"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"0.0.5"}