@fluidframework/test-runtime-utils 2.80.0 → 2.81.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"generateToken.d.ts","sourceRoot":"","sources":["../src/generateToken.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAI3F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,SAAS,EAAE,EACnB,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,aAAa,EACpB,QAAQ,GAAE,MAAgB,EAC1B,GAAG,GAAE,MAAc,GACjB,MAAM,CA4BR;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,aAAa,CAO5C"}
1
+ {"version":3,"file":"generateToken.d.ts","sourceRoot":"","sources":["../src/generateToken.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAI3F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,SAAS,EAAE,EACnB,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,aAAa,EACpB,QAAQ,GAAE,MAAgB,EAC1B,GAAG,GAAE,MAAc,GACjB,MAAM,CA6BR;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,aAAa,CAO5C"}
@@ -48,6 +48,7 @@ const uuid_1 = require("uuid");
48
48
  * Default: `1.0`.
49
49
  */
50
50
  function generateToken(tenantId, key, scopes, documentId, user, lifetime = 60 * 60, ver = "1.0") {
51
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- using ?? could change behavior for falsy values
51
52
  let userClaim = user ? user : generateUser();
52
53
  if (userClaim.id === "" || userClaim.id === undefined) {
53
54
  userClaim = generateUser();
@@ -1 +1 @@
1
- {"version":3,"file":"generateToken.js","sourceRoot":"","sources":["../src/generateToken.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yCAA8C;AAC9C,+BAAkC;AAIlC;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAC5B,QAAgB,EAChB,GAAW,EACX,MAAmB,EACnB,UAAmB,EACnB,IAAoB,EACpB,WAAmB,EAAE,GAAG,EAAE,EAC1B,MAAc,KAAK;IAEnB,IAAI,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;IAC7C,IAAI,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,SAAS,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QACvD,SAAS,GAAG,YAAY,EAAE,CAAC;IAC5B,CAAC;IAED,0BAA0B;IAC1B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,UAAU,IAAI,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAmC;QAC9C,UAAU,EAAE,KAAK;QACjB,MAAM;QACN,QAAQ;QACR,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,GAAG,GAAG,QAAQ;QACnB,GAAG;QACH,GAAG,EAAE,IAAA,SAAI,GAAE;KACX,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IAC9B,OAAO,gBAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAC5B,IAAI,EACJ,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAC5C,MAAM,EACN,OAAO,CACP,CAAC;AACH,CAAC;AApCD,sCAoCC;AAED;;;GAGG;AACH,SAAgB,YAAY;IAC3B,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,IAAA,SAAI,GAAE;QACV,IAAI,EAAE,IAAA,SAAI,GAAE;KACZ,CAAC;IAEF,OAAO,UAAU,CAAC;AACnB,CAAC;AAPD,oCAOC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ITokenClaims, ScopeType } from \"@fluidframework/driver-definitions/internal\";\nimport { KJUR as jsrsasign } from \"jsrsasign\";\nimport { v4 as uuid } from \"uuid\";\n\nimport { IInsecureUser } from \"./insecureUsers.js\";\n\n/**\n * IMPORTANT: This function is duplicated in ./azure/packages/azure-service-utils/src/generateToken.ts. There is no need\n * for different implementations, so they should be kept in sync if changes are needed.\n *\n * The reason they are duplicated is because we don't want the core Fluid libraries depending on the Azure libraries\n * (enforced by layer-check), but both need to expose this function. The test-runtime-utils library is a test lib, which\n * layer-check (correctly) reuires only be used as a dev dependency. But in the azure case, we want the function\n * exported, so it needs to be sourced from either the package itself or a non-dev dependency.\n *\n * The previous solution to this was to import the function from azure-service-utils into test-runtime-utils, but that\n * no longer works because the azure packages are in a separate release group.\n *\n * If a token needs to be generated on the client side, you should re-use this function. If you need service-side token\n * generation, you should use the function available in the server-services-client package in order to avoid\n * interdependencies between service and client packages.\n */\n\n/**\n * Generates a {@link https://en.wikipedia.org/wiki/JSON_Web_Token | JSON Web Token} (JWT)\n * to authorize access to a Routerlicious-based Fluid service.\n *\n * @remarks Note: this function uses a browser friendly auth library\n * ({@link https://www.npmjs.com/package/jsrsasign | jsrsasign}) and may only be used in client (browser) context.\n * It is **not** Node.js-compatible.\n *\n * @param tenantId - See {@link @fluidframework/protocol-definitions#ITokenClaims.tenantId}\n * @param key - API key to authenticate user. Must be {@link https://en.wikipedia.org/wiki/UTF-8 | UTF-8}-encoded.\n * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}\n * @param documentId - See {@link @fluidframework/protocol-definitions#ITokenClaims.documentId}.\n * If not specified, the token will not be associated with a document, and an empty string will be used.\n * @param user - User with whom generated tokens will be associated.\n * If not specified, the token will not be associated with a user, and a randomly generated mock user will be\n * used instead.\n * See {@link @fluidframework/protocol-definitions#ITokenClaims.user}\n * @param lifetime - Used to generate the {@link @fluidframework/protocol-definitions#ITokenClaims.exp | expiration}.\n * Expiration = now + lifetime.\n * Expressed in seconds.\n * Default: 3600 (1 hour).\n * @param ver - See {@link @fluidframework/protocol-definitions#ITokenClaims.ver}.\n * Default: `1.0`.\n */\nexport function generateToken(\n\ttenantId: string,\n\tkey: string,\n\tscopes: ScopeType[],\n\tdocumentId?: string,\n\tuser?: IInsecureUser,\n\tlifetime: number = 60 * 60,\n\tver: string = \"1.0\",\n): string {\n\tlet userClaim = user ? user : generateUser();\n\tif (userClaim.id === \"\" || userClaim.id === undefined) {\n\t\tuserClaim = generateUser();\n\t}\n\n\t// Current time in seconds\n\tconst now = Math.round(Date.now() / 1000);\n\tconst docId = documentId ?? \"\";\n\n\tconst claims: ITokenClaims & { jti: string } = {\n\t\tdocumentId: docId,\n\t\tscopes,\n\t\ttenantId,\n\t\tuser: userClaim,\n\t\tiat: now,\n\t\texp: now + lifetime,\n\t\tver,\n\t\tjti: uuid(),\n\t};\n\n\tconst utf8Key = { utf8: key };\n\treturn jsrsasign.jws.JWS.sign(\n\t\tnull,\n\t\tJSON.stringify({ alg: \"HS256\", typ: \"JWT\" }),\n\t\tclaims,\n\t\tutf8Key,\n\t);\n}\n\n/**\n * Generates an arbitrary (\"random\") {@link IInsecureUser} by generating a\n * random UUID for its {@link @fluidframework/protocol-definitions#IUser.id | id} and {@link IInsecureUser.name | name} properties.\n */\nexport function generateUser(): IInsecureUser {\n\tconst randomUser = {\n\t\tid: uuid(),\n\t\tname: uuid(),\n\t};\n\n\treturn randomUser;\n}\n"]}
1
+ {"version":3,"file":"generateToken.js","sourceRoot":"","sources":["../src/generateToken.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yCAA8C;AAC9C,+BAAkC;AAIlC;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAC5B,QAAgB,EAChB,GAAW,EACX,MAAmB,EACnB,UAAmB,EACnB,IAAoB,EACpB,WAAmB,EAAE,GAAG,EAAE,EAC1B,MAAc,KAAK;IAEnB,2HAA2H;IAC3H,IAAI,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;IAC7C,IAAI,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,SAAS,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QACvD,SAAS,GAAG,YAAY,EAAE,CAAC;IAC5B,CAAC;IAED,0BAA0B;IAC1B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,UAAU,IAAI,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAmC;QAC9C,UAAU,EAAE,KAAK;QACjB,MAAM;QACN,QAAQ;QACR,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,GAAG,GAAG,QAAQ;QACnB,GAAG;QACH,GAAG,EAAE,IAAA,SAAI,GAAE;KACX,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IAC9B,OAAO,gBAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAC5B,IAAI,EACJ,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAC5C,MAAM,EACN,OAAO,CACP,CAAC;AACH,CAAC;AArCD,sCAqCC;AAED;;;GAGG;AACH,SAAgB,YAAY;IAC3B,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,IAAA,SAAI,GAAE;QACV,IAAI,EAAE,IAAA,SAAI,GAAE;KACZ,CAAC;IAEF,OAAO,UAAU,CAAC;AACnB,CAAC;AAPD,oCAOC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ITokenClaims, ScopeType } from \"@fluidframework/driver-definitions/internal\";\nimport { KJUR as jsrsasign } from \"jsrsasign\";\nimport { v4 as uuid } from \"uuid\";\n\nimport { IInsecureUser } from \"./insecureUsers.js\";\n\n/**\n * IMPORTANT: This function is duplicated in ./azure/packages/azure-service-utils/src/generateToken.ts. There is no need\n * for different implementations, so they should be kept in sync if changes are needed.\n *\n * The reason they are duplicated is because we don't want the core Fluid libraries depending on the Azure libraries\n * (enforced by layer-check), but both need to expose this function. The test-runtime-utils library is a test lib, which\n * layer-check (correctly) reuires only be used as a dev dependency. But in the azure case, we want the function\n * exported, so it needs to be sourced from either the package itself or a non-dev dependency.\n *\n * The previous solution to this was to import the function from azure-service-utils into test-runtime-utils, but that\n * no longer works because the azure packages are in a separate release group.\n *\n * If a token needs to be generated on the client side, you should re-use this function. If you need service-side token\n * generation, you should use the function available in the server-services-client package in order to avoid\n * interdependencies between service and client packages.\n */\n\n/**\n * Generates a {@link https://en.wikipedia.org/wiki/JSON_Web_Token | JSON Web Token} (JWT)\n * to authorize access to a Routerlicious-based Fluid service.\n *\n * @remarks Note: this function uses a browser friendly auth library\n * ({@link https://www.npmjs.com/package/jsrsasign | jsrsasign}) and may only be used in client (browser) context.\n * It is **not** Node.js-compatible.\n *\n * @param tenantId - See {@link @fluidframework/protocol-definitions#ITokenClaims.tenantId}\n * @param key - API key to authenticate user. Must be {@link https://en.wikipedia.org/wiki/UTF-8 | UTF-8}-encoded.\n * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}\n * @param documentId - See {@link @fluidframework/protocol-definitions#ITokenClaims.documentId}.\n * If not specified, the token will not be associated with a document, and an empty string will be used.\n * @param user - User with whom generated tokens will be associated.\n * If not specified, the token will not be associated with a user, and a randomly generated mock user will be\n * used instead.\n * See {@link @fluidframework/protocol-definitions#ITokenClaims.user}\n * @param lifetime - Used to generate the {@link @fluidframework/protocol-definitions#ITokenClaims.exp | expiration}.\n * Expiration = now + lifetime.\n * Expressed in seconds.\n * Default: 3600 (1 hour).\n * @param ver - See {@link @fluidframework/protocol-definitions#ITokenClaims.ver}.\n * Default: `1.0`.\n */\nexport function generateToken(\n\ttenantId: string,\n\tkey: string,\n\tscopes: ScopeType[],\n\tdocumentId?: string,\n\tuser?: IInsecureUser,\n\tlifetime: number = 60 * 60,\n\tver: string = \"1.0\",\n): string {\n\t// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- using ?? could change behavior for falsy values\n\tlet userClaim = user ? user : generateUser();\n\tif (userClaim.id === \"\" || userClaim.id === undefined) {\n\t\tuserClaim = generateUser();\n\t}\n\n\t// Current time in seconds\n\tconst now = Math.round(Date.now() / 1000);\n\tconst docId = documentId ?? \"\";\n\n\tconst claims: ITokenClaims & { jti: string } = {\n\t\tdocumentId: docId,\n\t\tscopes,\n\t\ttenantId,\n\t\tuser: userClaim,\n\t\tiat: now,\n\t\texp: now + lifetime,\n\t\tver,\n\t\tjti: uuid(),\n\t};\n\n\tconst utf8Key = { utf8: key };\n\treturn jsrsasign.jws.JWS.sign(\n\t\tnull,\n\t\tJSON.stringify({ alg: \"HS256\", typ: \"JWT\" }),\n\t\tclaims,\n\t\tutf8Key,\n\t);\n}\n\n/**\n * Generates an arbitrary (\"random\") {@link IInsecureUser} by generating a\n * random UUID for its {@link @fluidframework/protocol-definitions#IUser.id | id} and {@link IInsecureUser.name | name} properties.\n */\nexport function generateUser(): IInsecureUser {\n\tconst randomUser = {\n\t\tid: uuid(),\n\t\tname: uuid(),\n\t};\n\n\treturn randomUser;\n}\n"]}
package/eslint.config.mts CHANGED
@@ -1,8 +1,8 @@
1
- /* eslint-disable */
2
- /**
3
- * GENERATED FILE - DO NOT EDIT DIRECTLY.
4
- * To regenerate: pnpm tsx scripts/generate-flat-eslint-configs.ts --typescript
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
5
4
  */
5
+
6
6
  import type { Linter } from "eslint";
7
7
  import { minimalDeprecated } from "../../../common/build/eslint-config-fluid/flat.mts";
8
8
 
@@ -736,6 +736,7 @@ export declare const shortCodeMap: {
736
736
  "0x583": string;
737
737
  "0x584": string;
738
738
  "0x585": string;
739
+ "0x587": string;
739
740
  "0x58a": string;
740
741
  "0x58b": string;
741
742
  "0x58c": string;
@@ -1256,9 +1257,6 @@ export declare const shortCodeMap: {
1256
1257
  "0x97d": string;
1257
1258
  "0x97e": string;
1258
1259
  "0x980": string;
1259
- "0x985": string;
1260
- "0x986": string;
1261
- "0x987": string;
1262
1260
  "0x98a": string;
1263
1261
  "0x995": string;
1264
1262
  "0x996": string;
@@ -1372,6 +1370,8 @@ export declare const shortCodeMap: {
1372
1370
  "0xa33": string;
1373
1371
  "0xa34": string;
1374
1372
  "0xa35": string;
1373
+ "0xa3a": string;
1374
+ "0xa3c": string;
1375
1375
  "0xa3d": string;
1376
1376
  "0xa3e": string;
1377
1377
  "0xa3f": string;
@@ -1394,6 +1394,8 @@ export declare const shortCodeMap: {
1394
1394
  "0xa54": string;
1395
1395
  "0xa55": string;
1396
1396
  "0xa57": string;
1397
+ "0xa59": string;
1398
+ "0xa5a": string;
1397
1399
  "0xa5b": string;
1398
1400
  "0xa5c": string;
1399
1401
  "0xa5d": string;
@@ -1431,7 +1433,6 @@ export declare const shortCodeMap: {
1431
1433
  "0xa93": string;
1432
1434
  "0xa94": string;
1433
1435
  "0xa95": string;
1434
- "0xa97": string;
1435
1436
  "0xa99": string;
1436
1437
  "0xa9a": string;
1437
1438
  "0xa9b": string;
@@ -1450,6 +1451,7 @@ export declare const shortCodeMap: {
1450
1451
  "0xaaa": string;
1451
1452
  "0xaab": string;
1452
1453
  "0xaac": string;
1454
+ "0xaad": string;
1453
1455
  "0xaae": string;
1454
1456
  "0xaaf": string;
1455
1457
  "0xab1": string;
@@ -1891,5 +1893,29 @@ export declare const shortCodeMap: {
1891
1893
  "0xcad": string;
1892
1894
  "0xcae": string;
1893
1895
  "0xcaf": string;
1896
+ "0xcb0": string;
1897
+ "0xcb1": string;
1898
+ "0xcb2": string;
1899
+ "0xcb3": string;
1900
+ "0xcb4": string;
1901
+ "0xcb5": string;
1902
+ "0xcb6": string;
1903
+ "0xcb7": string;
1904
+ "0xcb8": string;
1905
+ "0xcb9": string;
1906
+ "0xcba": string;
1907
+ "0xcbb": string;
1908
+ "0xcbc": string;
1909
+ "0xcbd": string;
1910
+ "0xcbe": string;
1911
+ "0xcbf": string;
1912
+ "0xcc0": string;
1913
+ "0xcc1": string;
1914
+ "0xcc2": string;
1915
+ "0xcc3": string;
1916
+ "0xcc4": string;
1917
+ "0xcc5": string;
1918
+ "0xcc6": string;
1919
+ "0xcc7": string;
1894
1920
  };
1895
1921
  //# sourceMappingURL=assertionShortCodesMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertionShortCodesMap.d.ts","sourceRoot":"","sources":["../src/assertionShortCodesMap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAy3DxB,CAAC"}
@@ -737,6 +737,7 @@ export const shortCodeMap = {
737
737
  "0x583": "unexpected field length",
738
738
  "0x584": "response should contain epoch",
739
739
  "0x585": "prefetched snapshot should have a valid epoch",
740
+ "0x587": "Unreachable unless manually accumulating a batch",
740
741
  "0x58a": "Batch must have a reference sequence number if non-empty",
741
742
  "0x58b": "Content offset within bounds",
742
743
  "0x58c": "Content offset equal or larger than content length",
@@ -1257,9 +1258,6 @@ export const shortCodeMap = {
1257
1258
  "0x97d": "seq#",
1258
1259
  "0x97e": "received context must have a get function",
1259
1260
  "0x980": "Unknown commit",
1260
- "0x985": "No transaction to commit",
1261
- "0x986": "No transaction to abort",
1262
- "0x987": "No transaction to add a step to",
1263
1261
  "0x98a": "expected class based schema",
1264
1262
  "0x995": "missing visitor cursor while editing",
1265
1263
  "0x996": "Implicit revision should be provided",
@@ -1373,6 +1371,8 @@ export const shortCodeMap = {
1373
1371
  "0xa33": "clientId (from stateHandler) could only be undefined if we've never connected, but we have a CSN so we know that's not the case",
1374
1372
  "0xa34": "Should have found the batchId in batchIdBySeqNum map",
1375
1373
  "0xa35": "batchIdsAll and batchIdsBySeqNum should be in sync",
1374
+ "0xa3a": "Presence received signal without clientId",
1375
+ "0xa3c": "Already have entry for key in map",
1376
1376
  "0xa3d": "Partial batch should have exactly one message",
1377
1377
  "0xa3e": "Empty batch is always considered a full batch",
1378
1378
  "0xa3f": "segments cannot be undefined",
@@ -1395,6 +1395,8 @@ export const shortCodeMap = {
1395
1395
  "0xa54": "out of schema: unexpected value",
1396
1396
  "0xa55": "missing simple tree context",
1397
1397
  "0xa57": "Expected EagerMapTree required field to have a value",
1398
+ "0xa59": "Client connected without clientId",
1399
+ "0xa5a": "Mismatched SessionId",
1398
1400
  "0xa5b": "must have exactly 1 field in batch",
1399
1401
  "0xa5c": "Unexpected view implementation",
1400
1402
  "0xa5d": "Shared branches cannot be rebased onto another branch.",
@@ -1432,7 +1434,6 @@ export const shortCodeMap = {
1432
1434
  "0xa93": "Cannot encode a handle without a bind context",
1433
1435
  "0xa94": "invalid forbidden field",
1434
1436
  "0xa95": "Invalid map schema",
1435
- "0xa97": "Not in transaction",
1436
1437
  "0xa99": "must have a parent",
1437
1438
  "0xa9a": "must have a parent",
1438
1439
  "0xa9b": "attach should happen in a node",
@@ -1451,6 +1452,7 @@ export const shortCodeMap = {
1451
1452
  "0xaaa": "All local changes should be applied to the trunk before loading from summary",
1452
1453
  "0xaab": "must be segment leaf",
1453
1454
  "0xaac": "must have removedClient ids",
1455
+ "0xaad": "Local client should be 'Disconnected' before adding new connection.",
1454
1456
  "0xaae": "Maps should have the same behavior",
1455
1457
  "0xaaf": "Unexpected undefined code point",
1456
1458
  "0xab1": "Debug asserts cannot be configured since they have been optimized out.",
@@ -1891,6 +1893,30 @@ export const shortCodeMap = {
1891
1893
  "0xcac": "Unexpected branch implementation",
1892
1894
  "0xcad": "Unexpected branch implementation",
1893
1895
  "0xcae": "The outer transaction should be ending",
1894
- "0xcaf": "Unexpected commit in transaction"
1896
+ "0xcaf": "Unexpected commit in transaction",
1897
+ "0xcb0": "must initializeData first",
1898
+ "0xcb1": "Presence is only expected to be accessed with a single version.",
1899
+ "0xcb2": "Presence is only expected to be accessed with a single version.",
1900
+ "0xcb3": "Node cannot be raw.",
1901
+ "0xcb4": "Unexpected node kind",
1902
+ "0xcb5": "Node cannot be raw.",
1903
+ "0xcb6": "Expected node to be on new fork.",
1904
+ "0xcb7": "Unexpected node schema",
1905
+ "0xcb8": "No config map entry for version",
1906
+ "0xcb9": "Invalid package version",
1907
+ "0xcba": "Self is not in audience and no alternateProvider given",
1908
+ "0xcbb": "Client connection update missing",
1909
+ "0xcbc": "Unrecognized message type in critical message",
1910
+ "0xcbd": "Received signal without clientId",
1911
+ "0xcbe": "Acknowledgment message was requested while targeted signal capability is not supported",
1912
+ "0xcbf": "Received signal without clientId",
1913
+ "0xcc0": "Local client must be in audience for presence to handle added connection.",
1914
+ "0xcc1": "New commits must have a parent.",
1915
+ "0xcc2": "Missing enriched commit.",
1916
+ "0xcc3": "New commits must have a parent.",
1917
+ "0xcc4": "Missing enriched commit.",
1918
+ "0xcc5": "Unsupported modular change codec version",
1919
+ "0xcc6": "updatableError should only be called in test mode",
1920
+ "0xcc7": "expected compatibility errors for missing min collab version snapshot"
1895
1921
  };
1896
1922
  //# sourceMappingURL=assertionShortCodesMap.js.map