@xylex-group/athena 3.3.0 → 3.5.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 (82) hide show
  1. package/README.md +17 -1
  2. package/dist/{athena-request-headers-Lr_m8xCV.d.cts → athena-request-headers-BnFN2mbd.d.cts} +1 -1
  3. package/dist/{athena-request-headers-DzimbvOA.d.ts → athena-request-headers-Dwdkq2WR.d.ts} +1 -1
  4. package/dist/billing.cjs +1 -1
  5. package/dist/billing.cjs.map +1 -1
  6. package/dist/billing.js +1 -1
  7. package/dist/billing.js.map +1 -1
  8. package/dist/browser.cjs +3064 -163
  9. package/dist/browser.cjs.map +1 -1
  10. package/dist/browser.d.cts +10 -10
  11. package/dist/browser.d.ts +10 -10
  12. package/dist/browser.js +3064 -163
  13. package/dist/browser.js.map +1 -1
  14. package/dist/cli/index.cjs +2990 -83
  15. package/dist/cli/index.cjs.map +1 -1
  16. package/dist/cli/index.d.cts +4 -4
  17. package/dist/cli/index.d.ts +4 -4
  18. package/dist/cli/index.js +2990 -83
  19. package/dist/cli/index.js.map +1 -1
  20. package/dist/cloudflare.cjs +12914 -0
  21. package/dist/cloudflare.cjs.map +1 -0
  22. package/dist/cloudflare.d.cts +368 -0
  23. package/dist/cloudflare.d.ts +368 -0
  24. package/dist/cloudflare.js +12885 -0
  25. package/dist/cloudflare.js.map +1 -0
  26. package/dist/cookies.cjs +4 -3
  27. package/dist/cookies.cjs.map +1 -1
  28. package/dist/cookies.js +4 -3
  29. package/dist/cookies.js.map +1 -1
  30. package/dist/env.cjs +1 -1
  31. package/dist/env.cjs.map +1 -1
  32. package/dist/env.js +1 -1
  33. package/dist/env.js.map +1 -1
  34. package/dist/index.cjs +2989 -86
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +10 -10
  37. package/dist/index.d.ts +10 -10
  38. package/dist/index.js +2989 -87
  39. package/dist/index.js.map +1 -1
  40. package/dist/{model-form-3Gr8rkdT.d.cts → model-form-D0ykVVOs.d.cts} +3 -3
  41. package/dist/{model-form-CotpEL7z.d.ts → model-form-U8NVtfSA.d.ts} +3 -3
  42. package/dist/{module-CQmOaDzP.d.cts → module-CMWlJ1z3.d.cts} +4 -4
  43. package/dist/{module-CWkUTcUc.d.ts → module-CZ-wPcf2.d.ts} +4 -4
  44. package/dist/next/client.cjs +3025 -125
  45. package/dist/next/client.cjs.map +1 -1
  46. package/dist/next/client.d.cts +4 -4
  47. package/dist/next/client.d.ts +4 -4
  48. package/dist/next/client.js +3025 -125
  49. package/dist/next/client.js.map +1 -1
  50. package/dist/next/server.cjs +3108 -194
  51. package/dist/next/server.cjs.map +1 -1
  52. package/dist/next/server.d.cts +22 -9
  53. package/dist/next/server.d.ts +22 -9
  54. package/dist/next/server.js +3108 -194
  55. package/dist/next/server.js.map +1 -1
  56. package/dist/{pipeline-BnRKO_Pd.d.cts → pipeline-BCpb4BX1.d.cts} +1 -1
  57. package/dist/{pipeline-sWCmlFqu.d.ts → pipeline-CgmXwMeX.d.ts} +1 -1
  58. package/dist/react.cjs +1 -1
  59. package/dist/react.cjs.map +1 -1
  60. package/dist/react.d.cts +6 -6
  61. package/dist/react.d.ts +6 -6
  62. package/dist/react.js +1 -1
  63. package/dist/react.js.map +1 -1
  64. package/dist/{schema-handlers-VjFDhIMw.d.ts → schema-handlers-CvWqF-dW.d.ts} +1 -1
  65. package/dist/{schema-handlers-BtT_IQFi.d.cts → schema-handlers-Dr8h9Jg-.d.cts} +1 -1
  66. package/dist/social-providers.cjs +1 -1
  67. package/dist/social-providers.cjs.map +1 -1
  68. package/dist/social-providers.js +1 -1
  69. package/dist/social-providers.js.map +1 -1
  70. package/dist/{types-Bltx6iL6.d.cts → types-B2RZPivM.d.cts} +8 -1
  71. package/dist/{types-Bltx6iL6.d.ts → types-B2RZPivM.d.ts} +8 -1
  72. package/dist/{types-BDX8zS7w.d.ts → types-BKklrX4J.d.ts} +2 -2
  73. package/dist/{types-CgCv5o6R.d.cts → types-D5dj1v5Z.d.cts} +1 -1
  74. package/dist/{types-D-Am7YSd.d.cts → types-DqBFwfhn.d.cts} +2 -2
  75. package/dist/{types-B75PdABb.d.ts → types-S-bTMPiM.d.ts} +1 -1
  76. package/dist/utils.cjs.map +1 -1
  77. package/dist/utils.d.cts +2 -2
  78. package/dist/utils.d.ts +2 -2
  79. package/dist/utils.js.map +1 -1
  80. package/dist/{v3-client-G1SLeHRa.d.cts → v3-client-DP-qg82X.d.cts} +300 -4
  81. package/dist/{v3-client-ao8BWQ8v.d.ts → v3-client-OAai_JNs.d.ts} +300 -4
  82. package/package.json +10 -3
