@xylex-group/athena 2.8.0 → 2.9.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 (52) hide show
  1. package/README.md +165 -68
  2. package/dist/browser.cjs +1331 -70
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +8 -7
  5. package/dist/browser.d.ts +8 -7
  6. package/dist/browser.js +1325 -71
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +1354 -117
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +3 -3
  11. package/dist/cli/index.d.ts +3 -3
  12. package/dist/cli/index.js +1354 -117
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{model-form-DMed05gE.d.cts → client-CfAE_QOj.d.cts} +741 -132
  15. package/dist/{model-form-DXPlOnlI.d.ts → client-D6EIJdQS.d.ts} +741 -132
  16. package/dist/index.cjs +1391 -71
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +8 -7
  19. package/dist/index.d.ts +8 -7
  20. package/dist/index.js +1385 -72
  21. package/dist/index.js.map +1 -1
  22. package/dist/model-form-ByvyyvxB.d.ts +96 -0
  23. package/dist/model-form-DACdBLYG.d.cts +96 -0
  24. package/dist/next/client.cjs +7875 -0
  25. package/dist/next/client.cjs.map +1 -0
  26. package/dist/next/client.d.cts +25 -0
  27. package/dist/next/client.d.ts +25 -0
  28. package/dist/next/client.js +7873 -0
  29. package/dist/next/client.js.map +1 -0
  30. package/dist/next/server.cjs +7993 -0
  31. package/dist/next/server.cjs.map +1 -0
  32. package/dist/next/server.d.cts +52 -0
  33. package/dist/next/server.d.ts +52 -0
  34. package/dist/next/server.js +7990 -0
  35. package/dist/next/server.js.map +1 -0
  36. package/dist/{pipeline-D4sJRKqN.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
  37. package/dist/{pipeline-CkMnhwPI.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
  38. package/dist/{react-email-DZhDDlEl.d.cts → react-email-BvJ3fj_F.d.cts} +35 -7
  39. package/dist/{react-email-Lrz9A-BW.d.ts → react-email-PLAJuZuO.d.ts} +35 -7
  40. package/dist/react.cjs +30 -1
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +39 -10
  43. package/dist/react.d.ts +39 -10
  44. package/dist/react.js +30 -2
  45. package/dist/react.js.map +1 -1
  46. package/dist/shared-BW6hoLBY.d.cts +33 -0
  47. package/dist/shared-BiJvoURI.d.ts +33 -0
  48. package/dist/{types-vikz9YIO.d.cts → types-BeZIHduP.d.cts} +5 -1
  49. package/dist/{types-vikz9YIO.d.ts → types-BeZIHduP.d.ts} +5 -1
  50. package/dist/{types-CAtTGGoz.d.cts → types-C-YvfgYh.d.cts} +27 -2
  51. package/dist/{types-BzY6fETM.d.ts → types-CRjDwmtJ.d.ts} +27 -2
  52. package/package.json +37 -49
@@ -1,4 +1,4 @@
1
- import { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, $ as AthenaConditionValue, a0 as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, J as SchemaDef, N as AnyModelDef, C as ModelDef, G as ModelRelationMetadata, a1 as AthenaGatewayCondition, a2 as AthenaSortBy, V as AthenaFetchPayload, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, l as AthenaRpcFilter, o as AthenaRpcPayload, p as BackendConfig, q as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, a3 as AthenaConditionOperator, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, d as AthenaGatewayErrorCode, W as AthenaGatewayResponse } from './types-vikz9YIO.cjs';
1
+ import { j as AthenaModelTarget, H as RowOf, r as InsertOf, U as UpdateOf, i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, k as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, V as AthenaFetchPayload, W as AthenaGatewayResponse, X as AthenaInsertPayload, Y as AthenaUpdatePayload, Q as AthenaDeletePayload, o as AthenaRpcPayload, $ as AthenaQueryPayload, Z as AthenaGatewayEndpointPath, _ as AthenaGatewayMethod, a0 as AthenaConditionValue, a1 as AthenaConditionArrayValue, R as RegistryDef, D as DatabaseDef, J as SchemaDef, N as AnyModelDef, C as ModelDef, G as ModelRelationMetadata, a2 as AthenaGatewayCondition, a3 as AthenaSortBy, l as AthenaRpcFilter, p as BackendConfig, q as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, a4 as AthenaConditionOperator } from './types-BeZIHduP.cjs';
2
2
 
3
3
  type AthenaAuthMethod = 'GET' | 'POST';
4
4
  type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
@@ -56,6 +56,9 @@ interface AthenaAuthSessionResponse {
56
56
  session: AthenaAuthSession;
57
57
  user: AthenaAuthUser;
58
58
  }
59
+ interface AthenaAuthGetUserResponse {
60
+ user: AthenaAuthUser | null;
61
+ }
59
62
  interface AthenaAuthOrganization {
60
63
  id: string;
61
64
  name: string;
@@ -858,6 +861,9 @@ interface AthenaAuthCallOptions {
858
861
  baseUrl?: string;
859
862
  apiKey?: string;
860
863
  bearerToken?: string;
864
+ cookie?: string;
865
+ sessionToken?: string;
866
+ forceNoCache?: boolean;
861
867
  headers?: Record<string, string>;
862
868
  credentials?: AthenaAuthCredentials;
863
869
  signal?: AbortSignal;
@@ -869,6 +875,20 @@ interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
869
875
  fetch?: typeof fetch;
870
876
  reactEmail?: AthenaAuthReactEmailConfig;
871
877
  }
878
+ type AthenaAuthGuardReason = 'unauthorized' | 'forbidden' | 'upstream_error';
879
+ interface AthenaAuthGuardSuccess {
880
+ ok: true;
881
+ session: AthenaAuthSessionResponse;
882
+ }
883
+ interface AthenaAuthGuardFailure {
884
+ ok: false;
885
+ reason: AthenaAuthGuardReason;
886
+ status: number;
887
+ error: string;
888
+ sessionResult?: AthenaAuthResult<AthenaAuthSessionResponse>;
889
+ permissionResult?: AthenaAuthResult<AthenaAdminHasPermissionResponse>;
890
+ }
891
+ type AthenaAuthGuardResult = AthenaAuthGuardSuccess | AthenaAuthGuardFailure;
872
892
  interface AthenaAuthEmailTemplateDefinition<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
873
893
  component: AthenaAuthReactEmailComponent<TProps>;
874
894
  templateKey?: string;
@@ -943,6 +963,8 @@ interface AthenaAuthOrganizationBindings {
943
963
  } & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthOrganizationInvitation[]>>;
944
964
  /** Check organization-level permissions for the current principal. Route: `POST /organization/has-permission`. */
945
965
  hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
966
+ /** Resolve the current session and require organization-level permissions in one call. */
967
+ requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
946
968
  invitation: {
947
969
  /** Cancel an organization invitation. Route: `POST /organization/cancel-invitation`. */
948
970
  cancel: (input: AthenaAuthOrganizationInvitationActionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
@@ -977,6 +999,10 @@ interface AthenaAuthOrganizationBindings {
977
999
  interface AthenaAuthBindings {
978
1000
  /** Get current session. Route: `GET /get-session`. */
979
1001
  getSession: AthenaAuthSdkClient['getSession'];
1002
+ /** Get current user as a Better Auth-style compatibility projection. Route: `GET /get-session`. */
1003
+ getUser: AthenaAuthSdkClient['getUser'];
1004
+ /** Resolve the current session into a typed guard result. */
1005
+ requireSession: AthenaAuthSdkClient['requireSession'];
980
1006
  /** Sign out current session. Route: `POST /sign-out`. */
981
1007
  signOut: AthenaAuthSdkClient['signOut'];
982
1008
  /** Trigger password reset email flow. Route: `POST /forget-password`. */
@@ -1122,6 +1148,8 @@ interface AthenaAuthBindings {
1122
1148
  };
1123
1149
  /** Check permission under admin policy. Route: `POST /admin/has-permission`. */
1124
1150
  hasPermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminHasPermissionResponse>>;
1151
+ /** Resolve the current session and require admin permissions in one call. */
1152
+ requirePermission: (input: AthenaAdminHasPermissionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
1125
1153
  apiKey: {
1126
1154
  /** Create admin-scoped API key. Route: `POST /admin/api-key/create`. */
1127
1155
  create: (input?: AthenaAdminApiKeyCreateRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAdminApiKeyCreateResponse>>;
@@ -1254,6 +1282,8 @@ interface AthenaAuthSdkClient {
1254
1282
  signOut: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
1255
1283
  logout: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSignOutResponse>>;
1256
1284
  getSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSessionResponse>>;
1285
+ getUser: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthGetUserResponse>>;
1286
+ requireSession: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthGuardResult>;
1257
1287
  listSessions: (input?: AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthSession[]>>;
1258
1288
  revokeSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
1259
1289
  clearSession: (input: AthenaAuthRevokeSessionRequest & AthenaAuthFetchCompatibleInput, options?: AthenaAuthCallOptions) => Promise<AthenaAuthResult<AthenaAuthStatusResponse>>;
@@ -1463,6 +1493,10 @@ declare function coerceInt(value: unknown, options?: IntCoercionOptions): number
1463
1493
  */
1464
1494
  declare function assertInt(value: unknown, label?: string, options?: IntCoercionOptions): number;
1465
1495
  /**
1496
+ * @deprecated Prefer `experimental.retryReads` for standard SDK-managed read
1497
+ * retries, or a call-site retry policy when you need custom write/replay
1498
+ * behavior. This helper is retained for compatibility.
1499
+ *
1466
1500
  * Retries an async operation with configurable backoff and retry policy.
1467
1501
  *
1468
1502
  * `retries` represents additional attempts after the first failure.
@@ -1510,6 +1544,26 @@ interface AthenaDbModule<TStrict extends boolean = false> {
1510
1544
  query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
1511
1545
  }
1512
1546
 
1547
+ interface AthenaFindManyAstPayload$1 {
1548
+ table_name: string;
1549
+ select: Record<string, unknown>;
1550
+ where?: Record<string, unknown>;
1551
+ orderBy?: Record<string, unknown>;
1552
+ limit?: number;
1553
+ }
1554
+ declare function verifyAthenaGatewayUrl(baseUrl: string, options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
1555
+ interface AthenaGatewayClient {
1556
+ baseUrl: string;
1557
+ buildHeaders(options?: AthenaGatewayCallOptions): Record<string, string>;
1558
+ verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
1559
+ fetchGateway<T>(payload: AthenaFetchPayload | AthenaFindManyAstPayload$1, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
1560
+ insertGateway<T>(payload: AthenaInsertPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
1561
+ updateGateway<T>(payload: AthenaUpdatePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
1562
+ deleteGateway<T>(payload: AthenaDeletePayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
1563
+ rpcGateway<T>(payload: AthenaRpcPayload, options?: AthenaRpcCallOptions): Promise<AthenaGatewayResponse<T>>;
1564
+ queryGateway<T>(payload: AthenaQueryPayload, options?: AthenaGatewayCallOptions): Promise<AthenaGatewayResponse<T>>;
1565
+ }
1566
+
1513
1567
  type AthenaStorageTemplateValue = string | number | boolean | null | undefined;
1514
1568
  type AthenaStorageTemplateVars = Record<string, AthenaStorageTemplateValue>;
1515
1569
  type AthenaStorageEnv = Record<string, string | undefined>;
@@ -1556,7 +1610,7 @@ interface AthenaStorageUploadProgress {
1556
1610
  aggregatePercent: number;
1557
1611
  }
1558
1612
  type AthenaStorageUploadProgressHandler = (progress: AthenaStorageUploadProgress) => void;
1559
- interface AthenaStorageFileUploadInput extends AthenaStorageUploadConstraints {
1613
+ interface AthenaStorageFileUploadInput extends AthenaStorageUploadConstraints, StorageServerSideEncryptionOptions {
1560
1614
  s3_id: string;
1561
1615
  bucket?: string;
1562
1616
  files: AthenaStorageUploadSource | ArrayLike<AthenaStorageUploadSource> | readonly AthenaStorageUploadSource[];
@@ -1730,6 +1784,21 @@ declare const storageSdkManifest: {
1730
1784
  readonly requestType: "SetStorageFileVisibilityRequest";
1731
1785
  readonly responseEnvelope: "athena";
1732
1786
  readonly responseType: "StorageFileMutationResponse";
1787
+ }, {
1788
+ readonly name: "postStorageFileVisibility";
1789
+ readonly method: "POST";
1790
+ readonly path: "/storage/files/{file_id}/visibility";
1791
+ readonly pathParams: readonly ["file_id"];
1792
+ readonly requestType: "SetStorageFileVisibilityRequest";
1793
+ readonly responseEnvelope: "athena";
1794
+ readonly responseType: "StorageFileMutationResponse";
1795
+ }, {
1796
+ readonly name: "setManyStorageFileVisibility";
1797
+ readonly method: "POST";
1798
+ readonly path: "/storage/files/visibility-many";
1799
+ readonly requestType: "SetManyStorageFileVisibilityRequest";
1800
+ readonly responseEnvelope: "athena";
1801
+ readonly responseType: "StorageFileMutationManyResponse";
1733
1802
  }, {
1734
1803
  readonly name: "deleteStorageFolder";
1735
1804
  readonly method: "POST";
@@ -1744,6 +1813,425 @@ declare const storageSdkManifest: {
1744
1813
  readonly requestType: "MoveStorageFolderRequest";
1745
1814
  readonly responseEnvelope: "athena";
1746
1815
  readonly responseType: "StorageFolderMutationResponse";
1816
+ }, {
1817
+ readonly name: "searchStorageFiles";
1818
+ readonly method: "POST";
1819
+ readonly path: "/storage/files/search";
1820
+ readonly requestType: "SearchStorageFilesRequest";
1821
+ readonly responseEnvelope: "athena";
1822
+ readonly responseType: "StorageListFilesResponse";
1823
+ }, {
1824
+ readonly name: "confirmStorageUpload";
1825
+ readonly method: "POST";
1826
+ readonly path: "/storage/files/{file_id}/confirm-upload";
1827
+ readonly pathParams: readonly ["file_id"];
1828
+ readonly requestType: "ConfirmStorageUploadRequest";
1829
+ readonly responseEnvelope: "athena";
1830
+ readonly responseType: "StorageFileMutationResponse";
1831
+ }, {
1832
+ readonly name: "uploadStorageFileBinary";
1833
+ readonly method: "PUT";
1834
+ readonly path: "/storage/files/{file_id}/upload";
1835
+ readonly pathParams: readonly ["file_id"];
1836
+ readonly responseEnvelope: "athena";
1837
+ readonly responseType: "StorageFileMutationResponse";
1838
+ readonly binary: true;
1839
+ }, {
1840
+ readonly name: "copyStorageFile";
1841
+ readonly method: "POST";
1842
+ readonly path: "/storage/files/{file_id}/copy";
1843
+ readonly pathParams: readonly ["file_id"];
1844
+ readonly requestType: "CopyStorageFileRequest";
1845
+ readonly responseEnvelope: "athena";
1846
+ readonly responseType: "StorageFileMutationResponse";
1847
+ }, {
1848
+ readonly name: "deleteManyStorageFiles";
1849
+ readonly method: "POST";
1850
+ readonly path: "/storage/files/delete-many";
1851
+ readonly requestType: "DeleteManyStorageFilesRequest";
1852
+ readonly responseEnvelope: "athena";
1853
+ readonly responseType: "StorageFileMutationManyResponse";
1854
+ }, {
1855
+ readonly name: "updateManyStorageFiles";
1856
+ readonly method: "POST";
1857
+ readonly path: "/storage/files/update-many";
1858
+ readonly requestType: "UpdateManyStorageFilesRequest";
1859
+ readonly responseEnvelope: "athena";
1860
+ readonly responseType: "StorageFileMutationManyResponse";
1861
+ }, {
1862
+ readonly name: "restoreStorageFile";
1863
+ readonly method: "POST";
1864
+ readonly path: "/storage/files/{file_id}/restore";
1865
+ readonly pathParams: readonly ["file_id"];
1866
+ readonly responseEnvelope: "athena";
1867
+ readonly responseType: "StorageFileMutationResponse";
1868
+ }, {
1869
+ readonly name: "purgeStorageFile";
1870
+ readonly method: "DELETE";
1871
+ readonly path: "/storage/files/{file_id}/purge";
1872
+ readonly pathParams: readonly ["file_id"];
1873
+ readonly responseEnvelope: "athena";
1874
+ readonly responseType: "StorageFileMutationResponse";
1875
+ }, {
1876
+ readonly name: "getStorageFilePublicUrl";
1877
+ readonly method: "GET";
1878
+ readonly path: "/storage/files/{file_id}/public-url";
1879
+ readonly pathParams: readonly ["file_id"];
1880
+ readonly responseEnvelope: "athena";
1881
+ readonly responseType: "Record<string, unknown>";
1882
+ }, {
1883
+ readonly name: "getStorageFileProxyUrl";
1884
+ readonly method: "GET";
1885
+ readonly path: "/storage/files/{file_id}/proxy-url";
1886
+ readonly pathParams: readonly ["file_id"];
1887
+ readonly queryParams: readonly ["purpose"];
1888
+ readonly responseEnvelope: "athena";
1889
+ readonly responseType: "Record<string, unknown>";
1890
+ }, {
1891
+ readonly name: "listStorageFileVersions";
1892
+ readonly method: "GET";
1893
+ readonly path: "/storage/files/{file_id}/versions";
1894
+ readonly pathParams: readonly ["file_id"];
1895
+ readonly responseEnvelope: "athena";
1896
+ readonly responseType: "Record<string, unknown>";
1897
+ }, {
1898
+ readonly name: "restoreStorageFileVersion";
1899
+ readonly method: "POST";
1900
+ readonly path: "/storage/files/{file_id}/versions/{version_id}/restore";
1901
+ readonly pathParams: readonly ["file_id", "version_id"];
1902
+ readonly responseEnvelope: "athena";
1903
+ readonly responseType: "Record<string, unknown>";
1904
+ }, {
1905
+ readonly name: "deleteStorageFileVersion";
1906
+ readonly method: "DELETE";
1907
+ readonly path: "/storage/files/{file_id}/versions/{version_id}";
1908
+ readonly pathParams: readonly ["file_id", "version_id"];
1909
+ readonly responseEnvelope: "athena";
1910
+ readonly responseType: "Record<string, unknown>";
1911
+ }, {
1912
+ readonly name: "getStorageFileRetention";
1913
+ readonly method: "GET";
1914
+ readonly path: "/storage/files/{file_id}/retention";
1915
+ readonly pathParams: readonly ["file_id"];
1916
+ readonly queryParams: readonly ["version_id"];
1917
+ readonly responseEnvelope: "athena";
1918
+ readonly responseType: "Record<string, unknown>";
1919
+ }, {
1920
+ readonly name: "setStorageFileRetention";
1921
+ readonly method: "POST";
1922
+ readonly path: "/storage/files/{file_id}/retention";
1923
+ readonly pathParams: readonly ["file_id"];
1924
+ readonly requestType: "StorageFileRetentionRequest";
1925
+ readonly responseEnvelope: "athena";
1926
+ readonly responseType: "Record<string, unknown>";
1927
+ }, {
1928
+ readonly name: "listStorageFolders";
1929
+ readonly method: "POST";
1930
+ readonly path: "/storage/folders/list";
1931
+ readonly requestType: "ListStorageFoldersRequest";
1932
+ readonly responseEnvelope: "athena";
1933
+ readonly responseType: "Record<string, unknown>";
1934
+ }, {
1935
+ readonly name: "treeStorageFolders";
1936
+ readonly method: "POST";
1937
+ readonly path: "/storage/folders/tree";
1938
+ readonly requestType: "TreeStorageFoldersRequest";
1939
+ readonly responseEnvelope: "athena";
1940
+ readonly responseType: "Record<string, unknown>";
1941
+ }, {
1942
+ readonly name: "listStoragePermissions";
1943
+ readonly method: "POST";
1944
+ readonly path: "/storage/permissions/list";
1945
+ readonly requestType: "StoragePermissionListRequest";
1946
+ readonly responseEnvelope: "athena";
1947
+ readonly responseType: "StoragePermissionListResponse";
1948
+ }, {
1949
+ readonly name: "grantStoragePermission";
1950
+ readonly method: "POST";
1951
+ readonly path: "/storage/permissions/grant";
1952
+ readonly requestType: "StoragePermissionGrantRequest";
1953
+ readonly responseEnvelope: "athena";
1954
+ readonly responseType: "Record<string, unknown>";
1955
+ }, {
1956
+ readonly name: "revokeStoragePermission";
1957
+ readonly method: "POST";
1958
+ readonly path: "/storage/permissions/revoke";
1959
+ readonly requestType: "StoragePermissionRevokeRequest";
1960
+ readonly responseEnvelope: "athena";
1961
+ readonly responseType: "Record<string, unknown>";
1962
+ }, {
1963
+ readonly name: "checkStoragePermission";
1964
+ readonly method: "POST";
1965
+ readonly path: "/storage/permissions/check";
1966
+ readonly requestType: "StoragePermissionCheckRequest";
1967
+ readonly responseEnvelope: "athena";
1968
+ readonly responseType: "StoragePermissionCheckResponse";
1969
+ }, {
1970
+ readonly name: "listStorageObjects";
1971
+ readonly method: "POST";
1972
+ readonly path: "/storage/objects";
1973
+ readonly requestType: "StorageListObjectsRequest";
1974
+ readonly responseEnvelope: "athena";
1975
+ readonly responseType: "Record<string, unknown>";
1976
+ }, {
1977
+ readonly name: "headStorageObject";
1978
+ readonly method: "POST";
1979
+ readonly path: "/storage/objects/head";
1980
+ readonly requestType: "StorageObjectRequest";
1981
+ readonly responseEnvelope: "athena";
1982
+ readonly responseType: "Record<string, unknown>";
1983
+ }, {
1984
+ readonly name: "existsStorageObject";
1985
+ readonly method: "POST";
1986
+ readonly path: "/storage/objects/exists";
1987
+ readonly requestType: "StorageObjectRequest";
1988
+ readonly responseEnvelope: "athena";
1989
+ readonly responseType: "Record<string, unknown>";
1990
+ }, {
1991
+ readonly name: "validateStorageObject";
1992
+ readonly method: "POST";
1993
+ readonly path: "/storage/objects/validate";
1994
+ readonly requestType: "StorageObjectValidateRequest";
1995
+ readonly responseEnvelope: "athena";
1996
+ readonly responseType: "Record<string, unknown>";
1997
+ }, {
1998
+ readonly name: "updateStorageObject";
1999
+ readonly method: "POST";
2000
+ readonly path: "/storage/objects/update";
2001
+ readonly requestType: "StorageUpdateObjectRequest";
2002
+ readonly responseEnvelope: "athena";
2003
+ readonly responseType: "Record<string, unknown>";
2004
+ }, {
2005
+ readonly name: "copyStorageObject";
2006
+ readonly method: "POST";
2007
+ readonly path: "/storage/objects/copy";
2008
+ readonly requestType: "StorageObjectCopyRequest";
2009
+ readonly responseEnvelope: "athena";
2010
+ readonly responseType: "Record<string, unknown>";
2011
+ }, {
2012
+ readonly name: "getStorageObjectUrl";
2013
+ readonly method: "POST";
2014
+ readonly path: "/storage/objects/url";
2015
+ readonly requestType: "StorageObjectRequest";
2016
+ readonly responseEnvelope: "athena";
2017
+ readonly responseType: "Record<string, unknown>";
2018
+ }, {
2019
+ readonly name: "getStorageObjectPublicUrl";
2020
+ readonly method: "POST";
2021
+ readonly path: "/storage/objects/public-url";
2022
+ readonly requestType: "StorageObjectPublicUrlRequest";
2023
+ readonly responseEnvelope: "athena";
2024
+ readonly responseType: "Record<string, unknown>";
2025
+ }, {
2026
+ readonly name: "deleteStorageObject";
2027
+ readonly method: "POST";
2028
+ readonly path: "/storage/objects/delete";
2029
+ readonly requestType: "StorageObjectRequest";
2030
+ readonly responseEnvelope: "athena";
2031
+ readonly responseType: "Record<string, unknown>";
2032
+ }, {
2033
+ readonly name: "createStorageObjectUploadUrl";
2034
+ readonly method: "POST";
2035
+ readonly path: "/storage/objects/upload-url";
2036
+ readonly requestType: "StoragePresignUploadRequest";
2037
+ readonly responseEnvelope: "athena";
2038
+ readonly responseType: "Record<string, unknown>";
2039
+ }, {
2040
+ readonly name: "createStorageObjectPostPolicy";
2041
+ readonly method: "POST";
2042
+ readonly path: "/storage/objects/post-policy";
2043
+ readonly requestType: "StorageSignedPostPolicyRequest";
2044
+ readonly responseEnvelope: "athena";
2045
+ readonly responseType: "Record<string, unknown>";
2046
+ }, {
2047
+ readonly name: "listStorageObjectVersions";
2048
+ readonly method: "POST";
2049
+ readonly path: "/storage/objects/versions";
2050
+ readonly requestType: "StorageObjectVersionListRequest";
2051
+ readonly responseEnvelope: "athena";
2052
+ readonly responseType: "Record<string, unknown>";
2053
+ }, {
2054
+ readonly name: "restoreStorageObjectVersion";
2055
+ readonly method: "POST";
2056
+ readonly path: "/storage/objects/versions/restore";
2057
+ readonly requestType: "StorageObjectVersionMutationRequest";
2058
+ readonly responseEnvelope: "athena";
2059
+ readonly responseType: "Record<string, unknown>";
2060
+ }, {
2061
+ readonly name: "deleteStorageObjectVersion";
2062
+ readonly method: "POST";
2063
+ readonly path: "/storage/objects/versions/delete";
2064
+ readonly requestType: "StorageObjectVersionMutationRequest";
2065
+ readonly responseEnvelope: "athena";
2066
+ readonly responseType: "Record<string, unknown>";
2067
+ }, {
2068
+ readonly name: "createStorageObjectFolder";
2069
+ readonly method: "POST";
2070
+ readonly path: "/storage/objects/folder";
2071
+ readonly requestType: "StorageObjectFolderCreateRequest";
2072
+ readonly responseEnvelope: "athena";
2073
+ readonly responseType: "Record<string, unknown>";
2074
+ }, {
2075
+ readonly name: "deleteStorageObjectFolder";
2076
+ readonly method: "POST";
2077
+ readonly path: "/storage/objects/folder/delete";
2078
+ readonly requestType: "StorageObjectFolderDeleteRequest";
2079
+ readonly responseEnvelope: "athena";
2080
+ readonly responseType: "Record<string, unknown>";
2081
+ }, {
2082
+ readonly name: "renameStorageObjectFolder";
2083
+ readonly method: "POST";
2084
+ readonly path: "/storage/objects/folder/rename";
2085
+ readonly requestType: "StorageObjectFolderRenameRequest";
2086
+ readonly responseEnvelope: "athena";
2087
+ readonly responseType: "Record<string, unknown>";
2088
+ }, {
2089
+ readonly name: "listStorageBuckets";
2090
+ readonly method: "POST";
2091
+ readonly path: "/storage/buckets/list";
2092
+ readonly requestType: "Omit<StorageObjectBaseRequest, 'bucket'>";
2093
+ readonly responseEnvelope: "athena";
2094
+ readonly responseType: "Record<string, unknown>";
2095
+ }, {
2096
+ readonly name: "createStorageBucket";
2097
+ readonly method: "POST";
2098
+ readonly path: "/storage/buckets/create";
2099
+ readonly requestType: "StorageObjectBaseRequest";
2100
+ readonly responseEnvelope: "athena";
2101
+ readonly responseType: "Record<string, unknown>";
2102
+ }, {
2103
+ readonly name: "deleteStorageBucket";
2104
+ readonly method: "POST";
2105
+ readonly path: "/storage/buckets/delete";
2106
+ readonly requestType: "StorageObjectBaseRequest";
2107
+ readonly responseEnvelope: "athena";
2108
+ readonly responseType: "Record<string, unknown>";
2109
+ }, {
2110
+ readonly name: "getStorageBucketLifecycle";
2111
+ readonly method: "POST";
2112
+ readonly path: "/storage/buckets/lifecycle";
2113
+ readonly requestType: "StorageBucketLifecycleRequest";
2114
+ readonly responseEnvelope: "athena";
2115
+ readonly responseType: "Record<string, unknown>";
2116
+ }, {
2117
+ readonly name: "setStorageBucketLifecycle";
2118
+ readonly method: "POST";
2119
+ readonly path: "/storage/buckets/lifecycle/set";
2120
+ readonly requestType: "StorageSetBucketLifecycleRequest";
2121
+ readonly responseEnvelope: "athena";
2122
+ readonly responseType: "Record<string, unknown>";
2123
+ }, {
2124
+ readonly name: "deleteStorageBucketLifecycle";
2125
+ readonly method: "POST";
2126
+ readonly path: "/storage/buckets/lifecycle/delete";
2127
+ readonly requestType: "StorageBucketLifecycleRequest";
2128
+ readonly responseEnvelope: "athena";
2129
+ readonly responseType: "Record<string, unknown>";
2130
+ }, {
2131
+ readonly name: "getStorageBucketPolicy";
2132
+ readonly method: "POST";
2133
+ readonly path: "/storage/buckets/policy";
2134
+ readonly requestType: "StorageBucketPolicyRequest";
2135
+ readonly responseEnvelope: "athena";
2136
+ readonly responseType: "Record<string, unknown>";
2137
+ }, {
2138
+ readonly name: "setStorageBucketPolicy";
2139
+ readonly method: "POST";
2140
+ readonly path: "/storage/buckets/policy/set";
2141
+ readonly requestType: "StorageSetBucketPolicyRequest";
2142
+ readonly responseEnvelope: "athena";
2143
+ readonly responseType: "Record<string, unknown>";
2144
+ }, {
2145
+ readonly name: "deleteStorageBucketPolicy";
2146
+ readonly method: "POST";
2147
+ readonly path: "/storage/buckets/policy/delete";
2148
+ readonly requestType: "StorageBucketPolicyRequest";
2149
+ readonly responseEnvelope: "athena";
2150
+ readonly responseType: "Record<string, unknown>";
2151
+ }, {
2152
+ readonly name: "getStorageBucketPublicAccess";
2153
+ readonly method: "POST";
2154
+ readonly path: "/storage/buckets/public-access";
2155
+ readonly requestType: "StoragePublicAccessBlockRequest";
2156
+ readonly responseEnvelope: "athena";
2157
+ readonly responseType: "Record<string, unknown>";
2158
+ }, {
2159
+ readonly name: "setStorageBucketPublicAccess";
2160
+ readonly method: "POST";
2161
+ readonly path: "/storage/buckets/public-access/set";
2162
+ readonly requestType: "StorageSetPublicAccessBlockRequest";
2163
+ readonly responseEnvelope: "athena";
2164
+ readonly responseType: "Record<string, unknown>";
2165
+ }, {
2166
+ readonly name: "deleteStorageBucketPublicAccess";
2167
+ readonly method: "POST";
2168
+ readonly path: "/storage/buckets/public-access/delete";
2169
+ readonly requestType: "StoragePublicAccessBlockRequest";
2170
+ readonly responseEnvelope: "athena";
2171
+ readonly responseType: "Record<string, unknown>";
2172
+ }, {
2173
+ readonly name: "getStorageBucketCors";
2174
+ readonly method: "POST";
2175
+ readonly path: "/storage/buckets/cors";
2176
+ readonly requestType: "StorageBucketCorsRequest";
2177
+ readonly responseEnvelope: "athena";
2178
+ readonly responseType: "Record<string, unknown>";
2179
+ }, {
2180
+ readonly name: "setStorageBucketCors";
2181
+ readonly method: "POST";
2182
+ readonly path: "/storage/buckets/cors/set";
2183
+ readonly requestType: "StorageSetBucketCorsRequest";
2184
+ readonly responseEnvelope: "athena";
2185
+ readonly responseType: "Record<string, unknown>";
2186
+ }, {
2187
+ readonly name: "deleteStorageBucketCors";
2188
+ readonly method: "POST";
2189
+ readonly path: "/storage/buckets/cors/delete";
2190
+ readonly requestType: "StorageBucketCorsRequest";
2191
+ readonly responseEnvelope: "athena";
2192
+ readonly responseType: "Record<string, unknown>";
2193
+ }, {
2194
+ readonly name: "createStorageMultipartUpload";
2195
+ readonly method: "POST";
2196
+ readonly path: "/storage/multipart/create";
2197
+ readonly requestType: "StorageMultipartCreateRequest";
2198
+ readonly responseEnvelope: "athena";
2199
+ readonly responseType: "Record<string, unknown>";
2200
+ }, {
2201
+ readonly name: "signStorageMultipartPart";
2202
+ readonly method: "POST";
2203
+ readonly path: "/storage/multipart/sign-part";
2204
+ readonly requestType: "StorageMultipartSignPartRequest";
2205
+ readonly responseEnvelope: "athena";
2206
+ readonly responseType: "Record<string, unknown>";
2207
+ }, {
2208
+ readonly name: "completeStorageMultipartUpload";
2209
+ readonly method: "POST";
2210
+ readonly path: "/storage/multipart/complete";
2211
+ readonly requestType: "StorageMultipartCompleteRequest";
2212
+ readonly responseEnvelope: "athena";
2213
+ readonly responseType: "StorageFileMutationResponse";
2214
+ }, {
2215
+ readonly name: "abortStorageMultipartUpload";
2216
+ readonly method: "POST";
2217
+ readonly path: "/storage/multipart/abort";
2218
+ readonly requestType: "StorageMultipartAbortRequest";
2219
+ readonly responseEnvelope: "athena";
2220
+ readonly responseType: "Record<string, unknown>";
2221
+ }, {
2222
+ readonly name: "listStorageMultipartParts";
2223
+ readonly method: "POST";
2224
+ readonly path: "/storage/multipart/list-parts";
2225
+ readonly requestType: "StorageMultipartListPartsRequest";
2226
+ readonly responseEnvelope: "athena";
2227
+ readonly responseType: "Record<string, unknown>";
2228
+ }, {
2229
+ readonly name: "listStorageAuditEvents";
2230
+ readonly method: "POST";
2231
+ readonly path: "/storage/audit/list";
2232
+ readonly requestType: "StorageAuditQueryRequest";
2233
+ readonly responseEnvelope: "athena";
2234
+ readonly responseType: "StorageAuditListResponse";
1747
2235
  }];
1748
2236
  };
1749
2237
  interface S3CatalogItem {
@@ -1807,12 +2295,20 @@ interface PresignedFileUrlResponse {
1807
2295
  storage_key: string;
1808
2296
  purpose: string;
1809
2297
  url: string;
2298
+ headers?: Record<string, string>;
1810
2299
  expires_at: string;
1811
2300
  expires_at_epoch_seconds: number;
1812
2301
  expires_in: number;
1813
2302
  cache_hit: boolean;
1814
2303
  cache_layer: string;
1815
2304
  }
2305
+ interface StorageServerSideEncryptionOptions {
2306
+ server_side_encryption?: 'AES256' | 'aws:kms' | 'aws:kms:dsse' | (string & {});
2307
+ sse?: 'AES256' | 'aws:kms' | 'aws:kms:dsse' | (string & {});
2308
+ ssekms_key_id?: string;
2309
+ kms_key_id?: string;
2310
+ bucket_key_enabled?: boolean;
2311
+ }
1816
2312
  interface CreateStorageCatalogRequest {
1817
2313
  name: string;
1818
2314
  endpoint: string;
@@ -1842,7 +2338,7 @@ interface UpdateStorageCatalogRequest {
1842
2338
  is_active?: boolean;
1843
2339
  metadata?: Record<string, unknown>;
1844
2340
  }
1845
- interface CreateStorageUploadUrlRequest {
2341
+ interface CreateStorageUploadUrlRequest extends StorageServerSideEncryptionOptions {
1846
2342
  s3_id: string;
1847
2343
  bucket?: string;
1848
2344
  storage_key: string;
@@ -1869,15 +2365,42 @@ interface StorageBatchUploadUrlResponse {
1869
2365
  }
1870
2366
  interface ListStorageFilesRequest {
1871
2367
  s3_id: string;
1872
- prefix: string;
2368
+ prefix?: string;
2369
+ limit?: number;
2370
+ offset?: number;
2371
+ metadata?: Record<string, unknown>;
2372
+ name?: string;
2373
+ resource_id?: string;
2374
+ mime_type?: string;
2375
+ content_type?: string;
2376
+ status?: string;
2377
+ visibility?: 'private' | 'organization' | 'public' | (string & {});
2378
+ bucket?: string;
2379
+ key_prefix?: string;
1873
2380
  }
1874
2381
  interface StorageListFilesResponse {
1875
2382
  files: ManagedFileRecord[];
1876
2383
  count: number;
2384
+ total?: number;
2385
+ limit?: number;
2386
+ offset?: number;
2387
+ next_offset?: number | null;
2388
+ has_more?: boolean;
1877
2389
  }
1878
2390
  interface UpdateStorageFileRequest {
1879
- storage_key: string;
2391
+ storage_key?: string;
1880
2392
  bucket?: string;
2393
+ name?: string;
2394
+ file_name?: string;
2395
+ original_name?: string;
2396
+ resource_id?: string;
2397
+ mime_type?: string;
2398
+ content_type?: string;
2399
+ size_bytes?: number;
2400
+ checksum_sha256?: string;
2401
+ visibility?: 'private' | 'organization' | 'public' | (string & {});
2402
+ status?: string;
2403
+ metadata?: Record<string, unknown>;
1881
2404
  }
1882
2405
  interface SetStorageFileVisibilityRequest {
1883
2406
  public?: boolean;
@@ -1951,21 +2474,44 @@ interface ConfirmStorageUploadRequest {
1951
2474
  interface SearchStorageFilesRequest {
1952
2475
  query?: string;
1953
2476
  limit?: number;
2477
+ offset?: number;
2478
+ s3_id?: string;
2479
+ prefix?: string;
2480
+ metadata?: Record<string, unknown>;
2481
+ name?: string;
2482
+ resource_id?: string;
2483
+ mime_type?: string;
2484
+ content_type?: string;
2485
+ status?: string;
2486
+ visibility?: 'private' | 'organization' | 'public' | (string & {});
2487
+ bucket?: string;
2488
+ key_prefix?: string;
1954
2489
  }
1955
2490
  interface DeleteManyStorageFilesRequest {
1956
2491
  file_ids: string[];
1957
2492
  }
1958
2493
  interface UpdateManyStorageFilesRequest {
1959
2494
  file_ids: string[];
1960
- storage_key: string;
2495
+ storage_key?: string;
1961
2496
  bucket?: string;
2497
+ name?: string;
2498
+ file_name?: string;
2499
+ original_name?: string;
2500
+ resource_id?: string;
2501
+ mime_type?: string;
2502
+ content_type?: string;
2503
+ size_bytes?: number;
2504
+ checksum_sha256?: string;
2505
+ visibility?: 'private' | 'organization' | 'public' | (string & {});
2506
+ status?: string;
2507
+ metadata?: Record<string, unknown>;
1962
2508
  }
1963
2509
  interface SetManyStorageFileVisibilityRequest {
1964
2510
  file_ids: string[];
1965
2511
  public?: boolean;
1966
2512
  visibility?: 'private' | 'organization' | 'public';
1967
2513
  }
1968
- interface CopyStorageFileRequest {
2514
+ interface CopyStorageFileRequest extends StorageServerSideEncryptionOptions {
1969
2515
  storage_key: string;
1970
2516
  bucket?: string;
1971
2517
  file_name?: string;
@@ -2001,7 +2547,7 @@ interface StoragePermissionCheckRequest {
2001
2547
  file_id: string;
2002
2548
  permission: 'read' | 'write' | 'delete' | 'share' | 'owner';
2003
2549
  }
2004
- interface StorageMultipartCreateRequest {
2550
+ interface StorageMultipartCreateRequest extends StorageServerSideEncryptionOptions {
2005
2551
  file_id: string;
2006
2552
  content_type?: string;
2007
2553
  }
@@ -2050,7 +2596,11 @@ interface StorageObjectBaseRequest {
2050
2596
  interface StorageObjectRequest extends StorageObjectBaseRequest {
2051
2597
  key: string;
2052
2598
  }
2053
- interface StorageObjectCopyRequest extends StorageObjectBaseRequest {
2599
+ interface StorageObjectValidateRequest extends StorageObjectRequest {
2600
+ checksum_sha256?: string;
2601
+ etag?: string;
2602
+ }
2603
+ interface StorageObjectCopyRequest extends StorageObjectBaseRequest, StorageServerSideEncryptionOptions {
2054
2604
  source_key: string;
2055
2605
  destination_key: string;
2056
2606
  destination_bucket?: string;
@@ -2074,7 +2624,26 @@ interface StorageUpdateObjectRequest extends StorageObjectRequest {
2074
2624
  content_language?: string;
2075
2625
  metadata?: Record<string, string>;
2076
2626
  }
2077
- interface StoragePresignUploadRequest extends StorageObjectRequest {
2627
+ interface StorageObjectVersionListRequest extends StorageObjectBaseRequest {
2628
+ key?: string;
2629
+ max_keys?: number;
2630
+ key_marker?: string;
2631
+ version_id_marker?: string;
2632
+ delimiter?: string;
2633
+ }
2634
+ interface StorageObjectVersionMutationRequest extends StorageObjectRequest {
2635
+ version_id: string;
2636
+ }
2637
+ interface StorageSignedPostPolicyRequest extends StorageObjectRequest, StorageServerSideEncryptionOptions {
2638
+ content_type?: string;
2639
+ min_size?: number;
2640
+ max_size?: number;
2641
+ expires_in?: number;
2642
+ public_base_url?: string;
2643
+ force_path_style?: boolean;
2644
+ success_action_status?: string;
2645
+ }
2646
+ interface StoragePresignUploadRequest extends StorageObjectRequest, StorageServerSideEncryptionOptions {
2078
2647
  content_type?: string;
2079
2648
  }
2080
2649
  type StorageBucketCorsRequest = StorageObjectBaseRequest;
@@ -2088,6 +2657,41 @@ interface StorageBucketCorsRuleInput {
2088
2657
  interface StorageSetBucketCorsRequest extends StorageBucketCorsRequest {
2089
2658
  rules: StorageBucketCorsRuleInput[];
2090
2659
  }
2660
+ type StorageBucketLifecycleRequest = StorageObjectBaseRequest;
2661
+ interface StorageBucketLifecycleRuleInput {
2662
+ id?: string;
2663
+ prefix?: string;
2664
+ status?: 'Enabled' | 'Disabled' | 'enabled' | 'disabled' | (string & {});
2665
+ expiration_days?: number;
2666
+ expired_object_delete_marker?: boolean;
2667
+ noncurrent_version_expiration_days?: number;
2668
+ abort_incomplete_multipart_upload_days?: number;
2669
+ }
2670
+ interface StorageSetBucketLifecycleRequest extends StorageBucketLifecycleRequest {
2671
+ rules: StorageBucketLifecycleRuleInput[];
2672
+ }
2673
+ type StorageBucketPolicyRequest = StorageObjectBaseRequest;
2674
+ interface StorageSetBucketPolicyRequest extends StorageBucketPolicyRequest {
2675
+ policy: Record<string, unknown> | string;
2676
+ }
2677
+ type StoragePublicAccessBlockRequest = StorageObjectBaseRequest;
2678
+ interface StorageSetPublicAccessBlockRequest extends StoragePublicAccessBlockRequest {
2679
+ block_public_acls?: boolean;
2680
+ ignore_public_acls?: boolean;
2681
+ block_public_policy?: boolean;
2682
+ restrict_public_buckets?: boolean;
2683
+ }
2684
+ interface StorageFileVersionPathRequest {
2685
+ file_id: string;
2686
+ version_id: string;
2687
+ }
2688
+ interface StorageFileRetentionRequest {
2689
+ mode?: 'GOVERNANCE' | 'COMPLIANCE' | (string & {});
2690
+ retain_until?: string;
2691
+ retain_until_date?: string;
2692
+ version_id?: string;
2693
+ bypass_governance?: boolean;
2694
+ }
2091
2695
  interface StorageAuditQueryRequest {
2092
2696
  file_id?: string;
2093
2697
  limit?: number;
@@ -2206,7 +2810,7 @@ interface StorageUploadUrlResponseWithPut extends Omit<StorageUploadUrlResponse,
2206
2810
  interface StorageBatchUploadUrlResponseWithPut {
2207
2811
  files: StorageUploadUrlResponseWithPut[];
2208
2812
  }
2209
- interface AthenaStorageFileUploadRequest {
2813
+ interface AthenaStorageFileUploadRequest extends StorageServerSideEncryptionOptions {
2210
2814
  s3_id?: string;
2211
2815
  s3Id?: string;
2212
2816
  bucket?: string;
@@ -2249,8 +2853,17 @@ interface AthenaStorageFileNamespace extends AthenaStorageFileModule {
2249
2853
  copy(fileId: string, input: CopyStorageFileRequest, options?: AthenaStorageCallOptions): Promise<StorageFileMutationResponse>;
2250
2854
  url(fileId: string, query?: GetStorageFileUrlQuery, options?: AthenaStorageCallOptions): Promise<PresignedFileUrlResponse>;
2251
2855
  publicUrl(fileId: string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2856
+ proxyUrl(fileId: string, query?: GetStorageFileUrlQuery, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2252
2857
  proxy(fileId: string, query?: GetStorageFileUrlQuery, options?: AthenaStorageBinaryCallOptions): Promise<Response>;
2858
+ versions(fileId: string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2859
+ restoreVersion(fileId: string, versionId: string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2860
+ deleteVersion(fileId: string, versionId: string, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2861
+ retention: {
2862
+ get(fileId: string, query?: Pick<StorageFileRetentionRequest, 'version_id'>, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2863
+ set(fileId: string, input: StorageFileRetentionRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2864
+ };
2253
2865
  visibility: {
2866
+ update(fileId: string, input: SetStorageFileVisibilityRequest, options?: AthenaStorageCallOptions): Promise<StorageFileMutationResponse>;
2254
2867
  set(fileId: string, input: SetStorageFileVisibilityRequest, options?: AthenaStorageCallOptions): Promise<StorageFileMutationResponse>;
2255
2868
  setMany(input: SetManyStorageFileVisibilityRequest, options?: AthenaStorageCallOptions): Promise<StorageFileMutationManyResponse>;
2256
2869
  };
@@ -2292,13 +2905,17 @@ interface AthenaStorageObjectNamespace {
2292
2905
  list(input: StorageListObjectsRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2293
2906
  head(input: StorageObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2294
2907
  exists(input: StorageObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2295
- validate(input: StorageObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2908
+ validate(input: StorageObjectValidateRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2296
2909
  update(input: StorageUpdateObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2297
2910
  copy(input: StorageObjectCopyRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2298
2911
  url(input: StorageObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2299
2912
  publicUrl(input: StorageObjectPublicUrlRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2300
2913
  delete(input: StorageObjectRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2301
2914
  uploadUrl(input: StoragePresignUploadRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2915
+ versions(input: StorageObjectVersionListRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2916
+ restoreVersion(input: StorageObjectVersionMutationRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2917
+ deleteVersion(input: StorageObjectVersionMutationRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2918
+ postPolicy(input: StorageSignedPostPolicyRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2302
2919
  folder: AthenaStorageObjectFolderNamespace;
2303
2920
  }
2304
2921
  interface AthenaStorageBucketCorsNamespace {
@@ -2310,6 +2927,21 @@ interface AthenaStorageBucketNamespace {
2310
2927
  list(input: Omit<StorageObjectBaseRequest, 'bucket'>, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2311
2928
  create(input: StorageObjectBaseRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2312
2929
  delete(input: StorageObjectBaseRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2930
+ lifecycle: {
2931
+ get(input: StorageBucketLifecycleRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2932
+ set(input: StorageSetBucketLifecycleRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2933
+ delete(input: StorageBucketLifecycleRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2934
+ };
2935
+ policy: {
2936
+ get(input: StorageBucketPolicyRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2937
+ set(input: StorageSetBucketPolicyRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2938
+ delete(input: StorageBucketPolicyRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2939
+ };
2940
+ publicAccess: {
2941
+ get(input: StoragePublicAccessBlockRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2942
+ set(input: StorageSetPublicAccessBlockRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2943
+ delete(input: StoragePublicAccessBlockRequest, options?: AthenaStorageCallOptions): Promise<Record<string, unknown>>;
2944
+ };
2313
2945
  cors: AthenaStorageBucketCorsNamespace;
2314
2946
  }
2315
2947
  interface AthenaStorageMultipartNamespace {
@@ -2335,6 +2967,7 @@ interface AthenaStorageModule extends AthenaStorageBaseModule {
2335
2967
  delete: AthenaStorageFileModule['delete'];
2336
2968
  }
2337
2969
  declare function createAthenaStorageError(input: AthenaStorageErrorInput): AthenaStorageError;
2970
+ declare function createStorageModule(gateway: AthenaGatewayClient, runtimeOptions?: AthenaStorageClientConfig): AthenaStorageModule;
2338
2971
 
2339
2972
  type AthenaRowShape$1 = Record<string, AthenaJsonValue | undefined>;
2340
2973
  type FilterColumnKey$1<Row> = Extract<keyof NonNullable<Row>, string>;
@@ -2835,28 +3468,59 @@ interface AthenaSdkClient<TStrict extends boolean = false> {
2835
3468
  rpc<Row = unknown, Args extends AthenaJsonObject = AthenaJsonObject>(fn: string, args?: Args, options?: AthenaRpcCallOptions): RpcQueryBuilder<Row, TStrict>;
2836
3469
  query<Row = unknown>(query: string, options?: AthenaGatewayCallOptions): Promise<AthenaResult<Row[]>>;
2837
3470
  verifyConnection(options?: AthenaGatewayConnectionOptions): Promise<AthenaGatewayConnectionResult>;
3471
+ withContext(context?: AthenaClientContextOptions): AthenaSdkClient<TStrict>;
3472
+ withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClient<TStrict>;
2838
3473
  }
2839
3474
  interface AthenaSdkClientWithAuth<TStrict extends boolean = false> extends AthenaSdkClient<TStrict> {
2840
3475
  auth: AthenaAuthBindings;
3476
+ withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithAuth<TStrict>;
3477
+ withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithAuth<TStrict>;
3478
+ withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithAuth<TStrict>;
2841
3479
  }
2842
3480
  interface AthenaSdkClientWithStorage<TStrict extends boolean = false> extends AthenaSdkClientWithAuth<TStrict> {
2843
3481
  storage: AthenaStorageModule;
3482
+ withContext(context?: AthenaClientContextOptions): AthenaSdkClientWithStorage<TStrict>;
3483
+ withSession(session?: AthenaClientSessionLike | null, options?: AthenaClientSessionOptions): AthenaSdkClientWithStorage<TStrict>;
3484
+ withOptions(options?: AthenaClientOverrideOptions): AthenaSdkClientWithStorage<TStrict>;
3485
+ }
3486
+ interface AthenaHeaderBag {
3487
+ get(name: string): string | null;
3488
+ }
3489
+ interface AthenaClientSessionLike {
3490
+ user?: {
3491
+ id?: string | null | undefined;
3492
+ } | null | undefined;
3493
+ session?: {
3494
+ token?: string | null | undefined;
3495
+ activeOrganizationId?: string | null | undefined;
3496
+ } | null | undefined;
2844
3497
  }
2845
3498
  interface AthenaCreateClientServiceUrlConfig {
2846
- url?: string | null;
2847
- }
2848
- interface AthenaCreateClientAuthOptions extends AthenaAuthClientConfig {
2849
- url?: string | null;
2850
- }
2851
- interface AthenaCreateClientOptions extends Pick<AthenaGatewayCallOptions, 'client' | 'headers' | 'backend'> {
3499
+ url?: string | null | undefined;
3500
+ }
3501
+ interface AthenaCreateClientAuthOptions extends Omit<AthenaAuthClientConfig, 'baseUrl' | 'apiKey' | 'bearerToken' | 'cookie' | 'sessionToken'> {
3502
+ url?: string | null | undefined;
3503
+ baseUrl?: string | null | undefined;
3504
+ apiKey?: string | null | undefined;
3505
+ bearerToken?: string | null | undefined;
3506
+ cookie?: string | null | undefined;
3507
+ sessionToken?: string | null | undefined;
3508
+ }
3509
+ interface AthenaCreateClientOptions {
3510
+ client?: string | null | undefined;
3511
+ userId?: string | null | undefined;
3512
+ organizationId?: string | null | undefined;
3513
+ forceNoCache?: boolean;
3514
+ headers?: Record<string, string>;
3515
+ backend?: BackendConfig | BackendType;
2852
3516
  db?: AthenaCreateClientServiceUrlConfig;
2853
3517
  gateway?: AthenaCreateClientServiceUrlConfig;
2854
3518
  auth?: AthenaCreateClientAuthOptions;
2855
3519
  storage?: AthenaCreateClientServiceUrlConfig;
2856
- dbUrl?: string | null;
2857
- gatewayUrl?: string | null;
2858
- authUrl?: string | null;
2859
- storageUrl?: string | null;
3520
+ dbUrl?: string | null | undefined;
3521
+ gatewayUrl?: string | null | undefined;
3522
+ authUrl?: string | null | undefined;
3523
+ storageUrl?: string | null | undefined;
2860
3524
  experimental?: AthenaClientExperimentalOptions;
2861
3525
  }
2862
3526
  interface AthenaCreateClientOptionsWithStorage extends AthenaCreateClientOptions {
@@ -2876,30 +3540,65 @@ interface AthenaCreateClientOptionsWithStorageAndTypecheckedColumns extends Athe
2876
3540
  };
2877
3541
  }
2878
3542
  interface AthenaCreateClientConfig extends AthenaCreateClientOptions {
2879
- url?: string | null;
2880
- key: string;
3543
+ url?: string | null | undefined;
3544
+ key: string | null | undefined;
2881
3545
  }
2882
3546
  interface AthenaCreateClientConfigWithStorage extends AthenaCreateClientOptionsWithStorage {
2883
- url?: string | null;
2884
- key: string;
3547
+ url?: string | null | undefined;
3548
+ key: string | null | undefined;
2885
3549
  }
2886
3550
  interface AthenaCreateClientConfigWithTypecheckedColumns extends AthenaCreateClientOptionsWithTypecheckedColumns {
2887
- url?: string | null;
2888
- key: string;
3551
+ url?: string | null | undefined;
3552
+ key: string | null | undefined;
2889
3553
  }
2890
3554
  interface AthenaCreateClientConfigWithStorageAndTypecheckedColumns extends AthenaCreateClientOptionsWithStorageAndTypecheckedColumns {
2891
- url?: string | null;
2892
- key: string;
3555
+ url?: string | null | undefined;
3556
+ key: string | null | undefined;
3557
+ }
3558
+ interface AthenaClientOverrideOptions extends Omit<AthenaCreateClientOptions, 'experimental'> {
3559
+ url?: string | null | undefined;
3560
+ key?: string | null | undefined;
3561
+ }
3562
+ interface AthenaClientContextOptions {
3563
+ userId?: string | null | undefined;
3564
+ organizationId?: string | null | undefined;
3565
+ forceNoCache?: boolean;
3566
+ headers?: Record<string, string>;
3567
+ auth?: Omit<AthenaCreateClientAuthOptions, 'url' | 'baseUrl' | 'apiKey'>;
3568
+ }
3569
+ interface AthenaClientSessionOptions extends AthenaClientContextOptions {
3570
+ requestHeaders?: AthenaHeaderBag | Record<string, string | null | undefined>;
3571
+ }
3572
+ interface AthenaClientFromEnvironmentOptions extends AthenaCreateClientOptions {
3573
+ env?: Record<string, string | undefined>;
3574
+ url?: string | null | undefined;
3575
+ key?: string | null | undefined;
3576
+ }
3577
+ interface AthenaClientFromEnvironmentOptionsWithStorage extends AthenaClientFromEnvironmentOptions {
3578
+ experimental: AthenaClientExperimentalOptions & {
3579
+ athenaStorageBackend: true;
3580
+ };
3581
+ }
3582
+ interface AthenaClientFromEnvironmentOptionsWithTypecheckedColumns extends AthenaClientFromEnvironmentOptions {
3583
+ experimental: AthenaClientExperimentalOptions & {
3584
+ typecheckColumns: true;
3585
+ };
3586
+ }
3587
+ interface AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns extends AthenaClientFromEnvironmentOptions {
3588
+ experimental: AthenaClientExperimentalOptions & {
3589
+ athenaStorageBackend: true;
3590
+ typecheckColumns: true;
3591
+ };
2893
3592
  }
2894
3593
  interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict extends boolean = false> {
2895
3594
  /** Set the public Athena base URL. */
2896
- url(url: string): AthenaClientBuilder<StorageEnabled, TStrict>;
3595
+ url(url: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
2897
3596
  /** Set the API key used for all requests. */
2898
- key(apiKey: string): AthenaClientBuilder<StorageEnabled, TStrict>;
3597
+ key(apiKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
2899
3598
  /** Set the default backend routing strategy. */
2900
3599
  backend(backend: BackendConfig | BackendType): AthenaClientBuilder<StorageEnabled, TStrict>;
2901
3600
  /** Set the default Athena client routing key. */
2902
- client(clientName: string): AthenaClientBuilder<StorageEnabled, TStrict>;
3601
+ client(clientName: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
2903
3602
  /** Attach static headers to every request. */
2904
3603
  headers(headers: Record<string, string>): AthenaClientBuilder<StorageEnabled, TStrict>;
2905
3604
  /** Configure Athena Auth client behavior for `client.auth.*` methods. */
@@ -2929,109 +3628,19 @@ declare class AthenaClient {
2929
3628
  /** Create a fluent builder for a strongly-typed Athena SDK client. */
2930
3629
  static builder(): AthenaClientBuilder<false, false>;
2931
3630
  /** Build a client from process environment variables. */
2932
- static fromEnvironment(): AthenaSdkClientWithAuth<false>;
3631
+ static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
3632
+ static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithStorage): AthenaSdkClientWithStorage<false>;
3633
+ static fromEnvironment(options: AthenaClientFromEnvironmentOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
3634
+ static fromEnvironment(options?: AthenaClientFromEnvironmentOptions): AthenaSdkClientWithAuth<false>;
2933
3635
  }
2934
3636
  /** Create client (convenience wrapper; use AthenaClient.builder() for full control) */
2935
3637
  declare function createClient(config: AthenaCreateClientConfigWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
2936
3638
  declare function createClient(config: AthenaCreateClientConfigWithStorage): AthenaSdkClientWithStorage<false>;
2937
3639
  declare function createClient(config: AthenaCreateClientConfigWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
2938
3640
  declare function createClient(config: AthenaCreateClientConfig): AthenaSdkClientWithAuth<false>;
2939
- declare function createClient(url: string, apiKey: string, options: AthenaCreateClientOptionsWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
2940
- declare function createClient(url: string, apiKey: string, options: AthenaCreateClientOptionsWithStorage): AthenaSdkClientWithStorage<false>;
2941
- declare function createClient(url: string, apiKey: string, options: AthenaCreateClientOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
2942
- declare function createClient(url: string, apiKey: string, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth<false>;
2943
-
2944
- interface AthenaGatewayErrorInput {
2945
- code: AthenaGatewayErrorCode;
2946
- message: string;
2947
- status?: number;
2948
- endpoint?: AthenaGatewayEndpointPath;
2949
- method?: AthenaGatewayMethod;
2950
- requestId?: string;
2951
- hint?: string;
2952
- cause?: string;
2953
- }
2954
- /**
2955
- * Canonical error for gateway failures.
2956
- * Holds request context and machine-readable classification.
2957
- */
2958
- declare class AthenaGatewayError extends Error {
2959
- readonly code: AthenaGatewayErrorCode;
2960
- readonly status: number;
2961
- readonly endpoint?: AthenaGatewayEndpointPath;
2962
- readonly method?: AthenaGatewayMethod;
2963
- readonly requestId?: string;
2964
- readonly hint?: string;
2965
- readonly causeDetail?: string;
2966
- constructor(input: AthenaGatewayErrorInput);
2967
- toDetails(): AthenaGatewayErrorDetails;
2968
- static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
2969
- }
2970
- declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
2971
-
2972
- type ModelFormNullishMode = 'empty-string' | 'undefined' | 'null';
2973
- type NullishValueByMode = {
2974
- 'empty-string': '';
2975
- undefined: undefined;
2976
- null: null;
2977
- };
2978
- type MapNullableToFormValue<TField, TMode extends ModelFormNullishMode> = null extends TField ? Exclude<TField, null> | NullishValueByMode[TMode] : TField;
2979
- /**
2980
- * Form value shape derived from a model insert payload.
2981
- * Nullable fields are remapped to the selected nullish representation.
2982
- */
2983
- type ModelFormValues<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = {
2984
- [K in keyof InsertOf<TModel>]: MapNullableToFormValue<InsertOf<TModel>[K], TMode>;
2985
- };
2986
- /**
2987
- * Alias for deriving form value types from any model contract.
2988
- */
2989
- type FormValuesOf<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = ModelFormValues<TModel, TMode>;
2990
- /**
2991
- * Default value shape for form initialization.
2992
- */
2993
- type ModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'> = Partial<ModelFormValues<TModel, TMode>>;
2994
- interface ToModelFormDefaultsOptions<TMode extends ModelFormNullishMode = 'empty-string'> {
2995
- /**
2996
- * Controls how nullable model values are represented in form defaults.
2997
- * - `empty-string` (default): `null -> ""`
2998
- * - `undefined`: `null -> undefined`
2999
- * - `null`: keeps `null`
3000
- */
3001
- nullishMode?: TMode;
3002
- }
3003
- interface ToModelPayloadOptions {
3004
- /**
3005
- * Converts `""` into `null` for nullable model fields.
3006
- * Defaults to `true`.
3007
- */
3008
- emptyStringAsNull?: boolean;
3009
- /**
3010
- * Omits `undefined` keys from the outgoing payload.
3011
- * Defaults to `true`.
3012
- */
3013
- stripUndefined?: boolean;
3014
- }
3015
- /**
3016
- * Normalizes model data into form-safe defaults using model nullability metadata.
3017
- */
3018
- declare function toModelFormDefaults<TModel extends AnyModelDef, TMode extends ModelFormNullishMode = 'empty-string'>(model: TModel, values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
3019
- /**
3020
- * Normalizes form values back into model-compatible insert/update payloads.
3021
- */
3022
- declare function toModelPayload<TModel extends AnyModelDef>(model: TModel, formValues: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
3023
- /**
3024
- * Runtime form adapter bound to a model contract.
3025
- */
3026
- interface ModelFormAdapter<TModel extends AnyModelDef> {
3027
- model: TModel;
3028
- toDefaults<TMode extends ModelFormNullishMode = 'empty-string'>(values?: Partial<RowOf<TModel>> | Partial<InsertOf<TModel>> | null, options?: ToModelFormDefaultsOptions<TMode>): ModelFormDefaults<TModel, TMode>;
3029
- toInsert(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<InsertOf<TModel>>;
3030
- toUpdate(values: Partial<ModelFormValues<TModel, 'empty-string' | 'undefined' | 'null'>>, options?: ToModelPayloadOptions): Partial<UpdateOf<TModel>>;
3031
- }
3032
- /**
3033
- * Creates a small model-aware adapter for form defaults and payload normalization.
3034
- */
3035
- declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
3641
+ declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithStorageAndTypecheckedColumns): AthenaSdkClientWithStorage<true>;
3642
+ declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithStorage): AthenaSdkClientWithStorage<false>;
3643
+ declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options: AthenaCreateClientOptionsWithTypecheckedColumns): AthenaSdkClientWithAuth<true>;
3644
+ declare function createClient(url: string | null | undefined, apiKey: string | null | undefined, options?: AthenaCreateClientOptions): AthenaSdkClientWithAuth<false>;
3036
3645
 
3037
- export { type AthenaClientExperimentalOptions as $, type AthenaAdminListUsersFilterOperator as A, type AthenaAuthQueryValue as B, type AthenaAuthReactEmailComponent as C, type AthenaAuthReactEmailConfig as D, type AthenaAuthReactEmailEventPhase as E, type AthenaAuthReactEmailProps as F, type AthenaAuthReactEmailRenderEvent as G, type AthenaAuthReactEmailRenderInput as H, type AthenaAuthReactEmailRenderOptions as I, type AthenaAuthRequestInput as J, type AthenaAuthResetPasswordBinding as K, type AthenaAuthResult as L, type AthenaAuthRevokeSessionRequest as M, type AthenaAuthSdkClient as N, type AthenaAuthSearchOperator as O, type AthenaAuthSession as P, type AthenaAuthSessionResponse as Q, type AthenaAuthSessionRevokeBinding as R, type AthenaAuthSignInResponse as S, type AthenaAuthSignOutResponse as T, type AthenaAuthSocialRedirectResponse as U, type AthenaAuthStatusResponse as V, type AthenaAuthUser as W, type AthenaChangeEmailRequest as X, type AthenaChangePasswordRequest as Y, AthenaClient as Z, type AthenaClientBuilder as _, type AthenaAdminListUsersQuery as a, type AthenaStorageFileConfig as a$, type AthenaCreateClientAuthOptions as a0, type AthenaCreateClientConfig as a1, type AthenaCreateClientConfigWithStorage as a2, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as a3, type AthenaCreateClientConfigWithTypecheckedColumns as a4, type AthenaCreateClientOptions as a5, type AthenaCreateClientOptionsWithStorage as a6, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as a7, type AthenaCreateClientOptionsWithTypecheckedColumns as a8, type AthenaCreateClientServiceUrlConfig as a9, type AthenaQueryTraceCallsite as aA, type AthenaQueryTraceEvent as aB, type AthenaQueryTraceOptions as aC, type AthenaRawQueryDebugAst as aD, type AthenaRelationSelectNode as aE, type AthenaResetPasswordRequest as aF, type AthenaResult as aG, type AthenaResultError as aH, type AthenaRpcBuilderStateAst as aI, type AthenaRpcDebugAst as aJ, type AthenaSdkClient as aK, type AthenaSdkClientWithAuth as aL, type AthenaSdkClientWithStorage as aM, type AthenaSelectDebugAst as aN, type AthenaSelectDebugTransport as aO, type AthenaSelectShape as aP, type AthenaSendVerificationEmailRequest as aQ, type AthenaSocialSignInRequest as aR, type AthenaStorageBinaryCallOptions as aS, type AthenaStorageCallOptions as aT, type AthenaStorageClientConfig as aU, type AthenaStorageEnv as aV, AthenaStorageError as aW, AthenaStorageErrorCode as aX, type AthenaStorageErrorDetails as aY, type AthenaStorageErrorHandler as aZ, type AthenaStorageErrorInput as a_, type AthenaDbModule as aa, type AthenaDeleteDebugAst as ab, type AthenaDeleteUserCallbackRequest as ac, type AthenaDeleteUserRequest as ad, type AthenaDeleteUserResponse as ae, type AthenaEmailSignInRequest as af, type AthenaEmailSignUpRequest as ag, type AthenaEnvelope as ah, AthenaError as ai, AthenaErrorCategory as aj, AthenaErrorCode as ak, type AthenaErrorInput as al, AthenaErrorKind as am, type AthenaFindManyDebugAst as an, type AthenaFindManyOptions as ao, type AthenaFindManyResult as ap, type AthenaForgetPasswordRequest as aq, type AthenaFromOptions as ar, AthenaGatewayError as as, type AthenaInsertDebugAst as at, type AthenaLinkSocialRequest as au, type AthenaOAuthAccountTokenRequest as av, type AthenaOAuthTokenBundle as aw, type AthenaOperationContext as ax, type AthenaOrderBy as ay, type AthenaQueryDebugAst as az, type AthenaAdminListUsersSearchOperator as b, assertInt as b$, type AthenaStorageFileDeleteInput as b0, type AthenaStorageFileDownloadInput as b1, type AthenaStorageFileListInput as b2, type AthenaStorageFileModule as b3, type AthenaStorageFileUploadInput as b4, type AthenaStorageFileUploadResult as b5, type AthenaStorageModule as b6, type AthenaStoragePathContext as b7, type AthenaStoragePrefixPath as b8, type AthenaStorageTemplateValue as b9, type ModelFormDefaults as bA, type ModelFormNullishMode as bB, type ModelFormValues as bC, type MoveStorageFolderRequest as bD, type NormalizedAthenaError as bE, type PresignedFileUrlResponse as bF, type RequireAffectedOptions as bG, type RetryBackoffStrategy as bH, type RetryConfig as bI, type RpcOrderOptions as bJ, type RpcQueryBuilder as bK, type S3CatalogItem as bL, type S3CredentialListItem as bM, type SetStorageFileVisibilityRequest as bN, type StorageBatchUploadUrlResponse as bO, type StorageFileAccessPurpose as bP, type StorageFileMutationResponse as bQ, type StorageFolderMutationResponse as bR, type StorageListFilesResponse as bS, type StorageUploadUrlResponse as bT, type TableQueryBuilder as bU, type ToModelFormDefaultsOptions as bV, type ToModelPayloadOptions as bW, type UnwrapOneOptions as bX, type UnwrapOptions as bY, type UpdateStorageCatalogRequest as bZ, type UpdateStorageFileRequest as b_, type AthenaStorageTemplateVars as ba, type AthenaStorageUploadConstraints as bb, type AthenaStorageUploadProgress as bc, type AthenaStorageUploadProgressHandler as bd, type AthenaStorageUploadSource as be, type AthenaStorageUploadedFile as bf, type AthenaTableBuilderStateAst as bg, type AthenaUnlinkAccountRequest as bh, type AthenaUpdateDebugAst as bi, type AthenaUpdateUserRequest as bj, type AthenaUpsertDebugAst as bk, type AthenaUsernameSignInRequest as bl, type AthenaVerifyEmailRequest as bm, type AthenaWhere as bn, type AthenaWhereBooleanOperand as bo, type AthenaWhereOperatorInput as bp, type CreateStorageCatalogRequest as bq, type CreateStorageUploadUrlRequest as br, type CreateStorageUploadUrlsRequest as bs, type DeleteStorageFolderRequest as bt, type FormValuesOf as bu, type GetStorageFileUrlQuery as bv, type IntCoercionOptions as bw, type ListStorageFilesRequest as bx, type ManagedFileRecord as by, type ModelFormAdapter as bz, type AthenaAuthAdminUserSessionRevokeBinding as c, coerceInt as c0, createAthenaStorageError as c1, createClient as c2, createModelFormAdapter as c3, getAthenaDebugAst as c4, isAthenaGatewayError as c5, isOk as c6, normalizeAthenaError as c7, parseBooleanFlag as c8, requireAffected as c9, requireSuccess as ca, storageSdkManifest as cb, toModelFormDefaults as cc, toModelPayload as cd, unwrap as ce, unwrapOne as cf, unwrapRows as cg, withRetry as ch, type AthenaAuthFetchCompatibleInput as ci, type AthenaAuthBindings as d, type AthenaAuthCallOptions as e, type AthenaAuthClientConfig as f, type AthenaAuthCredentials as g, type AthenaAuthEmailChangeResponse as h, type AthenaAuthEmailTemplateBuilder as i, type AthenaAuthEmailTemplateCreateFromDefinitionInput as j, type AthenaAuthEmailTemplateDefinition as k, type AthenaAuthEmailTemplateReactOverrides as l, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as m, type AthenaAuthEndpointPath as n, type AthenaAuthErrorCode as o, type AthenaAuthErrorDetails as p, type AthenaAuthFilterOperator as q, type AthenaAuthGenericInput as r, type AthenaAuthGenericQueryInput as s, type AthenaAuthLinkedAccount as t, type AthenaAuthMethod as u, type AthenaAuthOrganization as v, type AthenaAuthOrganizationBindings as w, type AthenaAuthOrganizationInvitation as x, type AthenaAuthOrganizationMember as y, type AthenaAuthQueryPrimitive as z };
3646
+ export { type AthenaAuthOrganizationMember as $, type AthenaAdminEmailCreateRequest as A, type AthenaAuthBindings as B, type AthenaAuthCallOptions as C, type AthenaAuthClientConfig as D, type AthenaAuthCredentials as E, type AthenaAuthEmailChangeResponse as F, type AthenaAuthEmailTemplateBuilder as G, type AthenaAuthEmailTemplateCreateFromDefinitionInput as H, type AthenaAuthEmailTemplateDefinition as I, type AthenaAuthEmailTemplateReactOverrides as J, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as K, type AthenaAuthEndpointPath as L, type AthenaAuthErrorCode as M, type AthenaAuthErrorDetails as N, type AthenaAuthFilterOperator as O, type AthenaAuthGenericInput as P, type AthenaAuthGenericQueryInput as Q, type AthenaAuthGetUserResponse as R, type AthenaAuthGuardFailure as S, type AthenaAuthGuardReason as T, type AthenaAuthGuardResult as U, type AthenaAuthGuardSuccess as V, type AthenaAuthLinkedAccount as W, type AthenaAuthMethod as X, type AthenaAuthOrganization as Y, type AthenaAuthOrganizationBindings as Z, type AthenaAuthOrganizationInvitation as _, type AthenaAdminEmailDeleteRequest as a, type AthenaFromOptions as a$, type AthenaAuthQueryPrimitive as a0, type AthenaAuthQueryValue as a1, type AthenaAuthReactEmailComponent as a2, type AthenaAuthReactEmailConfig as a3, type AthenaAuthReactEmailEventPhase as a4, type AthenaAuthReactEmailProps as a5, type AthenaAuthReactEmailRenderEvent as a6, type AthenaAuthReactEmailRenderInput as a7, type AthenaAuthReactEmailRenderOptions as a8, type AthenaAuthRequestInput as a9, type AthenaCreateClientAuthOptions as aA, type AthenaCreateClientConfig as aB, type AthenaCreateClientConfigWithStorage as aC, type AthenaCreateClientConfigWithStorageAndTypecheckedColumns as aD, type AthenaCreateClientConfigWithTypecheckedColumns as aE, type AthenaCreateClientOptions as aF, type AthenaCreateClientOptionsWithStorage as aG, type AthenaCreateClientOptionsWithStorageAndTypecheckedColumns as aH, type AthenaCreateClientOptionsWithTypecheckedColumns as aI, type AthenaCreateClientServiceUrlConfig as aJ, type AthenaDbModule as aK, type AthenaDeleteDebugAst as aL, type AthenaDeleteUserCallbackRequest as aM, type AthenaDeleteUserRequest as aN, type AthenaDeleteUserResponse as aO, type AthenaEmailSignInRequest as aP, type AthenaEmailSignUpRequest as aQ, type AthenaEnvelope as aR, AthenaError as aS, AthenaErrorCategory as aT, AthenaErrorCode as aU, type AthenaErrorInput as aV, AthenaErrorKind as aW, type AthenaFindManyDebugAst as aX, type AthenaFindManyOptions as aY, type AthenaFindManyResult as aZ, type AthenaForgetPasswordRequest as a_, type AthenaAuthResetPasswordBinding as aa, type AthenaAuthResult as ab, type AthenaAuthRevokeSessionRequest as ac, type AthenaAuthSdkClient as ad, type AthenaAuthSearchOperator as ae, type AthenaAuthSession as af, type AthenaAuthSessionResponse as ag, type AthenaAuthSessionRevokeBinding as ah, type AthenaAuthSignInResponse as ai, type AthenaAuthSignOutResponse as aj, type AthenaAuthSocialRedirectResponse as ak, type AthenaAuthStatusResponse as al, type AthenaAuthUser as am, type AthenaChangeEmailRequest as an, type AthenaChangePasswordRequest as ao, AthenaClient as ap, type AthenaClientBuilder as aq, type AthenaClientContextOptions as ar, type AthenaClientExperimentalOptions as as, type AthenaClientFromEnvironmentOptions as at, type AthenaClientFromEnvironmentOptionsWithStorage as au, type AthenaClientFromEnvironmentOptionsWithStorageAndTypecheckedColumns as av, type AthenaClientFromEnvironmentOptionsWithTypecheckedColumns as aw, type AthenaClientOverrideOptions as ax, type AthenaClientSessionLike as ay, type AthenaClientSessionOptions as az, type AthenaAdminEmailFailureCreateRequest as b, type AthenaStorageTemplateVars as b$, type AthenaHeaderBag as b0, type AthenaInsertDebugAst as b1, type AthenaLinkSocialRequest as b2, type AthenaOAuthAccountTokenRequest as b3, type AthenaOAuthTokenBundle as b4, type AthenaOperationContext as b5, type AthenaOrderBy as b6, type AthenaQueryDebugAst as b7, type AthenaQueryTraceCallsite as b8, type AthenaQueryTraceEvent as b9, 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 AthenaStorageTemplateValue as b_, type AthenaQueryTraceOptions as ba, type AthenaRawQueryDebugAst as bb, type AthenaRelationSelectNode as bc, type AthenaResetPasswordRequest as bd, type AthenaResult as be, type AthenaResultError as bf, type AthenaRpcBuilderStateAst as bg, type AthenaRpcDebugAst as bh, type AthenaSdkClient as bi, type AthenaSdkClientWithAuth as bj, type AthenaSdkClientWithStorage as bk, type AthenaSelectDebugAst as bl, type AthenaSelectDebugTransport as bm, type AthenaSelectShape as bn, type AthenaSendVerificationEmailRequest as bo, type AthenaSocialSignInRequest as bp, type AthenaStorageAuditNamespace as bq, type AthenaStorageBaseModule as br, type AthenaStorageBinaryCallOptions as bs, type AthenaStorageBucketCorsNamespace as bt, type AthenaStorageBucketNamespace as bu, type AthenaStorageCallOptions as bv, type AthenaStorageCatalogNamespace as bw, type AthenaStorageClientConfig as bx, type AthenaStorageCredentialsNamespace as by, type AthenaStorageEnv as bz, type AthenaAdminEmailFailureDeleteRequest as c, type StorageMultipartListPartsRequest as c$, type AthenaStorageUploadConstraints as c0, type AthenaStorageUploadProgress as c1, type AthenaStorageUploadProgressHandler as c2, type AthenaStorageUploadSource as c3, type AthenaStorageUploadedFile as c4, type AthenaTableBuilderStateAst as c5, type AthenaUnlinkAccountRequest as c6, type AthenaUpdateDebugAst as c7, type AthenaUpdateUserRequest as c8, type AthenaUpsertDebugAst as c9, type S3CredentialListItem as cA, type SearchStorageFilesRequest as cB, type SetManyStorageFileVisibilityRequest as cC, type SetStorageFileVisibilityRequest as cD, type StorageAuditEventRecord as cE, type StorageAuditListResponse as cF, type StorageAuditQueryRequest as cG, type StorageBatchUploadUrlResponse as cH, type StorageBatchUploadUrlResponseWithPut as cI, type StorageBucketCorsRequest as cJ, type StorageBucketCorsRuleInput as cK, type StorageBucketLifecycleRequest as cL, type StorageBucketLifecycleRuleInput as cM, type StorageBucketPolicyRequest as cN, type StorageFileAccessPurpose as cO, type StorageFileMutationManyResponse as cP, type StorageFileMutationResponse as cQ, type StorageFilePermissionRecord as cR, type StorageFileRetentionRequest as cS, type StorageFileVersionPathRequest as cT, type StorageFolderMutationResponse as cU, type StorageListFilesResponse as cV, type StorageListObjectsRequest as cW, type StorageMultipartAbortRequest as cX, type StorageMultipartCompletePartInput as cY, type StorageMultipartCompleteRequest as cZ, type StorageMultipartCreateRequest as c_, type AthenaUsernameSignInRequest as ca, type AthenaVerifyEmailRequest as cb, type AthenaWhere as cc, type AthenaWhereBooleanOperand as cd, type AthenaWhereOperatorInput as ce, type ConfirmStorageUploadRequest as cf, type CopyStorageFileRequest as cg, type CreateStorageCatalogRequest as ch, type CreateStorageUploadUrlRequest as ci, type CreateStorageUploadUrlsRequest as cj, type DeleteManyStorageFilesRequest as ck, type DeleteStorageFolderRequest as cl, type GetStorageFileUrlQuery as cm, type IntCoercionOptions as cn, type ListStorageFilesRequest as co, type ListStorageFoldersRequest as cp, type ManagedFileRecord as cq, type MoveStorageFolderRequest as cr, type NormalizedAthenaError as cs, type PresignedFileUrlResponse as ct, type RequireAffectedOptions as cu, type RetryBackoffStrategy as cv, type RetryConfig as cw, type RpcOrderOptions as cx, type RpcQueryBuilder as cy, type S3CatalogItem as cz, type AthenaAdminEmailFailureGetQuery as d, type StorageMultipartSignPartRequest as d0, type StorageObjectBaseRequest as d1, type StorageObjectCopyRequest as d2, type StorageObjectFolderCreateRequest as d3, type StorageObjectFolderDeleteRequest as d4, type StorageObjectFolderRenameRequest as d5, type StorageObjectPublicUrlRequest as d6, type StorageObjectRequest as d7, type StorageObjectValidateRequest as d8, type StorageObjectVersionListRequest as d9, assertInt as dA, coerceInt as dB, createAthenaStorageError as dC, createClient as dD, createStorageModule as dE, getAthenaDebugAst as dF, isOk as dG, normalizeAthenaError as dH, parseBooleanFlag as dI, requireAffected as dJ, requireSuccess as dK, storageSdkManifest as dL, unwrap as dM, unwrapOne as dN, unwrapRows as dO, verifyAthenaGatewayUrl as dP, withRetry as dQ, type AthenaAuthFetchCompatibleInput as dR, type StorageObjectVersionMutationRequest as da, type StoragePermissionCheckRequest as db, type StoragePermissionCheckResponse as dc, type StoragePermissionGrantRequest as dd, type StoragePermissionListRequest as de, type StoragePermissionListResponse as df, type StoragePermissionRevokeRequest as dg, type StoragePresignUploadRequest as dh, type StoragePublicAccessBlockRequest as di, type StorageServerSideEncryptionOptions as dj, type StorageSetBucketCorsRequest as dk, type StorageSetBucketLifecycleRequest as dl, type StorageSetBucketPolicyRequest as dm, type StorageSetPublicAccessBlockRequest as dn, type StorageSignedPostPolicyRequest as dp, type StorageUpdateObjectRequest as dq, type StorageUploadUrlResponse as dr, type StorageUploadUrlResponseWithPut as ds, type TableQueryBuilder as dt, type TreeStorageFoldersRequest as du, type UnwrapOneOptions as dv, type UnwrapOptions as dw, type UpdateManyStorageFilesRequest as dx, type UpdateStorageCatalogRequest as dy, type UpdateStorageFileRequest as dz, type AthenaAdminEmailFailureGetResponse as e, type AthenaAdminEmailFailureListQuery as f, type AthenaAdminEmailFailureListResponse as g, type AthenaAdminEmailFailureUpdateRequest as h, type AthenaAdminEmailFailureUpdateResponse as i, type AthenaAdminEmailGetQuery as j, type AthenaAdminEmailGetResponse as k, type AthenaAdminEmailListQuery as l, type AthenaAdminEmailListResponse as m, type AthenaAdminEmailTemplateCreateRequest as n, type AthenaAdminEmailTemplateDeleteRequest as o, type AthenaAdminEmailTemplateGetQuery as p, type AthenaAdminEmailTemplateGetResponse as q, type AthenaAdminEmailTemplateListQuery as r, type AthenaAdminEmailTemplateListResponse as s, type AthenaAdminEmailTemplateUpdateRequest as t, type AthenaAdminEmailUpdateRequest as u, type AthenaAdminEmailUpdateResponse as v, type AthenaAdminListUsersFilterOperator as w, type AthenaAdminListUsersQuery as x, type AthenaAdminListUsersSearchOperator as y, type AthenaAuthAdminUserSessionRevokeBinding as z };