;
}
export enum TokenUpdate {
diff --git a/modules/tokens/tests/validate.ts b/modules/tokens/tests/validate.ts
index cbcecbe6..0720061c 100644
--- a/modules/tokens/tests/validate.ts
+++ b/modules/tokens/tests/validate.ts
@@ -3,7 +3,8 @@ import {
assertEquals,
assertGreater,
assertRejects,
-} from "https://deno.land/std@0.217.0/assert/mod.ts";
+} from "jsr:@std/assert";
+import { omit } from "jsr:@std/collections";
test(
"validate token not found",
@@ -95,7 +96,7 @@ test(
...validateResAfterWait.token,
expireAt: null,
}, {
- ...token,
+ ...omit(token, ["token"]),
expireAt: null,
});
},
diff --git a/modules/tokens/utils/types.ts b/modules/tokens/utils/types.ts
index 49e025a4..f2785cf8 100644
--- a/modules/tokens/utils/types.ts
+++ b/modules/tokens/utils/types.ts
@@ -15,11 +15,22 @@ export interface TokenWithSecret extends Token {
export function tokenFromRow(
row: typeof Database.tokens.$inferSelect
-): TokenWithSecret {
+): Token {
return {
- ...row,
+ id: row.id,
+ type: row.type,
+ meta: row.meta,
createdAt: row.createdAt.toISOString(),
expireAt: row.expireAt?.toISOString() ?? null,
revokedAt: row.revokedAt?.toISOString() ?? null,
};
}
+
+export function tokenWithSecretFromRow(
+ row: typeof Database.tokens.$inferSelect
+): TokenWithSecret {
+ return {
+ ...tokenFromRow(row),
+ token: row.token,
+ };
+}
diff --git a/modules/twitch/README.md b/modules/twitch/README.md
deleted file mode 100644
index 09db2c9d..00000000
--- a/modules/twitch/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# Twitch
-
-[Get Early Access](https://b8v8449klvp.typeform.com/to/kpcSBpuP)
-
diff --git a/modules/twitch/module.json b/modules/twitch/module.json
deleted file mode 100644
index d4f1fcca..00000000
--- a/modules/twitch/module.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "Twitch",
- "description": "Integrate your game with drops",
- "icon": "twitch",
- "tags": [
- "platform",
- "integration"
- ],
- "authors": [
- "rivet-gg"
- ],
- "status": "coming_soon",
- "scripts": {},
- "errors": {}
-}
diff --git a/modules/uploads/module.json b/modules/uploads/module.json
index 4993795b..a8c0f041 100644
--- a/modules/uploads/module.json
+++ b/modules/uploads/module.json
@@ -77,7 +77,7 @@
},
"too_many_chunks": {
"name": "Possibility Of Too Many Chunks",
- "description": "AWS S3 has a limit on the number of parts that can be uploaded in a\nmultipart upload. This limit is 10,000 parts. If the number of chunks\nrequired to upload the maximum multipart upload size exceeds this limit,\nany operation will preemptively throw this error.\n",
+ "description": "AWS S3 has a limit on the number of parts that can be uploaded in a multipart upload. This limit is 10,000 parts. If the number of chunks required to upload the maximum multipart upload size exceeds this limit, any operation will preemptively throw this error.",
"internal": false
},
"multipart_upload_completion_fail": {
diff --git a/sandbox/client/index.html b/sandbox/client/index.html
index f6a89ded..accb30c7 100644
--- a/sandbox/client/index.html
+++ b/sandbox/client/index.html
@@ -3,10 +3,10 @@
- OpenGB E2E Test
+ Rivet Modules E2E Test
- OpenGB E2E Test
+ Rivet Modules E2E Test
diff --git a/deno.lock b/sandbox/deno.lock
similarity index 51%
rename from deno.lock
rename to sandbox/deno.lock
index d908ceea..43be2988 100644
--- a/deno.lock
+++ b/sandbox/deno.lock
@@ -2,9 +2,26 @@
"version": "3",
"packages": {
"specifiers": {
+ "jsr:@std/assert": "jsr:@std/assert@1.0.5",
+ "jsr:@std/collections": "jsr:@std/collections@1.0.6",
+ "jsr:@std/internal@^1.0.3": "jsr:@std/internal@1.0.3",
"npm:drizzle-orm@0.33.0": "npm:drizzle-orm@0.33.0_pg@8.12.0",
"npm:pg@8.12.0": "npm:pg@8.12.0"
},
+ "jsr": {
+ "@std/assert@1.0.5": {
+ "integrity": "e37da8e4033490ce613eec4ac1d78dba1faf5b02a3f6c573a28f15365b9b440f",
+ "dependencies": [
+ "jsr:@std/internal@^1.0.3"
+ ]
+ },
+ "@std/collections@1.0.6": {
+ "integrity": "60ad252af7df0594e6455f697920a37cd523ad66469fefcc9735e362826ac01d"
+ },
+ "@std/internal@1.0.3": {
+ "integrity": "208e9b94a3d5649bd880e9ca38b885ab7651ab5b5303a56ed25de4755fb7b11e"
+ }
+ },
"npm": {
"drizzle-orm@0.33.0_pg@8.12.0": {
"integrity": "sha512-SHy72R2Rdkz0LEq0PSG/IdvnT3nGiWuRk+2tXZQ90GVq/XQhpCzu/EFT3V2rox+w8MlkBQxifF8pCStNYnERfA==",
@@ -89,10 +106,6 @@
}
}
},
- "redirects": {
- "https://esm.sh/@aws-sdk/client-s3@^3.592.0": "https://esm.sh/@aws-sdk/client-s3@3.645.0",
- "https://esm.sh/@aws-sdk/s3-request-presigner@^3.592.0": "https://esm.sh/@aws-sdk/s3-request-presigner@3.645.0"
- },
"remote": {
"https://deno.land/std@0.208.0/assert/_constants.ts": "8a9da298c26750b28b326b297316cdde860bc237533b07e1337c021379e6b2a9",
"https://deno.land/std@0.208.0/assert/_diff.ts": "58e1461cc61d8eb1eacbf2a010932bf6a05b79344b02ca38095f9b805795dc48",
@@ -126,6 +139,83 @@
"https://deno.land/std@0.208.0/assert/unimplemented.ts": "d56fbeecb1f108331a380f72e3e010a1f161baa6956fd0f7cf3e095ae1a4c75a",
"https://deno.land/std@0.208.0/assert/unreachable.ts": "4600dc0baf7d9c15a7f7d234f00c23bca8f3eba8b140286aaca7aa998cf9a536",
"https://deno.land/std@0.208.0/fmt/colors.ts": "34b3f77432925eb72cf0bfb351616949746768620b8e5ead66da532f93d10ba2",
+ "https://deno.land/std@0.214.0/async/delay.ts": "8e1d18fe8b28ff95885e2bc54eccec1713f57f756053576d8228e6ca110793ad",
+ "https://deno.land/std@0.217.0/assert/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975",
+ "https://deno.land/std@0.217.0/assert/_diff.ts": "dcc63d94ca289aec80644030cf88ccbf7acaa6fbd7b0f22add93616b36593840",
+ "https://deno.land/std@0.217.0/assert/_format.ts": "0ba808961bf678437fb486b56405b6fefad2cf87b5809667c781ddee8c32aff4",
+ "https://deno.land/std@0.217.0/assert/assert.ts": "bec068b2fccdd434c138a555b19a2c2393b71dfaada02b7d568a01541e67cdc5",
+ "https://deno.land/std@0.217.0/assert/assert_almost_equals.ts": "8b96b7385cc117668b0720115eb6ee73d04c9bcb2f5d2344d674918c9113688f",
+ "https://deno.land/std@0.217.0/assert/assert_array_includes.ts": "1688d76317fd45b7e93ef9e2765f112fdf2b7c9821016cdfb380b9445374aed1",
+ "https://deno.land/std@0.217.0/assert/assert_equals.ts": "4497c56fe7d2993b0d447926702802fc0becb44e319079e8eca39b482ee01b4e",
+ "https://deno.land/std@0.217.0/assert/assert_exists.ts": "24a7bf965e634f909242cd09fbaf38bde6b791128ece08e33ab08586a7cc55c9",
+ "https://deno.land/std@0.217.0/assert/assert_false.ts": "6f382568e5128c0f855e5f7dbda8624c1ed9af4fcc33ef4a9afeeedcdce99769",
+ "https://deno.land/std@0.217.0/assert/assert_greater.ts": "4945cf5729f1a38874d7e589e0fe5cc5cd5abe5573ca2ddca9d3791aa891856c",
+ "https://deno.land/std@0.217.0/assert/assert_greater_or_equal.ts": "573ed8823283b8d94b7443eb69a849a3c369a8eb9666b2d1db50c33763a5d219",
+ "https://deno.land/std@0.217.0/assert/assert_instance_of.ts": "72dc1faff1e248692d873c89382fa1579dd7b53b56d52f37f9874a75b11ba444",
+ "https://deno.land/std@0.217.0/assert/assert_is_error.ts": "6596f2b5ba89ba2fe9b074f75e9318cda97a2381e59d476812e30077fbdb6ed2",
+ "https://deno.land/std@0.217.0/assert/assert_less.ts": "2b4b3fe7910f65f7be52212f19c3977ecb8ba5b2d6d0a296c83cde42920bb005",
+ "https://deno.land/std@0.217.0/assert/assert_less_or_equal.ts": "b93d212fe669fbde959e35b3437ac9a4468f2e6b77377e7b6ea2cfdd825d38a0",
+ "https://deno.land/std@0.217.0/assert/assert_match.ts": "ec2d9680ed3e7b9746ec57ec923a17eef6d476202f339ad91d22277d7f1d16e1",
+ "https://deno.land/std@0.217.0/assert/assert_not_equals.ts": "ac86413ab70ffb14fdfc41740ba579a983fe355ba0ce4a9ab685e6b8e7f6a250",
+ "https://deno.land/std@0.217.0/assert/assert_not_instance_of.ts": "8f720d92d83775c40b2542a8d76c60c2d4aeddaf8713c8d11df8984af2604931",
+ "https://deno.land/std@0.217.0/assert/assert_not_match.ts": "b4b7c77f146963e2b673c1ce4846473703409eb93f5ab0eb60f6e6f8aeffe39f",
+ "https://deno.land/std@0.217.0/assert/assert_not_strict_equals.ts": "da0b8ab60a45d5a9371088378e5313f624799470c3b54c76e8b8abeec40a77be",
+ "https://deno.land/std@0.217.0/assert/assert_object_match.ts": "e85e5eef62a56ce364c3afdd27978ccab979288a3e772e6855c270a7b118fa49",
+ "https://deno.land/std@0.217.0/assert/assert_rejects.ts": "e9e0c8d9c3e164c7ac962c37b3be50577c5a2010db107ed272c4c1afb1269f54",
+ "https://deno.land/std@0.217.0/assert/assert_strict_equals.ts": "0425a98f70badccb151644c902384c12771a93e65f8ff610244b8147b03a2366",
+ "https://deno.land/std@0.217.0/assert/assert_string_includes.ts": "dfb072a890167146f8e5bdd6fde887ce4657098e9f71f12716ef37f35fb6f4a7",
+ "https://deno.land/std@0.217.0/assert/assert_throws.ts": "edddd86b39606c342164b49ad88dd39a26e72a26655e07545d172f164b617fa7",
+ "https://deno.land/std@0.217.0/assert/assertion_error.ts": "9f689a101ee586c4ce92f52fa7ddd362e86434ffdf1f848e45987dc7689976b8",
+ "https://deno.land/std@0.217.0/assert/equal.ts": "fae5e8a52a11d3ac694bbe1a53e13a7969e3f60791262312e91a3e741ae519e2",
+ "https://deno.land/std@0.217.0/assert/fail.ts": "f310e51992bac8e54f5fd8e44d098638434b2edb802383690e0d7a9be1979f1c",
+ "https://deno.land/std@0.217.0/assert/mod.ts": "325df8c0683ad83a873b9691aa66b812d6275fc9fec0b2d180ac68a2c5efed3b",
+ "https://deno.land/std@0.217.0/assert/unimplemented.ts": "47ca67d1c6dc53abd0bd729b71a31e0825fc452dbcd4fde4ca06789d5644e7fd",
+ "https://deno.land/std@0.217.0/assert/unreachable.ts": "38cfecb95d8b06906022d2f9474794fca4161a994f83354fd079cac9032b5145",
+ "https://deno.land/std@0.217.0/collections/_utils.ts": "fc59674548a4dd9f5c3cc4f99f9c264aa521a52c1a4ff56b0263713e57e79206",
+ "https://deno.land/std@0.217.0/collections/aggregate_groups.ts": "c63a57a16e87537ee71df1174a111e2c4cd05f0d4be83db701c8740e81bd157c",
+ "https://deno.land/std@0.217.0/collections/associate_by.ts": "8c09c6a66769480f3181bd7b582796aed85fa71e2595c1b3d73684b9caae33b1",
+ "https://deno.land/std@0.217.0/collections/associate_with.ts": "5cbbdb53ffb0160338b86d7c3ba6e0b343c66d5104ccff4430dd766c603ea3d4",
+ "https://deno.land/std@0.217.0/collections/chunk.ts": "e6e533d6ae047f2082892831d463426f79cdd0d3f09ce298317a8469abf8467e",
+ "https://deno.land/std@0.217.0/collections/deep_merge.ts": "04f8d2a6cfa15c7580e788689bcb5e162512b9ccb18bab1241824b432a78551e",
+ "https://deno.land/std@0.217.0/collections/distinct.ts": "42d81633e4ccd5ea89118cb08f875bbfc683ac6620df2fa60f3d07270b177f4d",
+ "https://deno.land/std@0.217.0/collections/distinct_by.ts": "e895705decb0ce88b31c6679fd4e2bd08ac6d47cde7d00bf2016e3c2bac565a7",
+ "https://deno.land/std@0.217.0/collections/drop_last_while.ts": "4bfb91818d0165b172843bfd41a8b988e566b23a29e038794ca832118de150bf",
+ "https://deno.land/std@0.217.0/collections/drop_while.ts": "cf15d7f83ece2828e1fe04bbe04b646801d11be9c259a0f47c1b0ac2aa7dabdf",
+ "https://deno.land/std@0.217.0/collections/filter_entries.ts": "12202e99001695fcf541ec0191e9762fe7290ba4597df762d3a0c6e611a1aafe",
+ "https://deno.land/std@0.217.0/collections/filter_keys.ts": "bf8eaae2769e6ddd34f23ba1912f7feda2b6f374253c07a6630e9a2e384ba611",
+ "https://deno.land/std@0.217.0/collections/filter_values.ts": "ad8fae5751977598f8c794d65f0d42c9f9e47a7d774cf82b2449cd78ff4f729a",
+ "https://deno.land/std@0.217.0/collections/find_single.ts": "d2f69dd19d85c85d0f82ffff18517076795fe8a4a960b75f33b00655e070d6f7",
+ "https://deno.land/std@0.217.0/collections/first_not_nullish_of.ts": "cc5581ace9b896c83b9c002dc90a2f7b4c5dcddc319d78542287479dd348c300",
+ "https://deno.land/std@0.217.0/collections/includes_value.ts": "c5755ad1ac0b95cdc60ca794ada0e65e85ecad96729a9f6cd715516b77497564",
+ "https://deno.land/std@0.217.0/collections/intersect.ts": "9a4427ce81bd0982f4e6e65c51da99648b09f89ed0e4950fcf89fc7052336e60",
+ "https://deno.land/std@0.217.0/collections/join_to_string.ts": "6f3441958aeb382e8e35be527e5ff5e6f6346e83ac4c17fe3f9fa293eff0f18e",
+ "https://deno.land/std@0.217.0/collections/map_entries.ts": "45b8bf3f197ee24abe2e078213a4cf2f4e187ad130649fff34e13b1a03ede478",
+ "https://deno.land/std@0.217.0/collections/map_keys.ts": "2fd91963117d2376ea6dbbe473d77c20ede79b72437ed0dac36161b1af62f058",
+ "https://deno.land/std@0.217.0/collections/map_not_nullish.ts": "f519f74db550afcf6c6e2486382cb4dc6b0465e4234b6acca26910d118e7dd55",
+ "https://deno.land/std@0.217.0/collections/map_values.ts": "91d6ece4b4dc4b94abc378f51e0e309e7f7f18b2ce4c335dab673a31ebd17c75",
+ "https://deno.land/std@0.217.0/collections/max_by.ts": "a601c296d54349097d5b424bc86c84010ab22733b622b480e2ad65927063d7bb",
+ "https://deno.land/std@0.217.0/collections/max_of.ts": "a56297ed49ee42eb948d348451c9158c9f7b8e4e1fc0259829e945924893ca07",
+ "https://deno.land/std@0.217.0/collections/max_with.ts": "ea4838b17246166991ed033c52b43f04be957168c12bdb193b0f8ffdd046a6d0",
+ "https://deno.land/std@0.217.0/collections/min_by.ts": "79477d359b5882acf670179ba18ac619b63bb01f8a681d067f9fb318f3367dfe",
+ "https://deno.land/std@0.217.0/collections/min_of.ts": "a80b6881494f505fe42c160317225c99a69bf393419563063ac2dd258cffd9b2",
+ "https://deno.land/std@0.217.0/collections/min_with.ts": "94e011b9f0329be593527975c5f511b02010c4f42a50098297cb5012a418ac76",
+ "https://deno.land/std@0.217.0/collections/mod.ts": "f498e896cea2898577430cdee944a77b4a062028074464441cddebfe51670454",
+ "https://deno.land/std@0.217.0/collections/partition.ts": "22689dc4834bbcaa06f9ac204ac5502ab0f7087d7fca26bad50319c12434d099",
+ "https://deno.land/std@0.217.0/collections/partition_entries.ts": "4112ef54d8f1b24a281a432d1d55e183c260139da9153a8449021884ff2bd675",
+ "https://deno.land/std@0.217.0/collections/permutations.ts": "976f444c0fe52f764ad473d2dbcfbc5a97a3066aebed2f809e084c548dcf7f19",
+ "https://deno.land/std@0.217.0/collections/reduce_groups.ts": "59a375aec7dfacdf1f22c39e618fbbfbfb50ed36e338b1c57c704beadaeef2a7",
+ "https://deno.land/std@0.217.0/collections/running_reduce.ts": "b8b4b5bf0b3d61db8fc0993b9e7e630fba299e360c463ebb0d3ce7e12a65abeb",
+ "https://deno.land/std@0.217.0/collections/sample.ts": "bdf721d86a6eb3d27ae419aea92a2f24a3de19772b24aad831064e8a0ff7ecd1",
+ "https://deno.land/std@0.217.0/collections/sliding_windows.ts": "254402e0603a94063a90e5561c48435c2fb278b8915e801632b8deebdd731219",
+ "https://deno.land/std@0.217.0/collections/sort_by.ts": "c84b51b70e9698313c021d11531a1eb07ddda0f423b7778e3cda24663c8b0eaa",
+ "https://deno.land/std@0.217.0/collections/sum_of.ts": "a7617a77c2501a54dedf50bc4211ca6c06c9678eee00c31a63e187cc8f0b3b97",
+ "https://deno.land/std@0.217.0/collections/take_last_while.ts": "d6e05d89e17c4e59015aff3b8e2b08a9d72314c77363590c0db2775f43cbf47b",
+ "https://deno.land/std@0.217.0/collections/take_while.ts": "b281c439e5195bc1e8a7f75aa538b4a920aeae9b29a45f0df468b4f48434506d",
+ "https://deno.land/std@0.217.0/collections/union.ts": "7eaec5f85dbf115e14695a740ce43b0463f6202ee2b10408b31efa7b4eeb1968",
+ "https://deno.land/std@0.217.0/collections/unzip.ts": "7dbe500a7b283a4ad6000316f98e0f590f084be103b3ea2e0519a7e3d98a38b2",
+ "https://deno.land/std@0.217.0/collections/without_all.ts": "c85ec7c536037385d1b99f9820ccb0e05eea385422e74132c8c081f4dcb353e5",
+ "https://deno.land/std@0.217.0/collections/zip.ts": "5320938b447da8a8ed4811d6248829886c7ddd088e1653cfce6e59d0abb73692",
+ "https://deno.land/std@0.217.0/fmt/colors.ts": "d239d84620b921ea520125d778947881f62c50e78deef2657073840b8af9559a",
"https://deno.land/std@0.224.0/assert/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975",
"https://deno.land/std@0.224.0/assert/assert.ts": "09d30564c09de846855b7b071e62b5974b001bb72a4b797958fe0660e7849834",
"https://deno.land/std@0.224.0/assert/assert_almost_equals.ts": "9e416114322012c9a21fa68e187637ce2d7df25bcbdbfd957cd639e65d3cf293",
@@ -161,87 +251,8 @@
"https://deno.land/std@0.224.0/internal/diff.ts": "6234a4b493ebe65dc67a18a0eb97ef683626a1166a1906232ce186ae9f65f4e6",
"https://deno.land/std@0.224.0/internal/format.ts": "0a98ee226fd3d43450245b1844b47003419d34d210fa989900861c79820d21c2",
"https://deno.land/std@0.224.0/internal/mod.ts": "534125398c8e7426183e12dc255bb635d94e06d0f93c60a297723abe69d3b22e",
- "https://deno.land/x/b64@1.1.28/src/base64.js": "c81768c67f6f461b01d10ec24c6c4da71e2f12b3c96e32c62146c98c69685101",
- "https://esm.sh/@aws-sdk/client-s3@3.645.0": "2e295b9079e0a711af7e5db24b02d36c8a3670796893253e46292dfaff59b8f5",
- "https://esm.sh/@aws-sdk/s3-request-presigner@3.645.0": "03cf57cb951aece8cb946fb31f910b5d96fcb54aadc15973cee8fa079a9783a1",
"https://esm.sh/nanoevents@9.0.0": "29ccd1d8839f2d7dd8d28ad9ec5d18723a7dbf966bf29179063442b1e88b3a4f",
- "https://esm.sh/v135/@aws-crypto/crc32@5.2.0/denonext/crc32.mjs": "6a9bc8418c01e2539665b528ccea843f1319a3b32d759fcbb1d4468156c25100",
- "https://esm.sh/v135/@aws-crypto/crc32c@5.2.0/denonext/crc32c.mjs": "1e8985997bd2c0807d349acaf192a54147d779e5349faf6507f51aa8becb85ca",
- "https://esm.sh/v135/@aws-crypto/sha1-browser@5.2.0/denonext/sha1-browser.mjs": "d80868d5524769e0334b50124d547ce9875fb05f9924acca4c42ed877b41ce7f",
- "https://esm.sh/v135/@aws-crypto/sha256-browser@5.2.0/denonext/sha256-browser.mjs": "84e59b20eb4974a23fafdcf5fcd6513757ad195ca809b80d19a389602cff335a",
- "https://esm.sh/v135/@aws-crypto/sha256-js@5.2.0/denonext/sha256-js.mjs": "2e1014e03baf7b5eb5d773c8409af836dacbec2c0a522b789774f76d3eb2e5ad",
- "https://esm.sh/v135/@aws-crypto/supports-web-crypto@5.2.0/denonext/supports-web-crypto.mjs": "2ae3bd2aa25db0761277ad0feda7aea68cd829c89b714e8e03e07aac06345d81",
- "https://esm.sh/v135/@aws-crypto/util@5.2.0/denonext/util.mjs": "376903ba54e09eed466b45e243cef1133f20bf015c0505e70fc794896d1412d5",
- "https://esm.sh/v135/@aws-sdk/client-s3@3.645.0/denonext/client-s3.mjs": "9913ffe288034103e23f7b33a39620b53e5964a6954013df6c362e65ed2e8f5f",
- "https://esm.sh/v135/@aws-sdk/core@3.635.0/denonext/client.js": "8a39588a5d58924ebc0fbe17dcb8b9a72d16372ea5a19a8ad57087f9bff48683",
- "https://esm.sh/v135/@aws-sdk/core@3.635.0/denonext/core.mjs": "7cf3ea701618416bd56c43488b12adf12d564bfe317850baaf54cb6d123e4246",
- "https://esm.sh/v135/@aws-sdk/core@3.635.0/denonext/httpAuthSchemes.js": "0618ba15447abfa957d5ec60b3deb280c8c4e806b96e4a66110226e2fbc4eb0d",
- "https://esm.sh/v135/@aws-sdk/core@3.635.0/denonext/protocols.js": "c2ea1228ca889c7dfcdbc36a4924a14507eb6d8c40d44f0e060d8e600d94af73",
- "https://esm.sh/v135/@aws-sdk/middleware-expect-continue@3.620.0/denonext/middleware-expect-continue.mjs": "7257dc7aa9fd7a34fc44b5f8b2460cadfdd72b2e8d7a54d2027a69d1e94c902e",
- "https://esm.sh/v135/@aws-sdk/middleware-flexible-checksums@3.620.0/denonext/middleware-flexible-checksums.mjs": "13e3af9f03eae1deb232c6201bac2eabbf986c2bb6f5cfbd80c06988172e5cd6",
- "https://esm.sh/v135/@aws-sdk/middleware-host-header@3.620.0/denonext/middleware-host-header.mjs": "1e2c8804ebfb981b393e843ada215a2f2a5faf82f92ebe8906794bb0d1f09338",
- "https://esm.sh/v135/@aws-sdk/middleware-location-constraint@3.609.0/denonext/middleware-location-constraint.mjs": "ba8c934c030e5168ad09260026bae3b5f538eca8c50b528fb3b6e945967b7f36",
- "https://esm.sh/v135/@aws-sdk/middleware-logger@3.609.0/denonext/middleware-logger.mjs": "2105c33b2e62ed2567b20a71438f8f1409220f7bd0426910b0bccf5b84316b84",
- "https://esm.sh/v135/@aws-sdk/middleware-recursion-detection@3.620.0/denonext/middleware-recursion-detection.mjs": "e4b76653eb33598813018b3d924a4d7ff86243a7bd4d818ac7a194d147e7a267",
- "https://esm.sh/v135/@aws-sdk/middleware-sdk-s3@3.635.0/denonext/middleware-sdk-s3.mjs": "19d026384d6c2223ef650a5f6791da38f2cf93612a2f3f2474bca2c78c002a19",
- "https://esm.sh/v135/@aws-sdk/middleware-ssec@3.609.0/denonext/middleware-ssec.mjs": "55d27e9c5fcdd0f4bf2cf7b8f0c6b834d4b3cba6c044de9a57cc0419c58d64bf",
- "https://esm.sh/v135/@aws-sdk/middleware-user-agent@3.645.0/denonext/middleware-user-agent.mjs": "a506307c80af68bf9618d5eb8810603ec03810aa1ea9086ed57653745517f89c",
- "https://esm.sh/v135/@aws-sdk/region-config-resolver@3.614.0/denonext/region-config-resolver.mjs": "580b2f14c0d72423f166859afd2441fdf3883f7a3ab86c36d746a159029d40fd",
- "https://esm.sh/v135/@aws-sdk/s3-request-presigner@3.645.0/denonext/s3-request-presigner.mjs": "57125a72c13a69f88078aa6505ef6088efa4c773604463a08b9be275996c38ae",
- "https://esm.sh/v135/@aws-sdk/signature-v4-multi-region@3.635.0/denonext/signature-v4-multi-region.mjs": "de9c08397d25f620680522d022422ebb30cc534d44cc91592f31922ec3f9bc88",
- "https://esm.sh/v135/@aws-sdk/util-arn-parser@3.568.0/denonext/util-arn-parser.mjs": "e80995eaf790640e591f09d89d9099b022efa6d7954d6e23a1a7f5691b9b5110",
- "https://esm.sh/v135/@aws-sdk/util-endpoints@3.645.0/denonext/util-endpoints.mjs": "c72e746a164f107dbe5d43f4e175635cd0bde6f25bf41852134d4622a5e0cd58",
- "https://esm.sh/v135/@aws-sdk/util-format-url@3.609.0/denonext/util-format-url.mjs": "097aa6da9b813dfd68e0bdcd25391d7e77ae808911463309604f8022ac38ab0b",
- "https://esm.sh/v135/@aws-sdk/util-locate-window@3.568.0/denonext/util-locate-window.mjs": "44c4acffec7669f2d0e0307ebfca7cac1f85260a6f8238dcbeb5e79f769e6f00",
- "https://esm.sh/v135/@aws-sdk/util-user-agent-browser@3.609.0/denonext/util-user-agent-browser.mjs": "47329052476de081fa1bd227be1f83dd1ed360162aecae204218295bf9dc5ab5",
- "https://esm.sh/v135/@aws-sdk/xml-builder@3.609.0/denonext/xml-builder.mjs": "1822a0c319298642be9cdac624fadf1c77392d02f6b33fb9e36b27738de5fcc6",
- "https://esm.sh/v135/@smithy/chunked-blob-reader@3.0.0/denonext/chunked-blob-reader.mjs": "bfd33430ff0d1b7c3dc6e42401a2adfcdeaf2dbb9ac56ca6578782c99e2cb359",
- "https://esm.sh/v135/@smithy/config-resolver@3.0.5/denonext/config-resolver.mjs": "0ccf80d6a6427058db95154498485b6a5ae77d12c4fdae48406c9a60b41afe2b",
- "https://esm.sh/v135/@smithy/core@2.4.0/denonext/core.mjs": "3ad714d4c1fdb7dcffd91936255289197d6bf0523f13d36bb94e9ce1fd1756d5",
- "https://esm.sh/v135/@smithy/eventstream-codec@3.1.2/denonext/eventstream-codec.mjs": "8ea933c44dc8baa334f47b1c2b70a9bf2a14836f9fab720b1125664fb26c4527",
- "https://esm.sh/v135/@smithy/eventstream-serde-browser@3.0.6/denonext/eventstream-serde-browser.mjs": "c66e37b7b31c63ff96977e1627d8016b543fccdf95a4f9e388da378d61ce7d0f",
- "https://esm.sh/v135/@smithy/eventstream-serde-config-resolver@3.0.3/denonext/eventstream-serde-config-resolver.mjs": "0960eeb9f45540bca3281e9d539b75ed114891b8453c91c2c87dee294387d81d",
- "https://esm.sh/v135/@smithy/eventstream-serde-universal@3.0.5/denonext/eventstream-serde-universal.mjs": "ff38bc5052d81372e0cb60749c44354488002d3b0dba292e3626f195bc560ac8",
- "https://esm.sh/v135/@smithy/fetch-http-handler@3.2.4/denonext/fetch-http-handler.mjs": "7890ad9cef41a0b0a1a5440153108391d5e5f995a39a028637b3cef271c76075",
- "https://esm.sh/v135/@smithy/hash-blob-browser@3.1.2/denonext/hash-blob-browser.mjs": "39b8b23e12aafc146af0af6954ff957752343c9c040d09bda1a0cf4aa5de52fa",
- "https://esm.sh/v135/@smithy/invalid-dependency@3.0.3/denonext/invalid-dependency.mjs": "99f4bdd11680348113a0acd593a7f402a33d10654cf4218b5b0f967dbcdae19e",
- "https://esm.sh/v135/@smithy/is-array-buffer@3.0.0/denonext/is-array-buffer.mjs": "f8bb7f850b646a10880d4e52c60151913b7d81911b2b1cd1355c9adef56ab3e2",
- "https://esm.sh/v135/@smithy/md5-js@3.0.3/denonext/md5-js.mjs": "6f4d21d0d4e09cce9245a4e3bddb899b40da3a1c0ce9a8fd12b8f8ac09375857",
- "https://esm.sh/v135/@smithy/middleware-content-length@3.0.5/denonext/middleware-content-length.mjs": "bce550610386d8945899345a97f9aabb00976d7db378a51c463c043008e0f6df",
- "https://esm.sh/v135/@smithy/middleware-endpoint@3.1.0/denonext/middleware-endpoint.mjs": "becfe2cb560079a86b0102a3a817c3a6b6f61d7ed1b7f65b6b28ae772871e638",
- "https://esm.sh/v135/@smithy/middleware-retry@3.0.15/denonext/middleware-retry.mjs": "2d6b23bdb5ce62336afc02d045d8bb1bf0832fa8eafb022d500372c08b8ea6cb",
- "https://esm.sh/v135/@smithy/middleware-serde@3.0.3/denonext/middleware-serde.mjs": "2513b3aaa3f35cf0c33841550aa23b4f4ab4d645d60f86c7a173a11b2b0c9b7a",
- "https://esm.sh/v135/@smithy/middleware-stack@3.0.3/denonext/middleware-stack.mjs": "a84a0dda6e1d402ba69cba6747643d6d3f0f3532ac263beb0920f0f5f34ed53c",
- "https://esm.sh/v135/@smithy/property-provider@3.1.3/denonext/property-provider.mjs": "8fbecd9b01ba1486726b9f43559926332389b292f276a10708239b1bb666c819",
- "https://esm.sh/v135/@smithy/protocol-http@4.1.0/denonext/protocol-http.mjs": "8dc60c296a28eea35bb0c394d3cfdb22bb81385424e0c1099bbda21d38ff132c",
- "https://esm.sh/v135/@smithy/querystring-builder@3.0.3/denonext/querystring-builder.mjs": "26803f47afc07fdcfb0506cb95235db97250abfb6e5e31311d4d3e34356ffd45",
- "https://esm.sh/v135/@smithy/querystring-parser@3.0.3/denonext/querystring-parser.mjs": "1186ec8e490e5eb9a911945652400304ab9a2128e13734f80717e59f455d0b3b",
- "https://esm.sh/v135/@smithy/service-error-classification@3.0.3/denonext/service-error-classification.mjs": "46b409a7d492acacb936ecae2c05e8e11e4910146f6eb2f290067b3cdae8410b",
- "https://esm.sh/v135/@smithy/signature-v4@4.1.0/denonext/signature-v4.mjs": "d4adec6b85e442a4dbce5bc391d3856ef202f00f2bedc37f12d5f40fec050e69",
- "https://esm.sh/v135/@smithy/smithy-client@3.2.0/denonext/smithy-client.mjs": "2f051fcd8addfba2786c6d712cb8ce443c25b32f2ba258d1d0a46f550eb31451",
- "https://esm.sh/v135/@smithy/types@3.3.0/denonext/types.mjs": "0b82ba4c0d421c6476ac68730acdd7a0c9bd014d34c9c556b627fd1c06673eb3",
- "https://esm.sh/v135/@smithy/url-parser@3.0.3/denonext/url-parser.mjs": "69067083fcbb733d78ff55e0a1b39852dba3c893e436868fc062829fec623cd8",
- "https://esm.sh/v135/@smithy/util-base64@3.0.0/denonext/util-base64.mjs": "d6a01faaa94fdbeb4b92b02e91801dfbe241439e37a0edf7d817c59daf66c0e3",
- "https://esm.sh/v135/@smithy/util-body-length-browser@3.0.0/denonext/util-body-length-browser.mjs": "d67382004d61919b97a756a454f9b312cfb0011a9727d3d1ca69ebddf1c7843a",
- "https://esm.sh/v135/@smithy/util-config-provider@3.0.0/denonext/util-config-provider.mjs": "832c0ab1d3b06a51351ea23b33628bd36a37ef570e02e469f6ab39f71d88d7b1",
- "https://esm.sh/v135/@smithy/util-defaults-mode-browser@3.0.15/denonext/util-defaults-mode-browser.mjs": "9c1088619d3fe879e13cd81f97e26a605c1fe6d28aa0e47022441a6229965a1d",
- "https://esm.sh/v135/@smithy/util-endpoints@2.0.5/denonext/util-endpoints.mjs": "3876bd3404b820a5fab88bbe3f8ba2a8e373bb0099c9838617ec88f898dd78d0",
- "https://esm.sh/v135/@smithy/util-hex-encoding@3.0.0/denonext/util-hex-encoding.mjs": "cbdd7aabeb3903596980e2903efec3e5501f7e1259fb7b97e327a3b4e635f23c",
- "https://esm.sh/v135/@smithy/util-middleware@3.0.3/denonext/util-middleware.mjs": "a885e613b933ce02c7c73507e80ef5b81374a55a647cc4bc397bb1f19284a95b",
- "https://esm.sh/v135/@smithy/util-retry@3.0.3/denonext/util-retry.mjs": "2bc452ea87cbe471e2bee783776d528fec4afcd083367c1dafd8936e229c64f3",
- "https://esm.sh/v135/@smithy/util-stream@3.1.3/denonext/util-stream.mjs": "13b6b4e3c10e0a0586e6fca8a7e3d2d8fea840aecb413337c2d75c0fceb75f37",
- "https://esm.sh/v135/@smithy/util-uri-escape@3.0.0/denonext/util-uri-escape.mjs": "df2c80781ede692323dee6e2da3711e7ccc4f7a1cee949b09aba8d1ce15bbe03",
- "https://esm.sh/v135/@smithy/util-utf8@2.0.2/denonext/util-utf8.mjs": "d1869dca8a21b3e6c297cb55f90e1b78bf8f365afd1f173c16d719f28245604b",
- "https://esm.sh/v135/@smithy/util-utf8@2.3.0/denonext/util-utf8.mjs": "10a9f2014b2b5b2e387e04c1c7974e8219332fa30a6904923f54a46c974c6c84",
- "https://esm.sh/v135/@smithy/util-utf8@3.0.0/denonext/util-utf8.mjs": "abe704ed8c4266b29906116ef723b98e8729078537b252c9a213ad373559488a",
- "https://esm.sh/v135/@smithy/util-waiter@3.1.2/denonext/util-waiter.mjs": "8bff673e4c8b620b34f59cbfa0e6c92de95b3c00190861b5b2cb113923bf8288",
- "https://esm.sh/v135/bowser@2.11.0/denonext/bowser.mjs": "3fd0c5d68c4bb8b3243c1b0ac76442fa90f5e20ee12773ce2b2f476c2e7a3615",
- "https://esm.sh/v135/fast-xml-parser@4.4.1/denonext/fast-xml-parser.mjs": "506f0ae0ce83e4664b4e2a3bf3cde30b3d44c019012938ab12b76fa38353e864",
"https://esm.sh/v135/nanoevents@9.0.0/denonext/nanoevents.mjs": "666c9d584019a64758bd3071e561051747454da64299ac06b79ede7210fe5e85",
- "https://esm.sh/v135/strnum@1.0.5/denonext/strnum.mjs": "1ffef4adec2f74139e36a2bfed8381880541396fe1c315779fb22e081b17468b",
- "https://esm.sh/v135/tslib@2.6.2/denonext/tslib.mjs": "29782bcd3139f77ec063dc5a9385c0fff4a8d0a23b6765c73d9edeb169a04bf1",
- "https://esm.sh/v135/tslib@2.6.3/denonext/tslib.mjs": "0834c22e9fbf95f6a5659cc2017543f7d41aa880f24ab84cb11d24e6bee99303",
- "https://esm.sh/v135/uuid@9.0.1/denonext/uuid.mjs": "7d7d3aa57fa136e2540886654c416d9da10d8cfebe408bae47fd47070f0bfb2a",
"https://esm.sh/v135/zod-validation-error@3.3.0/denonext/zod-validation-error.mjs": "4efabd593e1430c31a044f79d299a62120946a3e701159b29922b50f3223c186",
"https://esm.sh/v135/zod@3.23.8/denonext/zod.mjs": "b3707b03ddc01aab11b740436ab23c0fcc8d15fed072be20085c1fd611016b61",
"https://esm.sh/zod-validation-error@3.3.0": "d8825ca67952b6adff6b35026dc465f9638d4923dbd54fe9e8e81fbfddca9630",
diff --git a/sandbox/game_server/src/index.ts b/sandbox/game_server/src/index.ts
index 02e405f1..1d79dcce 100644
--- a/sandbox/game_server/src/index.ts
+++ b/sandbox/game_server/src/index.ts
@@ -59,7 +59,7 @@ let gameConfig = {
interface GameState {
lobbyConfig: any;
lobbyTags: any;
- scores: { [id: number]: number };
+ scores: Record;
}
const gameState: GameState = {
diff --git a/sandbox/backend.dev.json b/sandbox/rivet.dev.json
similarity index 90%
rename from sandbox/backend.dev.json
rename to sandbox/rivet.dev.json
index 7506b238..3755ddf8 100644
--- a/sandbox/backend.dev.json
+++ b/sandbox/rivet.dev.json
@@ -1,5 +1,5 @@
{
- "extends": "./backend.json",
+ "extends": "./rivet.json",
"modules": {
"lobbies": {
"registry": "local",
diff --git a/sandbox/backend.json b/sandbox/rivet.json
similarity index 100%
rename from sandbox/backend.json
rename to sandbox/rivet.json
diff --git a/sandbox/scripts/fetch_state.ts b/sandbox/scripts/fetch_state.ts
index 7872b789..b251a471 100755
--- a/sandbox/scripts/fetch_state.ts
+++ b/sandbox/scripts/fetch_state.ts
@@ -1,8 +1,8 @@
#!/usr/bin/env -S deno run -A
-const origin = Deno.env.get("OPENGB_ORIGIN");
+const endpoint = Deno.env.get("BACKEND_ENDPOINT");
-const res = await fetch(`${origin}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
+const res = await fetch(`${endpoint}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
method: "POST",
headers: {
"Content-Type": "application/json",
diff --git a/sandbox/scripts/gen_sdk.ts b/sandbox/scripts/gen_sdk.ts
deleted file mode 100755
index d9f9df57..00000000
--- a/sandbox/scripts/gen_sdk.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/env -S deno run -A
-
-// import * as esbuild from "https://deno.land/x/esbuild@v0.20.2/mod.js";
-// import { denoPlugins } from "jsr:@luca/esbuild-deno-loader@^0.10.3";
-// import { generate } from "https://deno.land/x/dts_generate@v1.4.0/mod.ts";
-// import { build } from 'https://esm.sh/tsup'
-import "npm:typescript";
-import { build } from "npm:tsup";
-import { resolve } from "https://deno.land/std@0.208.0/path/resolve.ts";
-
-const entryPath = resolve(Deno.cwd(), "./sdk/src/index.ts");
-const outDir = resolve(Deno.cwd(), "./client/dist/");
-
-const genOutput = await new Deno.Command(
- "opengb",
- {
- args: ["sdk", "generate", "typescript"],
- stdout: "inherit",
- stderr: "inherit",
- },
-).output();
-if (!genOutput.success) throw new Error("gen failed");
-
-Deno.chdir(resolve(Deno.cwd(), "sdk"));
-
-await new Deno.Command("npm", { args: ["install"], stdout: "inherit", stderr: "inherit" }).output();
-
-await new Deno.Command("npm", { args: ["run", "build"], stdout: "inherit", stderr: "inherit" }).output();
-
-await build({
- entry: { sdk: entryPath },
- outDir,
- sourcemap: true,
- dts: true,
- target: "es2022",
- format: "esm",
-});
-
-// TODO: Do we need to polyfill anything to target es6?
-// const result = await esbuild.build({
-// entryPoints: ['./sdk/src/index.ts'],
-// outfile,
-// platform: "browser",
-// format: "esm",
-// target: 'es2022',
-// sourcemap: true,
-// plugins: denoPlugins(),
-// bundle: true,
-// });
-//
-// console.log('Build complete:', result);
-//
-// // Generate .d.ts file
-// // const dtsResult = await generate({
-// // entries: ['./src/main.ts'],
-// // output: outfile.replace('.js', '.d.ts'),
-// // });
-//
-// const output = await new Deno.Command(
-// "tsc",
-// {
-// args: ["--project", "sdk/tsconfig.json", "--outFile", dtsOutFile],
-// // args: ["--emitDeclarationOnly", "--declaration", "--declarationMap", "--project", "sdk/tsconfig.json", "--outFile", dtsOutFile],
-// stdout: "inherit",
-// stderr: "inherit",
-// }
-// ).output();
-// if (!output.success) throw new Error("tsc failed");
-//
-// console.log('Declaration file generated');
-//
-// esbuild.stop();
\ No newline at end of file
diff --git a/sandbox/scripts/reset_state.ts b/sandbox/scripts/reset_state.ts
index 52736b87..11700b5f 100755
--- a/sandbox/scripts/reset_state.ts
+++ b/sandbox/scripts/reset_state.ts
@@ -1,8 +1,8 @@
#!/usr/bin/env -S deno run -A
-const origin = Deno.env.get("OPENGB_ORIGIN");
+const endpoint = Deno.env.get("BACKEND_ENDPOINT");
-const res = await fetch(`${origin}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
+const res = await fetch(`${endpoint}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
method: "POST",
headers: {
"Content-Type": "application/json",
diff --git a/sandbox/scripts/run_local_backend.sh b/sandbox/scripts/run_local_backend.sh
index 00b20f4d..a34884ab 100755
--- a/sandbox/scripts/run_local_backend.sh
+++ b/sandbox/scripts/run_local_backend.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-opengb dev --project backend.dev.json
+rivet dev --project rivet.dev.json
diff --git a/tests/basic/deno.lock b/tests/basic/deno.lock
index 5af0b04c..ca997679 100644
--- a/tests/basic/deno.lock
+++ b/tests/basic/deno.lock
@@ -4,11 +4,15 @@
"specifiers": {
"jsr:@blackberry/bcrypt@0.15.3": "jsr:@blackberry/bcrypt@0.15.3",
"jsr:@denosaurs/lz4@0.1.4": "jsr:@denosaurs/lz4@0.1.4",
+ "jsr:@std/assert": "jsr:@std/assert@1.0.5",
+ "jsr:@std/collections": "jsr:@std/collections@1.0.6",
"jsr:@std/encoding@0.221": "jsr:@std/encoding@0.221.0",
+ "jsr:@std/internal@^1.0.3": "jsr:@std/internal@1.0.3",
"npm:@prisma/adapter-pg@^5.12.0": "npm:@prisma/adapter-pg@5.18.0_pg@8.12.0",
"npm:@types/node": "npm:@types/node@18.16.19",
"npm:drizzle-orm@0.33.0": "npm:drizzle-orm@0.33.0_pg@8.12.0",
"npm:pg@8.11.3": "npm:pg@8.11.3",
+ "npm:pg@8.12.0": "npm:pg@8.12.0",
"npm:pg@^8.11.3": "npm:pg@8.12.0",
"npm:tsup": "npm:tsup@8.2.4_typescript@5.5.4_esbuild@0.23.1",
"npm:typescript": "npm:typescript@5.5.4",
@@ -26,8 +30,20 @@
"@denosaurs/lz4@0.1.4": {
"integrity": "ad5d556c02eb01fe1e0f2e953d7be066a14870afe149b1aed1ced019460f6aa1"
},
+ "@std/assert@1.0.5": {
+ "integrity": "e37da8e4033490ce613eec4ac1d78dba1faf5b02a3f6c573a28f15365b9b440f",
+ "dependencies": [
+ "jsr:@std/internal@^1.0.3"
+ ]
+ },
+ "@std/collections@1.0.6": {
+ "integrity": "60ad252af7df0594e6455f697920a37cd523ad66469fefcc9735e362826ac01d"
+ },
"@std/encoding@0.221.0": {
"integrity": "d1dd76ef0dc5d14088411e6dc1dede53bf8308c95d1537df1214c97137208e45"
+ },
+ "@std/internal@1.0.3": {
+ "integrity": "208e9b94a3d5649bd880e9ca38b885ab7651ab5b5303a56ed25de4755fb7b11e"
}
},
"npm": {
@@ -1166,11 +1182,42 @@
"https://deno.land/std@0.222.1/encoding/base64url.ts": "ef40e0f18315ab539f17cebcc32839779e018d86dea9df39d94d302f342a1713",
"https://deno.land/std@0.222.1/encoding/hex.ts": "6270f25e5d85f99fcf315278670ba012b04b7c94b67715b53f30d03249687c07",
"https://deno.land/std@0.222.1/fmt/colors.ts": "d239d84620b921ea520125d778947881f62c50e78deef2657073840b8af9559a",
+ "https://deno.land/std@0.224.0/assert/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975",
"https://deno.land/std@0.224.0/assert/assert.ts": "09d30564c09de846855b7b071e62b5974b001bb72a4b797958fe0660e7849834",
+ "https://deno.land/std@0.224.0/assert/assert_almost_equals.ts": "9e416114322012c9a21fa68e187637ce2d7df25bcbdbfd957cd639e65d3cf293",
+ "https://deno.land/std@0.224.0/assert/assert_array_includes.ts": "14c5094471bc8e4a7895fc6aa5a184300d8a1879606574cb1cd715ef36a4a3c7",
+ "https://deno.land/std@0.224.0/assert/assert_equals.ts": "3bbca947d85b9d374a108687b1a8ba3785a7850436b5a8930d81f34a32cb8c74",
+ "https://deno.land/std@0.224.0/assert/assert_exists.ts": "43420cf7f956748ae6ed1230646567b3593cb7a36c5a5327269279c870c5ddfd",
+ "https://deno.land/std@0.224.0/assert/assert_false.ts": "3e9be8e33275db00d952e9acb0cd29481a44fa0a4af6d37239ff58d79e8edeff",
+ "https://deno.land/std@0.224.0/assert/assert_greater.ts": "5e57b201fd51b64ced36c828e3dfd773412c1a6120c1a5a99066c9b261974e46",
+ "https://deno.land/std@0.224.0/assert/assert_greater_or_equal.ts": "9870030f997a08361b6f63400273c2fb1856f5db86c0c3852aab2a002e425c5b",
+ "https://deno.land/std@0.224.0/assert/assert_instance_of.ts": "e22343c1fdcacfaea8f37784ad782683ec1cf599ae9b1b618954e9c22f376f2c",
+ "https://deno.land/std@0.224.0/assert/assert_is_error.ts": "f856b3bc978a7aa6a601f3fec6603491ab6255118afa6baa84b04426dd3cc491",
+ "https://deno.land/std@0.224.0/assert/assert_less.ts": "60b61e13a1982865a72726a5fa86c24fad7eb27c3c08b13883fb68882b307f68",
+ "https://deno.land/std@0.224.0/assert/assert_less_or_equal.ts": "d2c84e17faba4afe085e6c9123a63395accf4f9e00150db899c46e67420e0ec3",
+ "https://deno.land/std@0.224.0/assert/assert_match.ts": "ace1710dd3b2811c391946954234b5da910c5665aed817943d086d4d4871a8b7",
+ "https://deno.land/std@0.224.0/assert/assert_not_equals.ts": "78d45dd46133d76ce624b2c6c09392f6110f0df9b73f911d20208a68dee2ef29",
+ "https://deno.land/std@0.224.0/assert/assert_not_instance_of.ts": "3434a669b4d20cdcc5359779301a0588f941ffdc2ad68803c31eabdb4890cf7a",
+ "https://deno.land/std@0.224.0/assert/assert_not_match.ts": "df30417240aa2d35b1ea44df7e541991348a063d9ee823430e0b58079a72242a",
+ "https://deno.land/std@0.224.0/assert/assert_not_strict_equals.ts": "37f73880bd672709373d6dc2c5f148691119bed161f3020fff3548a0496f71b8",
+ "https://deno.land/std@0.224.0/assert/assert_object_match.ts": "411450fd194fdaabc0089ae68f916b545a49d7b7e6d0026e84a54c9e7eed2693",
+ "https://deno.land/std@0.224.0/assert/assert_rejects.ts": "4bee1d6d565a5b623146a14668da8f9eb1f026a4f338bbf92b37e43e0aa53c31",
+ "https://deno.land/std@0.224.0/assert/assert_strict_equals.ts": "b4f45f0fd2e54d9029171876bd0b42dd9ed0efd8f853ab92a3f50127acfa54f5",
+ "https://deno.land/std@0.224.0/assert/assert_string_includes.ts": "496b9ecad84deab72c8718735373feb6cdaa071eb91a98206f6f3cb4285e71b8",
+ "https://deno.land/std@0.224.0/assert/assert_throws.ts": "c6508b2879d465898dab2798009299867e67c570d7d34c90a2d235e4553906eb",
"https://deno.land/std@0.224.0/assert/assertion_error.ts": "ba8752bd27ebc51f723702fac2f54d3e94447598f54264a6653d6413738a8917",
+ "https://deno.land/std@0.224.0/assert/equal.ts": "bddf07bb5fc718e10bb72d5dc2c36c1ce5a8bdd3b647069b6319e07af181ac47",
+ "https://deno.land/std@0.224.0/assert/fail.ts": "0eba674ffb47dff083f02ced76d5130460bff1a9a68c6514ebe0cdea4abadb68",
+ "https://deno.land/std@0.224.0/assert/mod.ts": "48b8cb8a619ea0b7958ad7ee9376500fe902284bb36f0e32c598c3dc34cbd6f3",
+ "https://deno.land/std@0.224.0/assert/unimplemented.ts": "8c55a5793e9147b4f1ef68cd66496b7d5ba7a9e7ca30c6da070c1a58da723d73",
+ "https://deno.land/std@0.224.0/assert/unreachable.ts": "5ae3dbf63ef988615b93eb08d395dda771c96546565f9e521ed86f6510c29e19",
"https://deno.land/std@0.224.0/collections/_utils.ts": "b2ec8ada31b5a72ebb1d99774b849b4c09fe4b3a38d07794bd010bd218a16e0b",
"https://deno.land/std@0.224.0/collections/deep_merge.ts": "04f8d2a6cfa15c7580e788689bcb5e162512b9ccb18bab1241824b432a78551e",
"https://deno.land/std@0.224.0/crypto/timing_safe_equal.ts": "bc3622b5aec05e2d8b735bf60633425c34333c06cfb6c4a9f102e4a0f3931ced",
+ "https://deno.land/std@0.224.0/fmt/colors.ts": "508563c0659dd7198ba4bbf87e97f654af3c34eb56ba790260f252ad8012e1c5",
+ "https://deno.land/std@0.224.0/internal/diff.ts": "6234a4b493ebe65dc67a18a0eb97ef683626a1166a1906232ce186ae9f65f4e6",
+ "https://deno.land/std@0.224.0/internal/format.ts": "0a98ee226fd3d43450245b1844b47003419d34d210fa989900861c79820d21c2",
+ "https://deno.land/std@0.224.0/internal/mod.ts": "534125398c8e7426183e12dc255bb635d94e06d0f93c60a297723abe69d3b22e",
"https://deno.land/x/argontwo@0.2.0/mod.ts": "076395861fc86d5b475ed49ecf10a35df47db55a506469da054a92969d7cdf66",
"https://deno.land/x/argontwo@0.2.0/wasm/mod.ts": "588486da70ccd43760b71fb3d236ff37d1790d3419cbb764c35fc05a550a2881",
"https://deno.land/x/argontwo@0.2.0/wasm/wasm.js": "c5fdbe828b5984d9a434247ca2cf6cd44e8f7560490813cdd92be785ec57d3fa",
@@ -2501,6 +2548,10 @@
"https://esm.sh/v135/strnum@1.0.5/denonext/strnum.mjs": "1ffef4adec2f74139e36a2bfed8381880541396fe1c315779fb22e081b17468b",
"https://esm.sh/v135/tslib@2.6.2/denonext/tslib.mjs": "29782bcd3139f77ec063dc5a9385c0fff4a8d0a23b6765c73d9edeb169a04bf1",
"https://esm.sh/v135/tslib@2.6.3/denonext/tslib.mjs": "0834c22e9fbf95f6a5659cc2017543f7d41aa880f24ab84cb11d24e6bee99303",
- "https://esm.sh/v135/uuid@9.0.1/denonext/uuid.mjs": "7d7d3aa57fa136e2540886654c416d9da10d8cfebe408bae47fd47070f0bfb2a"
+ "https://esm.sh/v135/uuid@9.0.1/denonext/uuid.mjs": "7d7d3aa57fa136e2540886654c416d9da10d8cfebe408bae47fd47070f0bfb2a",
+ "https://esm.sh/v135/zod-validation-error@3.3.0/denonext/zod-validation-error.mjs": "4efabd593e1430c31a044f79d299a62120946a3e701159b29922b50f3223c186",
+ "https://esm.sh/v135/zod@3.23.8/denonext/zod.mjs": "b3707b03ddc01aab11b740436ab23c0fcc8d15fed072be20085c1fd611016b61",
+ "https://esm.sh/zod-validation-error@3.3.0": "d8825ca67952b6adff6b35026dc465f9638d4923dbd54fe9e8e81fbfddca9630",
+ "https://esm.sh/zod@3.23.8": "728819c1f651800179a5a80daf24b3e54b2ddea87828bd10e63875a604bcb94e"
}
}
diff --git a/tests/basic/backend.json b/tests/basic/rivet.json
similarity index 86%
rename from tests/basic/backend.json
rename to tests/basic/rivet.json
index 8f40519f..6e24b376 100644
--- a/tests/basic/backend.json
+++ b/tests/basic/rivet.json
@@ -7,9 +7,6 @@
}
},
"modules": {
- "achievements": {
- "registry": "local"
- },
"captcha": {
"registry": "local"
},
@@ -73,9 +70,6 @@
}
}
},
- "matchmaker": {
- "registry": "local"
- },
"parties": {
"registry": "local"
},
@@ -109,18 +103,6 @@
"discord_activity": {
"registry": "local"
},
- "eos": {
- "registry": "local"
- },
- "steam": {
- "registry": "local"
- },
- "idem": {
- "registry": "local"
- },
- "twitch": {
- "registry": "local"
- },
"auth_oauth": {
"registry": "local"
}
diff --git a/tests/basic/rivet.yaml b/tests/basic/rivet.yaml
deleted file mode 100644
index 9038aafd..00000000
--- a/tests/basic/rivet.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-# yaml-language-server: $schema=https://rivet.gg/rivet.schema.json
-
-# ┌───────────────────────────────────────────────────────┐
-# │ │
-# │ This configuration file is empty. │
-# │ │
-# │ Get started: https://rivet.gg/learn/custom │
-# │ Reference: https://rivet.gg/docs/general/config │
-# │ │
-# └───────────────────────────────────────────────────────┘
-
-engine:
- html5: {}
-
-matchmaker:
- max_players: 128
- tier: basic-1d8
- game_modes:
- default: {}
- docker:
- dockerfile: server.Dockerfile
- ports:
- default:
- port: 8080
- protocol: https
-
diff --git a/tests/basic/server/src/index.ts b/tests/basic/server/src/index.ts
index fc61ddb7..1d24acd6 100644
--- a/tests/basic/server/src/index.ts
+++ b/tests/basic/server/src/index.ts
@@ -59,7 +59,7 @@ let gameConfig = {
interface GameState {
lobbyConfig: any;
lobbyTags: any;
- scores: { [id: number]: number };
+ scores: Record;
}
const gameState: GameState = {