@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
|
@@ -180,6 +180,7 @@ function getObjectUtils(schema) {
|
|
|
180
180
|
value: raw,
|
|
181
181
|
transformBase: (rawBase) => schema.parse(rawBase, opts),
|
|
182
182
|
transformExtension: (rawExtension) => extension.parse(rawExtension, opts),
|
|
183
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
183
184
|
});
|
|
184
185
|
},
|
|
185
186
|
json: (parsed, opts) => {
|
|
@@ -188,6 +189,7 @@ function getObjectUtils(schema) {
|
|
|
188
189
|
value: parsed,
|
|
189
190
|
transformBase: (parsedBase) => schema.json(parsedBase, opts),
|
|
190
191
|
transformExtension: (parsedExtension) => extension.json(parsedExtension, opts),
|
|
192
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
191
193
|
});
|
|
192
194
|
},
|
|
193
195
|
getType: () => Schema_js_1.SchemaType.OBJECT,
|
|
@@ -195,6 +197,8 @@ function getObjectUtils(schema) {
|
|
|
195
197
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, index_js_2.getSchemaUtils)(baseSchema)), (0, index_js_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
196
198
|
},
|
|
197
199
|
passthrough: () => {
|
|
200
|
+
const knownRawKeys = new Set(schema._getRawProperties());
|
|
201
|
+
const knownParsedKeys = new Set(schema._getParsedProperties());
|
|
198
202
|
const baseSchema = {
|
|
199
203
|
_getParsedProperties: () => schema._getParsedProperties(),
|
|
200
204
|
_getRawProperties: () => schema._getRawProperties(),
|
|
@@ -203,9 +207,17 @@ function getObjectUtils(schema) {
|
|
|
203
207
|
if (!transformed.ok) {
|
|
204
208
|
return transformed;
|
|
205
209
|
}
|
|
210
|
+
const extraProperties = {};
|
|
211
|
+
if (typeof raw === "object" && raw != null) {
|
|
212
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
213
|
+
if (!knownRawKeys.has(key)) {
|
|
214
|
+
extraProperties[key] = value;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
206
218
|
return {
|
|
207
219
|
ok: true,
|
|
208
|
-
value: Object.assign(Object.assign({},
|
|
220
|
+
value: Object.assign(Object.assign({}, extraProperties), transformed.value),
|
|
209
221
|
};
|
|
210
222
|
},
|
|
211
223
|
json: (parsed, opts) => {
|
|
@@ -213,9 +225,17 @@ function getObjectUtils(schema) {
|
|
|
213
225
|
if (!transformed.ok) {
|
|
214
226
|
return transformed;
|
|
215
227
|
}
|
|
228
|
+
const extraProperties = {};
|
|
229
|
+
if (typeof parsed === "object" && parsed != null) {
|
|
230
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
231
|
+
if (!knownParsedKeys.has(key)) {
|
|
232
|
+
extraProperties[key] = value;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
216
236
|
return {
|
|
217
237
|
ok: true,
|
|
218
|
-
value: Object.assign(Object.assign({},
|
|
238
|
+
value: Object.assign(Object.assign({}, extraProperties), transformed.value),
|
|
219
239
|
};
|
|
220
240
|
},
|
|
221
241
|
getType: () => Schema_js_1.SchemaType.OBJECT,
|
|
@@ -224,7 +244,18 @@ function getObjectUtils(schema) {
|
|
|
224
244
|
},
|
|
225
245
|
};
|
|
226
246
|
}
|
|
227
|
-
function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
|
|
247
|
+
function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, breadcrumbsPrefix = [], }) {
|
|
248
|
+
if (!(0, isPlainObject_js_1.isPlainObject)(value)) {
|
|
249
|
+
return {
|
|
250
|
+
ok: false,
|
|
251
|
+
errors: [
|
|
252
|
+
{
|
|
253
|
+
path: breadcrumbsPrefix,
|
|
254
|
+
message: (0, getErrorMessageForIncorrectType_js_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
};
|
|
258
|
+
}
|
|
228
259
|
const extensionPropertiesSet = new Set(extensionKeys);
|
|
229
260
|
const [extensionProperties, baseProperties] = (0, partition_js_1.partition)((0, keys_js_1.keys)(value), (key) => extensionPropertiesSet.has(key));
|
|
230
261
|
const transformedBase = transformBase((0, filterObject_js_1.filterObject)(value, baseProperties));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unknown = exports.string = exports.number = exports.boolean = exports.any = void 0;
|
|
3
|
+
exports.unknown = exports.string = exports.number = exports.never = exports.boolean = exports.any = void 0;
|
|
4
4
|
var any_js_1 = require("./any.js");
|
|
5
5
|
Object.defineProperty(exports, "any", { enumerable: true, get: function () { return any_js_1.any; } });
|
|
6
6
|
var boolean_js_1 = require("./boolean.js");
|
|
7
7
|
Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_js_1.boolean; } });
|
|
8
|
+
var never_js_1 = require("./never.js");
|
|
9
|
+
Object.defineProperty(exports, "never", { enumerable: true, get: function () { return never_js_1.never; } });
|
|
8
10
|
var number_js_1 = require("./number.js");
|
|
9
11
|
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_js_1.number; } });
|
|
10
12
|
var string_js_1 = require("./string.js");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.never = void 0;
|
|
4
|
+
const Schema_js_1 = require("../../Schema.js");
|
|
5
|
+
const createIdentitySchemaCreator_js_1 = require("../../utils/createIdentitySchemaCreator.js");
|
|
6
|
+
exports.never = (0, createIdentitySchemaCreator_js_1.createIdentitySchemaCreator)(Schema_js_1.SchemaType.NEVER, (_value, { breadcrumbsPrefix = [] } = {}) => ({
|
|
7
|
+
ok: false,
|
|
8
|
+
errors: [
|
|
9
|
+
{
|
|
10
|
+
path: breadcrumbsPrefix,
|
|
11
|
+
message: "Expected never",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./core/exports.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./core/exports.js"), exports);
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as FernVenusApi from "./api/index.js";
|
|
|
2
2
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
3
3
|
export { FernVenusApiClient } from "./Client.js";
|
|
4
4
|
export { FernVenusApiEnvironment } from "./environments.js";
|
|
5
|
+
export * from "./exports.js";
|
|
5
6
|
export * as serialization from "./serialization/index.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,6 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.serialization = exports.FernVenusApiEnvironment = exports.FernVenusApiClient = exports.FernVenusApi = void 0;
|
|
37
40
|
exports.FernVenusApi = __importStar(require("./api/index.js"));
|
|
@@ -39,4 +42,5 @@ var Client_js_1 = require("./Client.js");
|
|
|
39
42
|
Object.defineProperty(exports, "FernVenusApiClient", { enumerable: true, get: function () { return Client_js_1.FernVenusApiClient; } });
|
|
40
43
|
var environments_js_1 = require("./environments.js");
|
|
41
44
|
Object.defineProperty(exports, "FernVenusApiEnvironment", { enumerable: true, get: function () { return environments_js_1.FernVenusApiEnvironment; } });
|
|
45
|
+
__exportStar(require("./exports.js"), exports);
|
|
42
46
|
exports.serialization = __importStar(require("./serialization/index.js"));
|
|
@@ -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.auth.getAutopilotToken.Error.Raw, FernVenusApi.auth.getAutopilotToken.Error>;
|
|
5
|
+
export declare namespace Error {
|
|
6
|
+
type Raw = Error.UnauthorizedError;
|
|
7
|
+
interface UnauthorizedError {
|
|
8
|
+
error: "UnauthorizedError";
|
|
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
|
+
UnauthorizedError: core.serialization.object({}),
|
|
54
|
+
})
|
|
55
|
+
.transform({
|
|
56
|
+
transform: (value) => {
|
|
57
|
+
switch (value.error) {
|
|
58
|
+
case "UnauthorizedError":
|
|
59
|
+
return FernVenusApi.auth.getAutopilotToken.Error.unauthorizedError();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
untransform: (_a) => {
|
|
63
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
64
|
+
return value;
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -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.auth.getJwt.Error.Raw, FernVenusApi.auth.getJwt.Error>;
|
|
5
|
+
export declare namespace Error {
|
|
6
|
+
type Raw = Error.UnauthorizedError;
|
|
7
|
+
interface UnauthorizedError {
|
|
8
|
+
error: "UnauthorizedError";
|
|
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
|
+
UnauthorizedError: core.serialization.object({}),
|
|
54
|
+
})
|
|
55
|
+
.transform({
|
|
56
|
+
transform: (value) => {
|
|
57
|
+
switch (value.error) {
|
|
58
|
+
case "UnauthorizedError":
|
|
59
|
+
return FernVenusApi.auth.getJwt.Error.unauthorizedError();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
untransform: (_a) => {
|
|
63
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
64
|
+
return value;
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../api/index.js";
|
|
2
|
+
import type * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { OrganizationId } from "../../commons/types/OrganizationId.js";
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.auth.getOrgForGithubOwner.Response.Raw, FernVenusApi.OrganizationId | undefined>;
|
|
6
|
+
export declare namespace Response {
|
|
7
|
+
type Raw = OrganizationId.Raw | null | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Response = void 0;
|
|
5
|
+
const OrganizationId_js_1 = require("../../commons/types/OrganizationId.js");
|
|
6
|
+
exports.Response = OrganizationId_js_1.OrganizationId.optional();
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.getOrgForGithubOwner = exports.getJwt = exports.getAutopilotToken = void 0;
|
|
40
|
+
exports.getAutopilotToken = __importStar(require("./getAutopilotToken.js"));
|
|
41
|
+
exports.getJwt = __importStar(require("./getJwt.js"));
|
|
42
|
+
exports.getOrgForGithubOwner = __importStar(require("./getOrgForGithubOwner.js"));
|
|
43
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { OrganizationId } from "../../../commons/types/OrganizationId.js";
|
|
5
|
+
export declare const GetAutopilotTokenRequest: core.serialization.Schema<serializers.GetAutopilotTokenRequest.Raw, FernVenusApi.GetAutopilotTokenRequest>;
|
|
6
|
+
export declare namespace GetAutopilotTokenRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizationId: OrganizationId.Raw;
|
|
9
|
+
githubOwner?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.GetAutopilotTokenRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const OrganizationId_js_1 = require("../../../commons/types/OrganizationId.js");
|
|
40
|
+
exports.GetAutopilotTokenRequest = core.serialization.object({
|
|
41
|
+
organizationId: OrganizationId_js_1.OrganizationId,
|
|
42
|
+
githubOwner: core.serialization.string().optional(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { OrganizationId } from "../../../commons/types/OrganizationId.js";
|
|
5
|
+
export declare const GetJwtRequest: core.serialization.Schema<serializers.GetJwtRequest.Raw, FernVenusApi.GetJwtRequest>;
|
|
6
|
+
export declare namespace GetJwtRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizationId: OrganizationId.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.GetJwtRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const OrganizationId_js_1 = require("../../../commons/types/OrganizationId.js");
|
|
40
|
+
exports.GetJwtRequest = core.serialization.object({
|
|
41
|
+
organizationId: OrganizationId_js_1.OrganizationId,
|
|
42
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetJwtRequest = exports.GetAutopilotTokenRequest = void 0;
|
|
4
|
+
var GetAutopilotTokenRequest_js_1 = require("./GetAutopilotTokenRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "GetAutopilotTokenRequest", { enumerable: true, get: function () { return GetAutopilotTokenRequest_js_1.GetAutopilotTokenRequest; } });
|
|
6
|
+
var GetJwtRequest_js_1 = require("./GetJwtRequest.js");
|
|
7
|
+
Object.defineProperty(exports, "GetJwtRequest", { enumerable: true, get: function () { return GetJwtRequest_js_1.GetJwtRequest; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * 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 JwtResponse: core.serialization.ObjectSchema<serializers.JwtResponse.Raw, FernVenusApi.JwtResponse>;
|
|
5
|
+
export declare namespace JwtResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
token: string;
|
|
8
|
+
expiresAt: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.JwtResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.JwtResponse = core.serialization.object({
|
|
40
|
+
token: core.serialization.string(),
|
|
41
|
+
expiresAt: core.serialization.date(),
|
|
42
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./JwtResponse.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./JwtResponse.js"), exports);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./apiKeys/client/requests/index.js";
|
|
2
2
|
export * as apiKeys from "./apiKeys/index.js";
|
|
3
3
|
export * from "./apiKeys/types/index.js";
|
|
4
|
+
export * from "./auth/client/requests/index.js";
|
|
5
|
+
export * as auth from "./auth/index.js";
|
|
6
|
+
export * from "./auth/types/index.js";
|
|
4
7
|
export * as commons from "./commons/index.js";
|
|
5
8
|
export * from "./commons/types/index.js";
|
|
6
9
|
export * from "./organization/client/requests/index.js";
|