@xylex-group/athena 3.0.0 → 3.0.2

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 (70) hide show
  1. package/README.md +24 -10
  2. package/dist/{athena-auth-url-oLux_57a.d.cts → athena-request-headers-C7Jy-c_D.d.ts} +85 -1
  3. package/dist/{athena-auth-url-oLux_57a.d.ts → athena-request-headers-DujFFyMU.d.cts} +85 -1
  4. package/dist/billing.cjs +133 -21
  5. package/dist/billing.cjs.map +1 -1
  6. package/dist/billing.d.cts +41 -1
  7. package/dist/billing.d.ts +41 -1
  8. package/dist/billing.js +133 -21
  9. package/dist/billing.js.map +1 -1
  10. package/dist/browser.cjs +138 -45
  11. package/dist/browser.cjs.map +1 -1
  12. package/dist/browser.d.cts +9 -9
  13. package/dist/browser.d.ts +9 -9
  14. package/dist/browser.js +138 -45
  15. package/dist/browser.js.map +1 -1
  16. package/dist/cli/index.cjs +130 -45
  17. package/dist/cli/index.cjs.map +1 -1
  18. package/dist/cli/index.d.cts +3 -3
  19. package/dist/cli/index.d.ts +3 -3
  20. package/dist/cli/index.js +130 -45
  21. package/dist/cli/index.js.map +1 -1
  22. package/dist/index.cjs +138 -45
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +9 -9
  25. package/dist/index.d.ts +9 -9
  26. package/dist/index.js +138 -45
  27. package/dist/index.js.map +1 -1
  28. package/dist/{model-form-BKetpu6Q.d.ts → model-form-Dh0sisdL.d.ts} +1 -1
  29. package/dist/{model-form-BEfCGB5b.d.cts → model-form-oOAJUVd4.d.cts} +1 -1
  30. package/dist/{module-CrrSmpML.d.cts → module-CB25egcO.d.cts} +17 -5
  31. package/dist/{module-8dSMcy0K.d.cts → module-C_ab-MM1.d.cts} +46 -12
  32. package/dist/{module-8dSMcy0K.d.ts → module-C_ab-MM1.d.ts} +46 -12
  33. package/dist/{module-Bef_MAPO.d.ts → module-CkUM6v58.d.ts} +17 -5
  34. package/dist/next/client.cjs +9817 -3
  35. package/dist/next/client.cjs.map +1 -1
  36. package/dist/next/client.d.cts +26 -1
  37. package/dist/next/client.d.ts +26 -1
  38. package/dist/next/client.js +9788 -4
  39. package/dist/next/client.js.map +1 -1
  40. package/dist/next/server.cjs +10398 -42
  41. package/dist/next/server.cjs.map +1 -1
  42. package/dist/next/server.d.cts +39 -4
  43. package/dist/next/server.d.ts +39 -4
  44. package/dist/next/server.js +10339 -43
  45. package/dist/next/server.js.map +1 -1
  46. package/dist/{pipeline-BXFQbsUW.d.ts → pipeline-B8aN2EHe.d.ts} +1 -1
  47. package/dist/{pipeline-Dfsed4VD.d.cts → pipeline-D4W-Cc-A.d.cts} +1 -1
  48. package/dist/proxy-request-headers-DGxdoyA0.d.cts +59 -0
  49. package/dist/proxy-request-headers-m4D2Tduy.d.ts +59 -0
  50. package/dist/react.cjs +7 -7
  51. package/dist/react.cjs.map +1 -1
  52. package/dist/react.d.cts +4 -4
  53. package/dist/react.d.ts +4 -4
  54. package/dist/react.js +7 -7
  55. package/dist/react.js.map +1 -1
  56. package/dist/social-providers.cjs +15 -11
  57. package/dist/social-providers.cjs.map +1 -1
  58. package/dist/social-providers.d.cts +17 -57
  59. package/dist/social-providers.d.ts +17 -57
  60. package/dist/social-providers.js +15 -11
  61. package/dist/social-providers.js.map +1 -1
  62. package/dist/{types-jClgDy1J.d.ts → types-B75PdABb.d.ts} +1 -1
  63. package/dist/{types-Z3-rsiM3.d.cts → types-BBm-kEBL.d.cts} +1 -1
  64. package/dist/{types-CK7cBQbC.d.ts → types-BaAMXCqK.d.ts} +1 -1
  65. package/dist/{types-kO_Ut5wU.d.cts → types-CgCv5o6R.d.cts} +1 -1
  66. package/dist/utils.d.cts +4 -142
  67. package/dist/utils.d.ts +4 -142
  68. package/dist/{v3-client-G8JMOilK.d.cts → v3-client-CWfZHcKL.d.cts} +37 -21
  69. package/dist/{v3-client-CuCNy-JJ.d.ts → v3-client-DZp2NEhK.d.ts} +37 -21
  70. package/package.json +6 -3
