@suveren/gateway 0.8.0 → 0.8.2
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/content/integrations/deploy-github.json +13 -6
- package/dist/mcp-server/http.mjs +327 -59
- package/dist/ui/assets/{index-BFnSVa9N.js → index-76gJM-3o.js} +2 -2
- package/dist/ui/index.html +1 -1
- package/node_modules/hono/dist/cjs/client/client.js +4 -4
- package/node_modules/hono/dist/cjs/hono-base.js +7 -6
- package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
- package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
- package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
- package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
- package/node_modules/hono/dist/client/client.js +4 -4
- package/node_modules/hono/dist/hono-base.js +7 -6
- package/node_modules/hono/dist/jsx/base.js +15 -1
- package/node_modules/hono/dist/jsx/components.js +26 -27
- package/node_modules/hono/dist/jsx/context.js +6 -6
- package/node_modules/hono/dist/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
- package/node_modules/hono/dist/jsx/streaming.js +5 -6
- package/node_modules/hono/dist/types/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
- package/node_modules/hono/package.json +2 -2
- package/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
- package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
- package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
- package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
- package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
- package/node_modules/jose/dist/types/key/export.d.ts +6 -6
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
- package/node_modules/jose/dist/types/key/import.d.ts +19 -18
- package/node_modules/jose/dist/types/types.d.ts +152 -247
- package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
- package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
- package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
- package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
- package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
- package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
- package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
- package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
- package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
- package/node_modules/jose/dist/webapi/key/export.js +12 -16
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
- package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
- package/node_modules/jose/dist/webapi/key/import.js +5 -9
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
- package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
- package/node_modules/jose/dist/webapi/lib/key.js +119 -59
- package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
- package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
- package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/package.json +1 -1
- package/profiles/deploy/0.10.profile.json +178 -0
- package/profiles/index.json +1 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
- package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
- package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
- package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
- package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Maps a JWK key type to the value returned by {@link importJWK}. An "oct" JWK returns
|
|
4
|
+
* {@link !Uint8Array}; other supported key types return {@link t.CryptoKey CryptoKey}. A JWK
|
|
5
|
+
* whose "kty" is not statically known resolves to their union.
|
|
6
|
+
*/
|
|
3
7
|
export type ImportedJWK<JWKType extends t.JWK> = JWKType extends {
|
|
4
8
|
kty: 'oct';
|
|
5
9
|
} ? Uint8Array : JWKType extends {
|
|
@@ -8,17 +12,16 @@ export type ImportedJWK<JWKType extends t.JWK> = JWKType extends {
|
|
|
8
12
|
/** Key import options. */
|
|
9
13
|
export interface KeyImportOptions {
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
12
|
-
* private keys, true otherwise.
|
|
15
|
+
* Whether the imported CryptoKey is extractable. Overrides JWK "ext" when set. Without either,
|
|
16
|
+
* defaults to false for private keys, true otherwise.
|
|
13
17
|
*/
|
|
14
18
|
extractable?: boolean;
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
17
21
|
* Imports a PEM-encoded SPKI string as a {@link !CryptoKey}.
|
|
18
22
|
*
|
|
19
|
-
* > Note:
|
|
20
|
-
* >
|
|
21
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
23
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
24
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
22
25
|
*
|
|
23
26
|
* @param spki PEM-encoded SPKI string
|
|
24
27
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -26,11 +29,10 @@ export interface KeyImportOptions {
|
|
|
26
29
|
*/
|
|
27
30
|
export declare function importSPKI(spki: string, alg: string, options?: KeyImportOptions): Promise<t.CryptoKey>;
|
|
28
31
|
/**
|
|
29
|
-
* Imports
|
|
32
|
+
* Imports a PEM-encoded X.509 certificate's public key as a {@link !CryptoKey}.
|
|
30
33
|
*
|
|
31
|
-
* > Note:
|
|
32
|
-
* >
|
|
33
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
34
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
35
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
34
36
|
*
|
|
35
37
|
* @param x509 X.509 certificate string
|
|
36
38
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -40,9 +42,8 @@ export declare function importX509(x509: string, alg: string, options?: KeyImpor
|
|
|
40
42
|
/**
|
|
41
43
|
* Imports a PEM-encoded PKCS#8 string as a {@link !CryptoKey}.
|
|
42
44
|
*
|
|
43
|
-
* > Note:
|
|
44
|
-
* >
|
|
45
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
45
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
46
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
46
47
|
*
|
|
47
48
|
* @param pkcs8 PEM-encoded PKCS#8 string
|
|
48
49
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -50,13 +51,13 @@ export declare function importX509(x509: string, alg: string, options?: KeyImpor
|
|
|
50
51
|
*/
|
|
51
52
|
export declare function importPKCS8(pkcs8: string, alg: string, options?: KeyImportOptions): Promise<t.CryptoKey>;
|
|
52
53
|
/**
|
|
53
|
-
* Imports a JWK as a {@link !CryptoKey} or {@link !Uint8Array}.
|
|
54
|
+
* Imports a JWK as a {@link !CryptoKey} or {@link !Uint8Array}. Asymmetric imports require either the
|
|
55
|
+
* "alg" argument or JWK "alg" parameter. For AKP keys, the JWK "alg" parameter is required and must
|
|
56
|
+
* match the argument when provided.
|
|
54
57
|
*
|
|
55
|
-
* > Note:
|
|
56
|
-
* > process.
|
|
58
|
+
* > Note: CryptoKey imports honor the JWK "key_ops" and "ext" parameters.
|
|
57
59
|
*
|
|
58
|
-
* > Note: Symmetric
|
|
59
|
-
* > {@link !CryptoKey}.
|
|
60
|
+
* > Note: Symmetric JWKs (`kty: "oct"`) return {@link !Uint8Array} instead of CryptoKey.
|
|
60
61
|
*
|
|
61
62
|
* @param jwk JSON Web Key.
|
|
62
63
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. Default is the "alg"
|