@xylex-group/athena 2.13.0 → 2.14.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.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/bin/athena-js.js +0 -0
  3. package/dist/browser.cjs +552 -52
  4. package/dist/browser.cjs.map +1 -1
  5. package/dist/browser.d.cts +9 -9
  6. package/dist/browser.d.ts +9 -9
  7. package/dist/browser.js +552 -52
  8. package/dist/browser.js.map +1 -1
  9. package/dist/cli/index.cjs +545 -45
  10. package/dist/cli/index.cjs.map +1 -1
  11. package/dist/cli/index.d.cts +4 -4
  12. package/dist/cli/index.d.ts +4 -4
  13. package/dist/cli/index.js +545 -45
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/{client-DVOKSYDI.d.ts → client-uthENhaf.d.ts} +289 -92
  16. package/dist/{client-BJjUwDSg.d.cts → client-wU2J9yqb.d.cts} +289 -92
  17. package/dist/index.cjs +552 -52
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +9 -9
  20. package/dist/index.d.ts +9 -9
  21. package/dist/index.js +552 -52
  22. package/dist/index.js.map +1 -1
  23. package/dist/{model-form-Dw4zEL5a.d.cts → model-form-BE1_Bmdd.d.cts} +2 -2
  24. package/dist/{model-form-yRg71q3H.d.ts → model-form-DcH3R7WD.d.ts} +2 -2
  25. package/dist/{module-DBteUIob.d.ts → module-Ca3_OQqR.d.ts} +5 -5
  26. package/dist/{module-yoX49uQC.d.cts → module-DFGZXCtt.d.cts} +5 -5
  27. package/dist/next/client.cjs +545 -45
  28. package/dist/next/client.cjs.map +1 -1
  29. package/dist/next/client.d.cts +5 -5
  30. package/dist/next/client.d.ts +5 -5
  31. package/dist/next/client.js +545 -45
  32. package/dist/next/client.js.map +1 -1
  33. package/dist/next/server.cjs +545 -45
  34. package/dist/next/server.cjs.map +1 -1
  35. package/dist/next/server.d.cts +5 -5
  36. package/dist/next/server.d.ts +5 -5
  37. package/dist/next/server.js +545 -45
  38. package/dist/next/server.js.map +1 -1
  39. package/dist/{payload-DEOWN_oo.d.ts → payload-BbSCmILD.d.ts} +2 -2
  40. package/dist/{payload-BzVbUgY_.d.cts → payload-zXIwKTQf.d.cts} +2 -2
  41. package/dist/{pipeline-Dwck-wZO.d.cts → pipeline-CwQoD5G9.d.cts} +1 -1
  42. package/dist/{pipeline-Bj6RWt1A.d.ts → pipeline-DqwehoQV.d.ts} +1 -1
  43. package/dist/react.cjs +1 -1
  44. package/dist/react.cjs.map +1 -1
  45. package/dist/react.d.cts +5 -5
  46. package/dist/react.d.ts +5 -5
  47. package/dist/react.js +1 -1
  48. package/dist/react.js.map +1 -1
  49. package/dist/social-providers.cjs +24 -15
  50. package/dist/social-providers.cjs.map +1 -1
  51. package/dist/social-providers.js +24 -15
  52. package/dist/social-providers.js.map +1 -1
  53. package/dist/{types-BU8uJH_b.d.cts → types-6H575ITc.d.cts} +1 -1
  54. package/dist/{types-DPgejxYC.d.ts → types-C1swabT5.d.ts} +2 -2
  55. package/dist/{types-BRP7sfSF.d.ts → types-CD6K05JQ.d.ts} +1 -1
  56. package/dist/{types-CH78O90i.d.cts → types-YQUR7wu0.d.cts} +1 -1
  57. package/dist/{types-CH78O90i.d.ts → types-YQUR7wu0.d.ts} +1 -1
  58. package/dist/{types-CjC9_5ZQ.d.cts → types-dHnjluBC.d.cts} +2 -2
  59. package/dist/utils.d.cts +1 -1
  60. package/dist/utils.d.ts +1 -1
  61. package/package.json +22 -21
@@ -1,6 +1,26 @@
1
- import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, w as AthenaFetchPayload, s as AthenaGatewayResponse, x as AthenaInsertPayload, y as AthenaUpdatePayload, v as AthenaDeletePayload, n as AthenaRpcPayload, C as AthenaQueryPayload, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, D as AthenaGatewayBaseOptions, E as AthenaConditionValue, F as AthenaConditionArrayValue, G as AthenaGatewayCondition, H as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, I as AthenaConditionOperator } from './types-CH78O90i.cjs';
1
+ import { a as AthenaGatewayCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, w as AthenaFetchPayload, s as AthenaGatewayResponse, x as AthenaInsertPayload, y as AthenaUpdatePayload, v as AthenaDeletePayload, n as AthenaRpcPayload, j as AthenaRpcCallOptions, C as AthenaQueryPayload, q as AthenaGatewayEndpointPath, r as AthenaGatewayMethod, i as AthenaJsonValue, g as AthenaJsonObject, D as AthenaGatewayBaseOptions, E as AthenaConditionValue, F as AthenaConditionArrayValue, G as AthenaGatewayCondition, H as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, I as AthenaConditionOperator } from './types-YQUR7wu0.cjs';
2
2
  import { F as AthenaAuthClientConfig, D as AthenaAuthBindings } from './types-eAKAh71s.cjs';
