@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 { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-CwJCPpLD.js';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-Cq4-NoB4.js';
1
+ import { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-BRUHGXo2.js';
2
+ import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-kPaHUqUa.js';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,5 +1,5 @@
1
- import { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-CwJCPpLD.cjs';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-Dr849HD6.cjs';
1
+ import { d as AthenaGatewayErrorCode, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, u as AthenaGatewayResponse } from './types-BRUHGXo2.cjs';
2
+ import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-Bez4HSbI.cjs';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,9 +1,9 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-Cq4-NoB4.js';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-Dm69I-oO.js';
1
+ import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-kPaHUqUa.js';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-CU0mWrF9.js';
3
3
  import { ZodType } from 'zod';
4
- import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-QUbAs7E8.js';
5
- import { a as AthenaGatewayCallOptions } from './types-CwJCPpLD.js';
6
- import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-BcVmPBP-.js';
4
+ import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-Dre8H24u.js';
5
+ import { a as AthenaGatewayCallOptions } from './types-BRUHGXo2.js';
6
+ import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-DRRb0Fd0.js';
7
7
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CVcQCGyG.js';
8
8
 
9
9
  interface NormalizeAthenaGatewayBaseUrlOptions {
@@ -1,9 +1,9 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-Dr849HD6.cjs';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-CD1uhWSh.cjs';
1
+ import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, q as TenantKeyMap, T as TenantContext, n as RowOf, M as ModelAt, a as InsertOf, U as UpdateOf, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-Bez4HSbI.cjs';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-DfTi8-D1.cjs';
3
3
  import { ZodType } from 'zod';
4
- import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-C3x75Zgn.cjs';
5
- import { a as AthenaGatewayCallOptions } from './types-CwJCPpLD.cjs';
6
- import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-DMOoYnPS.cjs';
4
+ import { cy as AthenaSdkClient, bB as AthenaClientContextOptions, bI as AthenaClientSessionLike, bJ as AthenaClientSessionOptions, eJ as TableQueryBuilder, bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, I as AthenaAuthClientConfig, ak as AthenaAuthSdkClient, ac as AthenaAuthReactEmailProps, a9 as AthenaAuthReactEmailComponent, ae as AthenaAuthReactEmailRenderInput, O as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateBuilder, af as AthenaAuthReactEmailRenderOptions, ad as AthenaAuthReactEmailRenderEvent, aa as AthenaAuthReactEmailConfig, aL as AthenaChatMessageCreatedResponse, aK as AthenaChatMessage, aY as AthenaChatRoomCreatedResponse, aX as AthenaChatRoom } from './client-CMtx5P4D.cjs';
5
+ import { a as AthenaGatewayCallOptions } from './types-BRUHGXo2.cjs';
6
+ import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-BLizCLd1.cjs';
7
7
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CVcQCGyG.cjs';
8
8
 
9
9
  interface NormalizeAthenaGatewayBaseUrlOptions {
@@ -162,7 +162,7 @@ var getSessionCookie = (request2, config) => {
162
162
 
163
163
  // src/utils/athena-request-headers.ts
164
164
  var NO_CACHE_HEADER_VALUE = "no-cache";
165
- var API_KEY_HEADER_CANDIDATES = ["x-api-key", "apikey"];
165
+ var API_KEY_HEADER_CANDIDATES = ["X-Api-Key", "x-api-key", "apikey"];
166
166
  var ATHENA_KEY_HEADER_CANDIDATES = ["X-Athena-Key", "x-athena-key"];
167
167
  var SESSION_TOKEN_HEADER_CANDIDATES = ["X-Athena-Auth-Session-Token"];
168
168
  var BEARER_MIRROR_HEADER_CANDIDATES = ["X-Athena-Auth-Bearer-Token"];
@@ -268,9 +268,12 @@ function applyAthenaApiKeyHeaders(headers, apiKey, athenaKey) {
268
268
  if (!hasHeaderIgnoreCase(headers, "apikey")) {
269
269
  headers.apikey = apiKey;
270
270
  }
271
- if (!hasHeaderIgnoreCase(headers, "x-api-key")) {
271
+ if (!Object.hasOwn(headers, "x-api-key")) {
272
272
  headers["x-api-key"] = apiKey;
273
273
  }
274
+ if (!Object.hasOwn(headers, "X-Api-Key")) {
275
+ headers["X-Api-Key"] = apiKey;
276
+ }
274
277
  }
275
278
  const resolvedAthenaKey = normalizeHeaderValue(athenaKey) ?? normalizeHeaderValue(apiKey);
276
279
  if (resolvedAthenaKey && !hasHeaderIgnoreCase(headers, "X-Athena-Key")) {
@@ -397,7 +400,7 @@ function buildAthenaRequestHeaders(input) {
397
400
 
398
401
  // package.json
399
402
  var package_default = {
400
- version: "2.12.0"
403
+ version: "2.12.1"
401
404
  };
402
405
 
403
406
  // src/sdk-version.ts