@fern-api/venus-api-sdk 0.22.4 → 0.22.34
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 +270 -0
- package/dist/cjs/BaseClient.d.ts +17 -4
- package/dist/cjs/BaseClient.js +59 -0
- package/dist/cjs/Client.d.ts +19 -16
- package/dist/cjs/Client.js +15 -50
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +16 -17
- package/dist/cjs/api/resources/apiKeys/client/Client.js +41 -34
- package/dist/cjs/api/resources/apiKeys/client/create.js +1 -1
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +1 -1
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +1 -1
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +1 -1
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +1 -1
- package/dist/cjs/api/resources/auth/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/auth/client/Client.js +295 -0
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +24 -0
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +65 -0
- package/dist/cjs/api/resources/auth/client/getJwt.d.ts +24 -0
- package/dist/cjs/api/resources/auth/client/getJwt.js +65 -0
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +19 -0
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +55 -0
- package/dist/cjs/api/resources/auth/client/index.d.ts +4 -0
- package/dist/cjs/api/resources/auth/client/index.js +43 -0
- package/dist/cjs/api/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +22 -0
- package/dist/cjs/api/resources/auth/client/requests/GetAutopilotTokenRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/GetJwtRequest.d.ts +16 -0
- package/dist/cjs/api/resources/auth/client/requests/GetJwtRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/auth/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/auth/index.d.ts +2 -0
- package/dist/cjs/api/resources/auth/index.js +18 -0
- package/dist/cjs/api/resources/auth/types/JwtResponse.d.ts +11 -0
- package/dist/cjs/api/resources/auth/types/JwtResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/organization/client/Client.d.ts +37 -27
- package/dist/cjs/api/resources/organization/client/Client.js +152 -60
- package/dist/cjs/api/resources/organization/client/addUser.js +1 -1
- package/dist/cjs/api/resources/organization/client/create.js +1 -1
- package/dist/cjs/api/resources/organization/client/delete.js +1 -1
- package/dist/cjs/api/resources/organization/client/get.js +1 -1
- package/dist/cjs/api/resources/organization/client/getByPostmanTeamId.d.ts +24 -0
- package/dist/cjs/api/resources/organization/client/getByPostmanTeamId.js +65 -0
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +1 -1
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +1 -1
- package/dist/cjs/api/resources/organization/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/organization/client/index.js +2 -1
- package/dist/cjs/api/resources/organization/client/inviteUser.js +1 -1
- package/dist/cjs/api/resources/organization/client/isMember.js +1 -1
- package/dist/cjs/api/resources/organization/client/removeUser.js +1 -1
- package/dist/cjs/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +8 -0
- package/dist/cjs/api/resources/organization/client/update.js +1 -1
- package/dist/cjs/api/resources/organization/types/Organization.d.ts +2 -0
- package/dist/cjs/api/resources/registry/client/Client.d.ts +12 -13
- package/dist/cjs/api/resources/registry/client/Client.js +28 -26
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +6 -1
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +11 -1
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +1 -1
- package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +6 -1
- package/dist/cjs/api/resources/registry/client/revokeToken.js +11 -1
- package/dist/cjs/api/resources/user/client/Client.d.ts +12 -13
- package/dist/cjs/api/resources/user/client/Client.js +27 -25
- package/dist/cjs/api/resources/user/client/getMyOrganizations.js +1 -1
- package/dist/cjs/api/resources/user/client/getMyself.js +1 -1
- package/dist/cjs/api/resources/user/client/linkAccounts.js +1 -1
- package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/BearerAuthProvider.js +76 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -1
- package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
- package/dist/cjs/core/auth/BearerToken.js +7 -6
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +1 -0
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +10 -4
- package/dist/cjs/core/fetcher/Fetcher.js +210 -10
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +0 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -9
- package/dist/cjs/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/runtime.js +11 -10
- package/dist/cjs/core/schemas/Schema.d.ts +1 -0
- package/dist/cjs/core/schemas/Schema.js +1 -0
- package/dist/cjs/core/schemas/builders/object/object.js +34 -3
- package/dist/cjs/core/schemas/builders/primitives/index.d.ts +1 -0
- package/dist/cjs/core/schemas/builders/primitives/index.js +3 -1
- package/dist/cjs/core/schemas/builders/primitives/never.d.ts +2 -0
- package/dist/cjs/core/schemas/builders/primitives/never.js +14 -0
- package/dist/cjs/core/url/join.js +0 -1
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/serialization/resources/auth/client/getAutopilotToken.d.ts +10 -0
- package/dist/cjs/serialization/resources/auth/client/getAutopilotToken.js +66 -0
- package/dist/cjs/serialization/resources/auth/client/getJwt.d.ts +10 -0
- package/dist/cjs/serialization/resources/auth/client/getJwt.js +66 -0
- package/dist/cjs/serialization/resources/auth/client/getOrgForGithubOwner.d.ts +8 -0
- package/dist/cjs/serialization/resources/auth/client/getOrgForGithubOwner.js +6 -0
- package/dist/cjs/serialization/resources/auth/client/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/auth/client/index.js +43 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.js +43 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.js +42 -0
- package/dist/cjs/serialization/resources/auth/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/auth/client/requests/index.js +7 -0
- package/dist/cjs/serialization/resources/auth/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/auth/index.js +18 -0
- package/dist/cjs/serialization/resources/auth/types/JwtResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/auth/types/JwtResponse.js +42 -0
- package/dist/cjs/serialization/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/auth/types/index.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/organization/client/getByPostmanTeamId.d.ts +10 -0
- package/dist/cjs/serialization/resources/organization/client/getByPostmanTeamId.js +66 -0
- package/dist/cjs/serialization/resources/organization/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/organization/client/index.js +2 -1
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -0
- package/dist/cjs/serialization/resources/organization/types/Organization.d.ts +1 -0
- package/dist/cjs/serialization/resources/organization/types/Organization.js +1 -0
- package/dist/cjs/serialization/resources/registry/client/generateRegistryTokens.d.ts +4 -1
- package/dist/cjs/serialization/resources/registry/client/generateRegistryTokens.js +3 -0
- package/dist/cjs/serialization/resources/registry/client/revokeToken.d.ts +4 -1
- package/dist/cjs/serialization/resources/registry/client/revokeToken.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +17 -4
- package/dist/esm/BaseClient.mjs +24 -1
- package/dist/esm/Client.d.mts +19 -16
- package/dist/esm/Client.mjs +16 -18
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +16 -17
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +40 -33
- package/dist/esm/api/resources/apiKeys/client/create.mjs +1 -1
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +1 -1
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +1 -1
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +1 -1
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +1 -1
- package/dist/esm/api/resources/auth/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/auth/client/Client.mjs +258 -0
- package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +24 -0
- package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +29 -0
- package/dist/esm/api/resources/auth/client/getJwt.d.mts +24 -0
- package/dist/esm/api/resources/auth/client/getJwt.mjs +29 -0
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +19 -0
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +19 -0
- package/dist/esm/api/resources/auth/client/index.d.mts +4 -0
- package/dist/esm/api/resources/auth/client/index.mjs +4 -0
- package/dist/esm/api/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +22 -0
- package/dist/esm/api/resources/auth/client/requests/GetAutopilotTokenRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/GetJwtRequest.d.mts +16 -0
- package/dist/esm/api/resources/auth/client/requests/GetJwtRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/auth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/auth/index.d.mts +2 -0
- package/dist/esm/api/resources/auth/index.mjs +2 -0
- package/dist/esm/api/resources/auth/types/JwtResponse.d.mts +11 -0
- package/dist/esm/api/resources/auth/types/JwtResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/organization/client/Client.d.mts +37 -27
- package/dist/esm/api/resources/organization/client/Client.mjs +151 -59
- package/dist/esm/api/resources/organization/client/addUser.mjs +1 -1
- package/dist/esm/api/resources/organization/client/create.mjs +1 -1
- package/dist/esm/api/resources/organization/client/delete.mjs +1 -1
- package/dist/esm/api/resources/organization/client/get.mjs +1 -1
- package/dist/esm/api/resources/organization/client/getByPostmanTeamId.d.mts +24 -0
- package/dist/esm/api/resources/organization/client/getByPostmanTeamId.mjs +29 -0
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +1 -1
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +1 -1
- package/dist/esm/api/resources/organization/client/index.d.mts +1 -0
- package/dist/esm/api/resources/organization/client/index.mjs +1 -0
- package/dist/esm/api/resources/organization/client/inviteUser.mjs +1 -1
- package/dist/esm/api/resources/organization/client/isMember.mjs +1 -1
- package/dist/esm/api/resources/organization/client/removeUser.mjs +1 -1
- package/dist/esm/api/resources/organization/client/requests/CreateOrganizationRequest.d.mts +8 -0
- package/dist/esm/api/resources/organization/client/update.mjs +1 -1
- package/dist/esm/api/resources/organization/types/Organization.d.mts +2 -0
- package/dist/esm/api/resources/registry/client/Client.d.mts +12 -13
- package/dist/esm/api/resources/registry/client/Client.mjs +27 -25
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +6 -1
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +11 -1
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +1 -1
- package/dist/esm/api/resources/registry/client/revokeToken.d.mts +6 -1
- package/dist/esm/api/resources/registry/client/revokeToken.mjs +11 -1
- package/dist/esm/api/resources/user/client/Client.d.mts +12 -13
- package/dist/esm/api/resources/user/client/Client.mjs +26 -24
- package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +1 -1
- package/dist/esm/api/resources/user/client/getMyself.mjs +1 -1
- package/dist/esm/api/resources/user/client/linkAccounts.mjs +1 -1
- package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -1
- package/dist/esm/core/auth/BearerToken.d.mts +3 -1
- package/dist/esm/core/auth/BearerToken.mjs +7 -6
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +1 -0
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +10 -4
- package/dist/esm/core/fetcher/Fetcher.mjs +210 -10
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
- package/dist/esm/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/runtime.mjs +11 -10
- package/dist/esm/core/schemas/Schema.d.mts +1 -0
- package/dist/esm/core/schemas/Schema.mjs +1 -0
- package/dist/esm/core/schemas/builders/object/object.mjs +34 -3
- package/dist/esm/core/schemas/builders/primitives/index.d.mts +1 -0
- package/dist/esm/core/schemas/builders/primitives/index.mjs +1 -0
- package/dist/esm/core/schemas/builders/primitives/never.d.mts +2 -0
- package/dist/esm/core/schemas/builders/primitives/never.mjs +11 -0
- package/dist/esm/core/url/join.mjs +0 -1
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/serialization/resources/auth/client/getAutopilotToken.d.mts +10 -0
- package/dist/esm/serialization/resources/auth/client/getAutopilotToken.mjs +30 -0
- package/dist/esm/serialization/resources/auth/client/getJwt.d.mts +10 -0
- package/dist/esm/serialization/resources/auth/client/getJwt.mjs +30 -0
- package/dist/esm/serialization/resources/auth/client/getOrgForGithubOwner.d.mts +8 -0
- package/dist/esm/serialization/resources/auth/client/getOrgForGithubOwner.mjs +3 -0
- package/dist/esm/serialization/resources/auth/client/index.d.mts +4 -0
- package/dist/esm/serialization/resources/auth/client/index.mjs +4 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.mjs +7 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.mjs +6 -0
- package/dist/esm/serialization/resources/auth/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/auth/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/auth/index.d.mts +2 -0
- package/dist/esm/serialization/resources/auth/index.mjs +2 -0
- package/dist/esm/serialization/resources/auth/types/JwtResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/auth/types/JwtResponse.mjs +6 -0
- package/dist/esm/serialization/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/auth/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/organization/client/getByPostmanTeamId.d.mts +10 -0
- package/dist/esm/serialization/resources/organization/client/getByPostmanTeamId.mjs +30 -0
- package/dist/esm/serialization/resources/organization/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/organization/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs +2 -0
- package/dist/esm/serialization/resources/organization/types/Organization.d.mts +1 -0
- package/dist/esm/serialization/resources/organization/types/Organization.mjs +1 -0
- package/dist/esm/serialization/resources/registry/client/generateRegistryTokens.d.mts +4 -1
- package/dist/esm/serialization/resources/registry/client/generateRegistryTokens.mjs +3 -0
- package/dist/esm/serialization/resources/registry/client/revokeToken.d.mts +4 -1
- package/dist/esm/serialization/resources/registry/client/revokeToken.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +8 -3
- package/reference.md +1369 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -36,10 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.user = exports.registry = exports.organization = exports.commons = exports.apiKeys = void 0;
|
|
39
|
+
exports.user = exports.registry = exports.organization = exports.commons = exports.auth = exports.apiKeys = void 0;
|
|
40
40
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
41
41
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
42
42
|
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
43
|
+
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
44
|
+
exports.auth = __importStar(require("./auth/index.js"));
|
|
45
|
+
__exportStar(require("./auth/types/index.js"), exports);
|
|
43
46
|
exports.commons = __importStar(require("./commons/index.js"));
|
|
44
47
|
__exportStar(require("./commons/types/index.js"), exports);
|
|
45
48
|
__exportStar(require("./organization/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as FernVenusApi from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const Error: core.serialization.Schema<serializers.organization.getByPostmanTeamId.Error.Raw, FernVenusApi.organization.getByPostmanTeamId.Error>;
|
|
5
|
+
export declare namespace Error {
|
|
6
|
+
type Raw = Error.OrganizationNotFoundError;
|
|
7
|
+
interface OrganizationNotFoundError {
|
|
8
|
+
error: "OrganizationNotFoundError";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Error = void 0;
|
|
49
|
+
const FernVenusApi = __importStar(require("../../../../api/index.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
exports.Error = core.serialization
|
|
52
|
+
.union("error", {
|
|
53
|
+
OrganizationNotFoundError: core.serialization.object({}),
|
|
54
|
+
})
|
|
55
|
+
.transform({
|
|
56
|
+
transform: (value) => {
|
|
57
|
+
switch (value.error) {
|
|
58
|
+
case "OrganizationNotFoundError":
|
|
59
|
+
return FernVenusApi.organization.getByPostmanTeamId.Error.organizationNotFoundError();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
untransform: (_a) => {
|
|
63
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
64
|
+
return value;
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -2,6 +2,7 @@ export * as addUser from "./addUser.js";
|
|
|
2
2
|
export * as create from "./create.js";
|
|
3
3
|
export * as delete from "./delete.js";
|
|
4
4
|
export * as get from "./get.js";
|
|
5
|
+
export * as getByPostmanTeamId from "./getByPostmanTeamId.js";
|
|
5
6
|
export * as getMyOrganizationFromScopedToken from "./getMyOrganizationFromScopedToken.js";
|
|
6
7
|
export * as getOrgIdsFromToken from "./getOrgIdsFromToken.js";
|
|
7
8
|
export * as inviteUser from "./inviteUser.js";
|
|
@@ -36,11 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.update = exports.removeUser = exports.isMember = exports.inviteUser = exports.getOrgIdsFromToken = exports.getMyOrganizationFromScopedToken = exports.get = exports.delete = exports.create = exports.addUser = void 0;
|
|
39
|
+
exports.update = exports.removeUser = exports.isMember = exports.inviteUser = exports.getOrgIdsFromToken = exports.getMyOrganizationFromScopedToken = exports.getByPostmanTeamId = exports.get = exports.delete = exports.create = exports.addUser = void 0;
|
|
40
40
|
exports.addUser = __importStar(require("./addUser.js"));
|
|
41
41
|
exports.create = __importStar(require("./create.js"));
|
|
42
42
|
exports.delete = __importStar(require("./delete.js"));
|
|
43
43
|
exports.get = __importStar(require("./get.js"));
|
|
44
|
+
exports.getByPostmanTeamId = __importStar(require("./getByPostmanTeamId.js"));
|
|
44
45
|
exports.getMyOrganizationFromScopedToken = __importStar(require("./getMyOrganizationFromScopedToken.js"));
|
|
45
46
|
exports.getOrgIdsFromToken = __importStar(require("./getOrgIdsFromToken.js"));
|
|
46
47
|
exports.inviteUser = __importStar(require("./inviteUser.js"));
|
package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export declare namespace CreateOrganizationRequest {
|
|
|
10
10
|
artifactReadRequiresToken?: boolean | null;
|
|
11
11
|
enableGithubConnection?: boolean | null;
|
|
12
12
|
enableGoogleConnection?: boolean | null;
|
|
13
|
+
enablePostmanConnection?: boolean | null;
|
|
14
|
+
postmanTeamId?: string | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js
CHANGED
|
@@ -43,4 +43,6 @@ exports.CreateOrganizationRequest = core.serialization.object({
|
|
|
43
43
|
artifactReadRequiresToken: core.serialization.boolean().optional(),
|
|
44
44
|
enableGithubConnection: core.serialization.boolean().optional(),
|
|
45
45
|
enableGoogleConnection: core.serialization.boolean().optional(),
|
|
46
|
+
enablePostmanConnection: core.serialization.boolean().optional(),
|
|
47
|
+
postmanTeamId: core.serialization.string().optional(),
|
|
46
48
|
});
|
|
@@ -57,4 +57,5 @@ exports.Organization = core.serialization.object({
|
|
|
57
57
|
apiPlaygroundEnabled: core.serialization.boolean(),
|
|
58
58
|
workosOrganizationId: core.serialization.string().optional(),
|
|
59
59
|
selfHostedSdKs: core.serialization.property("selfHostedSDKs", core.serialization.boolean()),
|
|
60
|
+
postmanTeamId: core.serialization.string().optional(),
|
|
60
61
|
});
|
|
@@ -3,11 +3,14 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const Error: core.serialization.Schema<serializers.registry.generateRegistryTokens.Error.Raw, FernVenusApi.registry.generateRegistryTokens.Error>;
|
|
5
5
|
export declare namespace Error {
|
|
6
|
-
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
|
|
6
|
+
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError | Error.MissingOrgPermissionsError;
|
|
7
7
|
interface UnauthorizedError {
|
|
8
8
|
error: "UnauthorizedError";
|
|
9
9
|
}
|
|
10
10
|
interface OrganizationNotFoundError {
|
|
11
11
|
error: "OrganizationNotFoundError";
|
|
12
12
|
}
|
|
13
|
+
interface MissingOrgPermissionsError {
|
|
14
|
+
error: "MissingOrgPermissionsError";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -52,6 +52,7 @@ exports.Error = core.serialization
|
|
|
52
52
|
.union("error", {
|
|
53
53
|
UnauthorizedError: core.serialization.object({}),
|
|
54
54
|
OrganizationNotFoundError: core.serialization.object({}),
|
|
55
|
+
MissingOrgPermissionsError: core.serialization.object({}),
|
|
55
56
|
})
|
|
56
57
|
.transform({
|
|
57
58
|
transform: (value) => {
|
|
@@ -60,6 +61,8 @@ exports.Error = core.serialization
|
|
|
60
61
|
return FernVenusApi.registry.generateRegistryTokens.Error.unauthorizedError();
|
|
61
62
|
case "OrganizationNotFoundError":
|
|
62
63
|
return FernVenusApi.registry.generateRegistryTokens.Error.organizationNotFoundError();
|
|
64
|
+
case "MissingOrgPermissionsError":
|
|
65
|
+
return FernVenusApi.registry.generateRegistryTokens.Error.missingOrgPermissionsError();
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
untransform: (_a) => {
|
|
@@ -3,11 +3,14 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const Error: core.serialization.Schema<serializers.registry.revokeToken.Error.Raw, FernVenusApi.registry.revokeToken.Error>;
|
|
5
5
|
export declare namespace Error {
|
|
6
|
-
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
|
|
6
|
+
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError | Error.MissingOrgPermissionsError;
|
|
7
7
|
interface UnauthorizedError {
|
|
8
8
|
error: "UnauthorizedError";
|
|
9
9
|
}
|
|
10
10
|
interface OrganizationNotFoundError {
|
|
11
11
|
error: "OrganizationNotFoundError";
|
|
12
12
|
}
|
|
13
|
+
interface MissingOrgPermissionsError {
|
|
14
|
+
error: "MissingOrgPermissionsError";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -52,6 +52,7 @@ exports.Error = core.serialization
|
|
|
52
52
|
.union("error", {
|
|
53
53
|
UnauthorizedError: core.serialization.object({}),
|
|
54
54
|
OrganizationNotFoundError: core.serialization.object({}),
|
|
55
|
+
MissingOrgPermissionsError: core.serialization.object({}),
|
|
55
56
|
})
|
|
56
57
|
.transform({
|
|
57
58
|
transform: (value) => {
|
|
@@ -60,6 +61,8 @@ exports.Error = core.serialization
|
|
|
60
61
|
return FernVenusApi.registry.revokeToken.Error.unauthorizedError();
|
|
61
62
|
case "OrganizationNotFoundError":
|
|
62
63
|
return FernVenusApi.registry.revokeToken.Error.organizationNotFoundError();
|
|
64
|
+
case "MissingOrgPermissionsError":
|
|
65
|
+
return FernVenusApi.registry.revokeToken.Error.missingOrgPermissionsError();
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
untransform: (_a) => {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.22.
|
|
1
|
+
export declare const SDK_VERSION = "0.22.34-6-gfbf1677";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
|
|
2
|
+
import * as core from "./core/index.mjs";
|
|
2
3
|
import type * as environments from "./environments.mjs";
|
|
3
|
-
export
|
|
4
|
+
export type BaseClientOptions = {
|
|
4
5
|
environment?: core.Supplier<environments.FernVenusApiEnvironment | string>;
|
|
5
6
|
/** Specify a custom URL to connect the client to. */
|
|
6
7
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
|
11
11
|
timeoutInSeconds?: number;
|
|
12
12
|
/** The default number of times to retry the request. Defaults to 2. */
|
|
13
13
|
maxRetries?: number;
|
|
14
|
-
|
|
14
|
+
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
15
|
+
fetch?: typeof fetch;
|
|
16
|
+
/** Configure logging for the client. */
|
|
17
|
+
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
18
|
+
} & BearerAuthProvider.AuthOptions;
|
|
15
19
|
export interface BaseRequestOptions {
|
|
16
20
|
/** The maximum time to wait for a response in seconds. */
|
|
17
21
|
timeoutInSeconds?: number;
|
|
@@ -24,3 +28,12 @@ export interface BaseRequestOptions {
|
|
|
24
28
|
/** Additional headers to include in the request. */
|
|
25
29
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
30
|
}
|
|
31
|
+
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
32
|
+
logging: core.logging.Logger;
|
|
33
|
+
authProvider?: core.AuthProvider;
|
|
34
|
+
};
|
|
35
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
36
|
+
authProvider: core.AuthProvider;
|
|
37
|
+
};
|
|
38
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
39
|
+
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
2
|
+
import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
|
|
3
|
+
import { mergeHeaders } from "./core/headers.mjs";
|
|
4
|
+
import * as core from "./core/index.mjs";
|
|
5
|
+
export function normalizeClientOptions(options) {
|
|
6
|
+
const headers = mergeHeaders({
|
|
7
|
+
"X-Fern-Language": "JavaScript",
|
|
8
|
+
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
9
|
+
"X-Fern-SDK-Version": "0.22.34-6-gfbf1677",
|
|
10
|
+
"User-Agent": "@fern-api/venus-api-sdk/0.22.34-6-gfbf1677",
|
|
11
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
|
+
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
14
|
+
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
15
|
+
}
|
|
16
|
+
export function normalizeClientOptionsWithAuth(options) {
|
|
17
|
+
var _a;
|
|
18
|
+
const normalized = normalizeClientOptions(options);
|
|
19
|
+
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
20
|
+
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider(normalizedWithNoOpAuthProvider));
|
|
21
|
+
return normalized;
|
|
22
|
+
}
|
|
23
|
+
function withNoOpAuthProvider(options) {
|
|
24
|
+
return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
|
|
25
|
+
}
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
2
|
+
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
3
|
+
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
4
|
+
import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
|
|
5
|
+
import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
5
6
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
7
|
+
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
6
8
|
export declare namespace FernVenusApiClient {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
+
type Options = BaseClientOptions;
|
|
9
10
|
interface RequestOptions extends BaseRequestOptions {
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
export declare class FernVenusApiClient {
|
|
13
|
-
protected readonly _options: FernVenusApiClient.Options
|
|
14
|
-
protected _apiKeys:
|
|
15
|
-
protected
|
|
16
|
-
protected
|
|
17
|
-
protected
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
get
|
|
21
|
-
get
|
|
22
|
-
get
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FernVenusApiClient.Options>;
|
|
15
|
+
protected _apiKeys: ApiKeysClient | undefined;
|
|
16
|
+
protected _auth: AuthClient | undefined;
|
|
17
|
+
protected _organization: OrganizationClient | undefined;
|
|
18
|
+
protected _registry: RegistryClient | undefined;
|
|
19
|
+
protected _user: UserClient | undefined;
|
|
20
|
+
constructor(options?: FernVenusApiClient.Options);
|
|
21
|
+
get apiKeys(): ApiKeysClient;
|
|
22
|
+
get auth(): AuthClient;
|
|
23
|
+
get organization(): OrganizationClient;
|
|
24
|
+
get registry(): RegistryClient;
|
|
25
|
+
get user(): UserClient;
|
|
23
26
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
2
|
+
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
3
|
+
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
4
|
+
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
5
|
+
import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
|
|
6
|
+
import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
7
|
+
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
8
8
|
export class FernVenusApiClient {
|
|
9
|
-
constructor(
|
|
10
|
-
this._options =
|
|
11
|
-
"X-Fern-Language": "JavaScript",
|
|
12
|
-
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
13
|
-
"X-Fern-SDK-Version": "0.22.4",
|
|
14
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
15
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
16
|
-
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
9
|
+
constructor(options = {}) {
|
|
10
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
17
11
|
}
|
|
18
12
|
get apiKeys() {
|
|
19
13
|
var _a;
|
|
20
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new
|
|
14
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
15
|
+
}
|
|
16
|
+
get auth() {
|
|
17
|
+
var _a;
|
|
18
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new AuthClient(this._options)));
|
|
21
19
|
}
|
|
22
20
|
get organization() {
|
|
23
21
|
var _a;
|
|
24
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
22
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new OrganizationClient(this._options)));
|
|
25
23
|
}
|
|
26
24
|
get registry() {
|
|
27
25
|
var _a;
|
|
28
|
-
return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new
|
|
26
|
+
return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new RegistryClient(this._options)));
|
|
29
27
|
}
|
|
30
28
|
get user() {
|
|
31
29
|
var _a;
|
|
32
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
30
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new UserClient(this._options)));
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
2
3
|
import * as core from "../../../../core/index.mjs";
|
|
3
4
|
import * as FernVenusApi from "../../../index.mjs";
|
|
4
|
-
export declare namespace
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
export declare namespace ApiKeysClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class ApiKeysClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ApiKeysClient.Options>;
|
|
12
|
+
constructor(options?: ApiKeysClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {FernVenusApi.CreateApiKeyRequest} request
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* await client.apiKeys.create({
|
|
@@ -24,11 +24,11 @@ export declare class ApiKeys {
|
|
|
24
24
|
* organizationId: "missing-org-id"
|
|
25
25
|
* })
|
|
26
26
|
*/
|
|
27
|
-
create(request: FernVenusApi.CreateApiKeyRequest, requestOptions?:
|
|
27
|
+
create(request: FernVenusApi.CreateApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateTokenResponse, FernVenusApi.apiKeys.create.Error>>;
|
|
28
28
|
private __create;
|
|
29
29
|
/**
|
|
30
30
|
* @param {FernVenusApi.GetTokenMetadataRequest} request
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* await client.apiKeys.getTokenMetadata({
|
|
@@ -40,11 +40,11 @@ export declare class ApiKeys {
|
|
|
40
40
|
* token: "missing-token-value"
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
getTokenMetadata(request: FernVenusApi.GetTokenMetadataRequest, requestOptions?:
|
|
43
|
+
getTokenMetadata(request: FernVenusApi.GetTokenMetadataRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata, FernVenusApi.apiKeys.getTokenMetadata.Error>>;
|
|
44
44
|
private __getTokenMetadata;
|
|
45
45
|
/**
|
|
46
46
|
* @param {FernVenusApi.OrganizationId} organizationId
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* await client.apiKeys.getTokensForOrganization("some-org-id")
|
|
@@ -52,11 +52,11 @@ export declare class ApiKeys {
|
|
|
52
52
|
* @example
|
|
53
53
|
* await client.apiKeys.getTokensForOrganization("missing-org-id")
|
|
54
54
|
*/
|
|
55
|
-
getTokensForOrganization(organizationId: FernVenusApi.OrganizationId, requestOptions?:
|
|
55
|
+
getTokensForOrganization(organizationId: FernVenusApi.OrganizationId, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata[], FernVenusApi.apiKeys.getTokensForOrganization.Error>>;
|
|
56
56
|
private __getTokensForOrganization;
|
|
57
57
|
/**
|
|
58
58
|
* @param {FernVenusApi.TokenId} tokenId
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* await client.apiKeys.revokeTokenById("some-token-id")
|
|
@@ -64,11 +64,11 @@ export declare class ApiKeys {
|
|
|
64
64
|
* @example
|
|
65
65
|
* await client.apiKeys.revokeTokenById("missing-token-id")
|
|
66
66
|
*/
|
|
67
|
-
revokeTokenById(tokenId: FernVenusApi.TokenId, requestOptions?:
|
|
67
|
+
revokeTokenById(tokenId: FernVenusApi.TokenId, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeTokenById.Error>>;
|
|
68
68
|
private __revokeTokenById;
|
|
69
69
|
/**
|
|
70
70
|
* @param {FernVenusApi.RevokeApiKeyRequest} request
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* await client.apiKeys.revokeToken({
|
|
@@ -80,7 +80,6 @@ export declare class ApiKeys {
|
|
|
80
80
|
* token: "missing-token-value"
|
|
81
81
|
* })
|
|
82
82
|
*/
|
|
83
|
-
revokeToken(request: FernVenusApi.RevokeApiKeyRequest, requestOptions?:
|
|
83
|
+
revokeToken(request: FernVenusApi.RevokeApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeToken.Error>>;
|
|
84
84
|
private __revokeToken;
|
|
85
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
86
85
|
}
|