@xylex-group/athena 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -10
- package/dist/{athena-auth-url-oLux_57a.d.cts → athena-request-headers-C7Jy-c_D.d.ts} +85 -1
- package/dist/{athena-auth-url-oLux_57a.d.ts → athena-request-headers-DujFFyMU.d.cts} +85 -1
- package/dist/billing.cjs +133 -21
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +41 -1
- package/dist/billing.d.ts +41 -1
- package/dist/billing.js +133 -21
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +138 -45
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -9
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +138 -45
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +130 -45
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -3
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +130 -45
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +138 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +138 -45
- package/dist/index.js.map +1 -1
- package/dist/{model-form-BKetpu6Q.d.ts → model-form-Dh0sisdL.d.ts} +1 -1
- package/dist/{model-form-BEfCGB5b.d.cts → model-form-oOAJUVd4.d.cts} +1 -1
- package/dist/{module-CrrSmpML.d.cts → module-CB25egcO.d.cts} +17 -5
- package/dist/{module-8dSMcy0K.d.cts → module-C_ab-MM1.d.cts} +46 -12
- package/dist/{module-8dSMcy0K.d.ts → module-C_ab-MM1.d.ts} +46 -12
- package/dist/{module-Bef_MAPO.d.ts → module-CkUM6v58.d.ts} +17 -5
- package/dist/next/client.cjs +9817 -3
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +26 -1
- package/dist/next/client.d.ts +26 -1
- package/dist/next/client.js +9788 -4
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +10398 -42
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +39 -4
- package/dist/next/server.d.ts +39 -4
- package/dist/next/server.js +10339 -43
- package/dist/next/server.js.map +1 -1
- package/dist/{pipeline-BXFQbsUW.d.ts → pipeline-B8aN2EHe.d.ts} +1 -1
- package/dist/{pipeline-Dfsed4VD.d.cts → pipeline-D4W-Cc-A.d.cts} +1 -1
- package/dist/proxy-request-headers-DGxdoyA0.d.cts +59 -0
- package/dist/proxy-request-headers-m4D2Tduy.d.ts +59 -0
- package/dist/react.cjs +7 -7
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +7 -7
- package/dist/react.js.map +1 -1
- package/dist/social-providers.cjs +15 -11
- package/dist/social-providers.cjs.map +1 -1
- package/dist/social-providers.d.cts +17 -57
- package/dist/social-providers.d.ts +17 -57
- package/dist/social-providers.js +15 -11
- package/dist/social-providers.js.map +1 -1
- package/dist/{types-jClgDy1J.d.ts → types-B75PdABb.d.ts} +1 -1
- package/dist/{types-Z3-rsiM3.d.cts → types-BBm-kEBL.d.cts} +1 -1
- package/dist/{types-CK7cBQbC.d.ts → types-BaAMXCqK.d.ts} +1 -1
- package/dist/{types-kO_Ut5wU.d.cts → types-CgCv5o6R.d.cts} +1 -1
- package/dist/utils.d.cts +4 -142
- package/dist/utils.d.ts +4 -142
- package/dist/{v3-client-G8JMOilK.d.cts → v3-client-CWfZHcKL.d.cts} +37 -21
- package/dist/{v3-client-CuCNy-JJ.d.ts → v3-client-DZp2NEhK.d.ts} +37 -21
- package/package.json +6 -3
package/dist/browser.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AthenaAuthConfig, a as AthenaBillingConfig, b as AthenaChatAddMembersRequest, c as AthenaChatAddReactionRequest, d as AthenaChatAttachmentInput, e as AthenaChatAttachmentView, f as AthenaChatCallOptions, g as AthenaChatConfig, h as AthenaChatConnectOptions, i as AthenaChatCreateRoomRequest, j as AthenaChatDeleteResult, k as AthenaChatEditMessageRequest, l as AthenaChatListMessagesQuery, m as AthenaChatListRoomsQuery, n as AthenaChatMarkReadUpToRequest, o as AthenaChatMember, p as AthenaChatMemberRole, q as AthenaChatMessage, r as AthenaChatMessageCreatedResponse, s as AthenaChatMessagePage, t as AthenaChatModule, u as AthenaChatPresenceUser, v as AthenaChatReactionCount, w as AthenaChatReactionSummary, x as AthenaChatReadCursor, y as AthenaChatRealtimeConnection, z as AthenaChatRealtimeInfoResponse, B as AthenaChatRealtimeModule, C as AthenaChatRemoveResult, D as AthenaChatResumeRoomCursor, E as AthenaChatRoom, F as AthenaChatRoomCreatedResponse, G as AthenaChatRoomKind, H as AthenaChatRoomPage, I as AthenaChatSearchHit, J as AthenaChatSearchMessagesRequest, K as AthenaChatSearchPage, L as AthenaChatSendMessageRequest, M as AthenaChatUpdateRoomRequest, N as AthenaChatWebSocketFactory, O as AthenaChatWebSocketLike, P as AthenaChatWsAuthHelloCommand, Q as AthenaChatWsClientCommand, R as AthenaChatWsErrorEvent, S as AthenaChatWsHelloOkEvent, T as AthenaChatWsMembersUpdatedEvent, U as AthenaChatWsMessageCreatedEvent, V as AthenaChatWsMessageDeletedEvent, W as AthenaChatWsMessageEventBase, X as AthenaChatWsMessageUpdatedEvent, Y as AthenaChatWsPingCommand, Z as AthenaChatWsPongEvent, _ as AthenaChatWsPresenceHeartbeatCommand, $ as AthenaChatWsPresenceUpdatedEvent, a0 as AthenaChatWsReactionUpdatedEvent, a1 as AthenaChatWsReadUpToCommand, a2 as AthenaChatWsReadUpdatedEvent, a3 as AthenaChatWsResumeCommand, a4 as AthenaChatWsRoomArchivedEvent, a5 as AthenaChatWsRoomCreatedEvent, a6 as AthenaChatWsRoomEventBase, a7 as AthenaChatWsRoomUpdatedEvent, a8 as AthenaChatWsServerEvent, a9 as AthenaChatWsSubscribeCommand, aa as AthenaChatWsSubscribedEvent, ab as AthenaChatWsSyncRequiredEvent, ac as AthenaChatWsTypingStartCommand, ad as AthenaChatWsTypingStopCommand, ae as AthenaChatWsTypingUpdatedEvent, af as AthenaChatWsUnsubscribeCommand, ag as AthenaClient, ah as AthenaClientConfig, ai as
|
|
2
|
-
export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, b as AthenaBillingError, c as AthenaBillingModule, d as billingSdkManifest, e as createBillingModule } from './module-
|
|
1
|
+
export { A as AthenaAuthConfig, a as AthenaBillingConfig, b as AthenaChatAddMembersRequest, c as AthenaChatAddReactionRequest, d as AthenaChatAttachmentInput, e as AthenaChatAttachmentView, f as AthenaChatCallOptions, g as AthenaChatConfig, h as AthenaChatConnectOptions, i as AthenaChatCreateRoomRequest, j as AthenaChatDeleteResult, k as AthenaChatEditMessageRequest, l as AthenaChatListMessagesQuery, m as AthenaChatListRoomsQuery, n as AthenaChatMarkReadUpToRequest, o as AthenaChatMember, p as AthenaChatMemberRole, q as AthenaChatMessage, r as AthenaChatMessageCreatedResponse, s as AthenaChatMessagePage, t as AthenaChatModule, u as AthenaChatPresenceUser, v as AthenaChatReactionCount, w as AthenaChatReactionSummary, x as AthenaChatReadCursor, y as AthenaChatRealtimeConnection, z as AthenaChatRealtimeInfoResponse, B as AthenaChatRealtimeModule, C as AthenaChatRemoveResult, D as AthenaChatResumeRoomCursor, E as AthenaChatRoom, F as AthenaChatRoomCreatedResponse, G as AthenaChatRoomKind, H as AthenaChatRoomPage, I as AthenaChatSearchHit, J as AthenaChatSearchMessagesRequest, K as AthenaChatSearchPage, L as AthenaChatSendMessageRequest, M as AthenaChatUpdateRoomRequest, N as AthenaChatWebSocketFactory, O as AthenaChatWebSocketLike, P as AthenaChatWsAuthHelloCommand, Q as AthenaChatWsClientCommand, R as AthenaChatWsErrorEvent, S as AthenaChatWsHelloOkEvent, T as AthenaChatWsMembersUpdatedEvent, U as AthenaChatWsMessageCreatedEvent, V as AthenaChatWsMessageDeletedEvent, W as AthenaChatWsMessageEventBase, X as AthenaChatWsMessageUpdatedEvent, Y as AthenaChatWsPingCommand, Z as AthenaChatWsPongEvent, _ as AthenaChatWsPresenceHeartbeatCommand, $ as AthenaChatWsPresenceUpdatedEvent, a0 as AthenaChatWsReactionUpdatedEvent, a1 as AthenaChatWsReadUpToCommand, a2 as AthenaChatWsReadUpdatedEvent, a3 as AthenaChatWsResumeCommand, a4 as AthenaChatWsRoomArchivedEvent, a5 as AthenaChatWsRoomCreatedEvent, a6 as AthenaChatWsRoomEventBase, a7 as AthenaChatWsRoomUpdatedEvent, a8 as AthenaChatWsServerEvent, a9 as AthenaChatWsSubscribeCommand, aa as AthenaChatWsSubscribedEvent, ab as AthenaChatWsSyncRequiredEvent, ac as AthenaChatWsTypingStartCommand, ad as AthenaChatWsTypingStopCommand, ae as AthenaChatWsTypingUpdatedEvent, af as AthenaChatWsUnsubscribeCommand, ag as AthenaClient, ah as AthenaClientConfig, ai as AthenaDbConfig, aj as AthenaDbModule, ak as AthenaDeleteDebugAst, al as AthenaEnvelope, am as AthenaError, an as AthenaErrorCategory, ao as AthenaErrorCode, ap as AthenaErrorInput, aq as AthenaErrorKind, ar as AthenaFindManyDebugAst, as as AthenaFromOptions, at as AthenaInsertDebugAst, au as AthenaOperationContext, av as AthenaQueryDebugAst, aw as AthenaRawQueryDebugAst, ax as AthenaRequestContext, ay as AthenaRequestContextProvider, az as AthenaRequestMethod, aA as AthenaRequestOptions, aB as AthenaRequestQueryValueMap, aC as AthenaRequestResponse, aD as AthenaRequestService, aE as AthenaResult, aF as AthenaRpcBuilderStateAst, aG as AthenaRpcDebugAst, aH as AthenaSelectDebugAst, aI as AthenaSelectDebugTransport, aJ as AthenaStorageAuditNamespace, aK as AthenaStorageBackupNamespace, aL as AthenaStorageBaseModule, aM as AthenaStorageBinaryCallOptions, aN as AthenaStorageBucketCorsNamespace, aO as AthenaStorageBucketNamespace, aP as AthenaStorageCallOptions, aQ as AthenaStorageCatalogNamespace, aR as AthenaStorageClientConfig, aS as AthenaStorageConfig, aT as AthenaStorageCredentialsNamespace, aU as AthenaStorageDirectUploadConfig, aV as AthenaStorageEnv, aW as AthenaStorageError, aX as AthenaStorageErrorCode, aY as AthenaStorageErrorDetails, aZ as AthenaStorageErrorHandler, a_ as AthenaStorageErrorInput, a$ as AthenaStorageFileConfig, b0 as AthenaStorageFileDeleteInput, b1 as AthenaStorageFileDownloadInput, b2 as AthenaStorageFileListInput, b3 as AthenaStorageFileModule, b4 as AthenaStorageFileNamespace, b5 as AthenaStorageFileUploadInput, b6 as AthenaStorageFileUploadManyRequest, b7 as AthenaStorageFileUploadRequest, b8 as AthenaStorageFileUploadResult, b9 as AthenaStorageFolderNamespace, ba as AthenaStorageManagedUpload, bb as AthenaStorageModule, bc as AthenaStorageMultipartNamespace, bd as AthenaStorageObjectFolderNamespace, be as AthenaStorageObjectNamespace, bf as AthenaStoragePathContext, bg as AthenaStoragePermissionNamespace, bh as AthenaStoragePrefixPath, bi as AthenaStoragePutBody, bj as AthenaStoragePutOptions, bk as AthenaStorageTemplateValue, bl as AthenaStorageTemplateVars, bm as AthenaStorageUploadConstraints, bn as AthenaStorageUploadProgress, bo as AthenaStorageUploadProgressHandler, bp as AthenaStorageUploadSource, bq as AthenaStorageUploadedFile, br as AthenaTableBuilderStateAst, bs as AthenaUpdateDebugAst, bt as AthenaUpsertDebugAst, bu as BackupRecoveryStrategy, bv as ConfirmStorageUploadRequest, bw as CopyStorageFileRequest, bx as CreateStorageCatalogRequest, by as CreateStorageUploadUrlRequest, bz as CreateStorageUploadUrlsRequest, bA as DeleteManyStorageFilesRequest, bB as DeleteStorageFolderRequest, bC as DeprecatedInlineStorageConnectionFields, bD as GetStorageFileUrlQuery, bE as IntCoercionOptions, bF as ListStorageFilesRequest, bG as ListStorageFoldersRequest, bH as ManagedFileRecord, bI as MoveStorageFolderRequest, bJ as NormalizedAthenaError, bK as PresignedFileUrlResponse, bL as RequireAffectedOptions, bM as RetryBackoffStrategy, bN as RetryConfig, bO as RpcOrderOptions, bP as RpcQueryBuilder, bQ as S3CatalogItem, bR as S3CredentialListItem, bS as SearchStorageFilesRequest, bT as SetManyStorageFileVisibilityRequest, bU as SetStorageFileVisibilityRequest, bV as StorageAuditEventRecord, bW as StorageAuditListResponse, bX as StorageAuditQueryRequest, bY as StorageBackupCreateRequest, bZ as StorageBackupJob, b_ as StorageBackupListPage, b$ as StorageBackupListQuery, c0 as StorageBackupQueuedJob, c1 as StorageBackupRecord, c2 as StorageBackupRestoreRequest, c3 as StorageBackupSchedule, c4 as StorageBackupScheduleCreateRequest, c5 as StorageBatchUploadUrlResponse, c6 as StorageBatchUploadUrlResponseWithPut, c7 as StorageBucketCorsRequest, c8 as StorageBucketCorsRuleInput, c9 as StorageBucketLifecycleRequest, ca as StorageBucketLifecycleRuleInput, cb as StorageBucketPolicyRequest, cc as StorageConnectionSelector, cd as StorageFileAccessPurpose, ce as StorageFileMutationManyResponse, cf as StorageFileMutationResponse, cg as StorageFilePermissionRecord, ch as StorageFileRetentionRequest, ci as StorageFileVersionPathRequest, cj as StorageFolderMutationResponse, ck as StorageListFilesResponse, cl as StorageListObjectsRequest, cm as StorageMultipartAbortRequest, cn as StorageMultipartCompletePartInput, co as StorageMultipartCompleteRequest, cp as StorageMultipartCreateRequest, cq as StorageMultipartListPartsRequest, cr as StorageMultipartSignPartRequest, cs as StorageObjectBaseRequest, ct as StorageObjectCopyRequest, cu as StorageObjectFolderCreateRequest, cv as StorageObjectFolderDeleteRequest, cw as StorageObjectFolderRenameRequest, cx as StorageObjectPublicUrlRequest, cy as StorageObjectRequest, cz as StorageObjectValidateRequest, cA as StorageObjectVersionListRequest, cB as StorageObjectVersionMutationRequest, cC as StoragePermissionCheckRequest, cD as StoragePermissionCheckResponse, cE as StoragePermissionGrantRequest, cF as StoragePermissionListRequest, cG as StoragePermissionListResponse, cH as StoragePermissionRevokeRequest, cI as StoragePresignUploadRequest, cJ as StoragePublicAccessBlockRequest, cK as StorageServerSideEncryptionOptions, cL as StorageSetBucketCorsRequest, cM as StorageSetBucketLifecycleRequest, cN as StorageSetBucketPolicyRequest, cO as StorageSetPublicAccessBlockRequest, cP as StorageSignedPostPolicyRequest, cQ as StorageUpdateObjectRequest, cR as StorageUploadUrlResponse, cS as StorageUploadUrlResponseWithPut, cT as TableQueryBuilder, cU as TreeStorageFoldersRequest, cV as UnwrapOneOptions, cW as UnwrapOptions, cX as UpdateManyStorageFilesRequest, cY as UpdateStorageCatalogRequest, cZ as UpdateStorageFileRequest, c_ as assertInt, c$ as coerceInt, d0 as createAthenaStorageError, d1 as createClient, d2 as createStorageModule, d3 as getAthenaDebugAst, d4 as isOk, d5 as normalizeAthenaError, d6 as parseBooleanFlag, d7 as requireAffected, d8 as requireSuccess, d9 as storageSdkManifest, da as unwrap, db as unwrapOne, dc as unwrapRows, dd as verifyAthenaGatewayUrl, de as withRetry } from './v3-client-CWfZHcKL.cjs';
|
|
2
|
+
export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, b as AthenaBillingError, c as AthenaBillingModule, d as billingSdkManifest, e as createBillingModule } from './module-C_ab-MM1.cjs';
|
|
3
3
|
export { A as AthenaConditionCastType, a as AthenaGatewayCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, d as AthenaGatewayErrorCode, e as AthenaGatewayErrorDetails, f as AthenaJsonArray, g as AthenaJsonObject, h as AthenaJsonPrimitive, i as AthenaJsonValue, j as AthenaRpcCallOptions, k as AthenaRpcFilter, l as AthenaRpcFilterOperator, m as AthenaRpcOrder, n as AthenaRpcPayload, B as Backend, o as BackendConfig, p as BackendType } from './types-Bltx6iL6.cjs';
|
|
4
|
-
export { A as AthenaGatewayError, F as FormValuesOf, M as ModelFormAdapter, a as ModelFormDefaults, b as ModelFormNullishMode, c as ModelFormValues, T as ToModelFormDefaultsOptions, d as ToModelPayloadOptions, e as createModelFormAdapter, i as isAthenaGatewayError, t as toModelFormDefaults, f as toModelPayload } from './model-form-
|
|
5
|
-
import { P as PostgresIntrospectionProviderOptions } from './module-
|
|
6
|
-
export { A as ATHENA_AUTH_ADMIN_LIMITS, a as ATHENA_AUTH_BASE_ERROR_CODES, b as ATHENA_AUTH_MAX_ADMIN_JSON_BYTES, c as ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH, d as ATHENA_AUTH_MAX_TEMPLATE_VARIABLES, e as ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH, f as AnyColumnBuilder, g as AthenaAuthAdminLimits, h as AthenaChatError, i as AthenaColumnBuilder, j as
|
|
4
|
+
export { A as AthenaGatewayError, F as FormValuesOf, M as ModelFormAdapter, a as ModelFormDefaults, b as ModelFormNullishMode, c as ModelFormValues, T as ToModelFormDefaultsOptions, d as ToModelPayloadOptions, e as createModelFormAdapter, i as isAthenaGatewayError, t as toModelFormDefaults, f as toModelPayload } from './model-form-oOAJUVd4.cjs';
|
|
5
|
+
import { P as PostgresIntrospectionProviderOptions } from './module-CB25egcO.cjs';
|
|
6
|
+
export { A as ATHENA_AUTH_ADMIN_LIMITS, a as ATHENA_AUTH_BASE_ERROR_CODES, b as ATHENA_AUTH_MAX_ADMIN_JSON_BYTES, c as ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH, d as ATHENA_AUTH_MAX_TEMPLATE_VARIABLES, e as ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH, f as AnyColumnBuilder, g as AthenaAuthAdminLimits, h as AthenaChatError, i as AthenaColumnBuilder, j as AthenaConfigurationError, k as AthenaConfigurationErrorCode, l as AthenaService, m as AthenaTableDef, n as AthenaTableSchemaBundle, C as ColumnRuntimeConfig, D as DEFAULT_POSTGRES_SCHEMAS, F as FormValuesFromColumns, I as InsertFromColumns, R as RowFromColumns, U as UpdateFromColumns, o as athenaAuth, p as boolean, q as chatSdkManifest, r as createAuthReactEmailInput, s as defineAthenaAuthConfig, t as defineAuthEmailTemplate, u as defineDatabase, v as defineModel, w as defineRegistry, x as defineSchema, y as enumeration, z as filterIntrospectionSnapshot, B as generatorEnv, E as identifier, G as json, H as normalizeAthenaGatewayBaseUrl, J as normalizeSchemaSelection, K as normalizeTableSelection, L as number, M as renderAthenaReactEmail, N as resolvePostgresColumnType, O as resolveProviderSchemas, Q as string, S as table, T as unwrapChatMessage, V as unwrapChatRoom } from './module-CB25egcO.cjs';
|
|
7
7
|
export { A as AthenaAdminEmailCreateRequest, a as AthenaAdminEmailDeleteRequest, b as AthenaAdminEmailEventTypeListResponse, c as AthenaAdminEmailEventTypeRecord, d as AthenaAdminEmailFailureCreateRequest, e as AthenaAdminEmailFailureDeleteRequest, f as AthenaAdminEmailFailureGetQuery, g as AthenaAdminEmailFailureGetResponse, h as AthenaAdminEmailFailureListQuery, i as AthenaAdminEmailFailureListResponse, j as AthenaAdminEmailFailureUpdateRequest, k as AthenaAdminEmailFailureUpdateResponse, l as AthenaAdminEmailGetQuery, m as AthenaAdminEmailGetResponse, n as AthenaAdminEmailListQuery, o as AthenaAdminEmailListResponse, p as AthenaAdminEmailTemplateCreateRequest, q as AthenaAdminEmailTemplateDeleteRequest, r as AthenaAdminEmailTemplateGetQuery, s as AthenaAdminEmailTemplateGetResponse, t as AthenaAdminEmailTemplateListQuery, u as AthenaAdminEmailTemplateListResponse, v as AthenaAdminEmailTemplateRecord, w as AthenaAdminEmailTemplateSendRequest, x as AthenaAdminEmailTemplateSendResponse, y as AthenaAdminEmailTemplateUpdateRequest, z as AthenaAdminEmailUpdateRequest, B as AthenaAdminEmailUpdateResponse, C as AthenaAuthAdminUserSessionRevokeBinding, D as AthenaAuthBindings, E as AthenaAuthCallOptions, F as AthenaAuthClientConfig, G as AthenaAuthCredentials, H as AthenaAuthEmailChangeResponse, I as AthenaAuthEmailTemplateAttachment, J as AthenaAuthEmailTemplateBuilder, K as AthenaAuthEmailTemplateCreateFromDefinitionInput, L as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateReactOverrides, N as AthenaAuthEmailTemplateUpdateFromDefinitionInput, O as AthenaAuthEmailTemplateVariableBinding, P as AthenaAuthEndpointPath, Q as AthenaAuthErrorCode, R as AthenaAuthErrorDetails, S as AthenaAuthGenericInput, T as AthenaAuthGenericQueryInput, U as AthenaAuthGetUserResponse, V as AthenaAuthLinkedAccount, W as AthenaAuthMethod, X as AthenaAuthOrganization, Y as AthenaAuthOrganizationBindings, Z as AthenaAuthOrganizationInvitation, _ as AthenaAuthOrganizationMember, $ as AthenaAuthQueryPrimitive, a0 as AthenaAuthQueryValue, a1 as AthenaAuthReactEmailComponent, a2 as AthenaAuthReactEmailConfig, a3 as AthenaAuthReactEmailEventPhase, a4 as AthenaAuthReactEmailProps, a5 as AthenaAuthReactEmailRenderEvent, a6 as AthenaAuthReactEmailRenderInput, a7 as AthenaAuthReactEmailRenderOptions, a8 as AthenaAuthRequestInput, a9 as AthenaAuthResetPasswordBinding, aa as AthenaAuthResult, ab as AthenaAuthRevokeSessionRequest, ac as AthenaAuthSession, ad as AthenaAuthSessionResponse, ae as AthenaAuthSessionRevokeBinding, af as AthenaAuthSignInResponse, ag as AthenaAuthSignOutResponse, ah as AthenaAuthSocialRedirectResponse, ai as AthenaAuthStatusResponse, aj as AthenaAuthUser, ak as AthenaChangeEmailRequest, al as AthenaChangePasswordRequest, am as AthenaDeleteUserCallbackRequest, an as AthenaDeleteUserRequest, ao as AthenaDeleteUserResponse, ap as AthenaEmailSignInRequest, aq as AthenaEmailSignUpRequest, ar as AthenaForgetPasswordRequest, as as AthenaLinkSocialRequest, at as AthenaOAuthAccountTokenRequest, au as AthenaOAuthTokenBundle, av as AthenaResetPasswordRequest, aw as AthenaSendVerificationEmailRequest, ax as AthenaSocialSignInRequest, ay as AthenaUnlinkAccountRequest, az as AthenaUpdateUserRequest, aA as AthenaUsernameSignInRequest, aB as AthenaVerifyEmailRequest, aC as AuthBindings } from './types-AOY-GLu8.cjs';
|
|
8
|
-
import { S as SchemaIntrospectionProvider, I as IntrospectionSnapshot } from './types-
|
|
9
|
-
export { A as AthenaModelTarget, D as DatabaseDef, a as InsertOf, b as IntrospectionColumn, c as IntrospectionInspectOptions, d as IntrospectionRelation, e as IntrospectionSchema, f as IntrospectionTable, g as IntrospectionTypeKind, M as ModelAt, h as ModelColumnKind, i as ModelColumnMetadata, j as ModelDef, k as ModelMetadata, l as ModelRelationKind, m as ModelRelationMetadata, R as RegistryDef, n as RowOf, o as SchemaDef, T as TenantContext, p as TenantContextValue, q as TenantKeyMap, U as UpdateOf } from './types-
|
|
10
|
-
import { A as AthenaGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags, R as RunGeneratorOptions, d as RunGeneratorResult } from './types-
|
|
11
|
-
export { e as GeneratedArtifact, f as GeneratorArtifactKind, g as GeneratorFeatureFlags, h as GeneratorFilterConfig, i as GeneratorInternalConfig, j as GeneratorNamingConfig, k as GeneratorOutputConfig, l as GeneratorOutputFormat, m as GeneratorOutputPreset, n as GeneratorOutputTargets, o as GeneratorSchemaSelection, p as GeneratorTableSelection, q as NamingStyle, r as NormalizedGeneratorFilterConfig, s as NormalizedGeneratorOutputConfig, S as SkippedGeneratedArtifact, t as SkippedGeneratedArtifactReason } from './types-
|
|
8
|
+
import { S as SchemaIntrospectionProvider, I as IntrospectionSnapshot } from './types-CgCv5o6R.cjs';
|
|
9
|
+
export { A as AthenaModelTarget, D as DatabaseDef, a as InsertOf, b as IntrospectionColumn, c as IntrospectionInspectOptions, d as IntrospectionRelation, e as IntrospectionSchema, f as IntrospectionTable, g as IntrospectionTypeKind, M as ModelAt, h as ModelColumnKind, i as ModelColumnMetadata, j as ModelDef, k as ModelMetadata, l as ModelRelationKind, m as ModelRelationMetadata, R as RegistryDef, n as RowOf, o as SchemaDef, T as TenantContext, p as TenantContextValue, q as TenantKeyMap, U as UpdateOf } from './types-CgCv5o6R.cjs';
|
|
10
|
+
import { A as AthenaGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags, R as RunGeneratorOptions, d as RunGeneratorResult } from './types-BBm-kEBL.cjs';
|
|
11
|
+
export { e as GeneratedArtifact, f as GeneratorArtifactKind, g as GeneratorFeatureFlags, h as GeneratorFilterConfig, i as GeneratorInternalConfig, j as GeneratorNamingConfig, k as GeneratorOutputConfig, l as GeneratorOutputFormat, m as GeneratorOutputPreset, n as GeneratorOutputTargets, o as GeneratorSchemaSelection, p as GeneratorTableSelection, q as NamingStyle, r as NormalizedGeneratorFilterConfig, s as NormalizedGeneratorOutputConfig, S as SkippedGeneratedArtifact, t as SkippedGeneratedArtifactReason } from './types-BBm-kEBL.cjs';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import './index-CFL9xbFR.cjs';
|
|
14
14
|
import './session-cookie-detection-BqOp9mO6.cjs';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AthenaAuthConfig, a as AthenaBillingConfig, b as AthenaChatAddMembersRequest, c as AthenaChatAddReactionRequest, d as AthenaChatAttachmentInput, e as AthenaChatAttachmentView, f as AthenaChatCallOptions, g as AthenaChatConfig, h as AthenaChatConnectOptions, i as AthenaChatCreateRoomRequest, j as AthenaChatDeleteResult, k as AthenaChatEditMessageRequest, l as AthenaChatListMessagesQuery, m as AthenaChatListRoomsQuery, n as AthenaChatMarkReadUpToRequest, o as AthenaChatMember, p as AthenaChatMemberRole, q as AthenaChatMessage, r as AthenaChatMessageCreatedResponse, s as AthenaChatMessagePage, t as AthenaChatModule, u as AthenaChatPresenceUser, v as AthenaChatReactionCount, w as AthenaChatReactionSummary, x as AthenaChatReadCursor, y as AthenaChatRealtimeConnection, z as AthenaChatRealtimeInfoResponse, B as AthenaChatRealtimeModule, C as AthenaChatRemoveResult, D as AthenaChatResumeRoomCursor, E as AthenaChatRoom, F as AthenaChatRoomCreatedResponse, G as AthenaChatRoomKind, H as AthenaChatRoomPage, I as AthenaChatSearchHit, J as AthenaChatSearchMessagesRequest, K as AthenaChatSearchPage, L as AthenaChatSendMessageRequest, M as AthenaChatUpdateRoomRequest, N as AthenaChatWebSocketFactory, O as AthenaChatWebSocketLike, P as AthenaChatWsAuthHelloCommand, Q as AthenaChatWsClientCommand, R as AthenaChatWsErrorEvent, S as AthenaChatWsHelloOkEvent, T as AthenaChatWsMembersUpdatedEvent, U as AthenaChatWsMessageCreatedEvent, V as AthenaChatWsMessageDeletedEvent, W as AthenaChatWsMessageEventBase, X as AthenaChatWsMessageUpdatedEvent, Y as AthenaChatWsPingCommand, Z as AthenaChatWsPongEvent, _ as AthenaChatWsPresenceHeartbeatCommand, $ as AthenaChatWsPresenceUpdatedEvent, a0 as AthenaChatWsReactionUpdatedEvent, a1 as AthenaChatWsReadUpToCommand, a2 as AthenaChatWsReadUpdatedEvent, a3 as AthenaChatWsResumeCommand, a4 as AthenaChatWsRoomArchivedEvent, a5 as AthenaChatWsRoomCreatedEvent, a6 as AthenaChatWsRoomEventBase, a7 as AthenaChatWsRoomUpdatedEvent, a8 as AthenaChatWsServerEvent, a9 as AthenaChatWsSubscribeCommand, aa as AthenaChatWsSubscribedEvent, ab as AthenaChatWsSyncRequiredEvent, ac as AthenaChatWsTypingStartCommand, ad as AthenaChatWsTypingStopCommand, ae as AthenaChatWsTypingUpdatedEvent, af as AthenaChatWsUnsubscribeCommand, ag as AthenaClient, ah as AthenaClientConfig, ai as
|
|
2
|
-
export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, b as AthenaBillingError, c as AthenaBillingModule, d as billingSdkManifest, e as createBillingModule } from './module-
|
|
1
|
+
export { A as AthenaAuthConfig, a as AthenaBillingConfig, b as AthenaChatAddMembersRequest, c as AthenaChatAddReactionRequest, d as AthenaChatAttachmentInput, e as AthenaChatAttachmentView, f as AthenaChatCallOptions, g as AthenaChatConfig, h as AthenaChatConnectOptions, i as AthenaChatCreateRoomRequest, j as AthenaChatDeleteResult, k as AthenaChatEditMessageRequest, l as AthenaChatListMessagesQuery, m as AthenaChatListRoomsQuery, n as AthenaChatMarkReadUpToRequest, o as AthenaChatMember, p as AthenaChatMemberRole, q as AthenaChatMessage, r as AthenaChatMessageCreatedResponse, s as AthenaChatMessagePage, t as AthenaChatModule, u as AthenaChatPresenceUser, v as AthenaChatReactionCount, w as AthenaChatReactionSummary, x as AthenaChatReadCursor, y as AthenaChatRealtimeConnection, z as AthenaChatRealtimeInfoResponse, B as AthenaChatRealtimeModule, C as AthenaChatRemoveResult, D as AthenaChatResumeRoomCursor, E as AthenaChatRoom, F as AthenaChatRoomCreatedResponse, G as AthenaChatRoomKind, H as AthenaChatRoomPage, I as AthenaChatSearchHit, J as AthenaChatSearchMessagesRequest, K as AthenaChatSearchPage, L as AthenaChatSendMessageRequest, M as AthenaChatUpdateRoomRequest, N as AthenaChatWebSocketFactory, O as AthenaChatWebSocketLike, P as AthenaChatWsAuthHelloCommand, Q as AthenaChatWsClientCommand, R as AthenaChatWsErrorEvent, S as AthenaChatWsHelloOkEvent, T as AthenaChatWsMembersUpdatedEvent, U as AthenaChatWsMessageCreatedEvent, V as AthenaChatWsMessageDeletedEvent, W as AthenaChatWsMessageEventBase, X as AthenaChatWsMessageUpdatedEvent, Y as AthenaChatWsPingCommand, Z as AthenaChatWsPongEvent, _ as AthenaChatWsPresenceHeartbeatCommand, $ as AthenaChatWsPresenceUpdatedEvent, a0 as AthenaChatWsReactionUpdatedEvent, a1 as AthenaChatWsReadUpToCommand, a2 as AthenaChatWsReadUpdatedEvent, a3 as AthenaChatWsResumeCommand, a4 as AthenaChatWsRoomArchivedEvent, a5 as AthenaChatWsRoomCreatedEvent, a6 as AthenaChatWsRoomEventBase, a7 as AthenaChatWsRoomUpdatedEvent, a8 as AthenaChatWsServerEvent, a9 as AthenaChatWsSubscribeCommand, aa as AthenaChatWsSubscribedEvent, ab as AthenaChatWsSyncRequiredEvent, ac as AthenaChatWsTypingStartCommand, ad as AthenaChatWsTypingStopCommand, ae as AthenaChatWsTypingUpdatedEvent, af as AthenaChatWsUnsubscribeCommand, ag as AthenaClient, ah as AthenaClientConfig, ai as AthenaDbConfig, aj as AthenaDbModule, ak as AthenaDeleteDebugAst, al as AthenaEnvelope, am as AthenaError, an as AthenaErrorCategory, ao as AthenaErrorCode, ap as AthenaErrorInput, aq as AthenaErrorKind, ar as AthenaFindManyDebugAst, as as AthenaFromOptions, at as AthenaInsertDebugAst, au as AthenaOperationContext, av as AthenaQueryDebugAst, aw as AthenaRawQueryDebugAst, ax as AthenaRequestContext, ay as AthenaRequestContextProvider, az as AthenaRequestMethod, aA as AthenaRequestOptions, aB as AthenaRequestQueryValueMap, aC as AthenaRequestResponse, aD as AthenaRequestService, aE as AthenaResult, aF as AthenaRpcBuilderStateAst, aG as AthenaRpcDebugAst, aH as AthenaSelectDebugAst, aI as AthenaSelectDebugTransport, aJ as AthenaStorageAuditNamespace, aK as AthenaStorageBackupNamespace, aL as AthenaStorageBaseModule, aM as AthenaStorageBinaryCallOptions, aN as AthenaStorageBucketCorsNamespace, aO as AthenaStorageBucketNamespace, aP as AthenaStorageCallOptions, aQ as AthenaStorageCatalogNamespace, aR as AthenaStorageClientConfig, aS as AthenaStorageConfig, aT as AthenaStorageCredentialsNamespace, aU as AthenaStorageDirectUploadConfig, aV as AthenaStorageEnv, aW as AthenaStorageError, aX as AthenaStorageErrorCode, aY as AthenaStorageErrorDetails, aZ as AthenaStorageErrorHandler, a_ as AthenaStorageErrorInput, a$ as AthenaStorageFileConfig, b0 as AthenaStorageFileDeleteInput, b1 as AthenaStorageFileDownloadInput, b2 as AthenaStorageFileListInput, b3 as AthenaStorageFileModule, b4 as AthenaStorageFileNamespace, b5 as AthenaStorageFileUploadInput, b6 as AthenaStorageFileUploadManyRequest, b7 as AthenaStorageFileUploadRequest, b8 as AthenaStorageFileUploadResult, b9 as AthenaStorageFolderNamespace, ba as AthenaStorageManagedUpload, bb as AthenaStorageModule, bc as AthenaStorageMultipartNamespace, bd as AthenaStorageObjectFolderNamespace, be as AthenaStorageObjectNamespace, bf as AthenaStoragePathContext, bg as AthenaStoragePermissionNamespace, bh as AthenaStoragePrefixPath, bi as AthenaStoragePutBody, bj as AthenaStoragePutOptions, bk as AthenaStorageTemplateValue, bl as AthenaStorageTemplateVars, bm as AthenaStorageUploadConstraints, bn as AthenaStorageUploadProgress, bo as AthenaStorageUploadProgressHandler, bp as AthenaStorageUploadSource, bq as AthenaStorageUploadedFile, br as AthenaTableBuilderStateAst, bs as AthenaUpdateDebugAst, bt as AthenaUpsertDebugAst, bu as BackupRecoveryStrategy, bv as ConfirmStorageUploadRequest, bw as CopyStorageFileRequest, bx as CreateStorageCatalogRequest, by as CreateStorageUploadUrlRequest, bz as CreateStorageUploadUrlsRequest, bA as DeleteManyStorageFilesRequest, bB as DeleteStorageFolderRequest, bC as DeprecatedInlineStorageConnectionFields, bD as GetStorageFileUrlQuery, bE as IntCoercionOptions, bF as ListStorageFilesRequest, bG as ListStorageFoldersRequest, bH as ManagedFileRecord, bI as MoveStorageFolderRequest, bJ as NormalizedAthenaError, bK as PresignedFileUrlResponse, bL as RequireAffectedOptions, bM as RetryBackoffStrategy, bN as RetryConfig, bO as RpcOrderOptions, bP as RpcQueryBuilder, bQ as S3CatalogItem, bR as S3CredentialListItem, bS as SearchStorageFilesRequest, bT as SetManyStorageFileVisibilityRequest, bU as SetStorageFileVisibilityRequest, bV as StorageAuditEventRecord, bW as StorageAuditListResponse, bX as StorageAuditQueryRequest, bY as StorageBackupCreateRequest, bZ as StorageBackupJob, b_ as StorageBackupListPage, b$ as StorageBackupListQuery, c0 as StorageBackupQueuedJob, c1 as StorageBackupRecord, c2 as StorageBackupRestoreRequest, c3 as StorageBackupSchedule, c4 as StorageBackupScheduleCreateRequest, c5 as StorageBatchUploadUrlResponse, c6 as StorageBatchUploadUrlResponseWithPut, c7 as StorageBucketCorsRequest, c8 as StorageBucketCorsRuleInput, c9 as StorageBucketLifecycleRequest, ca as StorageBucketLifecycleRuleInput, cb as StorageBucketPolicyRequest, cc as StorageConnectionSelector, cd as StorageFileAccessPurpose, ce as StorageFileMutationManyResponse, cf as StorageFileMutationResponse, cg as StorageFilePermissionRecord, ch as StorageFileRetentionRequest, ci as StorageFileVersionPathRequest, cj as StorageFolderMutationResponse, ck as StorageListFilesResponse, cl as StorageListObjectsRequest, cm as StorageMultipartAbortRequest, cn as StorageMultipartCompletePartInput, co as StorageMultipartCompleteRequest, cp as StorageMultipartCreateRequest, cq as StorageMultipartListPartsRequest, cr as StorageMultipartSignPartRequest, cs as StorageObjectBaseRequest, ct as StorageObjectCopyRequest, cu as StorageObjectFolderCreateRequest, cv as StorageObjectFolderDeleteRequest, cw as StorageObjectFolderRenameRequest, cx as StorageObjectPublicUrlRequest, cy as StorageObjectRequest, cz as StorageObjectValidateRequest, cA as StorageObjectVersionListRequest, cB as StorageObjectVersionMutationRequest, cC as StoragePermissionCheckRequest, cD as StoragePermissionCheckResponse, cE as StoragePermissionGrantRequest, cF as StoragePermissionListRequest, cG as StoragePermissionListResponse, cH as StoragePermissionRevokeRequest, cI as StoragePresignUploadRequest, cJ as StoragePublicAccessBlockRequest, cK as StorageServerSideEncryptionOptions, cL as StorageSetBucketCorsRequest, cM as StorageSetBucketLifecycleRequest, cN as StorageSetBucketPolicyRequest, cO as StorageSetPublicAccessBlockRequest, cP as StorageSignedPostPolicyRequest, cQ as StorageUpdateObjectRequest, cR as StorageUploadUrlResponse, cS as StorageUploadUrlResponseWithPut, cT as TableQueryBuilder, cU as TreeStorageFoldersRequest, cV as UnwrapOneOptions, cW as UnwrapOptions, cX as UpdateManyStorageFilesRequest, cY as UpdateStorageCatalogRequest, cZ as UpdateStorageFileRequest, c_ as assertInt, c$ as coerceInt, d0 as createAthenaStorageError, d1 as createClient, d2 as createStorageModule, d3 as getAthenaDebugAst, d4 as isOk, d5 as normalizeAthenaError, d6 as parseBooleanFlag, d7 as requireAffected, d8 as requireSuccess, d9 as storageSdkManifest, da as unwrap, db as unwrapOne, dc as unwrapRows, dd as verifyAthenaGatewayUrl, de as withRetry } from './v3-client-DZp2NEhK.js';
|
|
2
|
+
export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, b as AthenaBillingError, c as AthenaBillingModule, d as billingSdkManifest, e as createBillingModule } from './module-C_ab-MM1.js';
|
|
3
3
|
export { A as AthenaConditionCastType, a as AthenaGatewayCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, d as AthenaGatewayErrorCode, e as AthenaGatewayErrorDetails, f as AthenaJsonArray, g as AthenaJsonObject, h as AthenaJsonPrimitive, i as AthenaJsonValue, j as AthenaRpcCallOptions, k as AthenaRpcFilter, l as AthenaRpcFilterOperator, m as AthenaRpcOrder, n as AthenaRpcPayload, B as Backend, o as BackendConfig, p as BackendType } from './types-Bltx6iL6.js';
|
|
4
|
-
export { A as AthenaGatewayError, F as FormValuesOf, M as ModelFormAdapter, a as ModelFormDefaults, b as ModelFormNullishMode, c as ModelFormValues, T as ToModelFormDefaultsOptions, d as ToModelPayloadOptions, e as createModelFormAdapter, i as isAthenaGatewayError, t as toModelFormDefaults, f as toModelPayload } from './model-form-
|
|
5
|
-
import { P as PostgresIntrospectionProviderOptions } from './module-
|
|
6
|
-
export { A as ATHENA_AUTH_ADMIN_LIMITS, a as ATHENA_AUTH_BASE_ERROR_CODES, b as ATHENA_AUTH_MAX_ADMIN_JSON_BYTES, c as ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH, d as ATHENA_AUTH_MAX_TEMPLATE_VARIABLES, e as ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH, f as AnyColumnBuilder, g as AthenaAuthAdminLimits, h as AthenaChatError, i as AthenaColumnBuilder, j as
|
|
4
|
+
export { A as AthenaGatewayError, F as FormValuesOf, M as ModelFormAdapter, a as ModelFormDefaults, b as ModelFormNullishMode, c as ModelFormValues, T as ToModelFormDefaultsOptions, d as ToModelPayloadOptions, e as createModelFormAdapter, i as isAthenaGatewayError, t as toModelFormDefaults, f as toModelPayload } from './model-form-Dh0sisdL.js';
|
|
5
|
+
import { P as PostgresIntrospectionProviderOptions } from './module-CkUM6v58.js';
|
|
6
|
+
export { A as ATHENA_AUTH_ADMIN_LIMITS, a as ATHENA_AUTH_BASE_ERROR_CODES, b as ATHENA_AUTH_MAX_ADMIN_JSON_BYTES, c as ATHENA_AUTH_MAX_ADMIN_JSON_DEPTH, d as ATHENA_AUTH_MAX_TEMPLATE_VARIABLES, e as ATHENA_AUTH_MAX_TEMPLATE_VARIABLE_LENGTH, f as AnyColumnBuilder, g as AthenaAuthAdminLimits, h as AthenaChatError, i as AthenaColumnBuilder, j as AthenaConfigurationError, k as AthenaConfigurationErrorCode, l as AthenaService, m as AthenaTableDef, n as AthenaTableSchemaBundle, C as ColumnRuntimeConfig, D as DEFAULT_POSTGRES_SCHEMAS, F as FormValuesFromColumns, I as InsertFromColumns, R as RowFromColumns, U as UpdateFromColumns, o as athenaAuth, p as boolean, q as chatSdkManifest, r as createAuthReactEmailInput, s as defineAthenaAuthConfig, t as defineAuthEmailTemplate, u as defineDatabase, v as defineModel, w as defineRegistry, x as defineSchema, y as enumeration, z as filterIntrospectionSnapshot, B as generatorEnv, E as identifier, G as json, H as normalizeAthenaGatewayBaseUrl, J as normalizeSchemaSelection, K as normalizeTableSelection, L as number, M as renderAthenaReactEmail, N as resolvePostgresColumnType, O as resolveProviderSchemas, Q as string, S as table, T as unwrapChatMessage, V as unwrapChatRoom } from './module-CkUM6v58.js';
|
|
7
7
|
export { A as AthenaAdminEmailCreateRequest, a as AthenaAdminEmailDeleteRequest, b as AthenaAdminEmailEventTypeListResponse, c as AthenaAdminEmailEventTypeRecord, d as AthenaAdminEmailFailureCreateRequest, e as AthenaAdminEmailFailureDeleteRequest, f as AthenaAdminEmailFailureGetQuery, g as AthenaAdminEmailFailureGetResponse, h as AthenaAdminEmailFailureListQuery, i as AthenaAdminEmailFailureListResponse, j as AthenaAdminEmailFailureUpdateRequest, k as AthenaAdminEmailFailureUpdateResponse, l as AthenaAdminEmailGetQuery, m as AthenaAdminEmailGetResponse, n as AthenaAdminEmailListQuery, o as AthenaAdminEmailListResponse, p as AthenaAdminEmailTemplateCreateRequest, q as AthenaAdminEmailTemplateDeleteRequest, r as AthenaAdminEmailTemplateGetQuery, s as AthenaAdminEmailTemplateGetResponse, t as AthenaAdminEmailTemplateListQuery, u as AthenaAdminEmailTemplateListResponse, v as AthenaAdminEmailTemplateRecord, w as AthenaAdminEmailTemplateSendRequest, x as AthenaAdminEmailTemplateSendResponse, y as AthenaAdminEmailTemplateUpdateRequest, z as AthenaAdminEmailUpdateRequest, B as AthenaAdminEmailUpdateResponse, C as AthenaAuthAdminUserSessionRevokeBinding, D as AthenaAuthBindings, E as AthenaAuthCallOptions, F as AthenaAuthClientConfig, G as AthenaAuthCredentials, H as AthenaAuthEmailChangeResponse, I as AthenaAuthEmailTemplateAttachment, J as AthenaAuthEmailTemplateBuilder, K as AthenaAuthEmailTemplateCreateFromDefinitionInput, L as AthenaAuthEmailTemplateDefinition, M as AthenaAuthEmailTemplateReactOverrides, N as AthenaAuthEmailTemplateUpdateFromDefinitionInput, O as AthenaAuthEmailTemplateVariableBinding, P as AthenaAuthEndpointPath, Q as AthenaAuthErrorCode, R as AthenaAuthErrorDetails, S as AthenaAuthGenericInput, T as AthenaAuthGenericQueryInput, U as AthenaAuthGetUserResponse, V as AthenaAuthLinkedAccount, W as AthenaAuthMethod, X as AthenaAuthOrganization, Y as AthenaAuthOrganizationBindings, Z as AthenaAuthOrganizationInvitation, _ as AthenaAuthOrganizationMember, $ as AthenaAuthQueryPrimitive, a0 as AthenaAuthQueryValue, a1 as AthenaAuthReactEmailComponent, a2 as AthenaAuthReactEmailConfig, a3 as AthenaAuthReactEmailEventPhase, a4 as AthenaAuthReactEmailProps, a5 as AthenaAuthReactEmailRenderEvent, a6 as AthenaAuthReactEmailRenderInput, a7 as AthenaAuthReactEmailRenderOptions, a8 as AthenaAuthRequestInput, a9 as AthenaAuthResetPasswordBinding, aa as AthenaAuthResult, ab as AthenaAuthRevokeSessionRequest, ac as AthenaAuthSession, ad as AthenaAuthSessionResponse, ae as AthenaAuthSessionRevokeBinding, af as AthenaAuthSignInResponse, ag as AthenaAuthSignOutResponse, ah as AthenaAuthSocialRedirectResponse, ai as AthenaAuthStatusResponse, aj as AthenaAuthUser, ak as AthenaChangeEmailRequest, al as AthenaChangePasswordRequest, am as AthenaDeleteUserCallbackRequest, an as AthenaDeleteUserRequest, ao as AthenaDeleteUserResponse, ap as AthenaEmailSignInRequest, aq as AthenaEmailSignUpRequest, ar as AthenaForgetPasswordRequest, as as AthenaLinkSocialRequest, at as AthenaOAuthAccountTokenRequest, au as AthenaOAuthTokenBundle, av as AthenaResetPasswordRequest, aw as AthenaSendVerificationEmailRequest, ax as AthenaSocialSignInRequest, ay as AthenaUnlinkAccountRequest, az as AthenaUpdateUserRequest, aA as AthenaUsernameSignInRequest, aB as AthenaVerifyEmailRequest, aC as AuthBindings } from './types-AOY-GLu8.js';
|
|
8
|
-
import { S as SchemaIntrospectionProvider, I as IntrospectionSnapshot } from './types-
|
|
9
|
-
export { A as AthenaModelTarget, D as DatabaseDef, a as InsertOf, b as IntrospectionColumn, c as IntrospectionInspectOptions, d as IntrospectionRelation, e as IntrospectionSchema, f as IntrospectionTable, g as IntrospectionTypeKind, M as ModelAt, h as ModelColumnKind, i as ModelColumnMetadata, j as ModelDef, k as ModelMetadata, l as ModelRelationKind, m as ModelRelationMetadata, R as RegistryDef, n as RowOf, o as SchemaDef, T as TenantContext, p as TenantContextValue, q as TenantKeyMap, U as UpdateOf } from './types-
|
|
10
|
-
import { A as AthenaGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags, R as RunGeneratorOptions, d as RunGeneratorResult } from './types-
|
|
11
|
-
export { e as GeneratedArtifact, f as GeneratorArtifactKind, g as GeneratorFeatureFlags, h as GeneratorFilterConfig, i as GeneratorInternalConfig, j as GeneratorNamingConfig, k as GeneratorOutputConfig, l as GeneratorOutputFormat, m as GeneratorOutputPreset, n as GeneratorOutputTargets, o as GeneratorSchemaSelection, p as GeneratorTableSelection, q as NamingStyle, r as NormalizedGeneratorFilterConfig, s as NormalizedGeneratorOutputConfig, S as SkippedGeneratedArtifact, t as SkippedGeneratedArtifactReason } from './types-
|
|
8
|
+
import { S as SchemaIntrospectionProvider, I as IntrospectionSnapshot } from './types-B75PdABb.js';
|
|
9
|
+
export { A as AthenaModelTarget, D as DatabaseDef, a as InsertOf, b as IntrospectionColumn, c as IntrospectionInspectOptions, d as IntrospectionRelation, e as IntrospectionSchema, f as IntrospectionTable, g as IntrospectionTypeKind, M as ModelAt, h as ModelColumnKind, i as ModelColumnMetadata, j as ModelDef, k as ModelMetadata, l as ModelRelationKind, m as ModelRelationMetadata, R as RegistryDef, n as RowOf, o as SchemaDef, T as TenantContext, p as TenantContextValue, q as TenantKeyMap, U as UpdateOf } from './types-B75PdABb.js';
|
|
10
|
+
import { A as AthenaGeneratorConfig, N as NormalizedAthenaGeneratorConfig, G as GeneratedArtifacts, L as LoadGeneratorConfigOptions, a as LoadedGeneratorConfig, b as GeneratorProviderConfig, c as GeneratorExperimentalFlags, R as RunGeneratorOptions, d as RunGeneratorResult } from './types-BaAMXCqK.js';
|
|
11
|
+
export { e as GeneratedArtifact, f as GeneratorArtifactKind, g as GeneratorFeatureFlags, h as GeneratorFilterConfig, i as GeneratorInternalConfig, j as GeneratorNamingConfig, k as GeneratorOutputConfig, l as GeneratorOutputFormat, m as GeneratorOutputPreset, n as GeneratorOutputTargets, o as GeneratorSchemaSelection, p as GeneratorTableSelection, q as NamingStyle, r as NormalizedGeneratorFilterConfig, s as NormalizedGeneratorOutputConfig, S as SkippedGeneratedArtifact, t as SkippedGeneratedArtifactReason } from './types-BaAMXCqK.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import './index-UKJpunc6.js';
|
|
14
14
|
import './session-cookie-detection-BqOp9mO6.js';
|
package/dist/browser.js
CHANGED
|
@@ -1935,7 +1935,7 @@ function buildRpcDebugSql(payload) {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
|
|
1937
1937
|
// src/gateway/url.ts
|
|
1938
|
-
var ATHENA_DEFAULT_BASE_URL = "https://athena-
|
|
1938
|
+
var ATHENA_DEFAULT_BASE_URL = "https://mirror2.athena-cluster.com";
|
|
1939
1939
|
function describeReceivedValue(value) {
|
|
1940
1940
|
if (value === void 0) return "undefined";
|
|
1941
1941
|
if (value === null) return "null";
|
|
@@ -1958,14 +1958,14 @@ function normalizeAthenaGatewayBaseUrl(input, options = {}) {
|
|
|
1958
1958
|
if (candidate === void 0 || candidate === null) {
|
|
1959
1959
|
throw invalidBaseUrlError(
|
|
1960
1960
|
`${label} must be a non-empty absolute http(s) URL. Received ${describeReceivedValue(input)}.`,
|
|
1961
|
-
'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://
|
|
1961
|
+
'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror2.athena-cluster.com".'
|
|
1962
1962
|
);
|
|
1963
1963
|
}
|
|
1964
1964
|
const trimmed = candidate.trim();
|
|
1965
1965
|
if (!trimmed) {
|
|
1966
1966
|
throw invalidBaseUrlError(
|
|
1967
1967
|
`${label} must be a non-empty absolute http(s) URL. Received ${describeReceivedValue(candidate)}.`,
|
|
1968
|
-
'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://
|
|
1968
|
+
'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror2.athena-cluster.com".'
|
|
1969
1969
|
);
|
|
1970
1970
|
}
|
|
1971
1971
|
let parsed;
|
|
@@ -1974,13 +1974,13 @@ function normalizeAthenaGatewayBaseUrl(input, options = {}) {
|
|
|
1974
1974
|
} catch {
|
|
1975
1975
|
throw invalidBaseUrlError(
|
|
1976
1976
|
`${label} must be a valid absolute http(s) URL. Received ${describeReceivedValue(candidate)}.`,
|
|
1977
|
-
'Use a full URL including the protocol, for example "https://
|
|
1977
|
+
'Use a full URL including the protocol, for example "https://mirror2.athena-cluster.com".'
|
|
1978
1978
|
);
|
|
1979
1979
|
}
|
|
1980
1980
|
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
|
|
1981
1981
|
throw invalidBaseUrlError(
|
|
1982
1982
|
`${label} must use http or https. Received ${JSON.stringify(trimmed)}.`,
|
|
1983
|
-
'Use an Athena gateway URL such as "https://
|
|
1983
|
+
'Use an Athena gateway URL such as "https://mirror2.athena-cluster.com".'
|
|
1984
1984
|
);
|
|
1985
1985
|
}
|
|
1986
1986
|
if (parsed.search || parsed.hash) {
|
|
@@ -2003,7 +2003,7 @@ function buildAthenaGatewayUrl(baseUrl, path) {
|
|
|
2003
2003
|
|
|
2004
2004
|
// package.json
|
|
2005
2005
|
var package_default = {
|
|
2006
|
-
version: "3.0.
|
|
2006
|
+
version: "3.0.2"
|
|
2007
2007
|
};
|
|
2008
2008
|
|
|
2009
2009
|
// src/sdk-version.ts
|
|
@@ -3051,7 +3051,7 @@ function createAthenaRequest(config, resolveContext) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
|
|
3053
3053
|
// src/gateway/client.ts
|
|
3054
|
-
var DEFAULT_CLIENT = "
|
|
3054
|
+
var DEFAULT_CLIENT = "DEFAULT_CLIENT";
|
|
3055
3055
|
var SDK_NAME2 = "xylex-group/athena";
|
|
3056
3056
|
var SDK_HEADER_VALUE = buildSdkHeaderValue(SDK_NAME2);
|
|
3057
3057
|
function parseResponseBody(rawText, contentType) {
|
|
@@ -9880,6 +9880,8 @@ var billingSdkManifest = {
|
|
|
9880
9880
|
methods: [
|
|
9881
9881
|
{ name: "getCapabilities", method: "GET", path: "/billing/v1/capabilities" },
|
|
9882
9882
|
{ name: "createCheckout", method: "POST", path: "/billing/v1/checkouts" },
|
|
9883
|
+
{ name: "listProducts", method: "GET", path: "/billing/v1/products" },
|
|
9884
|
+
{ name: "listPrices", method: "GET", path: "/billing/v1/prices" },
|
|
9883
9885
|
{ name: "listCustomers", method: "GET", path: "/billing/v1/customers" },
|
|
9884
9886
|
{ name: "createCustomer", method: "POST", path: "/billing/v1/customers" },
|
|
9885
9887
|
{ name: "getCustomer", method: "GET", path: "/billing/v1/customers/{id}" },
|
|
@@ -9905,6 +9907,12 @@ var billingSdkManifest = {
|
|
|
9905
9907
|
{ name: "cancelSubscription", method: "POST", path: "/billing/v1/subscriptions/{id}/cancel" },
|
|
9906
9908
|
{ name: "listInvoices", method: "GET", path: "/billing/v1/invoices" },
|
|
9907
9909
|
{ name: "getInvoice", method: "GET", path: "/billing/v1/invoices/{id}" },
|
|
9910
|
+
{ name: "listWebhooks", method: "GET", path: "/billing/v1/webhooks" },
|
|
9911
|
+
{ name: "createWebhook", method: "POST", path: "/billing/v1/webhooks" },
|
|
9912
|
+
{ name: "getWebhook", method: "GET", path: "/billing/v1/webhooks/{id}" },
|
|
9913
|
+
{ name: "updateWebhook", method: "PATCH", path: "/billing/v1/webhooks/{id}" },
|
|
9914
|
+
{ name: "deleteWebhook", method: "DELETE", path: "/billing/v1/webhooks/{id}" },
|
|
9915
|
+
{ name: "testWebhook", method: "POST", path: "/billing/v1/webhooks/{id}/test" },
|
|
9908
9916
|
{
|
|
9909
9917
|
name: "listConnections",
|
|
9910
9918
|
method: "GET",
|
|
@@ -10073,6 +10081,25 @@ function createBillingModule(config) {
|
|
|
10073
10081
|
createCheckout(body, options) {
|
|
10074
10082
|
return call("POST", "/billing/v1/checkouts", body, options);
|
|
10075
10083
|
},
|
|
10084
|
+
listProducts(input, options) {
|
|
10085
|
+
return call(
|
|
10086
|
+
"GET",
|
|
10087
|
+
appendQuery3("/billing/v1/products", connectionQuery(input)),
|
|
10088
|
+
void 0,
|
|
10089
|
+
options
|
|
10090
|
+
);
|
|
10091
|
+
},
|
|
10092
|
+
listPrices(input, options) {
|
|
10093
|
+
return call(
|
|
10094
|
+
"GET",
|
|
10095
|
+
appendQuery3("/billing/v1/prices", {
|
|
10096
|
+
...connectionQuery(input),
|
|
10097
|
+
...input.productId ? { productId: input.productId } : {}
|
|
10098
|
+
}),
|
|
10099
|
+
void 0,
|
|
10100
|
+
options
|
|
10101
|
+
);
|
|
10102
|
+
},
|
|
10076
10103
|
listCustomers(input, options) {
|
|
10077
10104
|
return call(
|
|
10078
10105
|
"GET",
|
|
@@ -10219,10 +10246,7 @@ function createBillingModule(config) {
|
|
|
10219
10246
|
getRefund(id, input, options) {
|
|
10220
10247
|
return call(
|
|
10221
10248
|
"GET",
|
|
10222
|
-
appendQuery3(withPathParam2("/billing/v1/refunds/{id}", "id", id),
|
|
10223
|
-
...connectionQuery(input),
|
|
10224
|
-
...input.paymentId ? { paymentId: input.paymentId } : {}
|
|
10225
|
-
}),
|
|
10249
|
+
appendQuery3(withPathParam2("/billing/v1/refunds/{id}", "id", id), connectionQuery(input)),
|
|
10226
10250
|
void 0,
|
|
10227
10251
|
options
|
|
10228
10252
|
);
|
|
@@ -10230,10 +10254,7 @@ function createBillingModule(config) {
|
|
|
10230
10254
|
cancelRefund(id, input, options) {
|
|
10231
10255
|
return call(
|
|
10232
10256
|
"POST",
|
|
10233
|
-
appendQuery3(withPathParam2("/billing/v1/refunds/{id}/cancel", "id", id),
|
|
10234
|
-
...connectionQuery(input),
|
|
10235
|
-
...input.paymentId ? { paymentId: input.paymentId } : {}
|
|
10236
|
-
}),
|
|
10257
|
+
appendQuery3(withPathParam2("/billing/v1/refunds/{id}/cancel", "id", id), connectionQuery(input)),
|
|
10237
10258
|
{},
|
|
10238
10259
|
options
|
|
10239
10260
|
);
|
|
@@ -10252,10 +10273,10 @@ function createBillingModule(config) {
|
|
|
10252
10273
|
getSubscription(id, input, options) {
|
|
10253
10274
|
return call(
|
|
10254
10275
|
"GET",
|
|
10255
|
-
appendQuery3(
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10276
|
+
appendQuery3(
|
|
10277
|
+
withPathParam2("/billing/v1/subscriptions/{id}", "id", id),
|
|
10278
|
+
connectionQuery(input)
|
|
10279
|
+
),
|
|
10259
10280
|
void 0,
|
|
10260
10281
|
options
|
|
10261
10282
|
);
|
|
@@ -10271,10 +10292,10 @@ function createBillingModule(config) {
|
|
|
10271
10292
|
cancelSubscription(id, input, options) {
|
|
10272
10293
|
return call(
|
|
10273
10294
|
"POST",
|
|
10274
|
-
appendQuery3(
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10295
|
+
appendQuery3(
|
|
10296
|
+
withPathParam2("/billing/v1/subscriptions/{id}/cancel", "id", id),
|
|
10297
|
+
connectionQuery(input)
|
|
10298
|
+
),
|
|
10278
10299
|
{},
|
|
10279
10300
|
options
|
|
10280
10301
|
);
|
|
@@ -10298,6 +10319,57 @@ function createBillingModule(config) {
|
|
|
10298
10319
|
options
|
|
10299
10320
|
);
|
|
10300
10321
|
},
|
|
10322
|
+
listWebhooks(input, options) {
|
|
10323
|
+
return call(
|
|
10324
|
+
"GET",
|
|
10325
|
+
appendQuery3("/billing/v1/webhooks", connectionQuery(input)),
|
|
10326
|
+
void 0,
|
|
10327
|
+
options
|
|
10328
|
+
);
|
|
10329
|
+
},
|
|
10330
|
+
createWebhook(input, body, options) {
|
|
10331
|
+
return call(
|
|
10332
|
+
"POST",
|
|
10333
|
+
appendQuery3("/billing/v1/webhooks", connectionQuery(input)),
|
|
10334
|
+
body,
|
|
10335
|
+
options
|
|
10336
|
+
);
|
|
10337
|
+
},
|
|
10338
|
+
getWebhook(id, input, options) {
|
|
10339
|
+
return call(
|
|
10340
|
+
"GET",
|
|
10341
|
+
appendQuery3(withPathParam2("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
|
|
10342
|
+
void 0,
|
|
10343
|
+
options
|
|
10344
|
+
);
|
|
10345
|
+
},
|
|
10346
|
+
updateWebhook(id, input, body, options) {
|
|
10347
|
+
return call(
|
|
10348
|
+
"PATCH",
|
|
10349
|
+
appendQuery3(withPathParam2("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
|
|
10350
|
+
body,
|
|
10351
|
+
options
|
|
10352
|
+
);
|
|
10353
|
+
},
|
|
10354
|
+
deleteWebhook(id, input, options) {
|
|
10355
|
+
return call(
|
|
10356
|
+
"DELETE",
|
|
10357
|
+
appendQuery3(withPathParam2("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
|
|
10358
|
+
void 0,
|
|
10359
|
+
options
|
|
10360
|
+
);
|
|
10361
|
+
},
|
|
10362
|
+
testWebhook(id, input, options) {
|
|
10363
|
+
return call(
|
|
10364
|
+
"POST",
|
|
10365
|
+
appendQuery3(
|
|
10366
|
+
withPathParam2("/billing/v1/webhooks/{id}/test", "id", id),
|
|
10367
|
+
connectionQuery(input)
|
|
10368
|
+
),
|
|
10369
|
+
{},
|
|
10370
|
+
options
|
|
10371
|
+
);
|
|
10372
|
+
},
|
|
10301
10373
|
listConnections(clientName, options) {
|
|
10302
10374
|
return call(
|
|
10303
10375
|
"GET",
|
|
@@ -10475,6 +10547,31 @@ function createBillingModule(config) {
|
|
|
10475
10547
|
};
|
|
10476
10548
|
}
|
|
10477
10549
|
|
|
10550
|
+
// src/config/errors.ts
|
|
10551
|
+
var AthenaConfigurationError = class extends Error {
|
|
10552
|
+
code;
|
|
10553
|
+
service;
|
|
10554
|
+
constructor(code, message, service) {
|
|
10555
|
+
super(message);
|
|
10556
|
+
this.name = "AthenaConfigurationError";
|
|
10557
|
+
this.code = code;
|
|
10558
|
+
this.service = service;
|
|
10559
|
+
}
|
|
10560
|
+
};
|
|
10561
|
+
|
|
10562
|
+
// src/context/merge.ts
|
|
10563
|
+
function mergeAthenaRequestContexts(base, override) {
|
|
10564
|
+
if (!base && !override) return void 0;
|
|
10565
|
+
return {
|
|
10566
|
+
...base,
|
|
10567
|
+
...override,
|
|
10568
|
+
headers: base?.headers || override?.headers ? {
|
|
10569
|
+
...base?.headers ?? {},
|
|
10570
|
+
...override?.headers ?? {}
|
|
10571
|
+
} : void 0
|
|
10572
|
+
};
|
|
10573
|
+
}
|
|
10574
|
+
|
|
10478
10575
|
// src/v3-client.ts
|
|
10479
10576
|
var ENV_URL_KEYS = ["ATHENA_URL", "NEXT_PUBLIC_ATHENA_URL"];
|
|
10480
10577
|
var ENV_DB_URL_KEYS = ["ATHENA_DB_URL", "ATHENA_GATEWAY_URL", "NEXT_PUBLIC_ATHENA_DB_API_URL"];
|
|
@@ -10485,15 +10582,6 @@ var ENV_STORAGE_URL_KEYS = ["ATHENA_STORAGE_URL", "NEXT_PUBLIC_ATHENA_STORAGE_UR
|
|
|
10485
10582
|
var ENV_KEY_KEYS = ["ATHENA_API_KEY", "NEXT_PUBLIC_ATHENA_API_KEY", "ATHENA_GATEWAY_API_KEY", "X_API_KEY"];
|
|
10486
10583
|
var ENV_CLIENT_KEYS = ["ATHENA_CLIENT", "NEXT_PUBLIC_ATHENA_CLIENT"];
|
|
10487
10584
|
var MISSING_DB_SENTINEL = "https://athena.invalid/db";
|
|
10488
|
-
var AthenaConfigurationError = class extends Error {
|
|
10489
|
-
code = "ATHENA_SERVICE_NOT_CONFIGURED";
|
|
10490
|
-
service;
|
|
10491
|
-
constructor(service, message = `Athena ${service} is not configured.`) {
|
|
10492
|
-
super(message);
|
|
10493
|
-
this.name = "AthenaConfigurationError";
|
|
10494
|
-
this.service = service;
|
|
10495
|
-
}
|
|
10496
|
-
};
|
|
10497
10585
|
function readFirstEnv(env, keys) {
|
|
10498
10586
|
for (const key of keys) {
|
|
10499
10587
|
const value = env?.[key]?.trim();
|
|
@@ -10534,11 +10622,18 @@ function resolveCore(config) {
|
|
|
10534
10622
|
chatWs: normalizeOptional(config.chat?.wsUrl) ?? (explicitRootWinsOverEnvServices && root ? toWebSocketUrl(root) : void 0) ?? readFirstEnv(env, ENV_CHAT_WS_URL_KEYS) ?? (root ? toWebSocketUrl(root) : void 0)
|
|
10535
10623
|
};
|
|
10536
10624
|
if (!urls.db && !urls.auth && !urls.chat && !urls.storage && !urls.billing) {
|
|
10537
|
-
throw new AthenaConfigurationError(
|
|
10625
|
+
throw new AthenaConfigurationError(
|
|
10626
|
+
"ATHENA_NO_SERVICE_CONFIGURED",
|
|
10627
|
+
"Athena requires a unified URL or at least one configured service URL.",
|
|
10628
|
+
"db"
|
|
10629
|
+
);
|
|
10538
10630
|
}
|
|
10539
10631
|
const key = normalizeOptional(config.key) ?? readFirstEnv(env, ENV_KEY_KEYS);
|
|
10540
10632
|
if (!key) {
|
|
10541
|
-
throw new
|
|
10633
|
+
throw new AthenaConfigurationError(
|
|
10634
|
+
"ATHENA_API_KEY_REQUIRED",
|
|
10635
|
+
"Athena API key is required. Pass key or provide it through the explicit env object."
|
|
10636
|
+
);
|
|
10542
10637
|
}
|
|
10543
10638
|
const base = {
|
|
10544
10639
|
config,
|
|
@@ -10551,18 +10646,10 @@ function resolveCore(config) {
|
|
|
10551
10646
|
internalCore: createInternalClientCore(createInternalConfig(base))
|
|
10552
10647
|
};
|
|
10553
10648
|
}
|
|
10554
|
-
function mergeContexts(base, override) {
|
|
10555
|
-
if (!base && !override) return void 0;
|
|
10556
|
-
return {
|
|
10557
|
-
...base,
|
|
10558
|
-
...override,
|
|
10559
|
-
headers: base?.headers || override?.headers ? { ...base?.headers ?? {}, ...override?.headers ?? {} } : void 0
|
|
10560
|
-
};
|
|
10561
|
-
}
|
|
10562
10649
|
async function resolveConfiguredContext(core, viewContext) {
|
|
10563
10650
|
const configured = core.config.context;
|
|
10564
10651
|
const base = typeof configured === "function" ? await configured() : configured;
|
|
10565
|
-
return
|
|
10652
|
+
return mergeAthenaRequestContexts(base, viewContext);
|
|
10566
10653
|
}
|
|
10567
10654
|
function createInternalConfig(core) {
|
|
10568
10655
|
const { config, urls } = core;
|
|
@@ -10595,7 +10682,13 @@ function createInternalConfig(core) {
|
|
|
10595
10682
|
};
|
|
10596
10683
|
}
|
|
10597
10684
|
function serviceGuard(urls, service) {
|
|
10598
|
-
if (!urls[service])
|
|
10685
|
+
if (!urls[service]) {
|
|
10686
|
+
throw new AthenaConfigurationError(
|
|
10687
|
+
"ATHENA_SERVICE_NOT_CONFIGURED",
|
|
10688
|
+
`Athena ${service} is not configured.`,
|
|
10689
|
+
service
|
|
10690
|
+
);
|
|
10691
|
+
}
|
|
10599
10692
|
}
|
|
10600
10693
|
function createUnavailableNamespace(service, urls, path = []) {
|
|
10601
10694
|
return new Proxy(() => void 0, {
|
|
@@ -10654,7 +10747,7 @@ function createClientView(core, viewContext) {
|
|
|
10654
10747
|
return resolved.verifyConnection(options);
|
|
10655
10748
|
},
|
|
10656
10749
|
withContext(context) {
|
|
10657
|
-
return createClientView(core,
|
|
10750
|
+
return createClientView(core, mergeAthenaRequestContexts(viewContext, context));
|
|
10658
10751
|
}
|
|
10659
10752
|
};
|
|
10660
10753
|
return Object.freeze(client);
|