@xylex-group/athena 2.12.0 → 2.12.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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.cjs +6 -3
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +9 -9
  5. package/dist/browser.d.ts +9 -9
  6. package/dist/browser.js +6 -3
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +6 -3
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +4 -4
  11. package/dist/cli/index.d.ts +4 -4
  12. package/dist/cli/index.js +6 -3
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{client-QUbAs7E8.d.ts → client-CMtx5P4D.d.cts} +5 -5
  15. package/dist/{client-C3x75Zgn.d.cts → client-Dre8H24u.d.ts} +5 -5
  16. package/dist/index.cjs +6 -3
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +9 -9
  19. package/dist/index.d.ts +9 -9
  20. package/dist/index.js +6 -3
  21. package/dist/index.js.map +1 -1
  22. package/dist/{model-form-Dm69I-oO.d.ts → model-form-CU0mWrF9.d.ts} +2 -2
  23. package/dist/{model-form-CD1uhWSh.d.cts → model-form-DfTi8-D1.d.cts} +2 -2
  24. package/dist/{module-CW3tWJ10.d.ts → module-DBGmbIuh.d.ts} +5 -5
  25. package/dist/{module-Cxcurfes.d.cts → module-GoijrBXV.d.cts} +5 -5
  26. package/dist/next/client.cjs +6 -3
  27. package/dist/next/client.cjs.map +1 -1
  28. package/dist/next/client.d.cts +4 -4
  29. package/dist/next/client.d.ts +4 -4
  30. package/dist/next/client.js +6 -3
  31. package/dist/next/client.js.map +1 -1
  32. package/dist/next/server.cjs +6 -3
  33. package/dist/next/server.cjs.map +1 -1
  34. package/dist/next/server.d.cts +4 -4
  35. package/dist/next/server.d.ts +4 -4
  36. package/dist/next/server.js +6 -3
  37. package/dist/next/server.js.map +1 -1
  38. package/dist/{pipeline-BAwb6Vzm.d.ts → pipeline-DrjU2vNA.d.ts} +1 -1
  39. package/dist/{pipeline-B14jVK7J.d.cts → pipeline-c7Gdm0qv.d.cts} +1 -1
  40. package/dist/react.cjs +6 -3
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +5 -5
  43. package/dist/react.d.ts +5 -5
  44. package/dist/react.js +6 -3
  45. package/dist/react.js.map +1 -1
  46. package/dist/{shared-C0wVICRv.d.cts → shared-DZSGAmXs.d.cts} +2 -2
  47. package/dist/{shared-0Kdc74lu.d.ts → shared-MMnVBBfy.d.ts} +2 -2
  48. package/dist/{types-DMOoYnPS.d.cts → types-BLizCLd1.d.cts} +2 -2
  49. package/dist/{types-CwJCPpLD.d.ts → types-BRUHGXo2.d.cts} +1 -1
  50. package/dist/{types-CwJCPpLD.d.cts → types-BRUHGXo2.d.ts} +1 -1
  51. package/dist/{types-Dr849HD6.d.cts → types-Bez4HSbI.d.cts} +1 -1
  52. package/dist/{types-BcVmPBP-.d.ts → types-DRRb0Fd0.d.ts} +2 -2
  53. package/dist/{types-Cq4-NoB4.d.ts → types-kPaHUqUa.d.ts} +1 -1
  54. package/dist/utils.cjs +5 -2
  55. package/dist/utils.cjs.map +1 -1
  56. package/dist/utils.d.cts +2 -2
  57. package/dist/utils.d.ts +2 -2
  58. package/dist/utils.js +5 -2
  59. package/dist/utils.js.map +1 -1
  60. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-CwJCPpLD.js';
2
- import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-Cq4-NoB4.js';
1
+ import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-BRUHGXo2.cjs';
2
+ import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-Bez4HSbI.cjs';
3
3
 
4
4
  type AthenaAuthMethod = 'GET' | 'POST';
5
5
  type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
