@telecrypt-io/storage 0.6.1 → 0.7.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.
- package/README.md +6 -9
- package/dist/TeleCryptIOStorage.d.ts +1 -1
- package/dist/TeleCryptIOStorage.js +39 -83
- package/dist/core/constants.d.ts +2 -4
- package/dist/core/constants.js +8 -10
- package/dist/core/http.d.ts +2 -2
- package/dist/core/http.js +24 -95
- package/dist/core/oidc.d.ts +2 -6
- package/dist/core/oidc.js +86 -333
- package/dist/core/operations.js +20 -31
- package/package.json +2 -4
package/dist/core/oidc.d.ts
CHANGED
|
@@ -34,9 +34,6 @@ export type OidcTokenEndpointMetadata = Pick<OidcClientConfig, "issuer" | "token
|
|
|
34
34
|
* identifiers, or control characters from an untrusted response to cross the
|
|
35
35
|
* SDK boundary. */
|
|
36
36
|
export declare function sanitizeDiagnosticText(value: string): string;
|
|
37
|
-
/** Copy a transport error's useful details across the SDK boundary after the
|
|
38
|
-
* same secret/control-character sanitization used for provider responses. */
|
|
39
|
-
export declare function diagnosticCause(error: unknown, seen?: WeakSet<object>): Error;
|
|
40
37
|
/**
|
|
41
38
|
* Discovers the OIDC/MAS issuer and endpoints for a homeserver via the
|
|
42
39
|
* Matrix client's stable `/auth_metadata` endpoint. Matrix 42 performs this
|
|
@@ -44,9 +41,8 @@ export declare function diagnosticCause(error: unknown, seen?: WeakSet<object>):
|
|
|
44
41
|
*/
|
|
45
42
|
export declare function discoverOidcIssuer(homeserverBaseUrl: string, signal?: AbortSignal): Promise<OidcClientConfig>;
|
|
46
43
|
/**
|
|
47
|
-
* Dynamic client registration (DCR).
|
|
48
|
-
*
|
|
49
|
-
* does; a production issuer may not).
|
|
44
|
+
* Dynamic client registration (DCR). The issuer validates the supplied
|
|
45
|
+
* metadata; the PKCE flow separately binds its callback to the current app.
|
|
50
46
|
*/
|
|
51
47
|
export declare function registerClient(authMetadata: OidcClientConfig, metadata: OidcRegistrationClientMetadata, signal?: AbortSignal): Promise<string>;
|
|
52
48
|
/**
|