@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.
Files changed (109) hide show
  1. package/content/integrations/deploy-github.json +13 -6
  2. package/dist/mcp-server/http.mjs +327 -59
  3. package/dist/ui/assets/{index-BFnSVa9N.js → index-76gJM-3o.js} +2 -2
  4. package/dist/ui/index.html +1 -1
  5. package/node_modules/hono/dist/cjs/client/client.js +4 -4
  6. package/node_modules/hono/dist/cjs/hono-base.js +7 -6
  7. package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
  8. package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
  9. package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
  10. package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
  11. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
  12. package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
  13. package/node_modules/hono/dist/client/client.js +4 -4
  14. package/node_modules/hono/dist/hono-base.js +7 -6
  15. package/node_modules/hono/dist/jsx/base.js +15 -1
  16. package/node_modules/hono/dist/jsx/components.js +26 -27
  17. package/node_modules/hono/dist/jsx/context.js +6 -6
  18. package/node_modules/hono/dist/jsx/dom/server.js +5 -1
  19. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
  20. package/node_modules/hono/dist/jsx/streaming.js +5 -6
  21. package/node_modules/hono/dist/types/context.d.ts +2 -2
  22. package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
  23. package/node_modules/hono/package.json +2 -2
  24. package/node_modules/jose/dist/types/index.d.ts +1 -2
  25. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
  26. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
  27. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
  28. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
  29. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
  30. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
  31. package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
  32. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
  33. package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
  34. package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
  35. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
  36. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
  37. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
  38. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
  39. package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
  40. package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
  41. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
  42. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
  43. package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
  44. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
  45. package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
  46. package/node_modules/jose/dist/types/key/export.d.ts +6 -6
  47. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
  48. package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
  49. package/node_modules/jose/dist/types/key/import.d.ts +19 -18
  50. package/node_modules/jose/dist/types/types.d.ts +152 -247
  51. package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
  52. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
  53. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
  54. package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
  55. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
  56. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
  57. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
  58. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
  59. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
  60. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
  61. package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
  62. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
  63. package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
  64. package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  65. package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
  66. package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
  67. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
  68. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
  69. package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
  70. package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
  71. package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
  72. package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
  73. package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
  74. package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
  75. package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
  76. package/node_modules/jose/dist/webapi/key/export.js +12 -16
  77. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
  78. package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
  79. package/node_modules/jose/dist/webapi/key/import.js +5 -9
  80. package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
  81. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
  82. package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
  83. package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
  84. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
  85. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
  86. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
  87. package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
  88. package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
  89. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  90. package/node_modules/jose/dist/webapi/lib/key.js +119 -59
  91. package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
  92. package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
  93. package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
  94. package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
  95. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
  96. package/node_modules/jose/package.json +1 -1
  97. package/package.json +1 -1
  98. package/profiles/deploy/0.10.profile.json +178 -0
  99. package/profiles/index.json +1 -0
  100. package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
  101. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
  102. package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
  103. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
  104. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
  105. package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
  106. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
  107. package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
  108. package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
  109. 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
- /** Maps a JWK key type to the value returned by {@link importJWK}. */
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
- * The value to use as {@link !SubtleCrypto.importKey} `extractable` argument. Default is false for
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: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
20
- * > {@link https://w3c.github.io/webcrypto/ Web Cryptography API}, use the OID rsaEncryption
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 the SPKI from an X.509 string certificate as a {@link !CryptoKey}.
32
+ * Imports a PEM-encoded X.509 certificate's public key as a {@link !CryptoKey}.
30
33
  *
31
- * > Note: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
32
- * > {@link https://w3c.github.io/webcrypto/ Web Cryptography API}, use the OID rsaEncryption
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: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
44
- * > {@link https://w3c.github.io/webcrypto/ Web Cryptography API}, use the OID rsaEncryption
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: The JSON Web Key parameters "key_ops" and "ext" are also used in the {@link !CryptoKey} import
56
- * > process.
58
+ * > Note: CryptoKey imports honor the JWK "key_ops" and "ext" parameters.
57
59
  *
58
- * > Note: Symmetric JSON Web Keys (i.e. `kty: "oct"`) yield back an {@link !Uint8Array} instead of a
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"