@@ -3732,7 +3732,7 @@ interface AthenaRequestOptions {
3732
3732
  path?: string;
3733
3733
  method?: AthenaRequestMethod;
3734
3734
  headers?: Record<string, string>;
3735
- /** Per-request override for `apikey` / `x-api-key`. */
3735
+ /** Per-request override for `apikey` / `x-api-key` / `X-Api-Key`. */
3736
3736
  apiKey?: string | null;
3737
3737
  /** Per-request override for `X-Athena-Key` only. */
3738
3738
  athenaKey?: string | null;
@@ -3998,7 +3998,7 @@ interface AthenaCreateClientOptions {
3998
3998
  pgUri?: string | null | undefined;
3999
3999
  /** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
4000
4000
  jdbcUrl?: string | null | undefined;
4001
- /** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
4001
+ /** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key` / `X-Api-Key`. */
4002
4002
  athenaKey?: string | null | undefined;
4003
4003
  backend?: BackendConfig | BackendType;
4004
4004
  db?: AthenaCreateClientServiceUrlConfig;
@@ -4096,7 +4096,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
4096
4096
  pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4097
4097
  /** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
4098
4098
  jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4099
- /** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
4099
+ /** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key` / `X-Api-Key`. */
4100
4100
  athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4101
4101
  /** Configure Athena Auth client behavior for `client.auth.*` methods. */
4102
4102
  auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
@@ -1,5 +1,5 @@
1
- import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-CwJCPpLD.cjs';
2
- import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-Dr849HD6.cjs';
1
+ import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-BRUHGXo2.js';
2
+ import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-kPaHUqUa.js';
3
3
 
4
4
  type AthenaAuthMethod = 'GET' | 'POST';
5
5
  type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
@@ -3732,7 +3732,7 @@ interface AthenaRequestOptions {
3732
3732
  path?: string;
3733
3733
  method?: AthenaRequestMethod;
3734
3734
  headers?: Record<string, string>;
3735
- /** Per-request override for `apikey` / `x-api-key`. */
3735
+ /** Per-request override for `apikey` / `x-api-key` / `X-Api-Key`. */
3736
3736
  apiKey?: string | null;
3737
3737
  /** Per-request override for `X-Athena-Key` only. */
3738
3738
  athenaKey?: string | null;
@@ -3998,7 +3998,7 @@ interface AthenaCreateClientOptions {
3998
3998
  pgUri?: string | null | undefined;
3999
3999
  /** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
4000
4000
  jdbcUrl?: string | null | undefined;
4001
- /** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
4001
+ /** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key` / `X-Api-Key`. */
4002
4002
  athenaKey?: string | null | undefined;
4003
4003
  backend?: BackendConfig | BackendType;
4004
4004
  db?: AthenaCreateClientServiceUrlConfig;
@@ -4096,7 +4096,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
4096
4096
  pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4097
4097
  /** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
4098
4098
  jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4099
- /** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
4099
+ /** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key` / `X-Api-Key`. */
4100
4100
  athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
4101
4101
  /** Configure Athena Auth client behavior for `client.auth.*` methods. */
4102
4102
  auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
package/dist/index.cjs CHANGED
@@ -806,7 +806,7 @@ var getCookieCache = async (request2, config) => {
806
806
 
807
807
  // src/utils/athena-request-headers.ts
808
808
  var NO_CACHE_HEADER_VALUE = "no-cache";
809
- var API_KEY_HEADER_CANDIDATES = ["x-api-key", "apikey"];
809
+ var API_KEY_HEADER_CANDIDATES = ["X-Api-Key", "x-api-key", "apikey"];
810
810
  var ATHENA_KEY_HEADER_CANDIDATES = ["X-Athena-Key", "x-athena-key"];
811
811
  var SESSION_TOKEN_HEADER_CANDIDATES = ["X-Athena-Auth-Session-Token"];
812
812
  var BEARER_MIRROR_HEADER_CANDIDATES = ["X-Athena-Auth-Bearer-Token"];
@@ -912,9 +912,12 @@ function applyAthenaApiKeyHeaders(headers, apiKey, athenaKey) {
912
912
  if (!hasHeaderIgnoreCase(headers, "apikey")) {
913
913
  headers.apikey = apiKey;
914
914
  }
915
- if (!hasHeaderIgnoreCase(headers, "x-api-key")) {
915
+ if (!Object.hasOwn(headers, "x-api-key")) {
916
916
  headers["x-api-key"] = apiKey;
917
917
  }
918
+ if (!Object.hasOwn(headers, "X-Api-Key")) {
919
+ headers["X-Api-Key"] = apiKey;
920
+ }
918
921
  }
919
922
  const resolvedAthenaKey = normalizeHeaderValue(athenaKey) ?? normalizeHeaderValue(apiKey);
920
923
  if (resolvedAthenaKey && !hasHeaderIgnoreCase(headers, "X-Athena-Key")) {
@@ -1041,7 +1044,7 @@ function buildAthenaRequestHeaders(input) {
1041
1044
 
1042
1045
  // package.json
1043
1046
  var package_default = {
1044
- version: "2.12.0"
1047
+ version: "2.12.1"
1045
1048
  };
1046
1049
 
1047
1050
  // src/sdk-version.ts