@fluidframework/odsp-driver-definitions 2.0.0-internal.1.2.0.93071 → 2.0.0-internal.1.2.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.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/odsp-driver-definitions";
8
- export declare const pkgVersion = "2.0.0-internal.1.2.0.93071";
8
+ export declare const pkgVersion = "2.0.0-internal.1.2.1";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,4CAA4C,CAAC;AACjE,eAAO,MAAM,UAAU,+BAA+B,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,4CAA4C,CAAC;AACjE,eAAO,MAAM,UAAU,yBAAyB,CAAC"}
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/odsp-driver-definitions";
11
- exports.pkgVersion = "2.0.0-internal.1.2.0.93071";
11
+ exports.pkgVersion = "2.0.0-internal.1.2.1";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,yCAAyC,CAAC;AACpD,QAAA,UAAU,GAAG,4BAA4B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/odsp-driver-definitions\";\nexport const pkgVersion = \"2.0.0-internal.1.2.0.93071\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,yCAAyC,CAAC;AACpD,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/odsp-driver-definitions\";\nexport const pkgVersion = \"2.0.0-internal.1.2.1\";\n"]}
@@ -66,8 +66,8 @@ export declare const tokenFromResponse: (tokenResponse: string | TokenResponse |
66
66
  export declare const isTokenFromCache: (tokenResponse: string | TokenResponse | null) => boolean | undefined;
67
67
  /**
68
68
  * Identity types supported by ODSP driver.
69
- * Consumer represents user authenticated with Microsoft Account (MSA)
70
- * Enterprise represents user authenticated with M365 tenant account
69
+ * `Consumer` represents user authenticated with Microsoft Account (MSA).
70
+ * `Enterprise` represents user authenticated with M365 tenant account.
71
71
  */
72
72
  export declare type IdentityType = "Consumer" | "Enterprise";
73
73
  export declare type InstrumentedStorageTokenFetcher = (options: TokenFetchOptions, name: string, alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"tokenFetch.js","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA4DH;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,aAAwD,EAAiB,EAAE,CACzG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;AAHtD,QAAA,iBAAiB,qBAGqC;AAEnE;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,aAA4C,EAAuB,EAAE,CAClG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC;AAHrB,QAAA,gBAAgB,oBAGK","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Represents token response\n */\nexport interface TokenResponse {\n /** Token value */\n token: string;\n\n /** Flag indicating whether token was obtained from local cache */\n fromCache?: boolean;\n}\n\n/**\n * Represents access token fetch options\n */\nexport interface TokenFetchOptions {\n /**\n * Value indicating whether fresh token has to be returned.\n * If false then it is okay to return cached unexpired token if available.\n */\n refresh: boolean;\n\n /**\n * Claims that have to be passed with token fetch request.\n * These can be used to specify additional information that must be passed to token authority.\n */\n claims?: string;\n\n /**\n * Tenant id of authority that must be handling token fetch.\n * If it is not specified then it is up to token fetching logic to determine which tenant authority\n * to use to issue access token.\n */\n tenantId?: string;\n}\n\n/**\n * Represents access token fetch options for ODSP resource\n */\nexport interface OdspResourceTokenFetchOptions extends TokenFetchOptions {\n /** Site url representing ODSP resource location */\n siteUrl: string;\n\n /** ODSP drive id where resource resides. Optional, used only when fetching token to access ODSP file */\n driveId?: string;\n\n /** ODSP item id representing resource. Optional, used only when fetching token to access ODSP file */\n itemId?: string;\n}\n\n/**\n * Method signature for callback method used to fetch access token\n * @param options - token fetch options\n * @returns If successful, TokenResponse object representing token value along with flag indicating\n * whether token came from cache. Legacy implementation may return a string for token value;\n * in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.\n */\nexport type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;\n\n/**\n * Helper method which transforms return value for TokenFetcher method to token string\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Token value\n */\nexport const tokenFromResponse = (tokenResponse: string | TokenResponse | null | undefined): string | null =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? tokenResponse\n : tokenResponse === undefined ? null : tokenResponse.token;\n\n/**\n * Helper method which returns flag indicating whether token response comes from local cache\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Value indicating whether response came from cache.\n * Undefined is returned when we could not determine the source of token.\n */\nexport const isTokenFromCache = (tokenResponse: string | TokenResponse | null): boolean | undefined =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? undefined\n : tokenResponse.fromCache;\n\n/**\n * Identity types supported by ODSP driver.\n * Consumer represents user authenticated with Microsoft Account (MSA)\n * Enterprise represents user authenticated with M365 tenant account\n */\nexport type IdentityType = \"Consumer\" | \"Enterprise\";\n\nexport type InstrumentedStorageTokenFetcher = (\n options: TokenFetchOptions,\n name: string,\n alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;\n"]}
