@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.
- package/README.md +24 -10
- package/dist/{athena-auth-url-oLux_57a.d.cts → athena-request-headers-C7Jy-c_D.d.ts} +85 -1
- package/dist/{athena-auth-url-oLux_57a.d.ts → athena-request-headers-DujFFyMU.d.cts} +85 -1
- package/dist/billing.cjs +133 -21
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +41 -1
- package/dist/billing.d.ts +41 -1
- package/dist/billing.js +133 -21
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +138 -45
- 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 +138 -45
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +130 -45
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -3
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +130 -45
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +138 -45
- 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 +138 -45
- package/dist/index.js.map +1 -1
- package/dist/{model-form-BKetpu6Q.d.ts → model-form-Dh0sisdL.d.ts} +1 -1
- package/dist/{model-form-BEfCGB5b.d.cts → model-form-oOAJUVd4.d.cts} +1 -1
- package/dist/{module-CrrSmpML.d.cts → module-CB25egcO.d.cts} +17 -5
- package/dist/{module-8dSMcy0K.d.cts → module-C_ab-MM1.d.cts} +46 -12
- package/dist/{module-8dSMcy0K.d.ts → module-C_ab-MM1.d.ts} +46 -12
- package/dist/{module-Bef_MAPO.d.ts → module-CkUM6v58.d.ts} +17 -5
- package/dist/next/client.cjs +9817 -3
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +26 -1
- package/dist/next/client.d.ts +26 -1
- package/dist/next/client.js +9788 -4
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +10398 -42
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +39 -4
- package/dist/next/server.d.ts +39 -4
- package/dist/next/server.js +10339 -43
- package/dist/next/server.js.map +1 -1
- package/dist/{pipeline-BXFQbsUW.d.ts → pipeline-B8aN2EHe.d.ts} +1 -1
- package/dist/{pipeline-Dfsed4VD.d.cts → pipeline-D4W-Cc-A.d.cts} +1 -1
- package/dist/proxy-request-headers-DGxdoyA0.d.cts +59 -0
- package/dist/proxy-request-headers-m4D2Tduy.d.ts +59 -0
- package/dist/react.cjs +7 -7
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +7 -7
- package/dist/react.js.map +1 -1
- package/dist/social-providers.cjs +15 -11
- package/dist/social-providers.cjs.map +1 -1
- package/dist/social-providers.d.cts +17 -57
- package/dist/social-providers.d.ts +17 -57
- package/dist/social-providers.js +15 -11
- package/dist/social-providers.js.map +1 -1
- package/dist/{types-jClgDy1J.d.ts → types-B75PdABb.d.ts} +1 -1
- package/dist/{types-Z3-rsiM3.d.cts → types-BBm-kEBL.d.cts} +1 -1
- package/dist/{types-CK7cBQbC.d.ts → types-BaAMXCqK.d.ts} +1 -1
- package/dist/{types-kO_Ut5wU.d.cts → types-CgCv5o6R.d.cts} +1 -1
- package/dist/utils.d.cts +4 -142
- package/dist/utils.d.ts +4 -142
- package/dist/{v3-client-G8JMOilK.d.cts → v3-client-CWfZHcKL.d.cts} +37 -21
- package/dist/{v3-client-CuCNy-JJ.d.ts → v3-client-DZp2NEhK.d.ts} +37 -21
- 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 {
|
|
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 {
|
|
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,
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
2
|
-
import { b as ModelFormNullishMode, c as ModelFormValues } from './model-form-
|
|
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-
|
|
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-
|
|
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
|
|
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 };
|