@@ -82,6 +82,9 @@ interface AthenaDeletePayload {
82
82
  columns?: string[] | string;
83
83
  conditions?: AthenaGatewayCondition[];
84
84
  sort_by?: AthenaSortBy;
85
+ /** Fluent `.limit()` / `.range()` bounds (preferred over page_* when both are set). */
86
+ limit?: number;
87
+ offset?: number;
85
88
  current_page?: number;
86
89
  page_size?: number;
87
90
  total_pages?: number;
@@ -114,6 +117,8 @@ interface AthenaRpcPayload<TArgs = AthenaJsonObject> {
114
117
  }
115
118
  interface AthenaQueryPayload {
116
119
  query: string;
120
+ /** Optional bind parameters (D1 / SQLite-safe query path; HTTP gateways may ignore). */
121
+ params?: unknown[];
117
122
  }
118
123
  /** Backend type for Athena client (aligns with athena-rs) */
119
124
  type BackendType = 'athena' | 'postgrest' | 'postgresql' | 'scylladb';
@@ -166,6 +171,8 @@ interface AthenaGatewayCallOptions extends AthenaGatewayBaseOptions {
166
171
  stripNulls?: boolean;
167
172
  onConflict?: string | string[];
168
173
  updateBody?: AthenaJsonObject;
174
+ /** Bind parameters for `queryGateway` / `client.query` (edge D1 and SQL-aware gateways). */
175
+ params?: unknown[];
169
176
  }
170
177
  interface AthenaRpcCallOptions extends AthenaGatewayCallOptions {
171
178
  count?: AthenaCountOption;
@@ -231,4 +238,4 @@ interface AthenaGatewayHookResult {
231
238
  baseUrl: string;
232
239
  }
233
240
 
234
- export { type AthenaConditionCastType as A, Backend as B, type AthenaQueryPayload as C, type AthenaGatewayBaseOptions as D, type AthenaConditionValue as E, type AthenaConditionArrayValue as F, type AthenaGatewayCondition as G, type AthenaSortBy as H, type AthenaConditionOperator as I, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type AthenaGatewayEndpointPath as q, type AthenaGatewayMethod as r, type AthenaGatewayResponse as s, type BackendOption as t, type AthenaGatewayHookConfig as u, type AthenaGatewayHookResult as v, type AthenaDeletePayload as w, type AthenaFetchPayload as x, type AthenaInsertPayload as y, type AthenaUpdatePayload as z };
241
+ export { type AthenaConditionCastType as A, Backend as B, type AthenaQueryPayload as C, type AthenaGatewayBaseOptions as D, type AthenaConditionValue as E, type AthenaConditionArrayValue as F, type AthenaGatewayCondition as G, type AthenaSortBy as H, type AthenaConditionOperator as I, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type AthenaGatewayEndpointPath as q, type AthenaGatewayMethod as r, type AthenaGatewayResponse as s, type BackendOption as t, type AthenaFetchPayload as u, type AthenaDeletePayload as v, type AthenaInsertPayload as w, type AthenaUpdatePayload as x, type AthenaGatewayHookConfig as y, type AthenaGatewayHookResult as z };
@@ -82,6 +82,9 @@ interface AthenaDeletePayload {
82
82
  columns?: string[] | string;
83
83
  conditions?: AthenaGatewayCondition[];
84
84
  sort_by?: AthenaSortBy;
85
+ /** Fluent `.limit()` / `.range()` bounds (preferred over page_* when both are set). */
86
+ limit?: number;
87
+ offset?: number;
85
88
  current_page?: number;
86
89
  page_size?: number;
87
90
  total_pages?: number;
@@ -114,6 +117,8 @@ interface AthenaRpcPayload<TArgs = AthenaJsonObject> {
114
117
  }
115
118
  interface AthenaQueryPayload {
116
119
  query: string;
120
+ /** Optional bind parameters (D1 / SQLite-safe query path; HTTP gateways may ignore). */
121
+ params?: unknown[];
117
122
  }
118
123
  /** Backend type for Athena client (aligns with athena-rs) */
119
124
  type BackendType = 'athena' | 'postgrest' | 'postgresql' | 'scylladb';
@@ -166,6 +171,8 @@ interface AthenaGatewayCallOptions extends AthenaGatewayBaseOptions {
166
171
  stripNulls?: boolean;
167
172
  onConflict?: string | string[];
168
173
  updateBody?: AthenaJsonObject;
174
+ /** Bind parameters for `queryGateway` / `client.query` (edge D1 and SQL-aware gateways). */
175
+ params?: unknown[];
169
176
  }
170
177
  interface AthenaRpcCallOptions extends AthenaGatewayCallOptions {
171
178
  count?: AthenaCountOption;
@@ -231,4 +238,4 @@ interface AthenaGatewayHookResult {
231
238
  baseUrl: string;
232
239
  }
233
240
 
234
- export { type AthenaConditionCastType as A, Backend as B, type AthenaQueryPayload as C, type AthenaGatewayBaseOptions as D, type AthenaConditionValue as E, type AthenaConditionArrayValue as F, type AthenaGatewayCondition as G, type AthenaSortBy as H, type AthenaConditionOperator as I, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type AthenaGatewayEndpointPath as q, type AthenaGatewayMethod as r, type AthenaGatewayResponse as s, type BackendOption as t, type AthenaGatewayHookConfig as u, type AthenaGatewayHookResult as v, type AthenaDeletePayload as w, type AthenaFetchPayload as x, type AthenaInsertPayload as y, type AthenaUpdatePayload as z };
241
+ export { type AthenaConditionCastType as A, Backend as B, type AthenaQueryPayload as C, type AthenaGatewayBaseOptions as D, type AthenaConditionValue as E, type AthenaConditionArrayValue as F, type AthenaGatewayCondition as G, type AthenaSortBy as H, type AthenaConditionOperator as I, type AthenaGatewayCallOptions as a, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaRpcCallOptions as j, type AthenaRpcFilter as k, type AthenaRpcFilterOperator as l, type AthenaRpcOrder as m, type AthenaRpcPayload as n, type BackendConfig as o, type BackendType as p, type AthenaGatewayEndpointPath as q, type AthenaGatewayMethod as r, type AthenaGatewayResponse as s, type BackendOption as t, type AthenaFetchPayload as u, type AthenaDeletePayload as v, type AthenaInsertPayload as w, type AthenaUpdatePayload as x, type AthenaGatewayHookConfig as y, type AthenaGatewayHookResult as z };
@@ -1,5 +1,5 @@
1
- import { p as BackendType } from './types-Bltx6iL6.js';
2
- import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-B75PdABb.js';
1
+ import { p as BackendType } from './types-B2RZPivM.js';
2
+ import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-S-bTMPiM.js';
3
3
 
4
4
  /**
5
5
  * Supported case transformations for generated symbols and path token variants.
@@ -1,4 +1,4 @@
1
- import { p as BackendType } from './types-Bltx6iL6.cjs';
1
+ import { p as BackendType } from './types-B2RZPivM.cjs';
2
2
 
3
3
  type ModelKey = string;
4
4
  type ColumnKey = string;
@@ -1,5 +1,5 @@
1
- import { p as BackendType } from './types-Bltx6iL6.cjs';
2
- import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-CgCv5o6R.cjs';
1
+ import { p as BackendType } from './types-B2RZPivM.cjs';
2
+ import { I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-D5dj1v5Z.cjs';
3
3
 
4
4
  /**
5
5
  * Supported case transformations for generated symbols and path token variants.
@@ -1,4 +1,4 @@
1
- import { p as BackendType } from './types-Bltx6iL6.js';
1
+ import { p as BackendType } from './types-B2RZPivM.js';
2
2
 
3
3
  type ModelKey = string;
4
4
  type ColumnKey = string;