1
+ {"version":3,"file":"tokenFetch.js","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA4DH;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,aAAwD,EAAiB,EAAE,CACzG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;AAHtD,QAAA,iBAAiB,qBAGqC;AAEnE;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,aAA4C,EAAuB,EAAE,CAClG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC;AAHrB,QAAA,gBAAgB,oBAGK","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Represents token response\n */\nexport interface TokenResponse {\n /** Token value */\n token: string;\n\n /** Flag indicating whether token was obtained from local cache */\n fromCache?: boolean;\n}\n\n/**\n * Represents access token fetch options\n */\nexport interface TokenFetchOptions {\n /**\n * Value indicating whether fresh token has to be returned.\n * If false then it is okay to return cached unexpired token if available.\n */\n refresh: boolean;\n\n /**\n * Claims that have to be passed with token fetch request.\n * These can be used to specify additional information that must be passed to token authority.\n */\n claims?: string;\n\n /**\n * Tenant id of authority that must be handling token fetch.\n * If it is not specified then it is up to token fetching logic to determine which tenant authority\n * to use to issue access token.\n */\n tenantId?: string;\n}\n\n/**\n * Represents access token fetch options for ODSP resource\n */\nexport interface OdspResourceTokenFetchOptions extends TokenFetchOptions {\n /** Site url representing ODSP resource location */\n siteUrl: string;\n\n /** ODSP drive id where resource resides. Optional, used only when fetching token to access ODSP file */\n driveId?: string;\n\n /** ODSP item id representing resource. Optional, used only when fetching token to access ODSP file */\n itemId?: string;\n}\n\n/**\n * Method signature for callback method used to fetch access token\n * @param options - token fetch options\n * @returns If successful, TokenResponse object representing token value along with flag indicating\n * whether token came from cache. Legacy implementation may return a string for token value;\n * in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.\n */\nexport type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;\n\n/**\n * Helper method which transforms return value for TokenFetcher method to token string\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Token value\n */\nexport const tokenFromResponse = (tokenResponse: string | TokenResponse | null | undefined): string | null =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? tokenResponse\n : tokenResponse === undefined ? null : tokenResponse.token;\n\n/**\n * Helper method which returns flag indicating whether token response comes from local cache\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Value indicating whether response came from cache.\n * Undefined is returned when we could not determine the source of token.\n */\nexport const isTokenFromCache = (tokenResponse: string | TokenResponse | null): boolean | undefined =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? undefined\n : tokenResponse.fromCache;\n\n/**\n * Identity types supported by ODSP driver.\n * `Consumer` represents user authenticated with Microsoft Account (MSA).\n * `Enterprise` represents user authenticated with M365 tenant account.\n */\nexport type IdentityType = \"Consumer\" | \"Enterprise\";\n\nexport type InstrumentedStorageTokenFetcher = (\n options: TokenFetchOptions,\n name: string,\n alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/odsp-driver-definitions";
8
- export declare const pkgVersion = "2.0.0-internal.1.2.0.93071";
8
+ export declare const pkgVersion = "2.0.0-internal.1.2.1";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,4CAA4C,CAAC;AACjE,eAAO,MAAM,UAAU,+BAA+B,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,4CAA4C,CAAC;AACjE,eAAO,MAAM,UAAU,yBAAyB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/odsp-driver-definitions";
8
- export const pkgVersion = "2.0.0-internal.1.2.0.93071";
8
+ export const pkgVersion = "2.0.0-internal.1.2.1";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,yCAAyC,CAAC;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,4BAA4B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/odsp-driver-definitions\";\nexport const pkgVersion = \"2.0.0-internal.1.2.0.93071\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,yCAAyC,CAAC;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/odsp-driver-definitions\";\nexport const pkgVersion = \"2.0.0-internal.1.2.1\";\n"]}
@@ -66,8 +66,8 @@ export declare const tokenFromResponse: (tokenResponse: string | TokenResponse |
66
66
  export declare const isTokenFromCache: (tokenResponse: string | TokenResponse | null) => boolean | undefined;
67
67
  /**
68
68
  * Identity types supported by ODSP driver.
69
- * Consumer represents user authenticated with Microsoft Account (MSA)
70
- * Enterprise represents user authenticated with M365 tenant account
69
+ * `Consumer` represents user authenticated with Microsoft Account (MSA).
70
+ * `Enterprise` represents user authenticated with M365 tenant account.
71
71
  */
72
72
  export declare type IdentityType = "Consumer" | "Enterprise";
73
73
  export declare type InstrumentedStorageTokenFetcher = (options: TokenFetchOptions, name: string, alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"tokenFetch.js","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4DH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,aAAwD,EAAiB,EAAE,CACzG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,aAA4C,EAAuB,EAAE,CAClG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Represents token response\n */\nexport interface TokenResponse {\n /** Token value */\n token: string;\n\n /** Flag indicating whether token was obtained from local cache */\n fromCache?: boolean;\n}\n\n/**\n * Represents access token fetch options\n */\nexport interface TokenFetchOptions {\n /**\n * Value indicating whether fresh token has to be returned.\n * If false then it is okay to return cached unexpired token if available.\n */\n refresh: boolean;\n\n /**\n * Claims that have to be passed with token fetch request.\n * These can be used to specify additional information that must be passed to token authority.\n */\n claims?: string;\n\n /**\n * Tenant id of authority that must be handling token fetch.\n * If it is not specified then it is up to token fetching logic to determine which tenant authority\n * to use to issue access token.\n */\n tenantId?: string;\n}\n\n/**\n * Represents access token fetch options for ODSP resource\n */\nexport interface OdspResourceTokenFetchOptions extends TokenFetchOptions {\n /** Site url representing ODSP resource location */\n siteUrl: string;\n\n /** ODSP drive id where resource resides. Optional, used only when fetching token to access ODSP file */\n driveId?: string;\n\n /** ODSP item id representing resource. Optional, used only when fetching token to access ODSP file */\n itemId?: string;\n}\n\n/**\n * Method signature for callback method used to fetch access token\n * @param options - token fetch options\n * @returns If successful, TokenResponse object representing token value along with flag indicating\n * whether token came from cache. Legacy implementation may return a string for token value;\n * in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.\n */\nexport type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;\n\n/**\n * Helper method which transforms return value for TokenFetcher method to token string\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Token value\n */\nexport const tokenFromResponse = (tokenResponse: string | TokenResponse | null | undefined): string | null =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? tokenResponse\n : tokenResponse === undefined ? null : tokenResponse.token;\n\n/**\n * Helper method which returns flag indicating whether token response comes from local cache\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Value indicating whether response came from cache.\n * Undefined is returned when we could not determine the source of token.\n */\nexport const isTokenFromCache = (tokenResponse: string | TokenResponse | null): boolean | undefined =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? undefined\n : tokenResponse.fromCache;\n\n/**\n * Identity types supported by ODSP driver.\n * Consumer represents user authenticated with Microsoft Account (MSA)\n * Enterprise represents user authenticated with M365 tenant account\n */\nexport type IdentityType = \"Consumer\" | \"Enterprise\";\n\nexport type InstrumentedStorageTokenFetcher = (\n options: TokenFetchOptions,\n name: string,\n alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;\n"]}