@@ -1,5 +1,5 @@
1
1
  import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-Bltx6iL6.js';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-jClgDy1J.js';
2
+ import { s as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-B75PdABb.js';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,5 +1,5 @@
1
1
  import { d as AthenaGatewayErrorCode, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, e as AthenaGatewayErrorDetails, s as AthenaGatewayResponse } from './types-Bltx6iL6.cjs';
2
- import { r as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-kO_Ut5wU.cjs';
2
+ import { s as AnyModelDef, a as InsertOf, n as RowOf, U as UpdateOf } from './types-CgCv5o6R.cjs';
3
3
 
4
4
  interface AthenaGatewayErrorInput {
5
5
  code: AthenaGatewayErrorCode;
@@ -1,10 +1,22 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-kO_Ut5wU.cjs';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-BEfCGB5b.cjs';
1
+ import { o as SchemaDef, s as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-CgCv5o6R.cjs';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-oOAJUVd4.cjs';
3
3
  import { ZodType } from 'zod';
4
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-Z3-rsiM3.cjs';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-BBm-kEBL.cjs';
5
5
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-CFL9xbFR.cjs';
6
6
  import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-AOY-GLu8.cjs';
7
- import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-G8JMOilK.cjs';
7
+ import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-CWfZHcKL.cjs';
8
+
9
+ type AthenaService = 'db' | 'auth' | 'chat' | 'storage' | 'billing';
10
+ type AthenaConfigurationErrorCode = 'ATHENA_NO_SERVICE_CONFIGURED' | 'ATHENA_SERVICE_NOT_CONFIGURED' | 'ATHENA_API_KEY_REQUIRED' | 'ATHENA_INVALID_URL' | 'ATHENA_NEXT_SERVER_RUNTIME_REQUIRED';
11
+ /**
12
+ * Structured configuration failure raised during client construction or
13
+ * unavailable-service access. Distinct from transport/auth/gateway errors.
14
+ */
15
+ declare class AthenaConfigurationError extends Error {
16
+ readonly code: AthenaConfigurationErrorCode;
17
+ readonly service?: AthenaService;
18
+ constructor(code: AthenaConfigurationErrorCode, message: string, service?: AthenaService);
19
+ }
8
20
 
9
21
  interface NormalizeAthenaGatewayBaseUrlOptions {
10
22
  defaultBaseUrl?: string;
@@ -495,4 +507,4 @@ declare const chatSdkManifest: {
495
507
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
496
508
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
497
509
 
498
- export { type AthenaAuthRequestContext as $, ATHENA_AUTH_ADMIN_LIMITS as A, normalizeAthenaGatewayBaseUrl as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, normalizeSchemaSelection as E, type FormValuesFromColumns as F, normalizeTableSelection as G, number as H, type InsertFromColumns as I, renderAthenaReactEmail as J, resolvePostgresColumnType as K, resolveProviderSchemas as L, string as M, table as N, unwrapChatMessage as O, type PostgresIntrospectionProviderOptions as P, unwrapChatRoom as Q, type RowFromColumns as R, type AthenaAuthBaseURLConfig as S, type AthenaAuthContext as T, type UpdateFromColumns as U, type AthenaAuthCookieRuntimeInput as V, type AthenaAuthDatabaseFactory as W, type AthenaAuthHandlerResult as X, type AthenaAuthPlugin as Y, type AthenaAuthPluginContext as Z, type AthenaAuthPluginHandlerContext as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthServer as a0, type AthenaAuthServerApi as a1, type AthenaAuthServerConfig as a2, type AthenaAuthServerRuntimeOptions as a3, type AthenaAuthSocialProviderConfig as a4, type AthenaAuthTrustedOrigins as a5, type AthenaAuthTrustedProviders as a6, type GeneratorEnvBooleanOptions as a7, type GeneratorEnvJsonOptions as a8, type GeneratorEnvListOptions as a9, type GeneratorEnvOneOfOptions as aa, type GeneratorEnvStringOptions as ab, createPostgresIntrospectionProvider as ac, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, athenaAuth as l, boolean as m, chatSdkManifest as n, createAuthReactEmailInput as o, defineAthenaAuthConfig as p, defineAuthEmailTemplate as q, defineDatabase as r, defineModel as s, defineRegistry as t, defineSchema as u, enumeration as v, filterIntrospectionSnapshot as w, generatorEnv as x, identifier as y, json as z };
510
+ export { type AthenaAuthPlugin as $, ATHENA_AUTH_ADMIN_LIMITS as A, generatorEnv as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, identifier as E, type FormValuesFromColumns as F, json as G, normalizeAthenaGatewayBaseUrl as H, type InsertFromColumns as I, normalizeSchemaSelection as J, normalizeTableSelection as K, number as L, renderAthenaReactEmail as M, resolvePostgresColumnType as N, resolveProviderSchemas as O, type PostgresIntrospectionProviderOptions as P, string as Q, type RowFromColumns as R, table as S, unwrapChatMessage as T, type UpdateFromColumns as U, unwrapChatRoom as V, type AthenaAuthBaseURLConfig as W, type AthenaAuthContext as X, type AthenaAuthCookieRuntimeInput as Y, type AthenaAuthDatabaseFactory as Z, type AthenaAuthHandlerResult as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthPluginContext as a0, type AthenaAuthPluginHandlerContext as a1, type AthenaAuthRequestContext as a2, type AthenaAuthServer as a3, type AthenaAuthServerApi as a4, type AthenaAuthServerConfig as a5, type AthenaAuthServerRuntimeOptions as a6, type AthenaAuthSocialProviderConfig as a7, type AthenaAuthTrustedOrigins as a8, type AthenaAuthTrustedProviders as a9, type GeneratorEnvBooleanOptions as aa, type GeneratorEnvJsonOptions as ab, type GeneratorEnvListOptions as ac, type GeneratorEnvOneOfOptions as ad, type GeneratorEnvStringOptions as ae, createPostgresIntrospectionProvider as af, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, AthenaChatError as h, type AthenaColumnBuilder as i, AthenaConfigurationError as j, type AthenaConfigurationErrorCode as k, type AthenaService as l, type AthenaTableDef as m, type AthenaTableSchemaBundle as n, athenaAuth as o, boolean as p, chatSdkManifest as q, createAuthReactEmailInput as r, defineAthenaAuthConfig as s, defineAuthEmailTemplate as t, defineDatabase as u, defineModel as v, defineRegistry as w, defineSchema as x, enumeration as y, filterIntrospectionSnapshot as z };
@@ -108,6 +108,14 @@ declare const billingSdkManifest: {
108
108
  readonly name: "createCheckout";
109
109
  readonly method: "POST";
110
110
  readonly path: "/billing/v1/checkouts";
111
+ }, {
112
+ readonly name: "listProducts";
113
+ readonly method: "GET";
114
+ readonly path: "/billing/v1/products";
115
+ }, {
116
+ readonly name: "listPrices";
117
+ readonly method: "GET";
118
+ readonly path: "/billing/v1/prices";
111
119
  }, {
112
120
  readonly name: "listCustomers";
113
121
  readonly method: "GET";
@@ -208,6 +216,30 @@ declare const billingSdkManifest: {
208
216
  readonly name: "getInvoice";
209
217
  readonly method: "GET";
210
218
  readonly path: "/billing/v1/invoices/{id}";
219
+ }, {
220
+ readonly name: "listWebhooks";
221
+ readonly method: "GET";
222
+ readonly path: "/billing/v1/webhooks";
223
+ }, {
224
+ readonly name: "createWebhook";
225
+ readonly method: "POST";
226
+ readonly path: "/billing/v1/webhooks";
227
+ }, {
228
+ readonly name: "getWebhook";
229
+ readonly method: "GET";
230
+ readonly path: "/billing/v1/webhooks/{id}";
231
+ }, {
232
+ readonly name: "updateWebhook";
233
+ readonly method: "PATCH";
234
+ readonly path: "/billing/v1/webhooks/{id}";
235
+ }, {
236
+ readonly name: "deleteWebhook";
237
+ readonly method: "DELETE";
238
+ readonly path: "/billing/v1/webhooks/{id}";
239
+ }, {
240
+ readonly name: "testWebhook";
241
+ readonly method: "POST";
242
+ readonly path: "/billing/v1/webhooks/{id}/test";
211
243
  }, {
212
244
  readonly name: "listConnections";
213
245
  readonly method: "GET";
@@ -265,6 +297,10 @@ declare const billingSdkManifest: {
265
297
  interface AthenaBillingModule {
266
298
  getCapabilities(input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
267
299
  createCheckout(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
300
+ listProducts(input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
301
+ listPrices(input: BillingConnectionRefInput & {
302
+ productId?: string;
303
+ }, options?: AthenaBillingCallOptions): Promise<unknown>;
268
304
  listCustomers(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
269
305
  createCustomer(input: BillingEnsureCustomerInput, options?: AthenaBillingCallOptions): Promise<unknown>;
270
306
  getCustomer(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
@@ -281,23 +317,21 @@ interface AthenaBillingModule {
281
317
  deletePaymentLink(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
282
318
  listRefunds(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
283
319
  createRefund(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
284
- getRefund(id: string, input: BillingConnectionRefInput & {
285
- paymentId?: string;
286
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
287
- cancelRefund(id: string, input: BillingConnectionRefInput & {
288
- paymentId?: string;
289
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
320
+ getRefund(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
321
+ cancelRefund(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
290
322
  listSubscriptions(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
291
323
  createSubscription(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
292
- getSubscription(id: string, input: BillingConnectionRefInput & {
293
- customerId?: string;
294
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
324
+ getSubscription(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
295
325
  updateSubscription(id: string, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
296
- cancelSubscription(id: string, input: BillingConnectionRefInput & {
297
- customerId: string;
298
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
326
+ cancelSubscription(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
299
327
  listInvoices(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
300
328
  getInvoice(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
329
+ listWebhooks(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
330
+ createWebhook(input: BillingConnectionRefInput, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
331
+ getWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
332
+ updateWebhook(id: string, input: BillingConnectionRefInput, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
333
+ deleteWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
334
+ testWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
301
335
  listConnections(clientName: string, options?: AthenaBillingCallOptions): Promise<unknown>;
302
336
  createConnection(clientName: string, input: BillingCreateConnectionInput, options?: AthenaBillingCallOptions): Promise<unknown>;
303
337
  getConnection(clientName: string, connectionId: string, options?: AthenaBillingCallOptions): Promise<unknown>;
@@ -108,6 +108,14 @@ declare const billingSdkManifest: {
108
108
  readonly name: "createCheckout";
109
109
  readonly method: "POST";
110
110
  readonly path: "/billing/v1/checkouts";
111
+ }, {
112
+ readonly name: "listProducts";
113
+ readonly method: "GET";
114
+ readonly path: "/billing/v1/products";
115
+ }, {
116
+ readonly name: "listPrices";
117
+ readonly method: "GET";
118
+ readonly path: "/billing/v1/prices";
111
119
  }, {
112
120
  readonly name: "listCustomers";
113
121
  readonly method: "GET";
@@ -208,6 +216,30 @@ declare const billingSdkManifest: {
208
216
  readonly name: "getInvoice";
209
217
  readonly method: "GET";
210
218
  readonly path: "/billing/v1/invoices/{id}";
219
+ }, {
220
+ readonly name: "listWebhooks";
221
+ readonly method: "GET";
222
+ readonly path: "/billing/v1/webhooks";
223
+ }, {
224
+ readonly name: "createWebhook";
225
+ readonly method: "POST";
226
+ readonly path: "/billing/v1/webhooks";
227
+ }, {
228
+ readonly name: "getWebhook";
229
+ readonly method: "GET";
230
+ readonly path: "/billing/v1/webhooks/{id}";
231
+ }, {
232
+ readonly name: "updateWebhook";
233
+ readonly method: "PATCH";
234
+ readonly path: "/billing/v1/webhooks/{id}";
235
+ }, {
236
+ readonly name: "deleteWebhook";
237
+ readonly method: "DELETE";
238
+ readonly path: "/billing/v1/webhooks/{id}";
239
+ }, {
240
+ readonly name: "testWebhook";
241
+ readonly method: "POST";
242
+ readonly path: "/billing/v1/webhooks/{id}/test";
211
243
  }, {
212
244
  readonly name: "listConnections";
213
245
  readonly method: "GET";
@@ -265,6 +297,10 @@ declare const billingSdkManifest: {
265
297
  interface AthenaBillingModule {
266
298
  getCapabilities(input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
267
299
  createCheckout(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
300
+ listProducts(input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
301
+ listPrices(input: BillingConnectionRefInput & {
302
+ productId?: string;
303
+ }, options?: AthenaBillingCallOptions): Promise<unknown>;
268
304
  listCustomers(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
269
305
  createCustomer(input: BillingEnsureCustomerInput, options?: AthenaBillingCallOptions): Promise<unknown>;
270
306
  getCustomer(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
@@ -281,23 +317,21 @@ interface AthenaBillingModule {
281
317
  deletePaymentLink(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
282
318
  listRefunds(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
283
319
  createRefund(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
284
- getRefund(id: string, input: BillingConnectionRefInput & {
285
- paymentId?: string;
286
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
287
- cancelRefund(id: string, input: BillingConnectionRefInput & {
288
- paymentId?: string;
289
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
320
+ getRefund(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
321
+ cancelRefund(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
290
322
  listSubscriptions(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
291
323
  createSubscription(body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
292
- getSubscription(id: string, input: BillingConnectionRefInput & {
293
- customerId?: string;
294
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
324
+ getSubscription(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
295
325
  updateSubscription(id: string, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
296
- cancelSubscription(id: string, input: BillingConnectionRefInput & {
297
- customerId: string;
298
- }, options?: AthenaBillingCallOptions): Promise<unknown>;
326
+ cancelSubscription(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
299
327
  listInvoices(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
300
328
  getInvoice(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
329
+ listWebhooks(input: BillingListQuery, options?: AthenaBillingCallOptions): Promise<unknown>;
330
+ createWebhook(input: BillingConnectionRefInput, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
331
+ getWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
332
+ updateWebhook(id: string, input: BillingConnectionRefInput, body: Record<string, unknown>, options?: AthenaBillingCallOptions): Promise<unknown>;
333
+ deleteWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
334
+ testWebhook(id: string, input: BillingConnectionRefInput, options?: AthenaBillingCallOptions): Promise<unknown>;
301
335
  listConnections(clientName: string, options?: AthenaBillingCallOptions): Promise<unknown>;
302
336
  createConnection(clientName: string, input: BillingCreateConnectionInput, options?: AthenaBillingCallOptions): Promise<unknown>;
303
337
  getConnection(clientName: string, connectionId: string, options?: AthenaBillingCallOptions): Promise<unknown>;
@@ -1,10 +1,22 @@
1
- import { o as SchemaDef, r as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-jClgDy1J.js';
2
- import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-BKetpu6Q.js';
1
+ import { o as SchemaDef, s as AnyModelDef, D as DatabaseDef, k as ModelMetadata, j as ModelDef, R as RegistryDef, h as ModelColumnKind, S as SchemaIntrospectionProvider, b as IntrospectionColumn, I as IntrospectionSnapshot } from './types-B75PdABb.js';
2
+ import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-Dh0sisdL.js';
3
3
  import { ZodType } from 'zod';
4
- import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-CK7cBQbC.js';
4
+ import { o as GeneratorSchemaSelection, b as GeneratorProviderConfig, r as NormalizedGeneratorFilterConfig, p as GeneratorTableSelection } from './types-BaAMXCqK.js';
5
5
  import { A as AthenaCookiesOptions, a as AthenaSessionPair, b as AthenaCookieOptions, c as AthenaAuthCookies, g as getCookieCache, d as getSessionCookie, e as AthenaCookieContextRuntime } from './index-UKJpunc6.js';
6
6
  import { aQ as AuthSocialProvider, a4 as AthenaAuthReactEmailProps, a1 as AthenaAuthReactEmailComponent, a6 as AthenaAuthReactEmailRenderInput, L as AthenaAuthEmailTemplateDefinition, J as AthenaAuthEmailTemplateBuilder, a7 as AthenaAuthReactEmailRenderOptions, a5 as AthenaAuthReactEmailRenderEvent, a2 as AthenaAuthReactEmailConfig } from './types-AOY-GLu8.js';
7
- import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-CuCNy-JJ.js';
7
+ import { r as AthenaChatMessageCreatedResponse, q as AthenaChatMessage, F as AthenaChatRoomCreatedResponse, E as AthenaChatRoom } from './v3-client-DZp2NEhK.js';
8
+
9
+ type AthenaService = 'db' | 'auth' | 'chat' | 'storage' | 'billing';
10
+ type AthenaConfigurationErrorCode = 'ATHENA_NO_SERVICE_CONFIGURED' | 'ATHENA_SERVICE_NOT_CONFIGURED' | 'ATHENA_API_KEY_REQUIRED' | 'ATHENA_INVALID_URL' | 'ATHENA_NEXT_SERVER_RUNTIME_REQUIRED';
11
+ /**
12
+ * Structured configuration failure raised during client construction or
13
+ * unavailable-service access. Distinct from transport/auth/gateway errors.
14
+ */
15
+ declare class AthenaConfigurationError extends Error {
16
+ readonly code: AthenaConfigurationErrorCode;
17
+ readonly service?: AthenaService;
18
+ constructor(code: AthenaConfigurationErrorCode, message: string, service?: AthenaService);
19
+ }
8
20
 
9
21
  interface NormalizeAthenaGatewayBaseUrlOptions {
10
22
  defaultBaseUrl?: string;
@@ -495,4 +507,4 @@ declare const chatSdkManifest: {
495
507
  declare function unwrapChatRoom(payload: AthenaChatRoomCreatedResponse): AthenaChatRoom;
496
508
  declare function unwrapChatMessage(payload: AthenaChatMessageCreatedResponse): AthenaChatMessage;
497
509
 
498
- export { type AthenaAuthRequestContext as $, ATHENA_AUTH_ADMIN_LIMITS as A, normalizeAthenaGatewayBaseUrl as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, normalizeSchemaSelection as E, type FormValuesFromColumns as F, normalizeTableSelection as G, number as H, type InsertFromColumns as I, renderAthenaReactEmail as J, resolvePostgresColumnType as K, resolveProviderSchemas as L, string as M, table as N, unwrapChatMessage as O, type PostgresIntrospectionProviderOptions as P, unwrapChatRoom as Q, type RowFromColumns as R, type AthenaAuthBaseURLConfig as S, type AthenaAuthContext as T, type UpdateFromColumns as U, type AthenaAuthCookieRuntimeInput as V, type AthenaAuthDatabaseFactory as W, type AthenaAuthHandlerResult as X, type AthenaAuthPlugin as Y, type AthenaAuthPluginContext as Z, type AthenaAuthPluginHandlerContext as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthServer as a0, type AthenaAuthServerApi as a1, type AthenaAuthServerConfig as a2, type AthenaAuthServerRuntimeOptions as a3, type AthenaAuthSocialProviderConfig as a4, type AthenaAuthTrustedOrigins as a5, type AthenaAuthTrustedProviders as a6, type GeneratorEnvBooleanOptions as a7, type GeneratorEnvJsonOptions as a8, type GeneratorEnvListOptions as a9, type GeneratorEnvOneOfOptions as aa, type GeneratorEnvStringOptions as ab, createPostgresIntrospectionProvider as ac, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, AthenaChatError as h, type AthenaColumnBuilder as i, type AthenaTableDef as j, type AthenaTableSchemaBundle as k, athenaAuth as l, boolean as m, chatSdkManifest as n, createAuthReactEmailInput as o, defineAthenaAuthConfig as p, defineAuthEmailTemplate as q, defineDatabase as r, defineModel as s, defineRegistry as t, defineSchema as u, enumeration as v, filterIntrospectionSnapshot as w, generatorEnv as x, identifier as y, json as z };
510
+ export { type AthenaAuthPlugin as $, ATHENA_AUTH_ADMIN_LIMITS as A, generatorEnv as B, type ColumnRuntimeConfig as C, DEFAULT_POSTGRES_SCHEMAS as D, identifier as E, type FormValuesFromColumns as F, json as G, normalizeAthenaGatewayBaseUrl as H, type InsertFromColumns as I, normalizeSchemaSelection as J, normalizeTableSelection as K, number as L, renderAthenaReactEmail as M, resolvePostgresColumnType as N, resolveProviderSchemas as O, type PostgresIntrospectionProviderOptions as P, string as Q, type RowFromColumns as R, table as S, unwrapChatMessage as T, type UpdateFromColumns as U, unwrapChatRoom as V, type AthenaAuthBaseURLConfig as W, type AthenaAuthContext as X, type AthenaAuthCookieRuntimeInput as Y, type AthenaAuthDatabaseFactory as Z, type AthenaAuthHandlerResult as _, ATHENA_AUTH_BASE_ERROR_CODES as a, type AthenaAuthPluginContext as a0, type AthenaAuthPluginHandlerContext as a1, type AthenaAuthRequestContext as a2, type AthenaAuthServer as a3, type AthenaAuthServerApi as a4, type AthenaAuthServerConfig as a5, type AthenaAuthServerRuntimeOptions as a6, type AthenaAuthSocialProviderConfig as a7, type AthenaAuthTrustedOrigins as a8, type AthenaAuthTrustedProviders as a9, type GeneratorEnvBooleanOptions as aa, type GeneratorEnvJsonOptions as ab, type GeneratorEnvListOptions as ac, type GeneratorEnvOneOfOptions as ad, type GeneratorEnvStringOptions as ae, createPostgresIntrospectionProvider as af, ATHENA_AUTH_MAX_ADMIN_JSON_BYTES as b, ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH as c, ATHENA_AUTH_MAX_TEMPLATE_VARIABLES as d, ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH as e, type AnyColumnBuilder as f, type AthenaAuthAdminLimits as g, AthenaChatError as h, type AthenaColumnBuilder as i, AthenaConfigurationError as j, type AthenaConfigurationErrorCode as k, type AthenaService as l, type AthenaTableDef as m, type AthenaTableSchemaBundle as n, athenaAuth as o, boolean as p, chatSdkManifest as q, createAuthReactEmailInput as r, defineAthenaAuthConfig as s, defineAuthEmailTemplate as t, defineDatabase as u, defineModel as v, defineRegistry as w, defineSchema as x, enumeration as y, filterIntrospectionSnapshot as z };