gatana-sdk 2.2.0 → 2.3.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.
- package/dist/api/index.cjs +3 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/apiv2/index.cjs +1 -1
- package/dist/apiv2/index.d.cts +1 -1
- package/dist/apiv2/index.d.mts +1 -1
- package/dist/apiv2/index.mjs +1 -1
- package/dist/index.cjs +17 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +17 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{sdk.gen-CsXf3DVg.d.cts → sdk.gen-BngWug-n.d.cts} +7 -7
- package/dist/sdk.gen-BngWug-n.d.cts.map +1 -0
- package/dist/{sdk.gen-8pk6phy9.d.mts → sdk.gen-Bpj8JDDw.d.cts} +198 -155
- package/dist/sdk.gen-Bpj8JDDw.d.cts.map +1 -0
- package/dist/{sdk.gen-CKko8Vw_.cjs → sdk.gen-C7-PJ3on.cjs} +45 -1
- package/dist/{sdk.gen-vjzsjj67.d.cts → sdk.gen-CM3N77Sx.d.mts} +198 -155
- package/dist/sdk.gen-CM3N77Sx.d.mts.map +1 -0
- package/dist/{sdk.gen-C3exKd-p.d.mts → sdk.gen-CMO-Hcvo.d.mts} +7 -7
- package/dist/sdk.gen-CMO-Hcvo.d.mts.map +1 -0
- package/dist/{sdk.gen-DH-7_dug.mjs → sdk.gen-D_xWEdGG.mjs} +2 -2
- package/dist/sdk.gen-D_xWEdGG.mjs.map +1 -0
- package/dist/{sdk.gen-CjrIKr7c.cjs → sdk.gen-MN-yrRBW.cjs} +1 -1
- package/dist/{sdk.gen-DjFKgYPq.mjs → sdk.gen-sn4qj7bb.mjs} +35 -3
- package/dist/sdk.gen-sn4qj7bb.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/sdk.gen-8pk6phy9.d.mts.map +0 -1
- package/dist/sdk.gen-C3exKd-p.d.mts.map +0 -1
- package/dist/sdk.gen-CsXf3DVg.d.cts.map +0 -1
- package/dist/sdk.gen-DH-7_dug.mjs.map +0 -1
- package/dist/sdk.gen-DjFKgYPq.mjs.map +0 -1
- package/dist/sdk.gen-vjzsjj67.d.cts.map +0 -1
package/dist/api/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as getPredefinedMcpServers, $t as postPredefinedMcpServersSyncPulse, A as getDeploymentsLogs, An as
|
|
1
|
+
import { $ as getPredefinedMcpServers, $t as postPredefinedMcpServersSyncPulse, A as getDeploymentsLogs, An as putMcpServersByServerSlugFilesByFileIdName, At as getUsersByUserSub, B as getMcpServersByServerSlugCredentialsServer, Bn as putProfilesByProfileIdServersByServerSlugTools, Bt as postMcpServersByServerSlugFiles, C as getAuthLogin, Cn as putMcpServersByServerSlugAllToolsIsEnabled, Ct as getTenantsByTenantIdSigninMethods, D as getBySandboxIdAuditLogs, Dn as putMcpServersByServerSlugCredentialsServer, Dt as getUsageAggregation, E as getAuthMe, En as putMcpServersByServerSlugCredentialsProfilesByProfileId, Et as getUsage, F as getMcpServersByServerSlug, Fn as putPredefinedMcpServersById, Ft as patchUsersByUserSubPersonalAccessTokensByPatId, G as getMcpServersByServerSlugFiles, Gn as putUsersByUserSub, Gt as postPlaygroundConvertToken, H as getMcpServersByServerSlugCredentialsToken, Hn as putTeamsByTeamIdMembersByUserId, Ht as postMcpServersByServerSlugStart, I as getMcpServersByServerSlugCredentials, In as putPredefinedMcpServersByIdCommentsByCommentId, It as postAuthNativeLogin, J as getMcpServersByServerSlugOauthDiscover, Jt as postPredefinedMcpServersByIdCopy, K as getMcpServersByServerSlugFilesByFileId, Kn as putUsersMe, Kt as postPredefinedMcpServers, L as getMcpServersByServerSlugCredentialsAuthorizeUrl, Ln as putPredefinedMcpServersByIdIsDisabled, Lt as postEmailVerificationSendCode, M as getDeploymentsTools, Mn as putMcpServersByServerSlugMembersByMemberTypeByMemberId, Mt as getUsersMe, N as getGlobalSettingsApiLlmKeys, Nn as putMcpServersByServerSlugSourceCode, Nt as patchSecretStoresById, O as getBySandboxIdAuditLogsById, On as putMcpServersByServerSlugCredentialsUser, Ot as getUsageById, P as getMcpServers, Pn as putMcpServersByServerSlugToolsByToolNameIsEnabled, Pt as patchSecretStoresByStoreIdMappingsByMappingName, Q as getMcpServersByServerSlugToolsByToolName, Qt as postPredefinedMcpServersPreview, R as getMcpServersByServerSlugCredentialsProfile, Rn as putPredefinedMcpServersByIdIsVerified, Rt as postMcpServers, S as getAuditLogsById, Sn as putMcpServersByServerSlug, St as getTenantsByTenantIdDiscoverSamlMetadata, T as getAuthLogout, Tn as putMcpServersByServerSlugConfig, Tt as getTools, U as getMcpServersByServerSlugCredentialsUser, Un as putTenantsByTenantId, Ut as postMcpServersByServerSlugStop, V as getMcpServersByServerSlugCredentialsServerApikeys, Vn as putTeamsByTeamId, Vt as postMcpServersByServerSlugOauthDynamicOauthClientNoSave, W as getMcpServersByServerSlugCredentialsUserApikeys, Wn as putTenantsByTenantIdIsMcpAuthorizationApiKeyEnabled, Wt as postMcpServersByServerSlugToolsByToolNameCall, X as getMcpServersByServerSlugSourceCode, Xt as postPredefinedMcpServersCreate, Y as getMcpServersByServerSlugRunningStatus, Yt as postPredefinedMcpServersByIdQuickConnect, Z as getMcpServersByServerSlugTools, Zt as postPredefinedMcpServersCreateCustom, _ as deleteTeamsByTeamIdInvitationsByInvitationId, _n as postUsers, _t as getTeamsByTeamIdServers, a as deleteMcpServersByServerSlugCredentialsServer, an as postSandboxesBySandboxIdSshSession, at as getProfilesByProfileIdTools, b as deleteUsersByUserSubPersonalAccessTokensByPatId, bn as postUsersRequestSetPassword, bt as getTenants, c as deleteMcpServersByServerSlugMembersByMemberTypeByMemberId, cn as postSecretStoresByStoreIdMappings, ct as getSandboxesBySandboxId, d as deleteProfilesByProfileIdClaimMappingsByMappingId, dn as postTeams, dt as getSecretStoresByStoreIdMappings, en as postProfiles, et as getPredefinedMcpServersById, f as deleteSandboxesBySandboxId, fn as postTeamsByTeamIdClaimMappings, ft as getTeams, g as deleteTeamsByTeamIdClaimMappingsByMappingId, gn as postToolsRefresh, gt as getTeamsByTeamIdMembers, h as deleteTeamsByTeamId, hn as postTenantOptIn, ht as getTeamsByTeamIdInvitations, i as deleteMcpServersByServerSlugCredentialsProfilesByProfileId, in as postSandboxesBySandboxIdReadFile, it as getProfilesByProfileIdClaimMappings, j as getDeploymentsStatus, jn as putMcpServersByServerSlugIsEnabled, jt as getUsersByUserSubPersonalAccessTokens, k as getDeploymentsDeploymentLogs, kn as putMcpServersByServerSlugFilesByFileId, kt as getUsers, l as deletePredefinedMcpServersByIdCommentsByCommentId, ln as postSecretStoresByStoreIdTest, lt as getSecretStores, m as deleteSecretStoresByStoreIdMappingsByMappingName, mn as postTeamsByTeamIdMembers, mt as getTeamsByTeamIdClaimMappings, n as deleteMcpServersByServerSlugCredentials, nn as postSandboxes, nt as getProfiles, o as deleteMcpServersByServerSlugCredentialsUser, on as postSandboxesBySandboxIdWriteFile, ot as getQuotaAndUsage, p as deleteSecretStoresById, pn as postTeamsByTeamIdInvitations, pt as getTeamsByTeamId, q as getMcpServersByServerSlugMembers, qt as postPredefinedMcpServersByIdComments, r as deleteMcpServersByServerSlugCredentialsByCredentialsId, rn as postSandboxesBySandboxIdExec, rt as getProfilesByProfileId, s as deleteMcpServersByServerSlugFilesByFileId, sn as postSecretStores, st as getSandboxes, t as deleteMcpServersByServerSlug, tn as postProfilesByProfileIdClaimMappings, tt as getPredefinedMcpServersByIdComments, u as deleteProfilesByProfileId, un as postSignup, ut as getSecretStoresById, v as deleteTeamsByTeamIdMembersByUserId, vn as postUsersByUserSubPersonalAccessTokens, vt as getTenantDiscoverOidcMetadata, w as getAuthLoginCallback, wn as putMcpServersByServerSlugAuthorization, wt as getTenantsByTenantIdSubscription, x as getAuditLogs, xn as putGlobalSettingsApiLlmKeys, xt as getTenantsByTenantId, y as deleteUsersByUserSub, yn as postUsersByUserSubSetPassword, yt as getTenantSamlMetadata, z as getMcpServersByServerSlugCredentialsProfileByProfileIdApikeys, zn as putProfilesByProfileId, zt as postMcpServersByServerSlugCredentialsCopy } from "../sdk.gen-sn4qj7bb.mjs";
|
|
2
2
|
|
|
3
|
-
export { deleteMcpServersByServerSlug, deleteMcpServersByServerSlugCredentials, deleteMcpServersByServerSlugCredentialsByCredentialsId, deleteMcpServersByServerSlugCredentialsProfilesByProfileId, deleteMcpServersByServerSlugCredentialsServer, deleteMcpServersByServerSlugCredentialsUser, deleteMcpServersByServerSlugFilesByFileId, deleteMcpServersByServerSlugMembersByMemberTypeByMemberId, deletePredefinedMcpServersByIdCommentsByCommentId, deleteProfilesByProfileId, deleteProfilesByProfileIdClaimMappingsByMappingId, deleteSandboxesBySandboxId, deleteSecretStoresById, deleteSecretStoresByStoreIdMappingsByMappingName, deleteTeamsByTeamId, deleteTeamsByTeamIdClaimMappingsByMappingId, deleteTeamsByTeamIdInvitationsByInvitationId, deleteTeamsByTeamIdMembersByUserId, deleteUsersByUserSub, deleteUsersByUserSubPersonalAccessTokensByPatId, getAuditLogs, getAuditLogsById, getAuthLogin, getAuthLoginCallback, getAuthLogout, getAuthMe, getBySandboxIdAuditLogs, getBySandboxIdAuditLogsById, getDeploymentsDeploymentLogs, getDeploymentsLogs, getDeploymentsStatus, getDeploymentsTools, getGlobalSettingsApiLlmKeys, getMcpServers, getMcpServersByServerSlug, getMcpServersByServerSlugCredentials, getMcpServersByServerSlugCredentialsAuthorizeUrl, getMcpServersByServerSlugCredentialsProfile, getMcpServersByServerSlugCredentialsProfileByProfileIdApikeys, getMcpServersByServerSlugCredentialsServer, getMcpServersByServerSlugCredentialsServerApikeys, getMcpServersByServerSlugCredentialsToken, getMcpServersByServerSlugCredentialsUser, getMcpServersByServerSlugCredentialsUserApikeys, getMcpServersByServerSlugFiles, getMcpServersByServerSlugFilesByFileId, getMcpServersByServerSlugMembers, getMcpServersByServerSlugOauthDiscover, getMcpServersByServerSlugRunningStatus, getMcpServersByServerSlugSourceCode, getMcpServersByServerSlugTools, getMcpServersByServerSlugToolsByToolName, getPredefinedMcpServers, getPredefinedMcpServersById, getPredefinedMcpServersByIdComments, getProfiles, getProfilesByProfileId, getProfilesByProfileIdClaimMappings, getProfilesByProfileIdTools, getQuotaAndUsage, getSandboxes, getSandboxesBySandboxId, getSecretStores, getSecretStoresById, getSecretStoresByStoreIdMappings, getTeams, getTeamsByTeamId, getTeamsByTeamIdClaimMappings, getTeamsByTeamIdInvitations, getTeamsByTeamIdMembers, getTeamsByTeamIdServers, getTenantDiscoverOidcMetadata, getTenantSamlMetadata, getTenants, getTenantsByTenantId, getTenantsByTenantIdDiscoverSamlMetadata, getTenantsByTenantIdSigninMethods, getTenantsByTenantIdSubscription, getTools, getUsage, getUsageAggregation, getUsageById, getUsers, getUsersByUserSub, getUsersByUserSubPersonalAccessTokens, getUsersMe, patchSecretStoresById, patchSecretStoresByStoreIdMappingsByMappingName, patchUsersByUserSubPersonalAccessTokensByPatId, postAuthNativeLogin, postEmailVerificationSendCode, postMcpServers, postMcpServersByServerSlugCredentialsCopy, postMcpServersByServerSlugFiles, postMcpServersByServerSlugOauthDynamicOauthClientNoSave, postMcpServersByServerSlugStart, postMcpServersByServerSlugStop, postMcpServersByServerSlugToolsByToolNameCall, postPlaygroundConvertToken, postPredefinedMcpServers, postPredefinedMcpServersByIdComments, postPredefinedMcpServersByIdCopy, postPredefinedMcpServersByIdQuickConnect, postPredefinedMcpServersCreate, postPredefinedMcpServersCreateCustom, postPredefinedMcpServersPreview, postPredefinedMcpServersSyncPulse, postProfiles, postProfilesByProfileIdClaimMappings, postSandboxes, postSandboxesBySandboxIdExec, postSandboxesBySandboxIdReadFile, postSandboxesBySandboxIdWriteFile, postSecretStores, postSecretStoresByStoreIdMappings, postSecretStoresByStoreIdTest, postSignup, postTeams, postTeamsByTeamIdClaimMappings, postTeamsByTeamIdInvitations, postTeamsByTeamIdMembers, postToolsRefresh, postUsers, postUsersByUserSubPersonalAccessTokens, postUsersByUserSubSetPassword, postUsersRequestSetPassword, putGlobalSettingsApiLlmKeys, putMcpServersByServerSlug, putMcpServersByServerSlugAllToolsIsEnabled, putMcpServersByServerSlugAuthorization, putMcpServersByServerSlugConfig, putMcpServersByServerSlugCredentialsProfilesByProfileId, putMcpServersByServerSlugCredentialsServer, putMcpServersByServerSlugCredentialsUser, putMcpServersByServerSlugFilesByFileId, putMcpServersByServerSlugFilesByFileIdName, putMcpServersByServerSlugIsEnabled, putMcpServersByServerSlugMembersByMemberTypeByMemberId, putMcpServersByServerSlugSourceCode, putMcpServersByServerSlugToolsByToolNameIsEnabled, putPredefinedMcpServersById, putPredefinedMcpServersByIdCommentsByCommentId, putPredefinedMcpServersByIdIsDisabled, putPredefinedMcpServersByIdIsVerified, putProfilesByProfileId, putProfilesByProfileIdServersByServerSlugTools, putTeamsByTeamId, putTeamsByTeamIdMembersByUserId, putTenantsByTenantId, putTenantsByTenantIdIsMcpAuthorizationApiKeyEnabled, putUsersByUserSub, putUsersMe };
|
|
3
|
+
export { deleteMcpServersByServerSlug, deleteMcpServersByServerSlugCredentials, deleteMcpServersByServerSlugCredentialsByCredentialsId, deleteMcpServersByServerSlugCredentialsProfilesByProfileId, deleteMcpServersByServerSlugCredentialsServer, deleteMcpServersByServerSlugCredentialsUser, deleteMcpServersByServerSlugFilesByFileId, deleteMcpServersByServerSlugMembersByMemberTypeByMemberId, deletePredefinedMcpServersByIdCommentsByCommentId, deleteProfilesByProfileId, deleteProfilesByProfileIdClaimMappingsByMappingId, deleteSandboxesBySandboxId, deleteSecretStoresById, deleteSecretStoresByStoreIdMappingsByMappingName, deleteTeamsByTeamId, deleteTeamsByTeamIdClaimMappingsByMappingId, deleteTeamsByTeamIdInvitationsByInvitationId, deleteTeamsByTeamIdMembersByUserId, deleteUsersByUserSub, deleteUsersByUserSubPersonalAccessTokensByPatId, getAuditLogs, getAuditLogsById, getAuthLogin, getAuthLoginCallback, getAuthLogout, getAuthMe, getBySandboxIdAuditLogs, getBySandboxIdAuditLogsById, getDeploymentsDeploymentLogs, getDeploymentsLogs, getDeploymentsStatus, getDeploymentsTools, getGlobalSettingsApiLlmKeys, getMcpServers, getMcpServersByServerSlug, getMcpServersByServerSlugCredentials, getMcpServersByServerSlugCredentialsAuthorizeUrl, getMcpServersByServerSlugCredentialsProfile, getMcpServersByServerSlugCredentialsProfileByProfileIdApikeys, getMcpServersByServerSlugCredentialsServer, getMcpServersByServerSlugCredentialsServerApikeys, getMcpServersByServerSlugCredentialsToken, getMcpServersByServerSlugCredentialsUser, getMcpServersByServerSlugCredentialsUserApikeys, getMcpServersByServerSlugFiles, getMcpServersByServerSlugFilesByFileId, getMcpServersByServerSlugMembers, getMcpServersByServerSlugOauthDiscover, getMcpServersByServerSlugRunningStatus, getMcpServersByServerSlugSourceCode, getMcpServersByServerSlugTools, getMcpServersByServerSlugToolsByToolName, getPredefinedMcpServers, getPredefinedMcpServersById, getPredefinedMcpServersByIdComments, getProfiles, getProfilesByProfileId, getProfilesByProfileIdClaimMappings, getProfilesByProfileIdTools, getQuotaAndUsage, getSandboxes, getSandboxesBySandboxId, getSecretStores, getSecretStoresById, getSecretStoresByStoreIdMappings, getTeams, getTeamsByTeamId, getTeamsByTeamIdClaimMappings, getTeamsByTeamIdInvitations, getTeamsByTeamIdMembers, getTeamsByTeamIdServers, getTenantDiscoverOidcMetadata, getTenantSamlMetadata, getTenants, getTenantsByTenantId, getTenantsByTenantIdDiscoverSamlMetadata, getTenantsByTenantIdSigninMethods, getTenantsByTenantIdSubscription, getTools, getUsage, getUsageAggregation, getUsageById, getUsers, getUsersByUserSub, getUsersByUserSubPersonalAccessTokens, getUsersMe, patchSecretStoresById, patchSecretStoresByStoreIdMappingsByMappingName, patchUsersByUserSubPersonalAccessTokensByPatId, postAuthNativeLogin, postEmailVerificationSendCode, postMcpServers, postMcpServersByServerSlugCredentialsCopy, postMcpServersByServerSlugFiles, postMcpServersByServerSlugOauthDynamicOauthClientNoSave, postMcpServersByServerSlugStart, postMcpServersByServerSlugStop, postMcpServersByServerSlugToolsByToolNameCall, postPlaygroundConvertToken, postPredefinedMcpServers, postPredefinedMcpServersByIdComments, postPredefinedMcpServersByIdCopy, postPredefinedMcpServersByIdQuickConnect, postPredefinedMcpServersCreate, postPredefinedMcpServersCreateCustom, postPredefinedMcpServersPreview, postPredefinedMcpServersSyncPulse, postProfiles, postProfilesByProfileIdClaimMappings, postSandboxes, postSandboxesBySandboxIdExec, postSandboxesBySandboxIdReadFile, postSandboxesBySandboxIdSshSession, postSandboxesBySandboxIdWriteFile, postSecretStores, postSecretStoresByStoreIdMappings, postSecretStoresByStoreIdTest, postSignup, postTeams, postTeamsByTeamIdClaimMappings, postTeamsByTeamIdInvitations, postTeamsByTeamIdMembers, postTenantOptIn, postToolsRefresh, postUsers, postUsersByUserSubPersonalAccessTokens, postUsersByUserSubSetPassword, postUsersRequestSetPassword, putGlobalSettingsApiLlmKeys, putMcpServersByServerSlug, putMcpServersByServerSlugAllToolsIsEnabled, putMcpServersByServerSlugAuthorization, putMcpServersByServerSlugConfig, putMcpServersByServerSlugCredentialsProfilesByProfileId, putMcpServersByServerSlugCredentialsServer, putMcpServersByServerSlugCredentialsUser, putMcpServersByServerSlugFilesByFileId, putMcpServersByServerSlugFilesByFileIdName, putMcpServersByServerSlugIsEnabled, putMcpServersByServerSlugMembersByMemberTypeByMemberId, putMcpServersByServerSlugSourceCode, putMcpServersByServerSlugToolsByToolNameIsEnabled, putPredefinedMcpServersById, putPredefinedMcpServersByIdCommentsByCommentId, putPredefinedMcpServersByIdIsDisabled, putPredefinedMcpServersByIdIsVerified, putProfilesByProfileId, putProfilesByProfileIdServersByServerSlugTools, putTeamsByTeamId, putTeamsByTeamIdMembersByUserId, putTenantsByTenantId, putTenantsByTenantIdIsMcpAuthorizationApiKeyEnabled, putUsersByUserSub, putUsersMe };
|
package/dist/apiv2/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_sdk_gen = require('../sdk.gen-
|
|
2
|
+
const require_sdk_gen = require('../sdk.gen-MN-yrRBW.cjs');
|
|
3
3
|
|
|
4
4
|
exports.deleteServersBySlug = require_sdk_gen.deleteServersBySlug;
|
|
5
5
|
exports.getServers = require_sdk_gen.getServers;
|
package/dist/apiv2/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as PutServersBySlugResponses, B as SseTransportConfigOutput, C as PatchServersBySlugResponse, D as PostServersResponses, E as PostServersResponse, F as ServerOAuthClientConfiguration, G as V2PatchServerRequest, H as StdioTransportConfigOutput, I as ServerOAuthClientConfigurationOutput, K as V2ServerDto, L as ServerOAuthMetadata, M as Schema1, N as ServerAuthorization, O as PutServersBySlugData, P as ServerAuthorizationOutput, R as ServerOAuthMetadataOutput, S as PatchServersBySlugData, T as PostServersData, U as V2CreateServerRequest, V as StdioTransportConfig, W as V2ListServersResponse, _ as GetServersResponses, a as patchServersBySlug, b as HttpStreamingTransportConfig, d as DeleteServersBySlugResponses, f as GetServersBySlugData, g as GetServersResponse, h as GetServersData, i as getServersBySlug, j as Schema0, k as PutServersBySlugResponse, l as ClientOptions, m as GetServersBySlugResponses, n as deleteServersBySlug, o as postServers, p as GetServersBySlugResponse, q as V2UpdateServerRequest, r as getServers, s as putServersBySlug, t as Options, u as DeleteServersBySlugData, v as HostedTransportConfig, w as PatchServersBySlugResponses, x as HttpStreamingTransportConfigOutput, y as HostedTransportConfigOutput, z as SseTransportConfig } from "../sdk.gen-
|
|
1
|
+
import { A as PutServersBySlugResponses, B as SseTransportConfigOutput, C as PatchServersBySlugResponse, D as PostServersResponses, E as PostServersResponse, F as ServerOAuthClientConfiguration, G as V2PatchServerRequest, H as StdioTransportConfigOutput, I as ServerOAuthClientConfigurationOutput, K as V2ServerDto, L as ServerOAuthMetadata, M as Schema1, N as ServerAuthorization, O as PutServersBySlugData, P as ServerAuthorizationOutput, R as ServerOAuthMetadataOutput, S as PatchServersBySlugData, T as PostServersData, U as V2CreateServerRequest, V as StdioTransportConfig, W as V2ListServersResponse, _ as GetServersResponses, a as patchServersBySlug, b as HttpStreamingTransportConfig, d as DeleteServersBySlugResponses, f as GetServersBySlugData, g as GetServersResponse, h as GetServersData, i as getServersBySlug, j as Schema0, k as PutServersBySlugResponse, l as ClientOptions, m as GetServersBySlugResponses, n as deleteServersBySlug, o as postServers, p as GetServersBySlugResponse, q as V2UpdateServerRequest, r as getServers, s as putServersBySlug, t as Options, u as DeleteServersBySlugData, v as HostedTransportConfig, w as PatchServersBySlugResponses, x as HttpStreamingTransportConfigOutput, y as HostedTransportConfigOutput, z as SseTransportConfig } from "../sdk.gen-BngWug-n.cjs";
|
|
2
2
|
export { ClientOptions, DeleteServersBySlugData, DeleteServersBySlugResponses, GetServersBySlugData, GetServersBySlugResponse, GetServersBySlugResponses, GetServersData, GetServersResponse, GetServersResponses, HostedTransportConfig, HostedTransportConfigOutput, HttpStreamingTransportConfig, HttpStreamingTransportConfigOutput, Options, PatchServersBySlugData, PatchServersBySlugResponse, PatchServersBySlugResponses, PostServersData, PostServersResponse, PostServersResponses, PutServersBySlugData, PutServersBySlugResponse, PutServersBySlugResponses, Schema0, Schema1, ServerAuthorization, ServerAuthorizationOutput, ServerOAuthClientConfiguration, ServerOAuthClientConfigurationOutput, ServerOAuthMetadata, ServerOAuthMetadataOutput, SseTransportConfig, SseTransportConfigOutput, StdioTransportConfig, StdioTransportConfigOutput, V2CreateServerRequest, V2ListServersResponse, V2PatchServerRequest, V2ServerDto, V2UpdateServerRequest, deleteServersBySlug, getServers, getServersBySlug, patchServersBySlug, postServers, putServersBySlug };
|
package/dist/apiv2/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as PutServersBySlugResponses, B as SseTransportConfigOutput, C as PatchServersBySlugResponse, D as PostServersResponses, E as PostServersResponse, F as ServerOAuthClientConfiguration, G as V2PatchServerRequest, H as StdioTransportConfigOutput, I as ServerOAuthClientConfigurationOutput, K as V2ServerDto, L as ServerOAuthMetadata, M as Schema1, N as ServerAuthorization, O as PutServersBySlugData, P as ServerAuthorizationOutput, R as ServerOAuthMetadataOutput, S as PatchServersBySlugData, T as PostServersData, U as V2CreateServerRequest, V as StdioTransportConfig, W as V2ListServersResponse, _ as GetServersResponses, a as patchServersBySlug, b as HttpStreamingTransportConfig, d as DeleteServersBySlugResponses, f as GetServersBySlugData, g as GetServersResponse, h as GetServersData, i as getServersBySlug, j as Schema0, k as PutServersBySlugResponse, l as ClientOptions, m as GetServersBySlugResponses, n as deleteServersBySlug, o as postServers, p as GetServersBySlugResponse, q as V2UpdateServerRequest, r as getServers, s as putServersBySlug, t as Options, u as DeleteServersBySlugData, v as HostedTransportConfig, w as PatchServersBySlugResponses, x as HttpStreamingTransportConfigOutput, y as HostedTransportConfigOutput, z as SseTransportConfig } from "../sdk.gen-
|
|
1
|
+
import { A as PutServersBySlugResponses, B as SseTransportConfigOutput, C as PatchServersBySlugResponse, D as PostServersResponses, E as PostServersResponse, F as ServerOAuthClientConfiguration, G as V2PatchServerRequest, H as StdioTransportConfigOutput, I as ServerOAuthClientConfigurationOutput, K as V2ServerDto, L as ServerOAuthMetadata, M as Schema1, N as ServerAuthorization, O as PutServersBySlugData, P as ServerAuthorizationOutput, R as ServerOAuthMetadataOutput, S as PatchServersBySlugData, T as PostServersData, U as V2CreateServerRequest, V as StdioTransportConfig, W as V2ListServersResponse, _ as GetServersResponses, a as patchServersBySlug, b as HttpStreamingTransportConfig, d as DeleteServersBySlugResponses, f as GetServersBySlugData, g as GetServersResponse, h as GetServersData, i as getServersBySlug, j as Schema0, k as PutServersBySlugResponse, l as ClientOptions, m as GetServersBySlugResponses, n as deleteServersBySlug, o as postServers, p as GetServersBySlugResponse, q as V2UpdateServerRequest, r as getServers, s as putServersBySlug, t as Options, u as DeleteServersBySlugData, v as HostedTransportConfig, w as PatchServersBySlugResponses, x as HttpStreamingTransportConfigOutput, y as HostedTransportConfigOutput, z as SseTransportConfig } from "../sdk.gen-CMO-Hcvo.mjs";
|
|
2
2
|
export { ClientOptions, DeleteServersBySlugData, DeleteServersBySlugResponses, GetServersBySlugData, GetServersBySlugResponse, GetServersBySlugResponses, GetServersData, GetServersResponse, GetServersResponses, HostedTransportConfig, HostedTransportConfigOutput, HttpStreamingTransportConfig, HttpStreamingTransportConfigOutput, Options, PatchServersBySlugData, PatchServersBySlugResponse, PatchServersBySlugResponses, PostServersData, PostServersResponse, PostServersResponses, PutServersBySlugData, PutServersBySlugResponse, PutServersBySlugResponses, Schema0, Schema1, ServerAuthorization, ServerAuthorizationOutput, ServerOAuthClientConfiguration, ServerOAuthClientConfigurationOutput, ServerOAuthMetadata, ServerOAuthMetadataOutput, SseTransportConfig, SseTransportConfigOutput, StdioTransportConfig, StdioTransportConfigOutput, V2CreateServerRequest, V2ListServersResponse, V2PatchServerRequest, V2ServerDto, V2UpdateServerRequest, deleteServersBySlug, getServers, getServersBySlug, patchServersBySlug, postServers, putServersBySlug };
|
package/dist/apiv2/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as postServers, i as patchServersBySlug, n as getServers, o as putServersBySlug, r as getServersBySlug, t as deleteServersBySlug } from "../sdk.gen-
|
|
1
|
+
import { a as postServers, i as patchServersBySlug, n as getServers, o as putServersBySlug, r as getServersBySlug, t as deleteServersBySlug } from "../sdk.gen-D_xWEdGG.mjs";
|
|
2
2
|
|
|
3
3
|
export { deleteServersBySlug, getServers, getServersBySlug, patchServersBySlug, postServers, putServersBySlug };
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('./chunk-uaV2rQ02.cjs');
|
|
3
|
-
const require_sdk_gen = require('./sdk.gen-
|
|
3
|
+
const require_sdk_gen = require('./sdk.gen-C7-PJ3on.cjs');
|
|
4
4
|
const require_config = require('./config.cjs');
|
|
5
|
-
const require_sdk_gen$1 = require('./sdk.gen-
|
|
5
|
+
const require_sdk_gen$1 = require('./sdk.gen-MN-yrRBW.cjs');
|
|
6
6
|
let debug = require("debug");
|
|
7
7
|
debug = require_chunk.__toESM(debug);
|
|
8
8
|
let openid_client = require("openid-client");
|
|
@@ -122,19 +122,24 @@ var FileConfigStrategy = class extends ConfigStrategy {
|
|
|
122
122
|
baseUrl: tenantConfig.baseUrl,
|
|
123
123
|
token: async () => {
|
|
124
124
|
if (tenantConfig?.apiKey) return tenantConfig.apiKey;
|
|
125
|
-
else if (tenantConfig?.tokens?.access_token) return tenantConfig.tokens.access_token;
|
|
125
|
+
else if (tenantConfig?.tokens?.access_token && tenantConfig.tokens.expires_at && tenantConfig.tokens.expires_at > Math.floor(Date.now() / 1e3) + 60) return tenantConfig.tokens.access_token;
|
|
126
126
|
else if (tenantConfig.tokens?.refresh_token) {
|
|
127
127
|
debug$1("Access token expired or about to expire, attempting to refresh");
|
|
128
128
|
const config = await openid_client.discovery(new URL(`/.well-known/openid-configuration`, tenantConfig.baseUrl), `${orgId}-cli`);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
try {
|
|
130
|
+
const token = await openid_client.refreshTokenGrant(config, tenantConfig.tokens.refresh_token);
|
|
131
|
+
if (token) {
|
|
132
|
+
require_config.setOrganizationConfig(orgId, { tokens: {
|
|
133
|
+
access_token: token.access_token,
|
|
134
|
+
refresh_token: token.refresh_token || tenantConfig.tokens.refresh_token,
|
|
135
|
+
expires_at: token.expires_in ? Math.floor(Date.now() / 1e3) + token.expires_in : 0
|
|
136
|
+
} });
|
|
137
|
+
debug$1("Token refreshed successfully");
|
|
138
|
+
return token.access_token;
|
|
139
|
+
}
|
|
140
|
+
} catch (error) {
|
|
141
|
+
debug$1("Failed to refresh token", error);
|
|
142
|
+
throw new Error("Failed to refresh access token. Please log in again.");
|
|
138
143
|
}
|
|
139
144
|
}
|
|
140
145
|
throw new Error("No valid API key, access token or refresh token available.");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as sdk_gen_d_exports$1 } from "./sdk.gen-
|
|
1
|
+
import { Jn as sdk_gen_d_exports } from "./sdk.gen-Bpj8JDDw.cjs";
|
|
2
|
+
import { c as sdk_gen_d_exports$1 } from "./sdk.gen-BngWug-n.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/v2.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/v2.ts","../src/index.ts"],"mappings":";;;;;;AAiBA;cAAa,OAAA;EACJ,GAAA,SAAG,mBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;EA8C1E,iBAAA,CAAA;AAAA;;;UCzDe,aAAA;EACf,MAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,YAAA;EAAiB,OAAA;EAAiB,KAAA,QAAa,OAAA;AAAA;AAAA,cAC9C,YAAA;EAAA,QACS,UAAA;cAAA,UAAA,EAAY,cAAA;EAEhC,SAAA,CAAA,GAAa,YAAA;AAAA;AAAA,uBAWO,cAAA;EAAA,SACX,SAAA,CAAA;IAAe,OAAA;IAAiB,KAAA,QAAa,OAAA;EAAA;AAAA;AAAA,cAG3C,qBAAA,SAA8B,cAAA;EAAA,QACrB,OAAA;cAAA,OAAA,GAAU,aAAA;EAI9B,SAAA,CAAA;;;;;cAgBW,iBAAA,SAA0B,cAAA;EACrC,SAAA,CAAA;;iBAD6B,OAAA;EAAA;AAAA;AAAA,cAelB,kBAAA,SAA2B,cAAA;EAAA,QAClB,KAAA;cAAA,KAAA;EAIpB,SAAA,CAAA;;iBAL8B,OAAA;EAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/v2.ts","../src/index.ts"],"mappings":";;;;;;AAiBA;cAAa,OAAA;EACJ,GAAA,SAAG,mBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;EA8C1E,iBAAA,CAAA;AAAA;;;UCzDe,aAAA;EACf,MAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,YAAA;EAAiB,OAAA;EAAiB,KAAA,QAAa,OAAA;AAAA;AAAA,cAC9C,YAAA;EAAA,QACS,UAAA;cAAA,UAAA,EAAY,cAAA;EAEhC,SAAA,CAAA,GAAa,YAAA;AAAA;AAAA,uBAWO,cAAA;EAAA,SACX,SAAA,CAAA;IAAe,OAAA;IAAiB,KAAA,QAAa,OAAA;EAAA;AAAA;AAAA,cAG3C,qBAAA,SAA8B,cAAA;EAAA,QACrB,OAAA;cAAA,OAAA,GAAU,aAAA;EAI9B,SAAA,CAAA;;;;;cAgBW,iBAAA,SAA0B,cAAA;EACrC,SAAA,CAAA;;iBAD6B,OAAA;EAAA;AAAA;AAAA,cAelB,kBAAA,SAA2B,cAAA;EAAA,QAClB,KAAA;cAAA,KAAA;EAIpB,SAAA,CAAA;;iBAL8B,OAAA;EAAA;AAAA;AAAA,cAyDnB,MAAA;EACJ,GAAA,SAAG,iBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;AAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as sdk_gen_d_exports$1 } from "./sdk.gen-
|
|
1
|
+
import { Jn as sdk_gen_d_exports } from "./sdk.gen-CM3N77Sx.mjs";
|
|
2
|
+
import { c as sdk_gen_d_exports$1 } from "./sdk.gen-CMO-Hcvo.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/v2.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/v2.ts","../src/index.ts"],"mappings":";;;;;;AAiBA;cAAa,OAAA;EACJ,GAAA,SAAG,mBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;EA8C1E,iBAAA,CAAA;AAAA;;;UCzDe,aAAA;EACf,MAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,YAAA;EAAiB,OAAA;EAAiB,KAAA,QAAa,OAAA;AAAA;AAAA,cAC9C,YAAA;EAAA,QACS,UAAA;cAAA,UAAA,EAAY,cAAA;EAEhC,SAAA,CAAA,GAAa,YAAA;AAAA;AAAA,uBAWO,cAAA;EAAA,SACX,SAAA,CAAA;IAAe,OAAA;IAAiB,KAAA,QAAa,OAAA;EAAA;AAAA;AAAA,cAG3C,qBAAA,SAA8B,cAAA;EAAA,QACrB,OAAA;cAAA,OAAA,GAAU,aAAA;EAI9B,SAAA,CAAA;;;;;cAgBW,iBAAA,SAA0B,cAAA;EACrC,SAAA,CAAA;;iBAD6B,OAAA;EAAA;AAAA;AAAA,cAelB,kBAAA,SAA2B,cAAA;EAAA,QAClB,KAAA;cAAA,KAAA;EAIpB,SAAA,CAAA;;iBAL8B,OAAA;EAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/v2.ts","../src/index.ts"],"mappings":";;;;;;AAiBA;cAAa,OAAA;EACJ,GAAA,SAAG,mBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;EA8C1E,iBAAA,CAAA;AAAA;;;UCzDe,aAAA;EACf,MAAA;EACA,KAAA;EACA,OAAA;AAAA;AAAA,KAGU,YAAA;EAAiB,OAAA;EAAiB,KAAA,QAAa,OAAA;AAAA;AAAA,cAC9C,YAAA;EAAA,QACS,UAAA;cAAA,UAAA,EAAY,cAAA;EAEhC,SAAA,CAAA,GAAa,YAAA;AAAA;AAAA,uBAWO,cAAA;EAAA,SACX,SAAA,CAAA;IAAe,OAAA;IAAiB,KAAA,QAAa,OAAA;EAAA;AAAA;AAAA,cAG3C,qBAAA,SAA8B,cAAA;EAAA,QACrB,OAAA;cAAA,OAAA,GAAU,aAAA;EAI9B,SAAA,CAAA;;;;;cAgBW,iBAAA,SAA0B,cAAA;EACrC,SAAA,CAAA;;iBAD6B,OAAA;EAAA;AAAA;AAAA,cAelB,kBAAA,SAA2B,cAAA;EAAA,QAClB,KAAA;cAAA,KAAA;EAIpB,SAAA,CAAA;;iBAL8B,OAAA;EAAA;AAAA;AAAA,cAyDnB,MAAA;EACJ,GAAA,SAAG,iBAAA;EAAA,SACM,MAAA,EAAQ,YAAA;cACZ,GAAA;IAAQ,OAAA,GAAU,aAAA;IAAe,YAAA,GAAe,YAAA;IAAc,KAAA;EAAA;AAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jn as client, qn as sdk_gen_exports } from "./sdk.gen-sn4qj7bb.mjs";
|
|
2
2
|
import { getDefaultOrganization, getOrganization, setOrganizationConfig } from "./config.mjs";
|
|
3
|
-
import { c as client$1, s as sdk_gen_exports$1 } from "./sdk.gen-
|
|
3
|
+
import { c as client$1, s as sdk_gen_exports$1 } from "./sdk.gen-D_xWEdGG.mjs";
|
|
4
4
|
import createDebug from "debug";
|
|
5
5
|
import * as openidClient from "openid-client";
|
|
6
6
|
|
|
@@ -118,19 +118,24 @@ var FileConfigStrategy = class extends ConfigStrategy {
|
|
|
118
118
|
baseUrl: tenantConfig.baseUrl,
|
|
119
119
|
token: async () => {
|
|
120
120
|
if (tenantConfig?.apiKey) return tenantConfig.apiKey;
|
|
121
|
-
else if (tenantConfig?.tokens?.access_token) return tenantConfig.tokens.access_token;
|
|
121
|
+
else if (tenantConfig?.tokens?.access_token && tenantConfig.tokens.expires_at && tenantConfig.tokens.expires_at > Math.floor(Date.now() / 1e3) + 60) return tenantConfig.tokens.access_token;
|
|
122
122
|
else if (tenantConfig.tokens?.refresh_token) {
|
|
123
123
|
debug("Access token expired or about to expire, attempting to refresh");
|
|
124
124
|
const config = await openidClient.discovery(new URL(`/.well-known/openid-configuration`, tenantConfig.baseUrl), `${orgId}-cli`);
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
try {
|
|
126
|
+
const token = await openidClient.refreshTokenGrant(config, tenantConfig.tokens.refresh_token);
|
|
127
|
+
if (token) {
|
|
128
|
+
setOrganizationConfig(orgId, { tokens: {
|
|
129
|
+
access_token: token.access_token,
|
|
130
|
+
refresh_token: token.refresh_token || tenantConfig.tokens.refresh_token,
|
|
131
|
+
expires_at: token.expires_in ? Math.floor(Date.now() / 1e3) + token.expires_in : 0
|
|
132
|
+
} });
|
|
133
|
+
debug("Token refreshed successfully");
|
|
134
|
+
return token.access_token;
|
|
135
|
+
}
|
|
136
|
+
} catch (error) {
|
|
137
|
+
debug("Failed to refresh token", error);
|
|
138
|
+
throw new Error("Failed to refresh access token. Please log in again.");
|
|
134
139
|
}
|
|
135
140
|
}
|
|
136
141
|
throw new Error("No valid API key, access token or refresh token available.");
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["debug","sdk","sdk"],"sources":["../src/v2.ts","../src/index.ts"],"sourcesContent":["import { client } from './apiv2/client.gen.js';\nimport * as sdk from './apiv2/sdk.gen.js';\nimport createDebug from 'debug';\nimport { Config } from './api/client/types.gen.js';\nimport {\n ConfigLoader,\n EnvConfigStrategy,\n FileConfigStrategy,\n GatanaConfig,\n GatanaOptions,\n OptionsConfigStrategy,\n} from './index.js';\nconst debug = createDebug('gatana');\n\n/**\n * Gatana2 is representing a more REST-ful API where the object returned from GET can be used directly in POST/PUT/PATCH requests.\n */\nexport class Gatana2 {\n public api = sdk;\n public readonly config: GatanaConfig;\n constructor(arg?: { options?: GatanaOptions; configLoader?: ConfigLoader; isCli?: boolean }) {\n // Try to get config from file if not provided via options or env vars\n const configLoader =\n arg?.configLoader ||\n new ConfigLoader([new OptionsConfigStrategy(arg?.options), new EnvConfigStrategy(), new FileConfigStrategy()]);\n\n try {\n this.config = configLoader.getConfig();\n\n const clientConfig = {\n baseUrl: new URL('/api/v2/', this.config.baseUrl).toString(),\n auth: this.config.token,\n } satisfies Config;\n client.setConfig(clientConfig);\n\n // Add verbose request/response logging via debug\n const debugHttp = createDebug('gatana:http');\n client.interceptors.request.use(request => {\n debugHttp(`→ ${request.method} ${request.url}`);\n return request;\n });\n client.interceptors.response.use((response, request) => {\n debugHttp(`← ${response.status} ${response.statusText} ${request.method} ${request.url}`);\n return response;\n });\n client.interceptors.error.use((error, response, request) => {\n debugHttp(`✗ ${response.status} ${response.statusText} ${request.method} ${request.url}`, error);\n return error;\n });\n\n debug('Gatana initialized with config', clientConfig);\n } catch (error: any) {\n debug('Failed to initialize', error);\n if (arg?.isCli && error.message === 'No valid configuration found from any strategy') {\n console.error('Warning: No valid configuration found. Run \"gatana config login\" to set up your credentials.');\n this.config = {\n baseUrl: 'https://NO_ORGANIZATION_SET.gatana.ai',\n token: async () => 'PLEASE_SET_UP_CONFIGURATION',\n };\n } else {\n console.error('Error initializing Gatana:', error.message);\n process.exit(1);\n }\n }\n }\n\n getOpenApiSpecUrl() {\n return new URL('/api/v2/openapi.json', this.config.baseUrl).toString();\n }\n}\n","import { client } from './api/client.gen.js';\nimport * as sdk from './api/sdk.gen.js';\nimport type { Agent } from './api/types.gen.js';\nimport createDebug from 'debug';\nimport { getOrganization, getDefaultOrganization, setOrganizationConfig } from './config.js';\nimport * as openidClient from 'openid-client';\nimport { Config } from './api/client/types.gen.js';\nconst debug = createDebug('gatana');\n\nexport interface GatanaOptions {\n apiKey: string;\n orgId?: string;\n baseUrl?: string;\n}\n\nexport type GatanaConfig = { baseUrl: string; token: () => Promise<string> };\nexport class ConfigLoader {\n constructor(private strategies: ConfigStrategy[]) {}\n\n getConfig(): GatanaConfig {\n for (const strategy of this.strategies) {\n const config = strategy.getConfig();\n if (config) {\n return config;\n }\n }\n throw new Error('No valid configuration found from any strategy');\n }\n}\n\nexport abstract class ConfigStrategy {\n abstract getConfig(): { baseUrl: string; token: () => Promise<string> } | null;\n}\n\nexport class OptionsConfigStrategy extends ConfigStrategy {\n constructor(private options?: GatanaOptions) {\n super();\n }\n\n getConfig() {\n if (!this.options) {\n return null;\n }\n if (this.options.apiKey && (this.options.orgId || this.options.baseUrl)) {\n const key = this.options.apiKey;\n const baseUrl = this.options.baseUrl || `https://${this.options.orgId}.gatana.ai`;\n return {\n baseUrl,\n token: async () => key,\n };\n }\n return null;\n }\n}\n\nexport class EnvConfigStrategy extends ConfigStrategy {\n getConfig() {\n const apiKey = process.env.GATANA_API_KEY;\n const orgId = process.env.GATANA_ORG_ID;\n const overrideBaseUrl = process.env.GATANA_BASE_URL;\n if (apiKey && (orgId || overrideBaseUrl)) {\n return {\n baseUrl: overrideBaseUrl || `https://${orgId}.gatana.ai`,\n token: async () => apiKey,\n };\n }\n return null;\n }\n}\n\nexport class FileConfigStrategy extends ConfigStrategy {\n constructor(private orgId?: string) {\n super();\n }\n\n getConfig() {\n let orgId = this.orgId || process.env.GATANA_ORG_ID || getDefaultOrganization();\n if (!orgId) {\n return null;\n }\n debug(`FileConfigLoader loading config for orgId=${orgId}`);\n const tenantConfig = getOrganization(orgId);\n if (!tenantConfig) {\n return null;\n }\n return {\n baseUrl: tenantConfig.baseUrl,\n token: async () => {\n if (tenantConfig?.apiKey) {\n return tenantConfig.apiKey;\n } else if (tenantConfig?.tokens?.access_token) {\n return tenantConfig.tokens.access_token;\n } else if (tenantConfig.tokens?.refresh_token) {\n debug('Access token expired or about to expire, attempting to refresh');\n // Try to refresh the token\n const config = await openidClient.discovery(\n new URL(`/.well-known/openid-configuration`, tenantConfig.baseUrl),\n `${orgId}-cli`\n );\n const token = await openidClient.refreshTokenGrant(config, tenantConfig.tokens.refresh_token);\n if (token) {\n setOrganizationConfig(orgId, {\n tokens: {\n access_token: token.access_token,\n refresh_token: token.refresh_token || tenantConfig.tokens.refresh_token,\n expires_at: token.expires_in ? Math.floor(Date.now() / 1000) + token.expires_in : 0,\n },\n });\n debug('Token refreshed successfully');\n return token.access_token;\n }\n }\n throw new Error('No valid API key, access token or refresh token available.');\n },\n };\n }\n}\n\nexport class Gatana {\n public api = sdk;\n public readonly config: GatanaConfig;\n constructor(arg?: { options?: GatanaOptions; configLoader?: ConfigLoader; isCli?: boolean }) {\n // Try to get config from file if not provided via options or env vars\n const configLoader =\n arg?.configLoader ||\n new ConfigLoader([new OptionsConfigStrategy(arg?.options), new EnvConfigStrategy(), new FileConfigStrategy()]);\n\n try {\n this.config = configLoader.getConfig();\n\n const clientConfig = {\n baseUrl: new URL('/api/v1/', this.config.baseUrl).toString(),\n auth: this.config.token,\n } satisfies Config;\n client.setConfig(clientConfig);\n\n // Add verbose request/response logging via debug\n const debugHttp = createDebug('gatana:http');\n client.interceptors.request.use(request => {\n debugHttp(`→ ${request.method} ${request.url}`);\n return request;\n });\n client.interceptors.response.use((response, request) => {\n debugHttp(`← ${response.status} ${response.statusText} ${request.method} ${request.url}`);\n return response;\n });\n client.interceptors.error.use((error, response, request) => {\n debugHttp(`✗ ${response.status} ${response.statusText} ${request.method} ${request.url}`, error);\n return error;\n });\n\n debug('Gatana initialized with config', clientConfig);\n } catch (error: any) {\n debug('Failed to initialize', error);\n if (arg?.isCli && error.message === 'No valid configuration found from any strategy') {\n console.error('Warning: No valid configuration found. Run \"gatana config login\" to set up your credentials.');\n this.config = {\n baseUrl: 'https://NO_ORGANIZATION_SET.gatana.ai',\n token: async () => 'PLEASE_SET_UP_CONFIGURATION',\n };\n } else {\n console.error('Error initializing Gatana:', error.message);\n process.exit(1);\n }\n }\n }\n}\n\nexport { Gatana2 } from './v2.js';\n"],"mappings":";;;;;;;AAYA,MAAMA,UAAQ,YAAY,SAAS;;;;AAKnC,IAAa,UAAb,MAAqB;CACnB,AAAO,MAAMC;CACb,AAAgB;CAChB,YAAY,KAAiF;EAE3F,MAAM,eACJ,KAAK,gBACL,IAAI,aAAa;GAAC,IAAI,sBAAsB,KAAK,QAAQ;GAAE,IAAI,mBAAmB;GAAE,IAAI,oBAAoB;GAAC,CAAC;AAEhH,MAAI;AACF,QAAK,SAAS,aAAa,WAAW;GAEtC,MAAM,eAAe;IACnB,SAAS,IAAI,IAAI,YAAY,KAAK,OAAO,QAAQ,CAAC,UAAU;IAC5D,MAAM,KAAK,OAAO;IACnB;AACD,YAAO,UAAU,aAAa;GAG9B,MAAM,YAAY,YAAY,cAAc;AAC5C,YAAO,aAAa,QAAQ,KAAI,YAAW;AACzC,cAAU,KAAK,QAAQ,OAAO,GAAG,QAAQ,MAAM;AAC/C,WAAO;KACP;AACF,YAAO,aAAa,SAAS,KAAK,UAAU,YAAY;AACtD,cAAU,KAAK,SAAS,OAAO,GAAG,SAAS,WAAW,GAAG,QAAQ,OAAO,GAAG,QAAQ,MAAM;AACzF,WAAO;KACP;AACF,YAAO,aAAa,MAAM,KAAK,OAAO,UAAU,YAAY;AAC1D,cAAU,KAAK,SAAS,OAAO,GAAG,SAAS,WAAW,GAAG,QAAQ,OAAO,GAAG,QAAQ,OAAO,MAAM;AAChG,WAAO;KACP;AAEF,WAAM,kCAAkC,aAAa;WAC9C,OAAY;AACnB,WAAM,wBAAwB,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,QAAQ,KAAI,YAAW;AACzC,cAAU,KAAK,QAAQ,OAAO,GAAG,QAAQ,MAAM;AAC/C,WAAO;KACP;AACF,UAAO,aAAa,SAAS,KAAK,UAAU,YAAY;AACtD,cAAU,KAAK,SAAS,OAAO,GAAG,SAAS,WAAW,GAAG,QAAQ,OAAO,GAAG,QAAQ,MAAM;AACzF,WAAO;KACP;AACF,UAAO,aAAa,MAAM,KAAK,OAAO,UAAU,YAAY;AAC1D,cAAU,KAAK,SAAS,OAAO,GAAG,SAAS,WAAW,GAAG,QAAQ,OAAO,GAAG,QAAQ,OAAO,MAAM;AAChG,WAAO;KACP;AAEF,SAAM,kCAAkC,aAAa;WAC9C,OAAY;AACnB,SAAM,wBAAwB,MAAM;AACpC,OAAI,KAAK,SAAS,MAAM,YAAY,kDAAkD;AACpF,YAAQ,MAAM,iGAA+F;AAC7G,SAAK,SAAS;KACZ,SAAS;KACT,OAAO,YAAY;KACpB;UACI;AACL,YAAQ,MAAM,8BAA8B,MAAM,QAAQ;AAC1D,YAAQ,KAAK,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["debug","sdk","sdk"],"sources":["../src/v2.ts","../src/index.ts"],"sourcesContent":["import { client } from './apiv2/client.gen.js';\nimport * as sdk from './apiv2/sdk.gen.js';\nimport createDebug from 'debug';\nimport { Config } from './api/client/types.gen.js';\nimport {\n ConfigLoader,\n EnvConfigStrategy,\n FileConfigStrategy,\n GatanaConfig,\n GatanaOptions,\n OptionsConfigStrategy,\n} from './index.js';\nconst debug = createDebug('gatana');\n\n/**\n * Gatana2 is representing a more REST-ful API where the object returned from GET can be used directly in POST/PUT/PATCH requests.\n */\nexport class Gatana2 {\n public api = sdk;\n public readonly config: GatanaConfig;\n constructor(arg?: { options?: GatanaOptions; configLoader?: ConfigLoader; isCli?: boolean }) {\n // Try to get config from file if not provided via options or env vars\n const configLoader =\n arg?.configLoader ||\n new ConfigLoader([new OptionsConfigStrategy(arg?.options), new EnvConfigStrategy(), new FileConfigStrategy()]);\n\n try {\n this.config = configLoader.getConfig();\n\n const clientConfig = {\n baseUrl: new URL('/api/v2/', this.config.baseUrl).toString(),\n auth: this.config.token,\n } satisfies Config;\n client.setConfig(clientConfig);\n\n // Add verbose request/response logging via debug\n const debugHttp = createDebug('gatana:http');\n client.interceptors.request.use(request => {\n debugHttp(`→ ${request.method} ${request.url}`);\n return request;\n });\n client.interceptors.response.use((response, request) => {\n debugHttp(`← ${response.status} ${response.statusText} ${request.method} ${request.url}`);\n return response;\n });\n client.interceptors.error.use((error, response, request) => {\n debugHttp(`✗ ${response.status} ${response.statusText} ${request.method} ${request.url}`, error);\n return error;\n });\n\n debug('Gatana initialized with config', clientConfig);\n } catch (error: any) {\n debug('Failed to initialize', error);\n if (arg?.isCli && error.message === 'No valid configuration found from any strategy') {\n console.error('Warning: No valid configuration found. Run \"gatana config login\" to set up your credentials.');\n this.config = {\n baseUrl: 'https://NO_ORGANIZATION_SET.gatana.ai',\n token: async () => 'PLEASE_SET_UP_CONFIGURATION',\n };\n } else {\n console.error('Error initializing Gatana:', error.message);\n process.exit(1);\n }\n }\n }\n\n getOpenApiSpecUrl() {\n return new URL('/api/v2/openapi.json', this.config.baseUrl).toString();\n }\n}\n","import { client } from './api/client.gen.js';\nimport * as sdk from './api/sdk.gen.js';\nimport type { Agent } from './api/types.gen.js';\nimport createDebug from 'debug';\nimport { getOrganization, getDefaultOrganization, setOrganizationConfig } from './config.js';\nimport * as openidClient from 'openid-client';\nimport { Config } from './api/client/types.gen.js';\nconst debug = createDebug('gatana');\n\nexport interface GatanaOptions {\n apiKey: string;\n orgId?: string;\n baseUrl?: string;\n}\n\nexport type GatanaConfig = { baseUrl: string; token: () => Promise<string> };\nexport class ConfigLoader {\n constructor(private strategies: ConfigStrategy[]) {}\n\n getConfig(): GatanaConfig {\n for (const strategy of this.strategies) {\n const config = strategy.getConfig();\n if (config) {\n return config;\n }\n }\n throw new Error('No valid configuration found from any strategy');\n }\n}\n\nexport abstract class ConfigStrategy {\n abstract getConfig(): { baseUrl: string; token: () => Promise<string> } | null;\n}\n\nexport class OptionsConfigStrategy extends ConfigStrategy {\n constructor(private options?: GatanaOptions) {\n super();\n }\n\n getConfig() {\n if (!this.options) {\n return null;\n }\n if (this.options.apiKey && (this.options.orgId || this.options.baseUrl)) {\n const key = this.options.apiKey;\n const baseUrl = this.options.baseUrl || `https://${this.options.orgId}.gatana.ai`;\n return {\n baseUrl,\n token: async () => key,\n };\n }\n return null;\n }\n}\n\nexport class EnvConfigStrategy extends ConfigStrategy {\n getConfig() {\n const apiKey = process.env.GATANA_API_KEY;\n const orgId = process.env.GATANA_ORG_ID;\n const overrideBaseUrl = process.env.GATANA_BASE_URL;\n if (apiKey && (orgId || overrideBaseUrl)) {\n return {\n baseUrl: overrideBaseUrl || `https://${orgId}.gatana.ai`,\n token: async () => apiKey,\n };\n }\n return null;\n }\n}\n\nexport class FileConfigStrategy extends ConfigStrategy {\n constructor(private orgId?: string) {\n super();\n }\n\n getConfig() {\n let orgId = this.orgId || process.env.GATANA_ORG_ID || getDefaultOrganization();\n if (!orgId) {\n return null;\n }\n debug(`FileConfigLoader loading config for orgId=${orgId}`);\n const tenantConfig = getOrganization(orgId);\n if (!tenantConfig) {\n return null;\n }\n return {\n baseUrl: tenantConfig.baseUrl,\n token: async () => {\n if (tenantConfig?.apiKey) {\n return tenantConfig.apiKey;\n } else if (\n tenantConfig?.tokens?.access_token &&\n tenantConfig.tokens.expires_at &&\n tenantConfig.tokens.expires_at > Math.floor(Date.now() / 1000) + 60\n ) {\n return tenantConfig.tokens.access_token;\n } else if (tenantConfig.tokens?.refresh_token) {\n debug('Access token expired or about to expire, attempting to refresh');\n // Try to refresh the token\n const config = await openidClient.discovery(\n new URL(`/.well-known/openid-configuration`, tenantConfig.baseUrl),\n `${orgId}-cli`\n );\n try {\n const token = await openidClient.refreshTokenGrant(config, tenantConfig.tokens.refresh_token);\n if (token) {\n setOrganizationConfig(orgId, {\n tokens: {\n access_token: token.access_token,\n refresh_token: token.refresh_token || tenantConfig.tokens.refresh_token,\n expires_at: token.expires_in ? Math.floor(Date.now() / 1000) + token.expires_in : 0,\n },\n });\n debug('Token refreshed successfully');\n return token.access_token;\n }\n } catch (error) {\n debug('Failed to refresh token', error);\n throw new Error('Failed to refresh access token. Please log in again.');\n }\n }\n throw new Error('No valid API key, access token or refresh token available.');\n },\n };\n }\n}\n\nexport class Gatana {\n public api = sdk;\n public readonly config: GatanaConfig;\n constructor(arg?: { options?: GatanaOptions; configLoader?: ConfigLoader; isCli?: boolean }) {\n // Try to get config from file if not provided via options or env vars\n const configLoader =\n arg?.configLoader ||\n new ConfigLoader([new OptionsConfigStrategy(arg?.options), new EnvConfigStrategy(), new FileConfigStrategy()]);\n\n try {\n this.config = configLoader.getConfig();\n\n const clientConfig = {\n baseUrl: new URL('/api/v1/', this.config.baseUrl).toString(),\n auth: this.config.token,\n } satisfies Config;\n client.setConfig(clientConfig);\n\n // Add verbose request/response logging via debug\n const debugHttp = createDebug('gatana:http');\n client.interceptors.request.use(request => {\n debugHttp(`→ ${request.method} ${request.url}`);\n return request;\n });\n client.interceptors.response.use((response, request) => {\n debugHttp(`← ${response.status} ${response.statusText} ${request.method} ${request.url}`);\n return response;\n });\n client.interceptors.error.use((error, response, request) => {\n debugHttp(`✗ ${response.status} ${response.statusText} ${request.method} ${request.url}`, error);\n return error;\n });\n\n debug('Gatana initialized with config', clientConfig);\n } catch (error: any) {\n debug('Failed to initialize', error);\n if (arg?.isCli && error.message === 'No valid configuration found from any strategy') {\n console.error('Warning: No valid configuration found. Run \"gatana config login\" to set up your credentials.');\n this.config = {\n baseUrl: 'https://NO_ORGANIZATION_SET.gatana.ai',\n token: async () => 'PLEASE_SET_UP_CONFIGURATION',\n };\n } else {\n console.error('Error initializing Gatana:', error.message);\n process.exit(1);\n }\n }\n }\n}\n\nexport { Gatana2 } from './v2.js';\n"],"mappings":";;;;;;;AAYA,MAAMA,UAAQ,YAAY,SAAS;;;;AAKnC,IAAa,UA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O,GAAG,QAAQ,MAAM;AACzF,WAAO;KACP;AACF,UAAO,aAAa,MAAM,KAAK,OAAO,UAAU,YAAY;AAC1D,cAAU,KAAK,SAAS,OAAO,GAAG,SAAS,WAAW,GAAG,QAAQ,OAAO,GAAG,QAAQ,OAAO,MAAM;AAChG,WAAO;KACP;AAEF,SAAM,kCAAkC,aAAa;WAC9C,OAAY;AACnB,SAAM,wBAAwB,MAAM;AACpC,OAAI,KAAK,SAAS,MAAM,YAAY,kDAAkD;AACpF,YAAQ,MAAM,iGAA+F;AAC7G,SAAK,SAAS;KACZ,SAAS;KACT,OAAO,YAAY;KACpB;UACI;AACL,YAAQ,MAAM,8BAA8B,MAAM,QAAQ;AAC1D,YAAQ,KAAK,EAAE"}
|
|
@@ -597,27 +597,27 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
597
597
|
/**
|
|
598
598
|
* List all MCP servers the caller has access to.
|
|
599
599
|
*/
|
|
600
|
-
declare const getServers: <ThrowOnError extends boolean =
|
|
600
|
+
declare const getServers: <ThrowOnError extends boolean = true>(options?: Options<GetServersData, ThrowOnError>) => any;
|
|
601
601
|
/**
|
|
602
602
|
* Create a new MCP server. Requires `slug` and `transportConfig`. All other fields are optional with sensible defaults. Read-only fields are silently ignored.
|
|
603
603
|
*/
|
|
604
|
-
declare const postServers: <ThrowOnError extends boolean =
|
|
604
|
+
declare const postServers: <ThrowOnError extends boolean = true>(options?: Options<PostServersData, ThrowOnError>) => any;
|
|
605
605
|
/**
|
|
606
606
|
* Delete an MCP server.
|
|
607
607
|
*/
|
|
608
|
-
declare const deleteServersBySlug: <ThrowOnError extends boolean =
|
|
608
|
+
declare const deleteServersBySlug: <ThrowOnError extends boolean = true>(options: Options<DeleteServersBySlugData, ThrowOnError>) => any;
|
|
609
609
|
/**
|
|
610
610
|
* Get a single MCP server. The response body can be PUT back to update the server.
|
|
611
611
|
*/
|
|
612
|
-
declare const getServersBySlug: <ThrowOnError extends boolean =
|
|
612
|
+
declare const getServersBySlug: <ThrowOnError extends boolean = true>(options: Options<GetServersBySlugData, ThrowOnError>) => any;
|
|
613
613
|
/**
|
|
614
614
|
* Partially update an MCP server using JSON Merge Patch (RFC 7396). Send only the fields to change. Explicit `null` clears nullable fields (logoUrl, oauthMetadata, oauthClientConfiguration). Absent fields are untouched. Read-only fields are silently ignored.
|
|
615
615
|
*/
|
|
616
|
-
declare const patchServersBySlug: <ThrowOnError extends boolean =
|
|
616
|
+
declare const patchServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PatchServersBySlugData, ThrowOnError>) => any;
|
|
617
617
|
/**
|
|
618
618
|
* Update an MCP server. Accepts the full server object from GET; read-only fields (id, tenantId, createdAt, updatedAt, lastToolRefreshAt) are silently ignored. Supports updating isEnabled, authorization, and config in a single call.
|
|
619
619
|
*/
|
|
620
|
-
declare const putServersBySlug: <ThrowOnError extends boolean =
|
|
620
|
+
declare const putServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PutServersBySlugData, ThrowOnError>) => any;
|
|
621
621
|
//#endregion
|
|
622
622
|
export { PutServersBySlugResponses as A, SseTransportConfigOutput as B, PatchServersBySlugResponse as C, PostServersResponses as D, PostServersResponse as E, ServerOAuthClientConfiguration as F, V2PatchServerRequest as G, StdioTransportConfigOutput as H, ServerOAuthClientConfigurationOutput as I, V2ServerDto as K, ServerOAuthMetadata as L, Schema1 as M, ServerAuthorization as N, PutServersBySlugData as O, ServerAuthorizationOutput as P, ServerOAuthMetadataOutput as R, PatchServersBySlugData as S, PostServersData as T, V2CreateServerRequest as U, StdioTransportConfig as V, V2ListServersResponse as W, GetServersResponses as _, patchServersBySlug as a, HttpStreamingTransportConfig as b, sdk_gen_d_exports as c, DeleteServersBySlugResponses as d, GetServersBySlugData as f, GetServersResponse as g, GetServersData as h, getServersBySlug as i, Schema0 as j, PutServersBySlugResponse as k, ClientOptions$1 as l, GetServersBySlugResponses as m, deleteServersBySlug as n, postServers as o, GetServersBySlugResponse as p, V2UpdateServerRequest as q, getServers as r, putServersBySlug as s, Options as t, DeleteServersBySlugData as u, HostedTransportConfig as v, PatchServersBySlugResponses as w, HttpStreamingTransportConfigOutput as x, HostedTransportConfigOutput as y, SseTransportConfig as z };
|
|
623
|
-
//# sourceMappingURL=sdk.gen-
|
|
623
|
+
//# sourceMappingURL=sdk.gen-BngWug-n.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen-BngWug-n.d.cts","names":[],"sources":["../src/apiv2/types.gen.ts","../src/apiv2/core/auth.gen.ts","../src/apiv2/core/pathSerializer.gen.ts","../src/apiv2/core/bodySerializer.gen.ts","../src/apiv2/core/types.gen.ts","../src/apiv2/core/serverSentEvents.gen.ts","../src/apiv2/client/utils.gen.ts","../src/apiv2/client/types.gen.ts","../src/apiv2/sdk.gen.ts"],"mappings":";KAEY,qBAAA;EACR,IAAA;EACA,eAAA,EAAiB,OAAA;EACjB,WAAA;EACA,aAAA,GAAgB,mBAAA;EAChB,aAAA,GAAgB,mBAAA;EAChB,wBAAA,GAA2B,8BAAA;EAC3B,SAAA;EACA,eAAA;EACA,YAAA;EACA,kCAAA;EACA,EAAA;EACA,QAAA;EACA,IAAA;EACA,OAAA;EACA,iBAAA;EACA,SAAA;EACA,SAAA;AAAA;AAAA,KAGQ,4BAAA;EACR,IAAA;EACA,GAAA;EACA,OAAA,GAAU,KAAA;AAAA;AAAA,KAMF,oBAAA;EACR,IAAA;EACA,OAAA;EACA,WAAA;EACA,GAAA,GAAM,KAAA;EAIN,SAAA;EACA,QAAA;EACA,OAAA;AAAA;AAAA,KAGQ,kBAAA;EACR,IAAA;EACA,GAAA;EACA,OAAA,GAAU,KAAA;AAAA;AAAA,KAMF,qBAAA;EACR,IAAA;EACA,OAAA;EACA,GAAA,GAAM,KAAA;AAAA;AAAA,KAME,mBAAA;EACR,MAAA;EACA,gBAAA;EACA,OAAA,GAAU,KAAA;AAAA;AAAA,KAGF,mBAAA;EACR,qBAAA;EACA,QAAA;IAC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