1
+ {"version":3,"file":"tokenFetch.js","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4DH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,aAAwD,EAAiB,EAAE,CACzG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,aAA4C,EAAuB,EAAE,CAClG,aAAa,KAAK,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ;IACvD,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Represents token response\n */\nexport interface TokenResponse {\n /** Token value */\n token: string;\n\n /** Flag indicating whether token was obtained from local cache */\n fromCache?: boolean;\n}\n\n/**\n * Represents access token fetch options\n */\nexport interface TokenFetchOptions {\n /**\n * Value indicating whether fresh token has to be returned.\n * If false then it is okay to return cached unexpired token if available.\n */\n refresh: boolean;\n\n /**\n * Claims that have to be passed with token fetch request.\n * These can be used to specify additional information that must be passed to token authority.\n */\n claims?: string;\n\n /**\n * Tenant id of authority that must be handling token fetch.\n * If it is not specified then it is up to token fetching logic to determine which tenant authority\n * to use to issue access token.\n */\n tenantId?: string;\n}\n\n/**\n * Represents access token fetch options for ODSP resource\n */\nexport interface OdspResourceTokenFetchOptions extends TokenFetchOptions {\n /** Site url representing ODSP resource location */\n siteUrl: string;\n\n /** ODSP drive id where resource resides. Optional, used only when fetching token to access ODSP file */\n driveId?: string;\n\n /** ODSP item id representing resource. Optional, used only when fetching token to access ODSP file */\n itemId?: string;\n}\n\n/**\n * Method signature for callback method used to fetch access token\n * @param options - token fetch options\n * @returns If successful, TokenResponse object representing token value along with flag indicating\n * whether token came from cache. Legacy implementation may return a string for token value;\n * in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.\n */\nexport type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;\n\n/**\n * Helper method which transforms return value for TokenFetcher method to token string\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Token value\n */\nexport const tokenFromResponse = (tokenResponse: string | TokenResponse | null | undefined): string | null =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? tokenResponse\n : tokenResponse === undefined ? null : tokenResponse.token;\n\n/**\n * Helper method which returns flag indicating whether token response comes from local cache\n * @param tokenResponse - return value for TokenFetcher method\n * @returns Value indicating whether response came from cache.\n * Undefined is returned when we could not determine the source of token.\n */\nexport const isTokenFromCache = (tokenResponse: string | TokenResponse | null): boolean | undefined =>\n tokenResponse === null || typeof tokenResponse === \"string\"\n ? undefined\n : tokenResponse.fromCache;\n\n/**\n * Identity types supported by ODSP driver.\n * `Consumer` represents user authenticated with Microsoft Account (MSA).\n * `Enterprise` represents user authenticated with M365 tenant account.\n */\nexport type IdentityType = \"Consumer\" | \"Enterprise\";\n\nexport type InstrumentedStorageTokenFetcher = (\n options: TokenFetchOptions,\n name: string,\n alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/odsp-driver-definitions",
3
- "version": "2.0.0-internal.1.2.0.93071",
3
+ "version": "2.0.0-internal.1.2.1",
4
4
  "description": "Socket storage implementation for SPO and ODC",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -36,12 +36,12 @@
36
36
  "typetests:gen": "fluid-type-validator -g -d ."
37
37
  },