3
- import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, u as AthenaClientTableName, s as AthenaClientModelForTableName, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata, t as AthenaClientModelsInput } from './types-BU8uJH_b.cjs';
3
+ import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, u as AthenaClientTableName, s as AthenaClientModelForTableName, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata, t as AthenaClientModelsInput } from './types-6H575ITc.cjs';
4
+
5
+ interface AthenaFindManyAstPayload$1 {
6
+ table_name: string;
7
+ select: Record<string, unknown>;
8
+ where?: Record<string, unknown>;
9
+ orderBy?: Record<string, unknown>;
10
+ limit?: number;
11
+ }
12
+ declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
13
+ interface AthenaGatewayClient {
14
+ baseUrl: string;
15
+ buildHeaders(options?: AthenaGatewayCallOptions): Record<string, string>;
16
+ verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
17
+ fetchGateway<T>(payload: AthenaFetchPayload | AthenaFindManyAstPayload$1, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
18
+ insertGateway<T>(payload: AthenaInsertPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
19
+ updateGateway<T>(payload: AthenaUpdatePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
20
+ deleteGateway<T>(payload: AthenaDeletePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
21
+ rpcGateway<T>(payload: AthenaRpcPayload, options?: AthenaRpcCallOptions): Promise<AthenaGatewayResponse<T>>;
22
+ queryGateway<T>(payload: AthenaQueryPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
23
+ }
4
24
 
5
25
  type AthenaErrorKind = 'unique_violation' | 'not_found' | 'validation' | 'auth' | 'rate_limit' | 'transient' | 'unknown';
6
26
  declare const AthenaErrorKind: {
@@ -185,93 +205,6 @@ declare function assertInt(value: unknown, label?: string, options?: IntCoercion
185
205
  */
186
206
  declare function withRetry<T>(config: RetryConfig, fn: () => Promise<T>): Promise<T>;
187
207
 
188
- type Whitespace = ' ' | '\n' | '\r' | '\t';
189
- type TrimLeft<TValue extends string> = TValue extends `${Whitespace}${infer TRest}` ? TrimLeft<TRest> : TValue;
190
- type TrimRight<TValue extends string> = TValue extends `${infer TRest}${Whitespace}` ? TrimRight<TRest> : TValue;
191
- type Trim<TValue extends string> = TrimLeft<TrimRight<TValue>>;
192
- /** Known string keys of a row / model type (empty when the shape is untyped). */
193
- type AthenaColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
194
- type KnownSelectColumnKey<Row> = AthenaColumnKey<Row>;
195
- type HasKnownSelectColumns<Row> = [KnownSelectColumnKey<Row>] extends [never] ? false : string extends KnownSelectColumnKey<Row> ? false : true;
196
- type HasComplexSelectTokenSyntax<TValue extends string> = TValue extends `${string}(${string}` ? true : TValue extends `${string})${string}` ? true : TValue extends `${string}.${string}` ? true : TValue extends `${string}"${string}` ? true : TValue extends `${string}'${string}` ? true : false;
197
- type ValidateAliasedBase<Row, TOriginal extends string, TBase extends string> = HasComplexSelectTokenSyntax<Trim<TBase>> extends true ? TOriginal : Trim<TBase> extends KnownSelectColumnKey<Row> ? TOriginal : never;
198
- type ValidateSelectToken<Row, TToken extends string> = Trim<TToken> extends infer TTrimmed extends string ? TTrimmed extends '' ? never : TTrimmed extends '*' ? TTrimmed : TTrimmed extends `${string}:${infer TBase}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} as ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} AS ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : HasComplexSelectTokenSyntax<TTrimmed> extends true ? TTrimmed : TTrimmed extends KnownSelectColumnKey<Row> ? TTrimmed : never : never;
199
- type ValidateSelectList<Row, TValue extends string> = string extends TValue ? TValue : HasComplexSelectTokenSyntax<TValue> extends true ? TValue : TValue extends `${infer THead},${infer TTail}` ? ValidateSelectToken<Row, THead> extends never ? never : ValidateSelectList<Row, TTail> extends never ? never : TValue : ValidateSelectToken<Row, TValue> extends never ? never : TValue;
200
- /**
201
- * Preferred element type for typed array selects.
202
- * Contextual typing validates each array-literal element against known keys
203
- * (no `as const` required) and powers IntelliSense on each slot.
204
- */
205
- type AthenaSelectArrayElement<Row> = HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | '*' : string;
206
- type AthenaSelectInput = string | string[] | readonly string[];
207
- /**
208
- * Compile-time validation for `select` / `single` / `maybeSingle` when
209
- * `experimental.typecheckColumns` is enabled and row keys are known.
210
- *
211
- * - Comma-separated strings: validates each simple token (aliases / relation
212
- * syntax are allowed through).
213
- * - Arrays: always `readonly (keyof Row | '*')[]` for element IntelliSense and
214
- * checking without `as const`.
215
- */
216
- type AthenaValidatedSelectInput<Row, TValue extends AthenaSelectInput> = HasKnownSelectColumns<Row> extends true ? TValue extends readonly string[] ? readonly AthenaSelectArrayElement<Row>[] : TValue extends string ? ValidateSelectList<Row, TValue> : never : TValue;
217
- /**
218
- * Filter / order / RPC column parameter when `typecheckColumns` is enabled.
219
- * When disabled, still surfaces known keys for IntelliSense via
220
- * `Keys | (string & {})` so free-form strings remain assignable.
221
- */
222
- type AthenaTypecheckedColumnKey<Row, TEnabled extends boolean> = TEnabled extends true ? HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> : string : HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | (string & {}) : string;
223
-
224
- type AthenaRowShape$2 = Record<string, AthenaJsonValue | undefined>;
225
- /**
226
- * Free-form `from<Row>(table)` table argument.
227
- * With client `models`, this is the known table-name union (IntelliSense).
228
- * Without models, plain `string`.
229
- */
230
- type UntypedTableName$1<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
231
- type ResolvedClientTableModel$1<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
232
- type ClientTableQueryBuilder$1<TModels, TTableName extends string, TStrict extends boolean> = TableQueryBuilder<RowOf<ResolvedClientTableModel$1<TModels, TTableName>>, InsertOf<ResolvedClientTableModel$1<TModels, TTableName>>, UpdateOf<ResolvedClientTableModel$1<TModels, TTableName>>, unknown, TStrict>;
233
- type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
234
- updateBody?: Update;
235
- onConflict?: string | string[];
236
- };
237
- interface AthenaDbModule<TStrict extends boolean = false, TModels = never> {
238
- from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
239
- from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder$1<TModels, TTableName, TStrict>;
240
- from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
241
- select<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions): SelectChain<Row, Row, TStrict>;
242
- select(table: UntypedTableName$1<TModels>, columns: AthenaSelectInput, options?: AthenaGatewayCallOptions): SelectChain<AthenaRowShape$2, AthenaRowShape$2, TStrict>;
243
- insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row, Row, TStrict>;
244
- insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
245
- upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaUpsertOptions<Update>): MutationQuery<Row, Row, TStrict>;
246
- upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaUpsertOptions<Update>): MutationQuery<Row[], Row, TStrict>;
247
- update<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
248
- delete<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions & {
249
- resourceId?: string;
250
- }): MutationQuery<Row | null, Row, TStrict>;
251
- rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
252
- query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
253
- }
254
-
255
- interface AthenaFindManyAstPayload$1 {
256
- table_name: string;
257
- select: Record<string, unknown>;
258
- where?: Record<string, unknown>;
259
- orderBy?: Record<string, unknown>;
260
- limit?: number;
261
- }
262
- declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
263
- interface AthenaGatewayClient {
264
- baseUrl: string;
265
- buildHeaders(options?: AthenaGatewayCallOptions): Record<string, string>;
266
- verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
267
- fetchGateway<T>(payload: AthenaFetchPayload | AthenaFindManyAstPayload$1, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
268
- insertGateway<T>(payload: AthenaInsertPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
269
- updateGateway<T>(payload: AthenaUpdatePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
270
- deleteGateway<T>(payload: AthenaDeletePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
271
- rpcGateway<T>(payload: AthenaRpcPayload, options?: AthenaRpcCallOptions): Promise<AthenaGatewayResponse<T>>;
272
- queryGateway<T>(payload: AthenaQueryPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
273
- }
274
-
275
208
  type AthenaStorageTemplateValue = string | number | boolean | null | undefined;
276
209
  type AthenaStorageTemplateVars = Record<string, AthenaStorageTemplateValue>;
277
210
  type AthenaStorageEnv = Record<string, string | undefined>;
@@ -296,6 +229,7 @@ interface AthenaStorageFileConfig {
296
229
  prefixPath?: AthenaStoragePrefixPath;
297
230
  vars?: AthenaStorageTemplateVars;
298
231
  env?: AthenaStorageEnv;
232
+ directUpload?: AthenaStorageDirectUploadConfig;
299
233
  }
300
234
  type AthenaStorageUploadSource = Blob | ArrayBuffer | Uint8Array;
301
235
  interface AthenaStorageUploadConstraints {
@@ -383,6 +317,119 @@ interface AthenaStorageFileModule {
383
317
  delete(fileIds: readonly string[], options?: AthenaStorageCallOptions): Promise<StorageFileMutationResponse[]>;
384
318
  }
385
319
 
320
+ /**
321
+ * Admin backup surface exposed under `client.storage.backup.*`.
322
+ *
323
+ * Routes live at `/admin/backups*` (admin / elevated key). Archives land in the
324
+ * server-configured S3 or R2 profile (`ATHENA_BACKUP_S3_*` including provider + account_id).
325
+ */
326
+
327
+ type BackupRecoveryStrategy = 'none' | 'repair_missing_role_oids';
328
+ interface StorageBackupRecord {
329
+ job_id: number;
330
+ s3_bucket: string;
331
+ s3_key: string;
332
+ /** Alias of s3_key for convenience */
333
+ key: string;
334
+ client_name: string;
335
+ label?: string | null;
336
+ size_bytes: number;
337
+ execution_daemon_id?: string | null;
338
+ completed_at: string;
339
+ }
340
+ interface StorageBackupListPage {
341
+ backups: StorageBackupRecord[];
342
+ next_cursor: string | null;
343
+ }
344
+ interface StorageBackupListQuery {
345
+ client_name?: string;
346
+ cursor?: string | null;
347
+ limit?: number;
348
+ }
349
+ interface StorageBackupCreateRequest {
350
+ client_name: string;
351
+ label?: string;
352
+ pg_uri?: string;
353
+ recovery_strategy?: BackupRecoveryStrategy;
354
+ }
355
+ interface StorageBackupQueuedJob {
356
+ job_id: number;
357
+ client_name: string;
358
+ status: string;
359
+ key?: string;
360
+ }
361
+ interface StorageBackupRestoreRequest {
362
+ client_name: string;
363
+ pg_uri?: string;
364
+ }
365
+ interface StorageBackupJob {
366
+ id: number;
367
+ job_type: string;
368
+ client_name?: string | null;
369
+ status: string;
370
+ progress_pct?: number | null;
371
+ progress_stage?: string | null;
372
+ s3_bucket?: string | null;
373
+ s3_key?: string | null;
374
+ label?: string | null;
375
+ error_message?: string | null;
376
+ created_at?: string;
377
+ updated_at?: string;
378
+ completed_at?: string | null;
379
+ [key: string]: unknown;
380
+ }
381
+ interface StorageBackupSchedule {
382
+ id: number;
383
+ client_name: string;
384
+ frequency?: string;
385
+ enabled?: boolean;
386
+ label?: string | null;
387
+ [key: string]: unknown;
388
+ }
389
+ interface StorageBackupScheduleCreateRequest {
390
+ client_name: string;
391
+ frequency: string;
392
+ time_of_day?: string;
393
+ day_of_week?: number;
394
+ day_of_month?: number;
395
+ label?: string;
396
+ execution_daemon_id?: string;
397
+ enabled?: boolean;
398
+ [key: string]: unknown;
399
+ }
400
+ interface AthenaStorageBackupNamespace {
401
+ /** `GET /admin/backups` */
402
+ list(query?: StorageBackupListQuery, options?: AthenaStorageCallOptions): Promise<StorageBackupListPage>;
403
+ /** `POST /admin/backups` — queue a backup job */
404
+ create(input: StorageBackupCreateRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupQueuedJob>;
405
+ /** `POST /admin/backups/{key}/restore` */
406
+ restore(key: string, input: StorageBackupRestoreRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupQueuedJob>;
407
+ /** `DELETE /admin/backups/{key}` */
408
+ delete(key: string, options?: AthenaStorageCallOptions): Promise<void>;
409
+ /** Build a browser download URL for `GET /admin/backups/{key}/download` */
410
+ downloadUrl(key: string, options?: {
411
+ apiKey?: string;
412
+ }): string;
413
+ jobs: {
414
+ list(query?: {
415
+ limit?: number;
416
+ status?: string;
417
+ client_name?: string;
418
+ }, options?: AthenaStorageCallOptions): Promise<StorageBackupJob[]>;
419
+ get(jobId: number | string, options?: AthenaStorageCallOptions): Promise<StorageBackupJob>;
420
+ cancel(jobId: number | string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
421
+ delete(jobId: number | string, options?: AthenaStorageCallOptions): Promise<void>;
422
+ /** Presigned/console open link for the job archive object (S3 or R2) */
423
+ openObjectUrl(jobId: number | string, options?: AthenaStorageCallOptions): Promise<string>;
424
+ };
425
+ schedules: {
426
+ list(options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule[]>;
427
+ create(input: StorageBackupScheduleCreateRequest, options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule>;
428
+ update(id: number | string, input: Partial<StorageBackupScheduleCreateRequest>, options?: AthenaStorageCallOptions): Promise<StorageBackupSchedule>;
429
+ delete(id: number | string, options?: AthenaStorageCallOptions): Promise<void>;
430
+ };
431
+ }
432
+
386
433
  declare const storageSdkManifest: {
387
434
  readonly namespace: "storage";
388
435
  readonly basePath: "/storage";
@@ -424,6 +471,47 @@ declare const storageSdkManifest: {
424
471
  readonly path: "/storage/credentials";
425
472
  readonly responseEnvelope: "raw";
426
473
  readonly responseType: "{ data: S3CredentialListItem[] }";
474
+ }, {
475
+ readonly name: "backup.list";
476
+ readonly method: "GET";
477
+ readonly path: "/admin/backups";
478
+ readonly responseEnvelope: "athena";
479
+ readonly responseType: "StorageBackupListPage";
480
+ readonly note: "Admin backup archives on server S3/R2 profile";
481
+ }, {
482
+ readonly name: "backup.create";
483
+ readonly method: "POST";
484
+ readonly path: "/admin/backups";
485
+ readonly requestType: "StorageBackupCreateRequest";
486
+ readonly responseEnvelope: "athena";
487
+ readonly responseType: "StorageBackupQueuedJob";
488
+ }, {
489
+ readonly name: "backup.restore";
490
+ readonly method: "POST";
491
+ readonly path: "/admin/backups/{key}/restore";
492
+ readonly pathParams: readonly ["key"];
493
+ readonly requestType: "StorageBackupRestoreRequest";
494
+ readonly responseEnvelope: "athena";
495
+ readonly responseType: "StorageBackupQueuedJob";
496
+ }, {
497
+ readonly name: "backup.delete";
498
+ readonly method: "DELETE";
499
+ readonly path: "/admin/backups/{key}";
500
+ readonly pathParams: readonly ["key"];
501
+ readonly responseEnvelope: "athena";
502
+ readonly responseType: "void";
503
+ }, {
504
+ readonly name: "backup.jobs.list";
505
+ readonly method: "GET";
506
+ readonly path: "/admin/backups/jobs";
507
+ readonly responseEnvelope: "athena";
508
+ readonly responseType: "StorageBackupJob[]";
509
+ }, {
510
+ readonly name: "backup.schedules.list";
511
+ readonly method: "GET";
512
+ readonly path: "/admin/backups/schedules";
513
+ readonly responseEnvelope: "athena";
514
+ readonly responseType: "StorageBackupSchedule[]";
427
515
  }, {
428
516
  readonly name: "createStorageUploadUrl";
429
517
  readonly method: "POST";
@@ -1019,10 +1107,24 @@ interface StorageServerSideEncryptionOptions {
1019
1107
  }
1020
1108
  interface CreateStorageCatalogRequest {
1021
1109
  name: string;
1022
- endpoint: string;
1023
- region: string;
1110
+ /**
1111
+ * S3-compatible API endpoint.
1112
+ * Optional when `provider` is R2 and `account_id` (or `metadata.account_id`) is set;
1113
+ * the Athena server derives `https://{account_id}.r2.cloudflarestorage.com`.
1114
+ */
1115
+ endpoint?: string;
1116
+ /**
1117
+ * Region. Optional for R2 (server defaults to `auto` after normalize).
1118
+ */
1119
+ region?: string;
1024
1120
  bucket: string;
1121
+ /** Storage provider: `s3`, `r2`, or `cloudflare_r2` (and free-form S3-compatible labels). */
1025
1122
  provider?: string;
1123
+ /**
1124
+ * Cloudflare account ID for R2 catalogs when endpoint is omitted.
1125
+ * Also accepted under `metadata.account_id`.
1126
+ */
1127
+ account_id?: string;
1026
1128
  force_path_style?: boolean;
1027
1129
  default_prefix?: string;
1028
1130
  public_base_url?: string;
@@ -1037,6 +1139,8 @@ interface UpdateStorageCatalogRequest {
1037
1139
  region?: string;
1038
1140
  bucket?: string;
1039
1141
  provider?: string;
1142
+ /** Cloudflare account ID for R2 (merged into metadata / endpoint derivation). */
1143
+ account_id?: string;
1040
1144
  force_path_style?: boolean;
1041
1145
  default_prefix?: string | null;
1042
1146
  public_base_url?: string | null;
@@ -1418,6 +1522,21 @@ type AthenaStorageErrorHandler = (error: AthenaStorageError) => void | Promise<v
1418
1522
  interface AthenaStorageClientConfig extends AthenaStorageFileConfig {
1419
1523
  onError?: AthenaStorageErrorHandler;
1420
1524
  }
1525
+ /**
1526
+ * Experimental credentials for signing the upload PUT in the client.
1527
+ * The Athena API still creates managed-file metadata so the public upload
1528
+ * result remains unchanged; file bytes go directly to this S3-compatible endpoint.
1529
+ */
1530
+ interface AthenaStorageDirectUploadConfig {
1531
+ endpoint: string;
1532
+ bucket?: string;
1533
+ region?: string;
1534
+ accessKeyId: string;
1535
+ secretAccessKey: string;
1536
+ sessionToken?: string;
1537
+ /** R2 uses path-style addressing by default. */
1538
+ forcePathStyle?: boolean;
1539
+ }
1421
1540
  interface AthenaStorageCallOptions extends AthenaGatewayCallOptions {
1422
1541
  signal?: AbortSignal;
1423
1542
  onError?: AthenaStorageErrorHandler;
@@ -1672,11 +1791,83 @@ interface AthenaStorageModule extends AthenaStorageBaseModule {
1672
1791
  bucket: AthenaStorageBucketNamespace;
1673
1792
  multipart: AthenaStorageMultipartNamespace;
1674
1793
  audit: AthenaStorageAuditNamespace;
1794
+ /**
1795
+ * Database backup / restore admin API (`/admin/backups*`).
1796
+ * Archives are stored in the server S3 or R2 profile (`ATHENA_BACKUP_S3_*`).
1797
+ */
1798
+ backup: AthenaStorageBackupNamespace;
1675
1799
  delete: AthenaStorageFileModule['delete'];
1676
1800
  }
1677
1801
  declare function createAthenaStorageError(input: AthenaStorageErrorInput): AthenaStorageError;
1678
1802
  declare function createStorageModule(gateway: AthenaGatewayClient, runtimeOptions?: AthenaStorageClientConfig): AthenaStorageModule;
1679
1803
 
1804
+ type Whitespace = ' ' | '\n' | '\r' | '\t';
1805
+ type TrimLeft<TValue extends string> = TValue extends `${Whitespace}${infer TRest}` ? TrimLeft<TRest> : TValue;
1806
+ type TrimRight<TValue extends string> = TValue extends `${infer TRest}${Whitespace}` ? TrimRight<TRest> : TValue;
1807
+ type Trim<TValue extends string> = TrimLeft<TrimRight<TValue>>;
1808
+ /** Known string keys of a row / model type (empty when the shape is untyped). */
1809
+ type AthenaColumnKey<Row> = Extract<keyof NonNullable<Row>, string>;
1810
+ type KnownSelectColumnKey<Row> = AthenaColumnKey<Row>;
1811
+ type HasKnownSelectColumns<Row> = [KnownSelectColumnKey<Row>] extends [never] ? false : string extends KnownSelectColumnKey<Row> ? false : true;
1812
+ type HasComplexSelectTokenSyntax<TValue extends string> = TValue extends `${string}(${string}` ? true : TValue extends `${string})${string}` ? true : TValue extends `${string}.${string}` ? true : TValue extends `${string}"${string}` ? true : TValue extends `${string}'${string}` ? true : false;
1813
+ type ValidateAliasedBase<Row, TOriginal extends string, TBase extends string> = HasComplexSelectTokenSyntax<Trim<TBase>> extends true ? TOriginal : Trim<TBase> extends KnownSelectColumnKey<Row> ? TOriginal : never;
1814
+ type ValidateSelectToken<Row, TToken extends string> = Trim<TToken> extends infer TTrimmed extends string ? TTrimmed extends '' ? never : TTrimmed extends '*' ? TTrimmed : TTrimmed extends `${string}:${infer TBase}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} as ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : TTrimmed extends `${infer TBase} AS ${string}` ? ValidateAliasedBase<Row, TTrimmed, TBase> : HasComplexSelectTokenSyntax<TTrimmed> extends true ? TTrimmed : TTrimmed extends KnownSelectColumnKey<Row> ? TTrimmed : never : never;
1815
+ type ValidateSelectList<Row, TValue extends string> = string extends TValue ? TValue : HasComplexSelectTokenSyntax<TValue> extends true ? TValue : TValue extends `${infer THead},${infer TTail}` ? ValidateSelectToken<Row, THead> extends never ? never : ValidateSelectList<Row, TTail> extends never ? never : TValue : ValidateSelectToken<Row, TValue> extends never ? never : TValue;
1816
+ /**
1817
+ * Preferred element type for typed array selects.
1818
+ * Contextual typing validates each array-literal element against known keys
1819
+ * (no `as const` required) and powers IntelliSense on each slot.
1820
+ */
1821
+ type AthenaSelectArrayElement<Row> = HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | '*' : string;
1822
+ type AthenaSelectInput = string | string[] | readonly string[];
1823
+ /**
1824
+ * Compile-time validation for `select` / `single` / `maybeSingle` when
1825
+ * `experimental.typecheckColumns` is enabled and row keys are known.
1826
+ *
1827
+ * - Comma-separated strings: validates each simple token (aliases / relation
1828
+ * syntax are allowed through).
1829
+ * - Arrays: always `readonly (keyof Row | '*')[]` for element IntelliSense and
1830
+ * checking without `as const`.
1831
+ */
1832
+ type AthenaValidatedSelectInput<Row, TValue extends AthenaSelectInput> = HasKnownSelectColumns<Row> extends true ? TValue extends readonly string[] ? readonly AthenaSelectArrayElement<Row>[] : TValue extends string ? ValidateSelectList<Row, TValue> : never : TValue;
1833
+ /**
1834
+ * Filter / order / RPC column parameter when `typecheckColumns` is enabled.
1835
+ * When disabled, still surfaces known keys for IntelliSense via
1836
+ * `Keys | (string & {})` so free-form strings remain assignable.
1837
+ */
1838
+ type AthenaTypecheckedColumnKey<Row, TEnabled extends boolean> = TEnabled extends true ? HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> : string : HasKnownSelectColumns<Row> extends true ? KnownSelectColumnKey<Row> | (string & {}) : string;
1839
+
1840
+ type AthenaRowShape$2 = Record<string, AthenaJsonValue | undefined>;
1841
+ /**
1842
+ * Free-form `from<Row>(table)` table argument.
1843
+ * With client `models`, this is the known table-name union (IntelliSense).
1844
+ * Without models, plain `string`.
1845
+ */
1846
+ type UntypedTableName$1<TModels> = [TModels] extends [never] ? string : [AthenaClientTableName<TModels>] extends [never] ? string : AthenaClientTableName<TModels>;
1847
+ type ResolvedClientTableModel$1<TModels, TTableName extends string> = Extract<AthenaClientModelForTableName<TModels, TTableName>, AthenaModelTarget>;
1848
+ type ClientTableQueryBuilder$1<TModels, TTableName extends string, TStrict extends boolean> = TableQueryBuilder<RowOf<ResolvedClientTableModel$1<TModels, TTableName>>, InsertOf<ResolvedClientTableModel$1<TModels, TTableName>>, UpdateOf<ResolvedClientTableModel$1<TModels, TTableName>>, unknown, TStrict>;
1849
+ type AthenaUpsertOptions<Update> = AthenaGatewayCallOptions & {
1850
+ updateBody?: Update;
1851
+ onConflict?: string | string[];
1852
+ };
1853
+ interface AthenaDbModule<TStrict extends boolean = false, TModels = never> {
1854
+ from<TModel extends AthenaModelTarget>(model: TModel): TableQueryBuilder<RowOf<TModel>, InsertOf<TModel>, UpdateOf<TModel>, unknown, TStrict>;
1855
+ from<TTableName extends AthenaClientTableName<TModels>>(table: TTableName, options?: AthenaFromOptions): ClientTableQueryBuilder$1<TModels, TTableName, TStrict>;
1856
+ from<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, options?: AthenaFromOptions): TableQueryBuilder<Row, Insert, Update, unknown, TStrict>;
1857
+ select<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions): SelectChain<Row, Row, TStrict>;
1858
+ select(table: UntypedTableName$1<TModels>, columns: AthenaSelectInput, options?: AthenaGatewayCallOptions): SelectChain<AthenaRowShape$2, AthenaRowShape$2, TStrict>;
1859
+ insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaGatewayCallOptions): MutationQuery<Row, Row, TStrict>;
1860
+ insert<Row = AthenaRowShape$2, Insert = Partial<Row>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaGatewayCallOptions): MutationQuery<Row[], Row, TStrict>;
1861
+ upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert, options?: AthenaUpsertOptions<Update>): MutationQuery<Row, Row, TStrict>;
1862
+ upsert<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Insert[], options?: AthenaUpsertOptions<Update>): MutationQuery<Row[], Row, TStrict>;
1863
+ update<Row = AthenaRowShape$2, Insert = Partial<Row>, Update = Partial<Insert>>(table: UntypedTableName$1<TModels>, values: Update, options?: AthenaGatewayCallOptions): UpdateChain<Row, TStrict>;
1864
+ delete<Row = AthenaRowShape$2>(table: UntypedTableName$1<TModels>, options?: AthenaGatewayCallOptions & {
1865
+ resourceId?: string;
1866
+ }): MutationQuery<Row | null, Row, TStrict>;
1867
+ rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
1868
+ query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
1869
+ }
1870
+
1680
1871
  type AthenaChatRoomKind = 'dm' | 'group' | 'channel';
1681
1872
  type AthenaChatMemberRole = 'owner' | 'admin' | 'member';
1682
1873
  interface AthenaChatAttachmentInput {
@@ -2422,6 +2613,12 @@ interface AthenaClientExperimentalOptions {
2422
2613
  * Expose the experimental `client.storage.*` bindings for Athena storage APIs.
2423
2614
  */
2424
2615
  athenaStorageBackend?: boolean;
2616
+ /**
2617
+ * Sign high-level `storage.file.upload(...)` PUTs in the client and send
2618
+ * file bytes directly to the configured S3-compatible storage endpoint.
2619
+ * Athena still creates managed-file metadata, preserving the upload result contract.
2620
+ */
2621
+ directStorageUpload?: AthenaStorageDirectUploadConfig;
2425
2622
  /**
2426
2623
  * Optional storage SDK runtime hooks. Only used when `athenaStorageBackend` is enabled.
2427
2624
  */
@@ -2801,4 +2998,4 @@ type AthenaCreateClientReturn<TInput> = TInput extends {
2801
2998
  declare function createClient<TConfig extends AthenaCreateClientConfig>(config: TConfig): AthenaCreateClientReturn<TConfig>;
2802
2999
  declare function createClient<TOptions extends AthenaCreateClientOptions | undefined>(url: string | null | undefined, apiKey: string | null | undefined, options?: TOptions): TOptions extends AthenaCreateClientOptions ? AthenaCreateClientReturn<TOptions> : AthenaSdkClientWithAuth<false>;
2803
3000
 
2804
- export { type AthenaChatWsReadUpdatedEvent as $, type AthenaChatAddMembersRequest as A, type AthenaChatRoom as B, type AthenaChatRoomCreatedResponse as C, type AthenaChatRoomKind as D, type AthenaChatRoomPage as E, type AthenaChatSearchHit as F, type AthenaChatSearchMessagesRequest as G, type AthenaChatSearchPage as H, type AthenaChatSendMessageRequest as I, type AthenaChatUpdateRoomRequest as J, type AthenaChatWebSocketFactory as K, type AthenaChatWebSocketLike as L, type AthenaChatWsAuthHelloCommand as M, type AthenaChatWsClientCommand as N, type AthenaChatWsErrorEvent as O, type AthenaChatWsHelloOkEvent as P, type AthenaChatWsMembersUpdatedEvent as Q, type AthenaChatWsMessageCreatedEvent as R, type AthenaChatWsMessageDeletedEvent as S, type AthenaChatWsMessageEventBase as T, type AthenaChatWsMessageUpdatedEvent as U, type AthenaChatWsPingCommand as V, type AthenaChatWsPongEvent as W, type AthenaChatWsPresenceHeartbeatCommand as X, type AthenaChatWsPresenceUpdatedEvent as Y, type AthenaChatWsReactionUpdatedEvent as Z, type AthenaChatWsReadUpToCommand as _, type AthenaChatAddReactionRequest as a, type AthenaStorageBaseModule as a$, type AthenaChatWsResumeCommand as a0, type AthenaChatWsRoomArchivedEvent as a1, type AthenaChatWsRoomCreatedEvent as a2, type AthenaChatWsRoomEventBase as a3, type AthenaChatWsRoomUpdatedEvent as a4, type AthenaChatWsServerEvent as a5, type AthenaChatWsSubscribeCommand as a6, type AthenaChatWsSubscribedEvent as a7, type AthenaChatWsSyncRequiredEvent as a8, type AthenaChatWsTypingStartCommand as a9, type AthenaEnvelope as aA, AthenaError as aB, AthenaErrorCategory as aC, AthenaErrorCode as aD, type AthenaErrorInput as aE, AthenaErrorKind as aF, type AthenaFindManyDebugAst as aG, type AthenaFromOptions as aH, type AthenaHeaderBag as aI, type AthenaInsertDebugAst as aJ, type AthenaOperationContext as aK, type AthenaQueryDebugAst as aL, type AthenaRawQueryDebugAst as aM, type AthenaRequestMethod as aN, type AthenaRequestOptions as aO, type AthenaRequestQueryValueMap as aP, type AthenaRequestResponse as aQ, type AthenaRequestService as aR, type AthenaResult as aS, type AthenaRpcBuilderStateAst as aT, type AthenaRpcDebugAst as aU, type AthenaSdkClient as aV, type AthenaSdkClientWithAuth as aW, type AthenaSdkClientWithStorage as aX, type AthenaSelectDebugAst as aY, type AthenaSelectDebugTransport as aZ, type AthenaStorageAuditNamespace as a_, type AthenaChatWsTypingStopCommand as aa, type AthenaChatWsTypingUpdatedEvent as ab, type AthenaChatWsUnsubscribeCommand as ac, AthenaClient as ad, type AthenaClientContextOptions as ae, type AthenaClientExperimentalOptions as af, type AthenaClientFromEnvironmentOptions as ag, type AthenaClientFromEnvironmentOptionsWithStorage as ah, type AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns as ai, type AthenaClientFromEnvironmentOptionsWithTypecheckedColumns as aj, type AthenaClientOverrideOptions as ak, type AthenaClientSessionLike as al, type AthenaClientSessionOptions as am, type AthenaCreateClientAuthOptions as an, type AthenaCreateClientChatOptions as ao, type AthenaCreateClientConfig as ap, type AthenaCreateClientConfigWithStorage as aq, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as ar, type AthenaCreateClientConfigWithTypecheckedColumns as as, type AthenaCreateClientOptions as at, type AthenaCreateClientOptionsWithStorage as au, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as av, type AthenaCreateClientOptionsWithTypecheckedColumns as aw, type AthenaCreateClientServiceUrlConfig as ax, type AthenaDbModule as ay, type AthenaDeleteDebugAst as az, type AthenaChatAttachmentInput as b, type RpcQueryBuilder as b$, type AthenaStorageBinaryCallOptions as b0, type AthenaStorageBucketCorsNamespace as b1, type AthenaStorageBucketNamespace as b2, type AthenaStorageCallOptions as b3, type AthenaStorageCatalogNamespace as b4, type AthenaStorageClientConfig as b5, type AthenaStorageCredentialsNamespace as b6, type AthenaStorageEnv as b7, AthenaStorageError as b8, AthenaStorageErrorCode as b9, type AthenaStorageUploadConstraints as bA, type AthenaStorageUploadProgress as bB, type AthenaStorageUploadProgressHandler as bC, type AthenaStorageUploadSource as bD, type AthenaStorageUploadedFile as bE, type AthenaTableBuilderStateAst as bF, type AthenaUpdateDebugAst as bG, type AthenaUpsertDebugAst as bH, type ConfirmStorageUploadRequest as bI, type CopyStorageFileRequest as bJ, type CreateStorageCatalogRequest as bK, type CreateStorageUploadUrlRequest as bL, type CreateStorageUploadUrlsRequest as bM, type DeleteManyStorageFilesRequest as bN, type DeleteStorageFolderRequest as bO, type GetStorageFileUrlQuery as bP, type IntCoercionOptions as bQ, type ListStorageFilesRequest as bR, type ListStorageFoldersRequest as bS, type ManagedFileRecord as bT, type MoveStorageFolderRequest as bU, type NormalizedAthenaError as bV, type PresignedFileUrlResponse as bW, type RequireAffectedOptions as bX, type RetryBackoffStrategy as bY, type RetryConfig as bZ, type RpcOrderOptions as b_, type AthenaStorageErrorDetails as ba, type AthenaStorageErrorHandler as bb, type AthenaStorageErrorInput as bc, type AthenaStorageFileConfig as bd, type AthenaStorageFileDeleteInput as be, type AthenaStorageFileDownloadInput as bf, type AthenaStorageFileListInput as bg, type AthenaStorageFileModule as bh, type AthenaStorageFileNamespace as bi, type AthenaStorageFileUploadInput as bj, type AthenaStorageFileUploadManyRequest as bk, type AthenaStorageFileUploadRequest as bl, type AthenaStorageFileUploadResult as bm, type AthenaStorageFolderNamespace as bn, type AthenaStorageManagedUpload as bo, type AthenaStorageModule as bp, type AthenaStorageMultipartNamespace as bq, type AthenaStorageObjectFolderNamespace as br, type AthenaStorageObjectNamespace as bs, type AthenaStoragePathContext as bt, type AthenaStoragePermissionNamespace as bu, type AthenaStoragePrefixPath as bv, type AthenaStoragePutBody as bw, type AthenaStoragePutOptions as bx, type AthenaStorageTemplateValue as by, type AthenaStorageTemplateVars as bz, type AthenaChatAttachmentView as c, type UpdateStorageFileRequest as c$, type S3CatalogItem as c0, type S3CredentialListItem as c1, type SearchStorageFilesRequest as c2, type SetManyStorageFileVisibilityRequest as c3, type SetStorageFileVisibilityRequest as c4, type StorageAuditEventRecord as c5, type StorageAuditListResponse as c6, type StorageAuditQueryRequest as c7, type StorageBatchUploadUrlResponse as c8, type StorageBatchUploadUrlResponseWithPut as c9, type StorageObjectRequest as cA, type StorageObjectValidateRequest as cB, type StorageObjectVersionListRequest as cC, type StorageObjectVersionMutationRequest as cD, type StoragePermissionCheckRequest as cE, type StoragePermissionCheckResponse as cF, type StoragePermissionGrantRequest as cG, type StoragePermissionListRequest as cH, type StoragePermissionListResponse as cI, type StoragePermissionRevokeRequest as cJ, type StoragePresignUploadRequest as cK, type StoragePublicAccessBlockRequest as cL, type StorageServerSideEncryptionOptions as cM, type StorageSetBucketCorsRequest as cN, type StorageSetBucketLifecycleRequest as cO, type StorageSetBucketPolicyRequest as cP, type StorageSetPublicAccessBlockRequest as cQ, type StorageSignedPostPolicyRequest as cR, type StorageUpdateObjectRequest as cS, type StorageUploadUrlResponse as cT, type StorageUploadUrlResponseWithPut as cU, type TableQueryBuilder as cV, type TreeStorageFoldersRequest as cW, type UnwrapOneOptions as cX, type UnwrapOptions as cY, type UpdateManyStorageFilesRequest as cZ, type UpdateStorageCatalogRequest as c_, type StorageBucketCorsRequest as ca, type StorageBucketCorsRuleInput as cb, type StorageBucketLifecycleRequest as cc, type StorageBucketLifecycleRuleInput as cd, type StorageBucketPolicyRequest as ce, type StorageFileAccessPurpose as cf, type StorageFileMutationManyResponse as cg, type StorageFileMutationResponse as ch, type StorageFilePermissionRecord as ci, type StorageFileRetentionRequest as cj, type StorageFileVersionPathRequest as ck, type StorageFolderMutationResponse as cl, type StorageListFilesResponse as cm, type StorageListObjectsRequest as cn, type StorageMultipartAbortRequest as co, type StorageMultipartCompletePartInput as cp, type StorageMultipartCompleteRequest as cq, type StorageMultipartCreateRequest as cr, type StorageMultipartListPartsRequest as cs, type StorageMultipartSignPartRequest as ct, type StorageObjectBaseRequest as cu, type StorageObjectCopyRequest as cv, type StorageObjectFolderCreateRequest as cw, type StorageObjectFolderDeleteRequest as cx, type StorageObjectFolderRenameRequest as cy, type StorageObjectPublicUrlRequest as cz, type AthenaChatCallOptions as d, assertInt as d0, coerceInt as d1, createAthenaStorageError as d2, createClient as d3, createStorageModule as d4, getAthenaDebugAst as d5, isOk as d6, normalizeAthenaError as d7, parseBooleanFlag as d8, requireAffected as d9, requireSuccess as da, storageSdkManifest as db, unwrap as dc, unwrapOne as dd, unwrapRows as de, verifyAthenaGatewayUrl as df, withRetry as dg, type AthenaClientBuilder as dh, type AthenaFindManyOptions as di, type AthenaFindManyResult as dj, type AthenaOrderBy as dk, type AthenaQueryTraceCallsite as dl, type AthenaQueryTraceEvent as dm, type AthenaQueryTraceOptions as dn, type AthenaRelationSelectNode as dp, type AthenaResultError as dq, type AthenaSelectShape as dr, type AthenaWhere as ds, type AthenaWhereBooleanOperand as dt, type AthenaWhereOperatorInput as du, type AthenaChatConnectOptions as e, type AthenaChatCreateRoomRequest as f, type AthenaChatDeleteResult as g, type AthenaChatEditMessageRequest as h, type AthenaChatListMessagesQuery as i, type AthenaChatListRoomsQuery as j, type AthenaChatMarkReadUpToRequest as k, type AthenaChatMember as l, type AthenaChatMemberRole as m, type AthenaChatMessage as n, type AthenaChatMessageCreatedResponse as o, type AthenaChatMessagePage as p, type AthenaChatModule as q, type AthenaChatPresenceUser as r, type AthenaChatReactionCount as s, type AthenaChatReactionSummary as t, type AthenaChatReadCursor as u, type AthenaChatRealtimeConnection as v, type AthenaChatRealtimeInfoResponse as w, type AthenaChatRealtimeModule as x, type AthenaChatRemoveResult as y, type AthenaChatResumeRoomCursor as z };
3001
+ export { type AthenaChatWsReadUpdatedEvent as $, type AthenaChatAddMembersRequest as A, type AthenaChatRoom as B, type AthenaChatRoomCreatedResponse as C, type AthenaChatRoomKind as D, type AthenaChatRoomPage as E, type AthenaChatSearchHit as F, type AthenaChatSearchMessagesRequest as G, type AthenaChatSearchPage as H, type AthenaChatSendMessageRequest as I, type AthenaChatUpdateRoomRequest as J, type AthenaChatWebSocketFactory as K, type AthenaChatWebSocketLike as L, type AthenaChatWsAuthHelloCommand as M, type AthenaChatWsClientCommand as N, type AthenaChatWsErrorEvent as O, type AthenaChatWsHelloOkEvent as P, type AthenaChatWsMembersUpdatedEvent as Q, type AthenaChatWsMessageCreatedEvent as R, type AthenaChatWsMessageDeletedEvent as S, type AthenaChatWsMessageEventBase as T, type AthenaChatWsMessageUpdatedEvent as U, type AthenaChatWsPingCommand as V, type AthenaChatWsPongEvent as W, type AthenaChatWsPresenceHeartbeatCommand as X, type AthenaChatWsPresenceUpdatedEvent as Y, type AthenaChatWsReactionUpdatedEvent as Z, type AthenaChatWsReadUpToCommand as _, type AthenaChatAddReactionRequest as a, type AthenaStorageBackupNamespace as a$, type AthenaChatWsResumeCommand as a0, type AthenaChatWsRoomArchivedEvent as a1, type AthenaChatWsRoomCreatedEvent as a2, type AthenaChatWsRoomEventBase as a3, type AthenaChatWsRoomUpdatedEvent as a4, type AthenaChatWsServerEvent as a5, type AthenaChatWsSubscribeCommand as a6, type AthenaChatWsSubscribedEvent as a7, type AthenaChatWsSyncRequiredEvent as a8, type AthenaChatWsTypingStartCommand as a9, type AthenaEnvelope as aA, AthenaError as aB, AthenaErrorCategory as aC, AthenaErrorCode as aD, type AthenaErrorInput as aE, AthenaErrorKind as aF, type AthenaFindManyDebugAst as aG, type AthenaFromOptions as aH, type AthenaHeaderBag as aI, type AthenaInsertDebugAst as aJ, type AthenaOperationContext as aK, type AthenaQueryDebugAst as aL, type AthenaRawQueryDebugAst as aM, type AthenaRequestMethod as aN, type AthenaRequestOptions as aO, type AthenaRequestQueryValueMap as aP, type AthenaRequestResponse as aQ, type AthenaRequestService as aR, type AthenaResult as aS, type AthenaRpcBuilderStateAst as aT, type AthenaRpcDebugAst as aU, type AthenaSdkClient as aV, type AthenaSdkClientWithAuth as aW, type AthenaSdkClientWithStorage as aX, type AthenaSelectDebugAst as aY, type AthenaSelectDebugTransport as aZ, type AthenaStorageAuditNamespace as a_, type AthenaChatWsTypingStopCommand as aa, type AthenaChatWsTypingUpdatedEvent as ab, type AthenaChatWsUnsubscribeCommand as ac, AthenaClient as ad, type AthenaClientContextOptions as ae, type AthenaClientExperimentalOptions as af, type AthenaClientFromEnvironmentOptions as ag, type AthenaClientFromEnvironmentOptionsWithStorage as ah, type AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns as ai, type AthenaClientFromEnvironmentOptionsWithTypecheckedColumns as aj, type AthenaClientOverrideOptions as ak, type AthenaClientSessionLike as al, type AthenaClientSessionOptions as am, type AthenaCreateClientAuthOptions as an, type AthenaCreateClientChatOptions as ao, type AthenaCreateClientConfig as ap, type AthenaCreateClientConfigWithStorage as aq, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as ar, type AthenaCreateClientConfigWithTypecheckedColumns as as, type AthenaCreateClientOptions as at, type AthenaCreateClientOptionsWithStorage as au, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as av, type AthenaCreateClientOptionsWithTypecheckedColumns as aw, type AthenaCreateClientServiceUrlConfig as ax, type AthenaDbModule as ay, type AthenaDeleteDebugAst as az, type AthenaChatAttachmentInput as b, type RetryBackoffStrategy as b$, type AthenaStorageBaseModule as b0, type AthenaStorageBinaryCallOptions as b1, type AthenaStorageBucketCorsNamespace as b2, type AthenaStorageBucketNamespace as b3, type AthenaStorageCallOptions as b4, type AthenaStorageCatalogNamespace as b5, type AthenaStorageClientConfig as b6, type AthenaStorageCredentialsNamespace as b7, type AthenaStorageDirectUploadConfig as b8, type AthenaStorageEnv as b9, type AthenaStorageTemplateValue as bA, type AthenaStorageTemplateVars as bB, type AthenaStorageUploadConstraints as bC, type AthenaStorageUploadProgress as bD, type AthenaStorageUploadProgressHandler as bE, type AthenaStorageUploadSource as bF, type AthenaStorageUploadedFile as bG, type AthenaTableBuilderStateAst as bH, type AthenaUpdateDebugAst as bI, type AthenaUpsertDebugAst as bJ, type BackupRecoveryStrategy as bK, type ConfirmStorageUploadRequest as bL, type CopyStorageFileRequest as bM, type CreateStorageCatalogRequest as bN, type CreateStorageUploadUrlRequest as bO, type CreateStorageUploadUrlsRequest as bP, type DeleteManyStorageFilesRequest as bQ, type DeleteStorageFolderRequest as bR, type GetStorageFileUrlQuery as bS, type IntCoercionOptions as bT, type ListStorageFilesRequest as bU, type ListStorageFoldersRequest as bV, type ManagedFileRecord as bW, type MoveStorageFolderRequest as bX, type NormalizedAthenaError as bY, type PresignedFileUrlResponse as bZ, type RequireAffectedOptions as b_, AthenaStorageError as ba, AthenaStorageErrorCode as bb, type AthenaStorageErrorDetails as bc, type AthenaStorageErrorHandler as bd, type AthenaStorageErrorInput as be, type AthenaStorageFileConfig as bf, type AthenaStorageFileDeleteInput as bg, type AthenaStorageFileDownloadInput as bh, type AthenaStorageFileListInput as bi, type AthenaStorageFileModule as bj, type AthenaStorageFileNamespace as bk, type AthenaStorageFileUploadInput as bl, type AthenaStorageFileUploadManyRequest as bm, type AthenaStorageFileUploadRequest as bn, type AthenaStorageFileUploadResult as bo, type AthenaStorageFolderNamespace as bp, type AthenaStorageManagedUpload as bq, type AthenaStorageModule as br, type AthenaStorageMultipartNamespace as bs, type AthenaStorageObjectFolderNamespace as bt, type AthenaStorageObjectNamespace as bu, type AthenaStoragePathContext as bv, type AthenaStoragePermissionNamespace as bw, type AthenaStoragePrefixPath as bx, type AthenaStoragePutBody as by, type AthenaStoragePutOptions as bz, type AthenaChatAttachmentView as c, type StorageSetBucketPolicyRequest as c$, type RetryConfig as c0, type RpcOrderOptions as c1, type RpcQueryBuilder as c2, type S3CatalogItem as c3, type S3CredentialListItem as c4, type SearchStorageFilesRequest as c5, type SetManyStorageFileVisibilityRequest as c6, type SetStorageFileVisibilityRequest as c7, type StorageAuditEventRecord as c8, type StorageAuditListResponse as c9, type StorageMultipartAbortRequest as cA, type StorageMultipartCompletePartInput as cB, type StorageMultipartCompleteRequest as cC, type StorageMultipartCreateRequest as cD, type StorageMultipartListPartsRequest as cE, type StorageMultipartSignPartRequest as cF, type StorageObjectBaseRequest as cG, type StorageObjectCopyRequest as cH, type StorageObjectFolderCreateRequest as cI, type StorageObjectFolderDeleteRequest as cJ, type StorageObjectFolderRenameRequest as cK, type StorageObjectPublicUrlRequest as cL, type StorageObjectRequest as cM, type StorageObjectValidateRequest as cN, type StorageObjectVersionListRequest as cO, type StorageObjectVersionMutationRequest as cP, type StoragePermissionCheckRequest as cQ, type StoragePermissionCheckResponse as cR, type StoragePermissionGrantRequest as cS, type StoragePermissionListRequest as cT, type StoragePermissionListResponse as cU, type StoragePermissionRevokeRequest as cV, type StoragePresignUploadRequest as cW, type StoragePublicAccessBlockRequest as cX, type StorageServerSideEncryptionOptions as cY, type StorageSetBucketCorsRequest as cZ, type StorageSetBucketLifecycleRequest as c_, type StorageAuditQueryRequest as ca, type StorageBackupCreateRequest as cb, type StorageBackupJob as cc, type StorageBackupListPage as cd, type StorageBackupListQuery as ce, type StorageBackupQueuedJob as cf, type StorageBackupRecord as cg, type StorageBackupRestoreRequest as ch, type StorageBackupSchedule as ci, type StorageBackupScheduleCreateRequest as cj, type StorageBatchUploadUrlResponse as ck, type StorageBatchUploadUrlResponseWithPut as cl, type StorageBucketCorsRequest as cm, type StorageBucketCorsRuleInput as cn, type StorageBucketLifecycleRequest as co, type StorageBucketLifecycleRuleInput as cp, type StorageBucketPolicyRequest as cq, type StorageFileAccessPurpose as cr, type StorageFileMutationManyResponse as cs, type StorageFileMutationResponse as ct, type StorageFilePermissionRecord as cu, type StorageFileRetentionRequest as cv, type StorageFileVersionPathRequest as cw, type StorageFolderMutationResponse as cx, type StorageListFilesResponse as cy, type StorageListObjectsRequest as cz, type AthenaChatCallOptions as d, type StorageSetPublicAccessBlockRequest as d0, type StorageSignedPostPolicyRequest as d1, type StorageUpdateObjectRequest as d2, type StorageUploadUrlResponse as d3, type StorageUploadUrlResponseWithPut as d4, type TableQueryBuilder as d5, type TreeStorageFoldersRequest as d6, type UnwrapOneOptions as d7, type UnwrapOptions as d8, type UpdateManyStorageFilesRequest as d9, type AthenaQueryTraceOptions as dA, type AthenaRelationSelectNode as dB, type AthenaResultError as dC, type AthenaSelectShape as dD, type AthenaWhere as dE, type AthenaWhereBooleanOperand as dF, type AthenaWhereOperatorInput as dG, type UpdateStorageCatalogRequest as da, type UpdateStorageFileRequest as db, assertInt as dc, coerceInt as dd, createAthenaStorageError as de, createClient as df, createStorageModule as dg, getAthenaDebugAst as dh, isOk as di, normalizeAthenaError as dj, parseBooleanFlag as dk, requireAffected as dl, requireSuccess as dm, storageSdkManifest as dn, unwrap as dp, unwrapOne as dq, unwrapRows as dr, verifyAthenaGatewayUrl as ds, withRetry as dt, type AthenaClientBuilder as du, type AthenaFindManyOptions as dv, type AthenaFindManyResult as dw, type AthenaOrderBy as dx, type AthenaQueryTraceCallsite as dy, type AthenaQueryTraceEvent as dz, type AthenaChatConnectOptions as e, type AthenaChatCreateRoomRequest as f, type AthenaChatDeleteResult as g, type AthenaChatEditMessageRequest as h, type AthenaChatListMessagesQuery as i, type AthenaChatListRoomsQuery as j, type AthenaChatMarkReadUpToRequest as k, type AthenaChatMember as l, type AthenaChatMemberRole as m, type AthenaChatMessage as n, type AthenaChatMessageCreatedResponse as o, type AthenaChatMessagePage as p, type AthenaChatModule as q, type AthenaChatPresenceUser as r, type AthenaChatReactionCount as s, type AthenaChatReactionSummary as t, type AthenaChatReadCursor as u, type AthenaChatRealtimeConnection as v, type AthenaChatRealtimeInfoResponse as w, type AthenaChatRealtimeModule as x, type AthenaChatRemoveResult as y, type AthenaChatResumeRoomCursor as z };