@xylex-group/athena 2.11.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 (62) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.cjs +299 -240
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +9 -8
  5. package/dist/browser.d.ts +9 -8
  6. package/dist/browser.js +299 -240
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +272 -240
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +4 -3
  11. package/dist/cli/index.d.ts +4 -3
  12. package/dist/cli/index.js +272 -240
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{client-DD_UeF3Q.d.ts → client-CMtx5P4D.d.cts} +20 -9
  15. package/dist/{client-WqBuu60O.d.cts → client-Dre8H24u.d.ts} +20 -9
  16. package/dist/index.cjs +299 -240
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +9 -8
  19. package/dist/index.d.ts +9 -8
  20. package/dist/index.js +299 -240
  21. package/dist/index.js.map +1 -1
  22. package/dist/{model-form-ByvyyvxB.d.ts → model-form-CU0mWrF9.d.ts} +2 -1
  23. package/dist/{model-form-DACdBLYG.d.cts → model-form-DfTi8-D1.d.cts} +2 -1
  24. package/dist/{module-DRkIHtY-.d.ts → module-DBGmbIuh.d.ts} +5 -4
  25. package/dist/{module-BFMyVmwX.d.cts → module-GoijrBXV.d.cts} +5 -4
  26. package/dist/next/client.cjs +299 -240
  27. package/dist/next/client.cjs.map +1 -1
  28. package/dist/next/client.d.cts +4 -3
  29. package/dist/next/client.d.ts +4 -3
  30. package/dist/next/client.js +299 -240
  31. package/dist/next/client.js.map +1 -1
  32. package/dist/next/server.cjs +299 -240
  33. package/dist/next/server.cjs.map +1 -1
  34. package/dist/next/server.d.cts +4 -3
  35. package/dist/next/server.d.ts +4 -3
  36. package/dist/next/server.js +299 -240
  37. package/dist/next/server.js.map +1 -1
  38. package/dist/{pipeline-DZMsPxUg.d.ts → pipeline-DrjU2vNA.d.ts} +1 -1
  39. package/dist/{pipeline-CmUZsXsi.d.cts → pipeline-c7Gdm0qv.d.cts} +1 -1
  40. package/dist/react.cjs +237 -98
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +5 -4
  43. package/dist/react.d.ts +5 -4
  44. package/dist/react.js +237 -98
  45. package/dist/react.js.map +1 -1
  46. package/dist/{shared-B1ueL-Ox.d.cts → shared-DZSGAmXs.d.cts} +2 -2
  47. package/dist/{shared-GPAprhBb.d.ts → shared-MMnVBBfy.d.ts} +2 -2
  48. package/dist/{types-CRjDwmtJ.d.ts → types-BLizCLd1.d.cts} +2 -1
  49. package/dist/types-BRUHGXo2.d.cts +236 -0
  50. package/dist/types-BRUHGXo2.d.ts +236 -0
  51. package/dist/types-Bez4HSbI.d.cts +204 -0
  52. package/dist/{types-C-YvfgYh.d.cts → types-DRRb0Fd0.d.ts} +2 -1
  53. package/dist/types-kPaHUqUa.d.ts +204 -0
  54. package/dist/utils.cjs +279 -0
  55. package/dist/utils.cjs.map +1 -1
  56. package/dist/utils.d.cts +58 -1
  57. package/dist/utils.d.ts +58 -1
  58. package/dist/utils.js +272 -1
  59. package/dist/utils.js.map +1 -1
  60. package/package.json +1 -1
  61. package/dist/types-BeZIHduP.d.cts +0 -428
  62. package/dist/types-BeZIHduP.d.ts +0 -428
@@ -1,4 +1,5 @@
1
- import { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, V as AthenaFetchPayload, W as AthenaGatewayResponse, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, o as AthenaRpcPayload, $ as AthenaQueryPayload, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, a0 as AthenaConditionValue, a1 as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, J as SchemaDef, N as AnyModelDef, C as ModelDef, G as ModelRelationMetadata, a2 as AthenaGatewayCondition, a3 as AthenaSortBy, l as AthenaRpcFilter, p as BackendConfig, q as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, a4 as AthenaConditionOperator } from './types-BeZIHduP.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';
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
- interface AthenaChatCallOptions {
3348
- headers?: Record<string, string>;
3348
+ type AthenaChatCallOptions = Pick<AthenaGatewayBaseOptions, 'headers' | 'client' | 'apiKey' | 'athenaKey' | 'bearerToken' | 'cookie' | 'sessionToken' | 'forceNoCache'> & {
3349
3349
  signal?: AbortSignal;
3350
- client?: string;
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` / `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` / `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` / `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 { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, V as AthenaFetchPayload, W as AthenaGatewayResponse, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, o as AthenaRpcPayload, $ as AthenaQueryPayload, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, a0 as AthenaConditionValue, a1 as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, J as SchemaDef, N as AnyModelDef, C as ModelDef, G as ModelRelationMetadata, a2 as AthenaGatewayCondition, a3 as AthenaSortBy, l as AthenaRpcFilter, p as BackendConfig, q as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, a4 as AthenaConditionOperator } from './types-BeZIHduP.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';
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
- interface AthenaChatCallOptions {
3348
- headers?: Record<string, string>;
3348
+ type AthenaChatCallOptions = Pick<AthenaGatewayBaseOptions, 'headers' | 'client' | 'apiKey' | 'athenaKey' | 'bearerToken' | 'cookie' | 'sessionToken' | 'forceNoCache'> & {
3349
3349
  signal?: AbortSignal;
3350
- client?: string;
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` / `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` / `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` / `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. */