38
38
  "dependencies": {
39
- "@fluidframework/driver-definitions": "2.0.0-internal.1.2.0.93071"
39
+ "@fluidframework/driver-definitions": "^2.0.0-internal.1.2.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@fluidframework/build-common": "^1.0.0",
43
43
  "@fluidframework/build-tools": "^0.4.4000",
44
- "@fluidframework/eslint-config-fluid": "^0.28.2000",
44
+ "@fluidframework/eslint-config-fluid": "^1.0.0",
45
45
  "@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@^1.0.0",
46
46
  "@fluidframework/protocol-definitions": "^1.0.0",
47
47
  "@microsoft/api-extractor": "^7.22.2",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/odsp-driver-definitions";
9
- export const pkgVersion = "2.0.0-internal.1.2.0.93071";
9
+ export const pkgVersion = "2.0.0-internal.1.2.1";
package/src/tokenFetch.ts CHANGED
@@ -84,8 +84,8 @@ export const isTokenFromCache = (tokenResponse: string | TokenResponse | null):
84
84
 
85
85
  /**
86
86
  * Identity types supported by ODSP driver.
87
- * Consumer represents user authenticated with Microsoft Account (MSA)
88
- * Enterprise represents user authenticated with M365 tenant account
87
+ * `Consumer` represents user authenticated with Microsoft Account (MSA).
88
+ * `Enterprise` represents user authenticated with M365 tenant account.
89
89
  */
90
90
  export type IdentityType = "Consumer" | "Enterprise";
91
91