@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.
- package/README.md +1 -1
- package/dist/browser.cjs +6 -3
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -9
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +6 -3
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +6 -3
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -4
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +6 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-QUbAs7E8.d.ts → client-CMtx5P4D.d.cts} +5 -5
- package/dist/{client-C3x75Zgn.d.cts → client-Dre8H24u.d.ts} +5 -5
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/{model-form-Dm69I-oO.d.ts → model-form-CU0mWrF9.d.ts} +2 -2
- package/dist/{model-form-CD1uhWSh.d.cts → model-form-DfTi8-D1.d.cts} +2 -2
- package/dist/{module-CW3tWJ10.d.ts → module-DBGmbIuh.d.ts} +5 -5
- package/dist/{module-Cxcurfes.d.cts → module-GoijrBXV.d.cts} +5 -5
- package/dist/next/client.cjs +6 -3
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +4 -4
- package/dist/next/client.d.ts +4 -4
- package/dist/next/client.js +6 -3
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +6 -3
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +4 -4
- package/dist/next/server.d.ts +4 -4
- package/dist/next/server.js +6 -3
- package/dist/next/server.js.map +1 -1
- package/dist/{pipeline-BAwb6Vzm.d.ts → pipeline-DrjU2vNA.d.ts} +1 -1
- package/dist/{pipeline-B14jVK7J.d.cts → pipeline-c7Gdm0qv.d.cts} +1 -1
- package/dist/react.cjs +6 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +6 -3
- package/dist/react.js.map +1 -1
- package/dist/{shared-C0wVICRv.d.cts → shared-DZSGAmXs.d.cts} +2 -2
- package/dist/{shared-0Kdc74lu.d.ts → shared-MMnVBBfy.d.ts} +2 -2
- package/dist/{types-DMOoYnPS.d.cts → types-BLizCLd1.d.cts} +2 -2
- package/dist/{types-CwJCPpLD.d.ts → types-BRUHGXo2.d.cts} +1 -1
- package/dist/{types-CwJCPpLD.d.cts → types-BRUHGXo2.d.ts} +1 -1
- package/dist/{types-Dr849HD6.d.cts → types-Bez4HSbI.d.cts} +1 -1
- package/dist/{types-BcVmPBP-.d.ts → types-DRRb0Fd0.d.ts} +2 -2
- package/dist/{types-Cq4-NoB4.d.ts → types-kPaHUqUa.d.ts} +1 -1
- package/dist/utils.cjs +5 -2
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +5 -2
- package/dist/utils.js.map +1 -1
- 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-
|
|
2
|
-
import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-
|
|
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-
|
|
2
|
-
import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-
|
|
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-
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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-
|
|
5
|
-
import { a as AthenaGatewayCallOptions } from './types-
|
|
6
|
-
import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-
|
|
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-
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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-
|
|
5
|
-
import { a as AthenaGatewayCallOptions } from './types-
|
|
6
|
-
import { n as GeneratorSchemaSelection, b as GeneratorProviderConfig, q as NormalizedGeneratorFilterConfig, o as GeneratorTableSelection } from './types-
|
|
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 {
|
package/dist/next/client.cjs
CHANGED
|
@@ -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 (!
|
|
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.
|
|
403
|
+
version: "2.12.1"
|
|
401
404
|
};
|
|
402
405
|
|
|
403
406
|
// src/sdk-version.ts
|