@xylex-group/athena 2.11.0 → 2.12.0
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 +296 -240
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -8
- package/dist/browser.d.ts +9 -8
- package/dist/browser.js +296 -240
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +269 -240
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -3
- package/dist/cli/index.d.ts +4 -3
- package/dist/cli/index.js +269 -240
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-DD_UeF3Q.d.ts → client-C3x75Zgn.d.cts} +20 -9
- package/dist/{client-WqBuu60O.d.cts → client-QUbAs7E8.d.ts} +20 -9
- package/dist/index.cjs +296 -240
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +296 -240
- package/dist/index.js.map +1 -1
- package/dist/{model-form-DACdBLYG.d.cts → model-form-CD1uhWSh.d.cts} +2 -1
- package/dist/{model-form-ByvyyvxB.d.ts → model-form-Dm69I-oO.d.ts} +2 -1
- package/dist/{module-DRkIHtY-.d.ts → module-CW3tWJ10.d.ts} +5 -4
- package/dist/{module-BFMyVmwX.d.cts → module-Cxcurfes.d.cts} +5 -4
- package/dist/next/client.cjs +296 -240
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +4 -3
- package/dist/next/client.d.ts +4 -3
- package/dist/next/client.js +296 -240
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +296 -240
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +4 -3
- package/dist/next/server.d.ts +4 -3
- package/dist/next/server.js +296 -240
- package/dist/next/server.js.map +1 -1
- package/dist/{pipeline-CmUZsXsi.d.cts → pipeline-B14jVK7J.d.cts} +1 -1
- package/dist/{pipeline-DZMsPxUg.d.ts → pipeline-BAwb6Vzm.d.ts} +1 -1
- package/dist/react.cjs +234 -98
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -4
- package/dist/react.d.ts +5 -4
- package/dist/react.js +234 -98
- package/dist/react.js.map +1 -1
- package/dist/{shared-GPAprhBb.d.ts → shared-0Kdc74lu.d.ts} +2 -2
- package/dist/{shared-B1ueL-Ox.d.cts → shared-C0wVICRv.d.cts} +2 -2
- package/dist/{types-C-YvfgYh.d.cts → types-BcVmPBP-.d.ts} +2 -1
- package/dist/types-Cq4-NoB4.d.ts +204 -0
- package/dist/types-CwJCPpLD.d.cts +236 -0
- package/dist/types-CwJCPpLD.d.ts +236 -0
- package/dist/{types-CRjDwmtJ.d.ts → types-DMOoYnPS.d.cts} +2 -1
- package/dist/types-Dr849HD6.d.cts +204 -0
- package/dist/utils.cjs +276 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +58 -1
- package/dist/utils.d.ts +58 -1
- package/dist/utils.js +269 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/types-BeZIHduP.d.cts +0 -428
- package/dist/types-BeZIHduP.d.ts +0 -428
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
3
|
|
|
3
4
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
5
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -3344,15 +3345,9 @@ interface AthenaChatWsErrorEvent {
|
|
|
3344
3345
|
code?: string | null;
|
|
3345
3346
|
}
|
|
3346
3347
|
type AthenaChatWsServerEvent = AthenaChatWsHelloOkEvent | AthenaChatWsSubscribedEvent | AthenaChatWsRoomCreatedEvent | AthenaChatWsRoomUpdatedEvent | AthenaChatWsRoomArchivedEvent | AthenaChatWsMessageCreatedEvent | AthenaChatWsMessageUpdatedEvent | AthenaChatWsMessageDeletedEvent | AthenaChatWsReadUpdatedEvent | AthenaChatWsMembersUpdatedEvent | AthenaChatWsTypingUpdatedEvent | AthenaChatWsPresenceUpdatedEvent | AthenaChatWsSyncRequiredEvent | AthenaChatWsReactionUpdatedEvent | AthenaChatWsPongEvent | AthenaChatWsErrorEvent;
|
|
3347
|
-
|
|
3348
|
-
headers?: Record<string, string>;
|
|
3348
|
+
type AthenaChatCallOptions = Pick<AthenaGatewayBaseOptions, 'headers' | 'client' | 'apiKey' | 'athenaKey' | 'bearerToken' | 'cookie' | 'sessionToken' | 'forceNoCache'> & {
|
|
3349
3349
|
signal?: AbortSignal;
|
|
3350
|
-
|
|
3351
|
-
bearerToken?: string | null;
|
|
3352
|
-
cookie?: string | null;
|
|
3353
|
-
sessionToken?: string | null;
|
|
3354
|
-
forceNoCache?: boolean;
|
|
3355
|
-
}
|
|
3350
|
+
};
|
|
3356
3351
|
interface AthenaChatWebSocketLike {
|
|
3357
3352
|
close(code?: number, reason?: string): void;
|
|
3358
3353
|
send(data: string): void;
|
|
@@ -3737,6 +3732,10 @@ interface AthenaRequestOptions {
|
|
|
3737
3732
|
path?: string;
|
|
3738
3733
|
method?: AthenaRequestMethod;
|
|
3739
3734
|
headers?: Record<string, string>;
|
|
3735
|
+
/** Per-request override for `apikey` / `x-api-key`. */
|
|
3736
|
+
apiKey?: string | null;
|
|
3737
|
+
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
|
+
athenaKey?: string | null;
|
|
3740
3739
|
query?: AthenaRequestQueryValueMap;
|
|
3741
3740
|
body?: RequestInit['body'] | Record<string, unknown> | unknown[] | null;
|
|
3742
3741
|
signal?: AbortSignal;
|
|
@@ -3995,6 +3994,12 @@ interface AthenaCreateClientOptions {
|
|
|
3995
3994
|
organizationId?: string | null | undefined;
|
|
3996
3995
|
forceNoCache?: boolean;
|
|
3997
3996
|
headers?: Record<string, string>;
|
|
3997
|
+
/** Direct PostgreSQL URI forwarded as `x-pg-uri` on gateway requests. */
|
|
3998
|
+
pgUri?: string | null | undefined;
|
|
3999
|
+
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
|
+
jdbcUrl?: string | null | undefined;
|
|
4001
|
+
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
|
|
4002
|
+
athenaKey?: string | null | undefined;
|
|
3998
4003
|
backend?: BackendConfig | BackendType;
|
|
3999
4004
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
4000
4005
|
gateway?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4087,6 +4092,12 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4087
4092
|
client(clientName: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4088
4093
|
/** Attach static headers to every request. */
|
|
4089
4094
|
headers(headers: Record<string, string>): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4095
|
+
/** Forward a direct PostgreSQL URI as `x-pg-uri` on gateway requests. */
|
|
4096
|
+
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
|
+
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
|
+
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
+
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
|
|
4100
|
+
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4090
4101
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4091
4102
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4092
4103
|
/** Configure experimental client options and narrow the built client when storage or strict column checks are enabled. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
3
|
|
|
3
4
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
5
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -3344,15 +3345,9 @@ interface AthenaChatWsErrorEvent {
|
|
|
3344
3345
|
code?: string | null;
|
|
3345
3346
|
}
|
|
3346
3347
|
type AthenaChatWsServerEvent = AthenaChatWsHelloOkEvent | AthenaChatWsSubscribedEvent | AthenaChatWsRoomCreatedEvent | AthenaChatWsRoomUpdatedEvent | AthenaChatWsRoomArchivedEvent | AthenaChatWsMessageCreatedEvent | AthenaChatWsMessageUpdatedEvent | AthenaChatWsMessageDeletedEvent | AthenaChatWsReadUpdatedEvent | AthenaChatWsMembersUpdatedEvent | AthenaChatWsTypingUpdatedEvent | AthenaChatWsPresenceUpdatedEvent | AthenaChatWsSyncRequiredEvent | AthenaChatWsReactionUpdatedEvent | AthenaChatWsPongEvent | AthenaChatWsErrorEvent;
|
|
3347
|
-
|
|
3348
|
-
headers?: Record<string, string>;
|
|
3348
|
+
type AthenaChatCallOptions = Pick<AthenaGatewayBaseOptions, 'headers' | 'client' | 'apiKey' | 'athenaKey' | 'bearerToken' | 'cookie' | 'sessionToken' | 'forceNoCache'> & {
|
|
3349
3349
|
signal?: AbortSignal;
|
|
3350
|
-
|
|
3351
|
-
bearerToken?: string | null;
|
|
3352
|
-
cookie?: string | null;
|
|
3353
|
-
sessionToken?: string | null;
|
|
3354
|
-
forceNoCache?: boolean;
|
|
3355
|
-
}
|
|
3350
|
+
};
|
|
3356
3351
|
interface AthenaChatWebSocketLike {
|
|
3357
3352
|
close(code?: number, reason?: string): void;
|
|
3358
3353
|
send(data: string): void;
|
|
@@ -3737,6 +3732,10 @@ interface AthenaRequestOptions {
|
|
|
3737
3732
|
path?: string;
|
|
3738
3733
|
method?: AthenaRequestMethod;
|
|
3739
3734
|
headers?: Record<string, string>;
|
|
3735
|
+
/** Per-request override for `apikey` / `x-api-key`. */
|
|
3736
|
+
apiKey?: string | null;
|
|
3737
|
+
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
|
+
athenaKey?: string | null;
|
|
3740
3739
|
query?: AthenaRequestQueryValueMap;
|
|
3741
3740
|
body?: RequestInit['body'] | Record<string, unknown> | unknown[] | null;
|
|
3742
3741
|
signal?: AbortSignal;
|
|
@@ -3995,6 +3994,12 @@ interface AthenaCreateClientOptions {
|
|
|
3995
3994
|
organizationId?: string | null | undefined;
|
|
3996
3995
|
forceNoCache?: boolean;
|
|
3997
3996
|
headers?: Record<string, string>;
|
|
3997
|
+
/** Direct PostgreSQL URI forwarded as `x-pg-uri` on gateway requests. */
|
|
3998
|
+
pgUri?: string | null | undefined;
|
|
3999
|
+
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
|
+
jdbcUrl?: string | null | undefined;
|
|
4001
|
+
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
|
|
4002
|
+
athenaKey?: string | null | undefined;
|
|
3998
4003
|
backend?: BackendConfig | BackendType;
|
|
3999
4004
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
4000
4005
|
gateway?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4087,6 +4092,12 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4087
4092
|
client(clientName: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4088
4093
|
/** Attach static headers to every request. */
|
|
4089
4094
|
headers(headers: Record<string, string>): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4095
|
+
/** Forward a direct PostgreSQL URI as `x-pg-uri` on gateway requests. */
|
|
4096
|
+
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
|
+
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
|
+
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
+
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
|
|
4100
|
+
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4090
4101
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4091
4102
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4092
4103
|
/** Configure experimental client options and narrow the built client when storage or strict column checks are enabled. */
|