@fern-api/venus-api-sdk 0.22.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +270 -0
- package/dist/cjs/BaseClient.d.ts +18 -6
- package/dist/cjs/BaseClient.js +59 -0
- package/dist/cjs/Client.d.ts +41 -18
- package/dist/cjs/Client.js +120 -18
- package/dist/cjs/api/client/healthHealthGet.d.ts +19 -0
- package/dist/cjs/api/client/healthHealthGet.js +55 -0
- package/dist/cjs/api/client/index.d.ts +2 -0
- package/dist/cjs/api/client/index.js +38 -0
- package/dist/cjs/api/client/metricsMetricsGet.d.ts +19 -0
- package/dist/cjs/api/client/metricsMetricsGet.js +55 -0
- package/dist/cjs/api/index.d.ts +2 -0
- package/dist/cjs/api/index.js +2 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +31 -49
- package/dist/cjs/api/resources/apiKeys/client/Client.js +99 -113
- package/dist/cjs/api/resources/apiKeys/client/create.d.ts +11 -15
- package/dist/cjs/api/resources/apiKeys/client/create.js +11 -20
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +11 -15
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +11 -20
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +11 -15
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +11 -20
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +4 -11
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +1 -6
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +1 -6
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +11 -15
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +11 -20
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +11 -15
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +11 -20
- package/dist/cjs/api/resources/apiKeys/index.d.ts +0 -1
- package/dist/cjs/api/resources/apiKeys/index.js +0 -1
- package/dist/cjs/api/resources/auth/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/auth/client/Client.js +305 -0
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +25 -0
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +66 -0
- package/dist/cjs/api/resources/auth/client/getJwt.d.ts +25 -0
- package/dist/cjs/api/resources/auth/client/getJwt.js +66 -0
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +25 -0
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +66 -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 +10 -0
- package/dist/cjs/api/resources/auth/client/requests/GetJwtRequest.d.ts +9 -0
- package/dist/cjs/api/resources/auth/client/requests/GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/auth/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/auth/index.d.ts +1 -0
- package/dist/cjs/api/resources/{commons → auth}/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +2 -6
- package/dist/cjs/api/resources/index.js +3 -7
- package/dist/cjs/api/resources/organization/client/Client.d.ts +81 -50
- package/dist/cjs/api/resources/organization/client/Client.js +416 -210
- package/dist/cjs/api/resources/organization/client/addUser.d.ts +11 -15
- package/dist/cjs/api/resources/organization/client/addUser.js +11 -20
- package/dist/cjs/api/resources/organization/client/create.d.ts +11 -15
- package/dist/cjs/api/resources/organization/client/create.js +11 -20
- package/dist/cjs/api/resources/organization/client/delete.d.ts +11 -15
- package/dist/cjs/api/resources/organization/client/delete.js +11 -20
- package/dist/cjs/api/resources/organization/client/get.d.ts +11 -10
- package/dist/cjs/api/resources/organization/client/get.js +11 -10
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +11 -10
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +11 -10
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +66 -0
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +6 -6
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +5 -5
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +66 -0
- package/dist/cjs/api/resources/organization/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/index.js +3 -1
- package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +11 -15
- package/dist/cjs/api/resources/organization/client/inviteUser.js +11 -20
- package/dist/cjs/api/resources/organization/client/isMember.d.ts +12 -6
- package/dist/cjs/api/resources/organization/client/isMember.js +16 -5
- package/dist/cjs/api/resources/organization/client/removeUser.d.ts +11 -15
- package/dist/cjs/api/resources/organization/client/removeUser.js +11 -20
- package/dist/cjs/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -3
- package/dist/cjs/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +7 -17
- package/dist/cjs/api/resources/organization/client/requests/DeleteOrganizationsOrgIdDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/organization/client/requests/GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest.d.ts +7 -0
- package/dist/cjs/api/resources/organization/client/requests/GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/organization/client/requests/GetOrganizationsOrgIdGetRequest.d.ts +10 -0
- package/dist/cjs/api/resources/organization/client/requests/GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +1 -2
- package/dist/cjs/api/resources/organization/client/requests/IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +1 -2
- package/dist/cjs/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +21 -33
- package/dist/cjs/api/resources/organization/client/requests/index.d.ts +6 -2
- package/dist/cjs/api/resources/organization/client/update.d.ts +11 -10
- package/dist/cjs/api/resources/organization/client/update.js +11 -10
- package/dist/cjs/api/resources/organization/index.d.ts +0 -1
- package/dist/cjs/api/resources/organization/index.js +0 -1
- package/dist/cjs/api/resources/registry/client/Client.d.ts +16 -17
- package/dist/cjs/api/resources/registry/client/Client.js +51 -55
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +11 -15
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +11 -20
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +11 -15
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +11 -20
- package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +3 -3
- package/dist/cjs/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +1 -2
- package/dist/cjs/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +1 -2
- package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +11 -15
- package/dist/cjs/api/resources/registry/client/revokeToken.js +11 -20
- package/dist/cjs/api/resources/registry/index.d.ts +0 -1
- package/dist/cjs/api/resources/registry/index.js +0 -1
- package/dist/cjs/api/resources/user/client/Client.d.ts +15 -16
- package/dist/cjs/api/resources/user/client/Client.js +77 -38
- package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +12 -6
- package/dist/cjs/api/resources/user/client/getMyOrganizations.js +16 -5
- package/dist/cjs/api/resources/user/client/getMyself.d.ts +6 -6
- package/dist/cjs/api/resources/user/client/getMyself.js +5 -5
- package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +12 -6
- package/dist/cjs/api/resources/user/client/linkAccounts.js +16 -5
- package/dist/{esm/api/resources/user/client/requests/GetUserOrganizationsRequest.d.mts → cjs/api/resources/user/client/requests/GetMyOrganizationsUsersOrganizationsGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/user/client/requests/LinkAccountsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/user/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/user/index.d.ts +0 -1
- package/dist/cjs/api/resources/user/index.js +0 -1
- package/dist/cjs/api/types/Active.d.ts +1 -0
- package/dist/cjs/api/types/CreateOrganizationResponse.d.ts +3 -0
- package/dist/cjs/api/types/CreateTokenResponse.d.ts +14 -0
- package/dist/cjs/api/types/Expired.d.ts +1 -0
- package/dist/cjs/api/types/HttpValidationError.d.ts +4 -0
- package/dist/cjs/api/types/JwtResponse.d.ts +18 -0
- package/dist/cjs/api/{resources/organization/types → types}/LightweightUser.d.ts +2 -2
- package/dist/cjs/api/types/LinkAccountsResponse.d.ts +4 -0
- package/dist/cjs/api/types/Maven.d.ts +4 -0
- package/dist/cjs/api/types/Maven.js +3 -0
- package/dist/cjs/api/types/MavenRegistryToken.js +3 -0
- package/dist/cjs/api/types/Npm.d.ts +3 -0
- package/dist/cjs/api/types/Npm.js +3 -0
- package/dist/cjs/api/types/NpmRegistryToken.js +3 -0
- package/dist/cjs/api/types/Organization.d.ts +22 -0
- package/dist/cjs/api/types/Organization.js +3 -0
- package/dist/cjs/api/types/OrganizationsPage.d.ts +4 -0
- package/dist/cjs/api/types/OrganizationsPage.js +3 -0
- package/dist/cjs/api/types/Pypi.d.ts +4 -0
- package/dist/cjs/api/types/Pypi.js +3 -0
- package/dist/cjs/api/types/PypiRegistryToken.js +3 -0
- package/dist/cjs/api/types/RegistryToken.d.ts +13 -0
- package/dist/cjs/api/types/RegistryToken.js +3 -0
- package/dist/cjs/api/types/RegistryTokens.d.ts +6 -0
- package/dist/cjs/api/types/RegistryTokens.js +3 -0
- package/dist/cjs/api/types/Revoked.d.ts +1 -0
- package/dist/cjs/api/types/Revoked.js +3 -0
- package/dist/cjs/api/types/TokenMetadata.d.ts +24 -0
- package/dist/cjs/api/types/TokenMetadata.js +3 -0
- package/dist/cjs/api/types/TokenStatus.d.ts +20 -0
- package/dist/cjs/api/types/TokenStatus.js +3 -0
- package/dist/cjs/api/types/User.d.ts +6 -0
- package/dist/cjs/api/types/User.js +3 -0
- package/dist/cjs/api/types/ValidationError.d.ts +8 -0
- package/dist/cjs/api/types/ValidationError.js +3 -0
- package/dist/cjs/api/types/ValidationErrorLocItem.d.ts +1 -0
- package/dist/cjs/api/types/ValidationErrorLocItem.js +3 -0
- package/dist/cjs/api/types/index.d.ts +24 -0
- package/dist/cjs/api/{resources/registry/types → types}/index.js +19 -0
- 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/{serialization/resources/commons → core/logging}/index.js +1 -1
- 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 +3 -3
- package/dist/cjs/index.js +7 -5
- package/dist/cjs/serialization/index.d.ts +1 -0
- package/dist/cjs/serialization/index.js +1 -0
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +3 -13
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.js +2 -33
- package/dist/cjs/serialization/resources/apiKeys/client/index.d.ts +0 -4
- package/dist/cjs/serialization/resources/apiKeys/client/index.js +1 -5
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +5 -6
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.js +3 -4
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/apiKeys/index.js +0 -1
- package/dist/cjs/serialization/resources/auth/client/getOrgForGithubOwner.d.ts +6 -0
- package/dist/cjs/serialization/resources/{commons/types/UserId.js → auth/client/getOrgForGithubOwner.js} +2 -2
- package/dist/cjs/serialization/resources/auth/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/auth/client/index.js +41 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.js +42 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.js +41 -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 +1 -0
- package/dist/cjs/serialization/resources/{commons/types → auth}/index.js +1 -2
- package/dist/cjs/serialization/resources/index.d.ts +3 -6
- package/dist/cjs/serialization/resources/index.js +4 -7
- package/dist/cjs/serialization/resources/organization/client/getOrgIdsFromToken.d.ts +2 -4
- package/dist/cjs/serialization/resources/organization/client/getOrgIdsFromToken.js +1 -2
- package/dist/cjs/serialization/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +6 -0
- package/dist/cjs/serialization/resources/{apiKeys/types/TokenId.js → organization/client/getPostmanTeamIdByOrgId.js} +2 -2
- package/dist/cjs/serialization/resources/organization/client/index.d.ts +1 -8
- package/dist/cjs/serialization/resources/organization/client/index.js +2 -9
- package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +4 -6
- package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +2 -4
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +9 -8
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +7 -6
- package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +3 -4
- package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +1 -2
- package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +3 -4
- package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +1 -2
- package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +19 -18
- package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +17 -16
- package/dist/cjs/serialization/resources/organization/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/organization/index.js +0 -1
- package/dist/cjs/serialization/resources/registry/client/hasRegistryPermission.d.ts +0 -11
- package/dist/cjs/serialization/resources/registry/client/hasRegistryPermission.js +1 -32
- package/dist/cjs/serialization/resources/registry/client/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/registry/client/index.js +1 -3
- package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +5 -6
- package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +3 -4
- package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +3 -4
- package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +1 -2
- package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +3 -4
- package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.js +1 -2
- package/dist/cjs/serialization/resources/registry/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/registry/index.js +0 -1
- package/dist/cjs/serialization/resources/user/client/index.d.ts +1 -0
- package/dist/cjs/{api/resources/commons/types → serialization/resources/user/client}/index.js +1 -2
- package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/user/{types → client/requests}/LinkAccountsRequest.js +2 -3
- package/dist/cjs/serialization/resources/user/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/user/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/user/index.d.ts +1 -1
- package/dist/cjs/serialization/resources/user/index.js +1 -1
- package/dist/cjs/serialization/types/Active.d.ts +7 -0
- package/dist/cjs/serialization/{resources/commons/types/OrganizationId.js → types/Active.js} +3 -3
- package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +9 -0
- package/dist/cjs/serialization/{resources/organization/types → types}/CreateOrganizationResponse.js +2 -3
- package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +10 -0
- package/dist/cjs/serialization/{resources/apiKeys/types → types}/CreateTokenResponse.js +2 -3
- package/dist/cjs/serialization/types/Expired.d.ts +7 -0
- package/dist/cjs/serialization/types/Expired.js +39 -0
- package/dist/cjs/serialization/types/HttpValidationError.d.ts +10 -0
- package/dist/cjs/serialization/types/HttpValidationError.js +42 -0
- package/dist/cjs/serialization/types/JwtResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/JwtResponse.js +42 -0
- package/dist/cjs/serialization/types/LightweightUser.d.ts +12 -0
- package/dist/cjs/serialization/{resources/organization/types → types}/LightweightUser.js +3 -3
- package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +10 -0
- package/dist/cjs/serialization/{resources/user/types → types}/LinkAccountsResponse.js +2 -3
- package/dist/cjs/serialization/types/Maven.d.ts +10 -0
- package/dist/cjs/serialization/types/Maven.js +42 -0
- package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +10 -0
- package/dist/cjs/serialization/{resources/registry/types → types}/MavenRegistryToken.js +1 -1
- package/dist/cjs/serialization/types/Npm.d.ts +9 -0
- package/dist/cjs/serialization/types/Npm.js +41 -0
- package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +9 -0
- package/dist/cjs/serialization/{resources/registry/types → types}/NpmRegistryToken.js +1 -1
- package/dist/cjs/serialization/{resources/organization/types → types}/Organization.d.ts +7 -7
- package/dist/cjs/serialization/{resources/organization/types → types}/Organization.js +4 -4
- package/dist/cjs/serialization/types/OrganizationsPage.d.ts +10 -0
- package/dist/cjs/serialization/{resources/user/types → types}/OrganizationsPage.js +3 -4
- package/dist/cjs/serialization/types/Pypi.d.ts +10 -0
- package/dist/cjs/serialization/types/Pypi.js +42 -0
- package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +10 -0
- package/dist/cjs/serialization/{resources/registry/types → types}/PypiRegistryToken.js +1 -1
- package/dist/cjs/serialization/types/RegistryToken.d.ts +19 -0
- package/dist/cjs/serialization/{resources/registry/types → types}/RegistryToken.js +7 -7
- package/dist/cjs/serialization/{resources/registry/types → types}/RegistryTokens.d.ts +4 -4
- package/dist/cjs/serialization/{resources/registry/types → types}/RegistryTokens.js +1 -1
- package/dist/cjs/serialization/types/Revoked.d.ts +7 -0
- package/dist/cjs/serialization/types/Revoked.js +39 -0
- package/dist/cjs/serialization/types/TokenMetadata.d.ts +14 -0
- package/dist/cjs/serialization/{resources/apiKeys/types → types}/TokenMetadata.js +4 -6
- package/dist/cjs/serialization/types/TokenStatus.d.ts +19 -0
- package/dist/cjs/serialization/{resources/apiKeys/types → types}/TokenStatus.js +7 -4
- package/dist/cjs/serialization/types/User.d.ts +12 -0
- package/dist/cjs/serialization/{resources/user/types → types}/User.js +4 -5
- package/dist/cjs/serialization/types/ValidationError.d.ts +14 -0
- package/dist/cjs/serialization/types/ValidationError.js +46 -0
- package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +7 -0
- package/dist/cjs/serialization/types/ValidationErrorLocItem.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +24 -0
- package/dist/cjs/serialization/{resources/registry/types → types}/index.js +19 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +18 -6
- package/dist/esm/BaseClient.mjs +24 -1
- package/dist/esm/Client.d.mts +41 -18
- package/dist/esm/Client.mjs +119 -17
- package/dist/esm/api/client/healthHealthGet.d.mts +19 -0
- package/dist/esm/api/client/healthHealthGet.mjs +19 -0
- package/dist/esm/api/client/index.d.mts +2 -0
- package/dist/esm/api/client/index.mjs +2 -0
- package/dist/esm/api/client/metricsMetricsGet.d.mts +19 -0
- package/dist/esm/api/client/metricsMetricsGet.mjs +19 -0
- package/dist/esm/api/index.d.mts +2 -0
- package/dist/esm/api/index.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +31 -49
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +98 -112
- package/dist/esm/api/resources/apiKeys/client/create.d.mts +11 -15
- package/dist/esm/api/resources/apiKeys/client/create.mjs +11 -20
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +11 -15
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +11 -20
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +11 -15
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +11 -20
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +4 -11
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +1 -6
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +1 -6
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +11 -15
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +11 -20
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +11 -15
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +11 -20
- package/dist/esm/api/resources/apiKeys/index.d.mts +0 -1
- package/dist/esm/api/resources/apiKeys/index.mjs +0 -1
- package/dist/esm/api/resources/auth/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/auth/client/Client.mjs +268 -0
- package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +25 -0
- package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +30 -0
- package/dist/esm/api/resources/auth/client/getJwt.d.mts +25 -0
- package/dist/esm/api/resources/auth/client/getJwt.mjs +30 -0
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +25 -0
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +30 -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 +10 -0
- package/dist/esm/api/resources/auth/client/requests/GetJwtRequest.d.mts +9 -0
- package/dist/esm/api/resources/auth/client/requests/GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/auth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/auth/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -6
- package/dist/esm/api/resources/index.mjs +2 -6
- package/dist/esm/api/resources/organization/client/Client.d.mts +81 -50
- package/dist/esm/api/resources/organization/client/Client.mjs +415 -209
- package/dist/esm/api/resources/organization/client/addUser.d.mts +11 -15
- package/dist/esm/api/resources/organization/client/addUser.mjs +11 -20
- package/dist/esm/api/resources/organization/client/create.d.mts +11 -15
- package/dist/esm/api/resources/organization/client/create.mjs +11 -20
- package/dist/esm/api/resources/organization/client/delete.d.mts +11 -15
- package/dist/esm/api/resources/organization/client/delete.mjs +11 -20
- package/dist/esm/api/resources/organization/client/get.d.mts +11 -10
- package/dist/esm/api/resources/organization/client/get.mjs +11 -10
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +11 -10
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +11 -10
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +30 -0
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +6 -6
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +5 -5
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +30 -0
- package/dist/esm/api/resources/organization/client/index.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/index.mjs +2 -0
- package/dist/esm/api/resources/organization/client/inviteUser.d.mts +11 -15
- package/dist/esm/api/resources/organization/client/inviteUser.mjs +11 -20
- package/dist/esm/api/resources/organization/client/isMember.d.mts +12 -6
- package/dist/esm/api/resources/organization/client/isMember.mjs +16 -5
- package/dist/esm/api/resources/organization/client/removeUser.d.mts +11 -15
- package/dist/esm/api/resources/organization/client/removeUser.mjs +11 -20
- package/dist/esm/api/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -3
- package/dist/esm/api/resources/organization/client/requests/CreateOrganizationRequest.d.mts +7 -17
- package/dist/esm/api/resources/organization/client/requests/DeleteOrganizationsOrgIdDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/organization/client/requests/GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest.d.mts +7 -0
- package/dist/esm/api/resources/organization/client/requests/GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/organization/client/requests/GetOrganizationsOrgIdGetRequest.d.mts +10 -0
- package/dist/esm/api/resources/organization/client/requests/GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +1 -2
- package/dist/esm/api/resources/organization/client/requests/IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +1 -2
- package/dist/esm/api/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +21 -33
- package/dist/esm/api/resources/organization/client/requests/index.d.mts +6 -2
- package/dist/esm/api/resources/organization/client/update.d.mts +11 -10
- package/dist/esm/api/resources/organization/client/update.mjs +11 -10
- package/dist/esm/api/resources/organization/index.d.mts +0 -1
- package/dist/esm/api/resources/organization/index.mjs +0 -1
- package/dist/esm/api/resources/registry/client/Client.d.mts +16 -17
- package/dist/esm/api/resources/registry/client/Client.mjs +50 -54
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +11 -15
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +11 -20
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +11 -15
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +11 -20
- package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +3 -3
- package/dist/esm/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +1 -2
- package/dist/esm/api/resources/registry/client/requests/RevokeTokenRequest.d.mts +1 -2
- package/dist/esm/api/resources/registry/client/revokeToken.d.mts +11 -15
- package/dist/esm/api/resources/registry/client/revokeToken.mjs +11 -20
- package/dist/esm/api/resources/registry/index.d.mts +0 -1
- package/dist/esm/api/resources/registry/index.mjs +0 -1
- package/dist/esm/api/resources/user/client/Client.d.mts +15 -16
- package/dist/esm/api/resources/user/client/Client.mjs +76 -37
- package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +12 -6
- package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +16 -5
- package/dist/esm/api/resources/user/client/getMyself.d.mts +6 -6
- package/dist/esm/api/resources/user/client/getMyself.mjs +5 -5
- package/dist/esm/api/resources/user/client/linkAccounts.d.mts +12 -6
- package/dist/esm/api/resources/user/client/linkAccounts.mjs +16 -5
- package/dist/{cjs/api/resources/user/client/requests/GetUserOrganizationsRequest.d.ts → esm/api/resources/user/client/requests/GetMyOrganizationsUsersOrganizationsGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/user/client/requests/LinkAccountsRequest.d.mts +9 -0
- package/dist/esm/api/resources/user/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/user/index.d.mts +0 -1
- package/dist/esm/api/resources/user/index.mjs +0 -1
- package/dist/esm/api/types/Active.d.mts +1 -0
- package/dist/esm/api/types/CreateOrganizationResponse.d.mts +3 -0
- package/dist/esm/api/types/CreateTokenResponse.d.mts +14 -0
- package/dist/esm/api/types/Expired.d.mts +1 -0
- package/dist/esm/api/types/HttpValidationError.d.mts +4 -0
- package/dist/esm/api/types/JwtResponse.d.mts +18 -0
- package/dist/esm/api/{resources/organization/types → types}/LightweightUser.d.mts +2 -2
- package/dist/esm/api/types/LinkAccountsResponse.d.mts +4 -0
- package/dist/esm/api/types/Maven.d.mts +4 -0
- package/dist/esm/api/types/Maven.mjs +2 -0
- package/dist/esm/api/types/MavenRegistryToken.mjs +2 -0
- package/dist/esm/api/types/Npm.d.mts +3 -0
- package/dist/esm/api/types/Npm.mjs +2 -0
- package/dist/esm/api/types/NpmRegistryToken.mjs +2 -0
- package/dist/esm/api/types/Organization.d.mts +22 -0
- package/dist/esm/api/types/Organization.mjs +2 -0
- package/dist/esm/api/types/OrganizationsPage.d.mts +4 -0
- package/dist/esm/api/types/OrganizationsPage.mjs +2 -0
- package/dist/esm/api/types/Pypi.d.mts +4 -0
- package/dist/esm/api/types/Pypi.mjs +2 -0
- package/dist/esm/api/types/PypiRegistryToken.mjs +2 -0
- package/dist/esm/api/types/RegistryToken.d.mts +13 -0
- package/dist/esm/api/types/RegistryToken.mjs +2 -0
- package/dist/esm/api/types/RegistryTokens.d.mts +6 -0
- package/dist/esm/api/types/RegistryTokens.mjs +2 -0
- package/dist/esm/api/types/Revoked.d.mts +1 -0
- package/dist/esm/api/types/Revoked.mjs +2 -0
- package/dist/esm/api/types/TokenMetadata.d.mts +24 -0
- package/dist/esm/api/types/TokenMetadata.mjs +2 -0
- package/dist/esm/api/types/TokenStatus.d.mts +20 -0
- package/dist/esm/api/types/TokenStatus.mjs +2 -0
- package/dist/esm/api/types/User.d.mts +6 -0
- package/dist/esm/api/types/User.mjs +2 -0
- package/dist/esm/api/types/ValidationError.d.mts +8 -0
- package/dist/esm/api/types/ValidationError.mjs +2 -0
- package/dist/esm/api/types/ValidationErrorLocItem.d.mts +1 -0
- package/dist/esm/api/types/ValidationErrorLocItem.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +24 -0
- package/dist/esm/api/types/index.mjs +24 -0
- 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 +3 -3
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/serialization/index.d.mts +1 -0
- package/dist/esm/serialization/index.mjs +1 -0
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +3 -13
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.mjs +1 -32
- package/dist/esm/serialization/resources/apiKeys/client/index.d.mts +0 -4
- package/dist/esm/serialization/resources/apiKeys/client/index.mjs +0 -4
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +5 -6
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +3 -4
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/index.d.mts +0 -1
- package/dist/esm/serialization/resources/apiKeys/index.mjs +0 -1
- package/dist/esm/serialization/resources/auth/client/getOrgForGithubOwner.d.mts +6 -0
- package/dist/esm/serialization/resources/{commons/types/OrganizationId.mjs → auth/client/getOrgForGithubOwner.mjs} +1 -1
- package/dist/esm/serialization/resources/auth/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/auth/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.mjs +6 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.mjs +5 -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 +1 -0
- package/dist/esm/serialization/resources/auth/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -6
- package/dist/esm/serialization/resources/index.mjs +3 -6
- package/dist/esm/serialization/resources/organization/client/getOrgIdsFromToken.d.mts +2 -4
- package/dist/esm/serialization/resources/organization/client/getOrgIdsFromToken.mjs +1 -2
- package/dist/esm/serialization/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +6 -0
- package/dist/esm/serialization/resources/{apiKeys/types/TokenId.mjs → organization/client/getPostmanTeamIdByOrgId.mjs} +1 -1
- package/dist/esm/serialization/resources/organization/client/index.d.mts +1 -8
- package/dist/esm/serialization/resources/organization/client/index.mjs +1 -8
- package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +4 -6
- package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.mjs +2 -4
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +9 -8
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs +7 -6
- package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +3 -4
- package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.mjs +1 -2
- package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +3 -4
- package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.mjs +1 -2
- package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +19 -18
- package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.mjs +17 -16
- package/dist/esm/serialization/resources/organization/index.d.mts +0 -1
- package/dist/esm/serialization/resources/organization/index.mjs +0 -1
- package/dist/esm/serialization/resources/registry/client/hasRegistryPermission.d.mts +0 -11
- package/dist/esm/serialization/resources/registry/client/hasRegistryPermission.mjs +0 -31
- package/dist/esm/serialization/resources/registry/client/index.d.mts +0 -2
- package/dist/esm/serialization/resources/registry/client/index.mjs +0 -2
- package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +5 -6
- package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.mjs +3 -4
- package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +3 -4
- package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.mjs +1 -2
- package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +3 -4
- package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.mjs +1 -2
- package/dist/esm/serialization/resources/registry/index.d.mts +0 -1
- package/dist/esm/serialization/resources/registry/index.mjs +0 -1
- package/dist/esm/serialization/resources/user/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/user/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/user/{types → client/requests}/LinkAccountsRequest.mjs +2 -3
- package/dist/esm/serialization/resources/user/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/user/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/user/index.d.mts +1 -1
- package/dist/esm/serialization/resources/user/index.mjs +1 -1
- package/dist/esm/serialization/types/Active.d.mts +7 -0
- package/dist/esm/serialization/types/Active.mjs +3 -0
- package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +9 -0
- package/dist/esm/serialization/types/CreateOrganizationResponse.mjs +5 -0
- package/dist/esm/serialization/types/CreateTokenResponse.d.mts +10 -0
- package/dist/esm/serialization/{resources/apiKeys/types → types}/CreateTokenResponse.mjs +2 -3
- package/dist/esm/serialization/types/Expired.d.mts +7 -0
- package/dist/esm/serialization/types/Expired.mjs +3 -0
- package/dist/esm/serialization/types/HttpValidationError.d.mts +10 -0
- package/dist/esm/serialization/types/HttpValidationError.mjs +6 -0
- package/dist/esm/serialization/types/JwtResponse.d.mts +10 -0
- package/dist/esm/serialization/types/JwtResponse.mjs +6 -0
- package/dist/esm/serialization/types/LightweightUser.d.mts +12 -0
- package/dist/esm/serialization/{resources/organization/types → types}/LightweightUser.mjs +3 -3
- package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +10 -0
- package/dist/esm/serialization/{resources/user/types → types}/LinkAccountsResponse.mjs +2 -3
- package/dist/esm/serialization/types/Maven.d.mts +10 -0
- package/dist/esm/serialization/types/Maven.mjs +6 -0
- package/dist/esm/serialization/types/MavenRegistryToken.d.mts +10 -0
- package/dist/esm/serialization/{resources/registry/types → types}/MavenRegistryToken.mjs +1 -1
- package/dist/esm/serialization/types/Npm.d.mts +9 -0
- package/dist/esm/serialization/types/Npm.mjs +5 -0
- package/dist/esm/serialization/types/NpmRegistryToken.d.mts +9 -0
- package/dist/esm/serialization/{resources/registry/types → types}/NpmRegistryToken.mjs +1 -1
- package/dist/esm/serialization/{resources/organization/types → types}/Organization.d.mts +7 -7
- package/dist/esm/serialization/{resources/organization/types → types}/Organization.mjs +4 -4
- package/dist/esm/serialization/types/OrganizationsPage.d.mts +10 -0
- package/dist/esm/serialization/types/OrganizationsPage.mjs +6 -0
- package/dist/esm/serialization/types/Pypi.d.mts +10 -0
- package/dist/esm/serialization/types/Pypi.mjs +6 -0
- package/dist/esm/serialization/types/PypiRegistryToken.d.mts +10 -0
- package/dist/esm/serialization/{resources/registry/types → types}/PypiRegistryToken.mjs +1 -1
- package/dist/esm/serialization/types/RegistryToken.d.mts +19 -0
- package/dist/esm/serialization/types/RegistryToken.mjs +15 -0
- package/dist/esm/serialization/{resources/registry/types → types}/RegistryTokens.d.mts +4 -4
- package/dist/esm/serialization/{resources/registry/types → types}/RegistryTokens.mjs +1 -1
- package/dist/esm/serialization/types/Revoked.d.mts +7 -0
- package/dist/esm/serialization/types/Revoked.mjs +3 -0
- package/dist/esm/serialization/types/TokenMetadata.d.mts +14 -0
- package/dist/esm/serialization/types/TokenMetadata.mjs +10 -0
- package/dist/esm/serialization/types/TokenStatus.d.mts +19 -0
- package/dist/esm/serialization/types/TokenStatus.mjs +15 -0
- package/dist/esm/serialization/types/User.d.mts +12 -0
- package/dist/esm/serialization/{resources/user/types → types}/User.mjs +4 -5
- package/dist/esm/serialization/types/ValidationError.d.mts +14 -0
- package/dist/esm/serialization/types/ValidationError.mjs +10 -0
- package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +7 -0
- package/dist/esm/serialization/types/ValidationErrorLocItem.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +24 -0
- package/dist/esm/serialization/types/index.mjs +24 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +8 -3
- package/reference.md +1530 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -12
- package/dist/cjs/api/resources/apiKeys/types/TokenId.d.ts +0 -5
- package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.d.ts +0 -19
- package/dist/cjs/api/resources/apiKeys/types/TokenStatus.d.ts +0 -29
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/apiKeys/types/index.js +0 -20
- package/dist/cjs/api/resources/commons/index.d.ts +0 -1
- package/dist/cjs/api/resources/commons/types/OrganizationId.d.ts +0 -1
- package/dist/cjs/api/resources/commons/types/UserId.d.ts +0 -1
- package/dist/cjs/api/resources/commons/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +0 -7
- package/dist/cjs/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +0 -7
- package/dist/cjs/api/resources/organization/types/CreateOrganizationResponse.d.ts +0 -9
- package/dist/cjs/api/resources/organization/types/Organization.d.ts +0 -34
- package/dist/cjs/api/resources/organization/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/organization/types/index.js +0 -19
- package/dist/cjs/api/resources/registry/types/RegistryToken.d.ts +0 -13
- package/dist/cjs/api/resources/registry/types/RegistryTokens.d.ts +0 -6
- package/dist/cjs/api/resources/registry/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/user/types/LinkAccountsRequest.d.ts +0 -4
- package/dist/cjs/api/resources/user/types/LinkAccountsResponse.d.ts +0 -5
- package/dist/cjs/api/resources/user/types/OrganizationsPage.d.ts +0 -5
- package/dist/cjs/api/resources/user/types/User.d.ts +0 -7
- package/dist/cjs/api/resources/user/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/user/types/index.js +0 -20
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/cjs/environments.d.ts +0 -4
- package/dist/cjs/environments.js +0 -7
- package/dist/cjs/serialization/resources/apiKeys/client/create.d.ts +0 -13
- package/dist/cjs/serialization/resources/apiKeys/client/create.js +0 -69
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.d.ts +0 -13
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.js +0 -69
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.d.ts +0 -13
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.js +0 -69
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.d.ts +0 -13
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.js +0 -69
- package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -11
- package/dist/cjs/serialization/resources/apiKeys/types/TokenId.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +0 -4
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +0 -20
- package/dist/cjs/serialization/resources/commons/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/commons/types/OrganizationId.d.ts +0 -7
- package/dist/cjs/serialization/resources/commons/types/UserId.d.ts +0 -7
- package/dist/cjs/serialization/resources/commons/types/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/organization/client/addUser.d.ts +0 -13
- package/dist/cjs/serialization/resources/organization/client/addUser.js +0 -69
- package/dist/cjs/serialization/resources/organization/client/create.d.ts +0 -13
- package/dist/cjs/serialization/resources/organization/client/create.js +0 -69
- package/dist/cjs/serialization/resources/organization/client/delete.d.ts +0 -13
- package/dist/cjs/serialization/resources/organization/client/delete.js +0 -69
- package/dist/cjs/serialization/resources/organization/client/get.d.ts +0 -10
- package/dist/cjs/serialization/resources/organization/client/get.js +0 -66
- package/dist/cjs/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -10
- package/dist/cjs/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +0 -66
- package/dist/cjs/serialization/resources/organization/client/inviteUser.d.ts +0 -13
- package/dist/cjs/serialization/resources/organization/client/inviteUser.js +0 -69
- package/dist/cjs/serialization/resources/organization/client/removeUser.d.ts +0 -13
- package/dist/cjs/serialization/resources/organization/client/removeUser.js +0 -69
- package/dist/cjs/serialization/resources/organization/client/update.d.ts +0 -10
- package/dist/cjs/serialization/resources/organization/client/update.js +0 -66
- package/dist/cjs/serialization/resources/organization/types/CreateOrganizationResponse.d.ts +0 -10
- package/dist/cjs/serialization/resources/organization/types/LightweightUser.d.ts +0 -12
- package/dist/cjs/serialization/resources/organization/types/index.d.ts +0 -3
- package/dist/cjs/serialization/resources/organization/types/index.js +0 -19
- package/dist/cjs/serialization/resources/registry/client/generateRegistryTokens.d.ts +0 -13
- package/dist/cjs/serialization/resources/registry/client/generateRegistryTokens.js +0 -69
- package/dist/cjs/serialization/resources/registry/client/revokeToken.d.ts +0 -13
- package/dist/cjs/serialization/resources/registry/client/revokeToken.js +0 -69
- package/dist/cjs/serialization/resources/registry/types/MavenRegistryToken.d.ts +0 -10
- package/dist/cjs/serialization/resources/registry/types/NpmRegistryToken.d.ts +0 -9
- package/dist/cjs/serialization/resources/registry/types/PypiRegistryToken.d.ts +0 -10
- package/dist/cjs/serialization/resources/registry/types/RegistryToken.d.ts +0 -19
- package/dist/cjs/serialization/resources/registry/types/index.d.ts +0 -5
- package/dist/cjs/serialization/resources/user/types/LinkAccountsRequest.d.ts +0 -10
- package/dist/cjs/serialization/resources/user/types/LinkAccountsResponse.d.ts +0 -11
- package/dist/cjs/serialization/resources/user/types/OrganizationsPage.d.ts +0 -11
- package/dist/cjs/serialization/resources/user/types/User.d.ts +0 -13
- package/dist/cjs/serialization/resources/user/types/index.d.ts +0 -4
- package/dist/cjs/serialization/resources/user/types/index.js +0 -20
- package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -12
- package/dist/esm/api/resources/apiKeys/types/TokenId.d.mts +0 -5
- package/dist/esm/api/resources/apiKeys/types/TokenMetadata.d.mts +0 -19
- package/dist/esm/api/resources/apiKeys/types/TokenStatus.d.mts +0 -29
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +0 -4
- package/dist/esm/api/resources/apiKeys/types/index.mjs +0 -4
- package/dist/esm/api/resources/commons/index.d.mts +0 -1
- package/dist/esm/api/resources/commons/index.mjs +0 -1
- package/dist/esm/api/resources/commons/types/OrganizationId.d.mts +0 -1
- package/dist/esm/api/resources/commons/types/UserId.d.mts +0 -1
- package/dist/esm/api/resources/commons/types/index.d.mts +0 -2
- package/dist/esm/api/resources/commons/types/index.mjs +0 -2
- package/dist/esm/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.mts +0 -7
- package/dist/esm/api/resources/organization/client/requests/GetOrganizationRequest.d.mts +0 -7
- package/dist/esm/api/resources/organization/types/CreateOrganizationResponse.d.mts +0 -9
- package/dist/esm/api/resources/organization/types/Organization.d.mts +0 -34
- package/dist/esm/api/resources/organization/types/index.d.mts +0 -3
- package/dist/esm/api/resources/organization/types/index.mjs +0 -3
- package/dist/esm/api/resources/registry/types/RegistryToken.d.mts +0 -13
- package/dist/esm/api/resources/registry/types/RegistryTokens.d.mts +0 -6
- package/dist/esm/api/resources/registry/types/index.d.mts +0 -5
- package/dist/esm/api/resources/registry/types/index.mjs +0 -5
- package/dist/esm/api/resources/user/types/LinkAccountsRequest.d.mts +0 -4
- package/dist/esm/api/resources/user/types/LinkAccountsResponse.d.mts +0 -5
- package/dist/esm/api/resources/user/types/OrganizationsPage.d.mts +0 -5
- package/dist/esm/api/resources/user/types/User.d.mts +0 -7
- package/dist/esm/api/resources/user/types/index.d.mts +0 -4
- package/dist/esm/api/resources/user/types/index.mjs +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/environments.d.mts +0 -4
- package/dist/esm/environments.mjs +0 -4
- package/dist/esm/serialization/resources/apiKeys/client/create.d.mts +0 -13
- package/dist/esm/serialization/resources/apiKeys/client/create.mjs +0 -33
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.d.mts +0 -13
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.mjs +0 -33
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.d.mts +0 -13
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.mjs +0 -33
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.d.mts +0 -13
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.mjs +0 -33
- package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -11
- package/dist/esm/serialization/resources/apiKeys/types/TokenId.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.mjs +0 -12
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.mjs +0 -12
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +0 -4
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +0 -4
- package/dist/esm/serialization/resources/commons/index.d.mts +0 -1
- package/dist/esm/serialization/resources/commons/index.mjs +0 -1
- package/dist/esm/serialization/resources/commons/types/OrganizationId.d.mts +0 -7
- package/dist/esm/serialization/resources/commons/types/UserId.d.mts +0 -7
- package/dist/esm/serialization/resources/commons/types/UserId.mjs +0 -3
- package/dist/esm/serialization/resources/commons/types/index.d.mts +0 -2
- package/dist/esm/serialization/resources/commons/types/index.mjs +0 -2
- package/dist/esm/serialization/resources/organization/client/addUser.d.mts +0 -13
- package/dist/esm/serialization/resources/organization/client/addUser.mjs +0 -33
- package/dist/esm/serialization/resources/organization/client/create.d.mts +0 -13
- package/dist/esm/serialization/resources/organization/client/create.mjs +0 -33
- package/dist/esm/serialization/resources/organization/client/delete.d.mts +0 -13
- package/dist/esm/serialization/resources/organization/client/delete.mjs +0 -33
- package/dist/esm/serialization/resources/organization/client/get.d.mts +0 -10
- package/dist/esm/serialization/resources/organization/client/get.mjs +0 -30
- package/dist/esm/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +0 -10
- package/dist/esm/serialization/resources/organization/client/getMyOrganizationFromScopedToken.mjs +0 -30
- package/dist/esm/serialization/resources/organization/client/inviteUser.d.mts +0 -13
- package/dist/esm/serialization/resources/organization/client/inviteUser.mjs +0 -33
- package/dist/esm/serialization/resources/organization/client/removeUser.d.mts +0 -13
- package/dist/esm/serialization/resources/organization/client/removeUser.mjs +0 -33
- package/dist/esm/serialization/resources/organization/client/update.d.mts +0 -10
- package/dist/esm/serialization/resources/organization/client/update.mjs +0 -30
- package/dist/esm/serialization/resources/organization/types/CreateOrganizationResponse.d.mts +0 -10
- package/dist/esm/serialization/resources/organization/types/CreateOrganizationResponse.mjs +0 -6
- package/dist/esm/serialization/resources/organization/types/LightweightUser.d.mts +0 -12
- package/dist/esm/serialization/resources/organization/types/index.d.mts +0 -3
- package/dist/esm/serialization/resources/organization/types/index.mjs +0 -3
- package/dist/esm/serialization/resources/registry/client/generateRegistryTokens.d.mts +0 -13
- package/dist/esm/serialization/resources/registry/client/generateRegistryTokens.mjs +0 -33
- package/dist/esm/serialization/resources/registry/client/revokeToken.d.mts +0 -13
- package/dist/esm/serialization/resources/registry/client/revokeToken.mjs +0 -33
- package/dist/esm/serialization/resources/registry/types/MavenRegistryToken.d.mts +0 -10
- package/dist/esm/serialization/resources/registry/types/NpmRegistryToken.d.mts +0 -9
- package/dist/esm/serialization/resources/registry/types/PypiRegistryToken.d.mts +0 -10
- package/dist/esm/serialization/resources/registry/types/RegistryToken.d.mts +0 -19
- package/dist/esm/serialization/resources/registry/types/RegistryToken.mjs +0 -15
- package/dist/esm/serialization/resources/registry/types/index.d.mts +0 -5
- package/dist/esm/serialization/resources/registry/types/index.mjs +0 -5
- package/dist/esm/serialization/resources/user/types/LinkAccountsRequest.d.mts +0 -10
- package/dist/esm/serialization/resources/user/types/LinkAccountsResponse.d.mts +0 -11
- package/dist/esm/serialization/resources/user/types/OrganizationsPage.d.mts +0 -11
- package/dist/esm/serialization/resources/user/types/OrganizationsPage.mjs +0 -7
- package/dist/esm/serialization/resources/user/types/User.d.mts +0 -13
- package/dist/esm/serialization/resources/user/types/index.d.mts +0 -4
- package/dist/esm/serialization/resources/user/types/index.mjs +0 -4
- /package/dist/cjs/api/resources/apiKeys/{types/CreateTokenResponse.js → client/requests/GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/{types/TokenId.js → client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/TokenMetadata.js → auth/client/requests/GetAutopilotTokenRequest.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/TokenStatus.js → auth/client/requests/GetJwtRequest.js} +0 -0
- /package/dist/cjs/api/resources/{commons/types/OrganizationId.js → auth/client/requests/GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{commons/types/UserId.js → organization/client/requests/DeleteOrganizationsOrgIdDeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/organization/client/requests/{GetMyOrganizationFromScopedToken.js → GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest.js} +0 -0
- /package/dist/cjs/api/resources/organization/client/requests/{GetOrganizationRequest.js → GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/organization/{types/CreateOrganizationResponse.js → client/requests/GetOrganizationsOrgIdGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/organization/{types/LightweightUser.js → client/requests/GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/organization/{types/Organization.js → client/requests/IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.js} +0 -0
- /package/dist/cjs/api/resources/{registry/types/MavenRegistryToken.js → user/client/requests/GetMyOrganizationsUsersOrganizationsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/user/{types → client/requests}/LinkAccountsRequest.js +0 -0
- /package/dist/cjs/api/{resources/registry/types/NpmRegistryToken.js → types/Active.js} +0 -0
- /package/dist/cjs/api/{resources/registry/types/PypiRegistryToken.js → types/CreateOrganizationResponse.js} +0 -0
- /package/dist/cjs/api/{resources/registry/types/RegistryToken.js → types/CreateTokenResponse.js} +0 -0
- /package/dist/cjs/api/{resources/registry/types/RegistryTokens.js → types/Expired.js} +0 -0
- /package/dist/cjs/api/{resources/user/client/requests/GetUserOrganizationsRequest.js → types/HttpValidationError.js} +0 -0
- /package/dist/cjs/api/{resources/user/types/LinkAccountsResponse.js → types/JwtResponse.js} +0 -0
- /package/dist/cjs/api/{resources/user/types/OrganizationsPage.js → types/LightweightUser.js} +0 -0
- /package/dist/cjs/api/{resources/user/types/User.js → types/LinkAccountsResponse.js} +0 -0
- /package/dist/cjs/api/{resources/registry/types → types}/MavenRegistryToken.d.ts +0 -0
- /package/dist/cjs/api/{resources/registry/types → types}/NpmRegistryToken.d.ts +0 -0
- /package/dist/cjs/api/{resources/registry/types → types}/PypiRegistryToken.d.ts +0 -0
- /package/dist/esm/api/resources/apiKeys/{types/CreateTokenResponse.mjs → client/requests/GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/{types/TokenId.mjs → client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/TokenMetadata.mjs → auth/client/requests/GetAutopilotTokenRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/TokenStatus.mjs → auth/client/requests/GetJwtRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{commons/types/OrganizationId.mjs → auth/client/requests/GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{commons/types/UserId.mjs → organization/client/requests/DeleteOrganizationsOrgIdDeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/organization/client/requests/{GetMyOrganizationFromScopedToken.mjs → GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest.mjs} +0 -0
- /package/dist/esm/api/resources/organization/client/requests/{GetOrganizationRequest.mjs → GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/organization/{types/CreateOrganizationResponse.mjs → client/requests/GetOrganizationsOrgIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/organization/{types/LightweightUser.mjs → client/requests/GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/organization/{types/Organization.mjs → client/requests/IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{registry/types/MavenRegistryToken.mjs → user/client/requests/GetMyOrganizationsUsersOrganizationsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/user/{types → client/requests}/LinkAccountsRequest.mjs +0 -0
- /package/dist/esm/api/{resources/registry/types/NpmRegistryToken.mjs → types/Active.mjs} +0 -0
- /package/dist/esm/api/{resources/registry/types/PypiRegistryToken.mjs → types/CreateOrganizationResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/registry/types/RegistryToken.mjs → types/CreateTokenResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/registry/types/RegistryTokens.mjs → types/Expired.mjs} +0 -0
- /package/dist/esm/api/{resources/user/client/requests/GetUserOrganizationsRequest.mjs → types/HttpValidationError.mjs} +0 -0
- /package/dist/esm/api/{resources/user/types/LinkAccountsResponse.mjs → types/JwtResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/user/types/OrganizationsPage.mjs → types/LightweightUser.mjs} +0 -0
- /package/dist/esm/api/{resources/user/types/User.mjs → types/LinkAccountsResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/registry/types → types}/MavenRegistryToken.d.mts +0 -0
- /package/dist/esm/api/{resources/registry/types → types}/NpmRegistryToken.d.mts +0 -0
- /package/dist/esm/api/{resources/registry/types → types}/PypiRegistryToken.d.mts +0 -0
|
@@ -8,18 +8,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
12
24
|
import * as core from "../../../../core/index.mjs";
|
|
13
|
-
import * as environments from "../../../../environments.mjs";
|
|
14
25
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
15
|
-
import * as
|
|
16
|
-
export class
|
|
17
|
-
constructor(
|
|
18
|
-
this._options =
|
|
26
|
+
import * as FernApi from "../../../index.mjs";
|
|
27
|
+
export class OrganizationClient {
|
|
28
|
+
constructor(options) {
|
|
29
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
30
|
}
|
|
20
31
|
/**
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
32
|
+
* @param {FernApi.CreateOrganizationRequest} request
|
|
33
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
34
|
*
|
|
24
35
|
* @example
|
|
25
36
|
* await client.organization.create({
|
|
@@ -31,10 +42,11 @@ export class Organization {
|
|
|
31
42
|
}
|
|
32
43
|
__create(request, requestOptions) {
|
|
33
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
35
|
-
const
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
46
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
47
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
36
48
|
const _response = yield core.fetcher({
|
|
37
|
-
url: core.url.join((
|
|
49
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/create"),
|
|
38
50
|
method: "POST",
|
|
39
51
|
headers: _headers,
|
|
40
52
|
contentType: "application/json",
|
|
@@ -44,9 +56,11 @@ export class Organization {
|
|
|
44
56
|
unrecognizedObjectKeys: "strip",
|
|
45
57
|
omitUndefined: true,
|
|
46
58
|
}),
|
|
47
|
-
timeoutMs: ((
|
|
48
|
-
maxRetries: (
|
|
59
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
60
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
49
61
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
62
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
63
|
+
logging: this._options.logging,
|
|
50
64
|
});
|
|
51
65
|
if (_response.ok) {
|
|
52
66
|
return {
|
|
@@ -66,19 +80,18 @@ export class Organization {
|
|
|
66
80
|
};
|
|
67
81
|
}
|
|
68
82
|
if (_response.error.reason === "status-code") {
|
|
69
|
-
switch (
|
|
70
|
-
case
|
|
71
|
-
case "OrganizationAlreadyExistsError":
|
|
83
|
+
switch (_response.error.statusCode) {
|
|
84
|
+
case 422:
|
|
72
85
|
return {
|
|
73
86
|
data: {
|
|
74
87
|
ok: false,
|
|
75
|
-
error:
|
|
88
|
+
error: FernApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
76
89
|
unrecognizedObjectKeys: "passthrough",
|
|
77
90
|
allowUnrecognizedUnionMembers: true,
|
|
78
91
|
allowUnrecognizedEnumValues: true,
|
|
79
92
|
skipValidation: true,
|
|
80
93
|
breadcrumbsPrefix: ["response"],
|
|
81
|
-
}),
|
|
94
|
+
})),
|
|
82
95
|
rawResponse: _response.rawResponse,
|
|
83
96
|
},
|
|
84
97
|
rawResponse: _response.rawResponse,
|
|
@@ -88,7 +101,7 @@ export class Organization {
|
|
|
88
101
|
return {
|
|
89
102
|
data: {
|
|
90
103
|
ok: false,
|
|
91
|
-
error:
|
|
104
|
+
error: FernApi.organization.create.Error._unknown(_response.error),
|
|
92
105
|
rawResponse: _response.rawResponse,
|
|
93
106
|
},
|
|
94
107
|
rawResponse: _response.rawResponse,
|
|
@@ -96,34 +109,39 @@ export class Organization {
|
|
|
96
109
|
});
|
|
97
110
|
}
|
|
98
111
|
/**
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
|
+
* @param {FernApi.UpdateOrganizationRequest} request
|
|
113
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
114
|
*
|
|
103
115
|
* @example
|
|
104
|
-
* await client.organization.update(
|
|
116
|
+
* await client.organization.update({
|
|
117
|
+
* orgId: "org_id"
|
|
118
|
+
* })
|
|
105
119
|
*/
|
|
106
|
-
update(
|
|
107
|
-
return core.HttpResponsePromise.fromPromise(this.__update(
|
|
120
|
+
update(request, requestOptions) {
|
|
121
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
108
122
|
}
|
|
109
|
-
__update(
|
|
110
|
-
return __awaiter(this,
|
|
111
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
112
|
-
const
|
|
123
|
+
__update(request, requestOptions) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
126
|
+
const { orgId } = request, _body = __rest(request, ["orgId"]);
|
|
127
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
128
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
113
129
|
const _response = yield core.fetcher({
|
|
114
|
-
url: core.url.join((
|
|
130
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/update`),
|
|
115
131
|
method: "POST",
|
|
116
132
|
headers: _headers,
|
|
117
133
|
contentType: "application/json",
|
|
118
134
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
119
135
|
requestType: "json",
|
|
120
|
-
body: serializers.UpdateOrganizationRequest.jsonOrThrow(
|
|
136
|
+
body: serializers.UpdateOrganizationRequest.jsonOrThrow(_body, {
|
|
121
137
|
unrecognizedObjectKeys: "strip",
|
|
122
138
|
omitUndefined: true,
|
|
123
139
|
}),
|
|
124
|
-
timeoutMs: ((
|
|
125
|
-
maxRetries: (
|
|
140
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
141
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
126
142
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
144
|
+
logging: this._options.logging,
|
|
127
145
|
});
|
|
128
146
|
if (_response.ok) {
|
|
129
147
|
return {
|
|
@@ -137,18 +155,18 @@ export class Organization {
|
|
|
137
155
|
};
|
|
138
156
|
}
|
|
139
157
|
if (_response.error.reason === "status-code") {
|
|
140
|
-
switch (
|
|
141
|
-
case
|
|
158
|
+
switch (_response.error.statusCode) {
|
|
159
|
+
case 422:
|
|
142
160
|
return {
|
|
143
161
|
data: {
|
|
144
162
|
ok: false,
|
|
145
|
-
error:
|
|
163
|
+
error: FernApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
146
164
|
unrecognizedObjectKeys: "passthrough",
|
|
147
165
|
allowUnrecognizedUnionMembers: true,
|
|
148
166
|
allowUnrecognizedEnumValues: true,
|
|
149
167
|
skipValidation: true,
|
|
150
168
|
breadcrumbsPrefix: ["response"],
|
|
151
|
-
}),
|
|
169
|
+
})),
|
|
152
170
|
rawResponse: _response.rawResponse,
|
|
153
171
|
},
|
|
154
172
|
rawResponse: _response.rawResponse,
|
|
@@ -158,7 +176,7 @@ export class Organization {
|
|
|
158
176
|
return {
|
|
159
177
|
data: {
|
|
160
178
|
ok: false,
|
|
161
|
-
error:
|
|
179
|
+
error: FernApi.organization.update.Error._unknown(_response.error),
|
|
162
180
|
rawResponse: _response.rawResponse,
|
|
163
181
|
},
|
|
164
182
|
rawResponse: _response.rawResponse,
|
|
@@ -166,33 +184,36 @@ export class Organization {
|
|
|
166
184
|
});
|
|
167
185
|
}
|
|
168
186
|
/**
|
|
169
|
-
* @param {
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
|
+
* @param {FernApi.GetOrganizationsOrgIdGetRequest} request
|
|
188
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
189
|
*
|
|
173
190
|
* @example
|
|
174
|
-
* await client.organization.get(
|
|
191
|
+
* await client.organization.get({
|
|
192
|
+
* orgId: "org_id"
|
|
193
|
+
* })
|
|
175
194
|
*/
|
|
176
|
-
get(
|
|
177
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
195
|
+
get(request, requestOptions) {
|
|
196
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
178
197
|
}
|
|
179
|
-
__get(
|
|
180
|
-
return __awaiter(this,
|
|
181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
182
|
-
const { shouldIncludeFernUsers } = request;
|
|
183
|
-
const _queryParams = {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
198
|
+
__get(request, requestOptions) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
201
|
+
const { orgId, shouldIncludeFernUsers } = request;
|
|
202
|
+
const _queryParams = {
|
|
203
|
+
shouldIncludeFernUsers,
|
|
204
|
+
};
|
|
205
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
206
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
188
207
|
const _response = yield core.fetcher({
|
|
189
|
-
url: core.url.join((
|
|
208
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
|
|
190
209
|
method: "GET",
|
|
191
210
|
headers: _headers,
|
|
192
211
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
193
|
-
timeoutMs: ((
|
|
194
|
-
maxRetries: (
|
|
212
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
213
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
195
214
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
215
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
216
|
+
logging: this._options.logging,
|
|
196
217
|
});
|
|
197
218
|
if (_response.ok) {
|
|
198
219
|
return {
|
|
@@ -212,18 +233,18 @@ export class Organization {
|
|
|
212
233
|
};
|
|
213
234
|
}
|
|
214
235
|
if (_response.error.reason === "status-code") {
|
|
215
|
-
switch (
|
|
216
|
-
case
|
|
236
|
+
switch (_response.error.statusCode) {
|
|
237
|
+
case 422:
|
|
217
238
|
return {
|
|
218
239
|
data: {
|
|
219
240
|
ok: false,
|
|
220
|
-
error:
|
|
241
|
+
error: FernApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
221
242
|
unrecognizedObjectKeys: "passthrough",
|
|
222
243
|
allowUnrecognizedUnionMembers: true,
|
|
223
244
|
allowUnrecognizedEnumValues: true,
|
|
224
245
|
skipValidation: true,
|
|
225
246
|
breadcrumbsPrefix: ["response"],
|
|
226
|
-
}),
|
|
247
|
+
})),
|
|
227
248
|
rawResponse: _response.rawResponse,
|
|
228
249
|
},
|
|
229
250
|
rawResponse: _response.rawResponse,
|
|
@@ -233,7 +254,7 @@ export class Organization {
|
|
|
233
254
|
return {
|
|
234
255
|
data: {
|
|
235
256
|
ok: false,
|
|
236
|
-
error:
|
|
257
|
+
error: FernApi.organization.get.Error._unknown(_response.error),
|
|
237
258
|
rawResponse: _response.rawResponse,
|
|
238
259
|
},
|
|
239
260
|
rawResponse: _response.rawResponse,
|
|
@@ -241,33 +262,112 @@ export class Organization {
|
|
|
241
262
|
});
|
|
242
263
|
}
|
|
243
264
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
265
|
+
* Deletes an organization. Only users with admin role can delete organizations.
|
|
266
|
+
*
|
|
267
|
+
* @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
268
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
246
269
|
*
|
|
247
270
|
* @example
|
|
248
|
-
* await client.organization.
|
|
271
|
+
* await client.organization.delete({
|
|
272
|
+
* orgId: "org_id"
|
|
273
|
+
* })
|
|
249
274
|
*/
|
|
250
|
-
|
|
251
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
275
|
+
delete(request, requestOptions) {
|
|
276
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
252
277
|
}
|
|
253
|
-
|
|
278
|
+
__delete(request, requestOptions) {
|
|
254
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
280
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
256
|
-
const
|
|
281
|
+
const { orgId } = request;
|
|
282
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
283
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
257
284
|
const _response = yield core.fetcher({
|
|
258
|
-
url: core.url.join((
|
|
259
|
-
method: "
|
|
285
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
|
|
286
|
+
method: "DELETE",
|
|
260
287
|
headers: _headers,
|
|
261
288
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
262
|
-
timeoutMs: ((
|
|
263
|
-
maxRetries: (
|
|
289
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
290
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
264
291
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
292
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
293
|
+
logging: this._options.logging,
|
|
265
294
|
});
|
|
266
295
|
if (_response.ok) {
|
|
267
296
|
return {
|
|
268
297
|
data: {
|
|
269
298
|
ok: true,
|
|
270
|
-
body:
|
|
299
|
+
body: undefined,
|
|
300
|
+
headers: _response.headers,
|
|
301
|
+
rawResponse: _response.rawResponse,
|
|
302
|
+
},
|
|
303
|
+
rawResponse: _response.rawResponse,
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
if (_response.error.reason === "status-code") {
|
|
307
|
+
switch (_response.error.statusCode) {
|
|
308
|
+
case 422:
|
|
309
|
+
return {
|
|
310
|
+
data: {
|
|
311
|
+
ok: false,
|
|
312
|
+
error: FernApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
313
|
+
unrecognizedObjectKeys: "passthrough",
|
|
314
|
+
allowUnrecognizedUnionMembers: true,
|
|
315
|
+
allowUnrecognizedEnumValues: true,
|
|
316
|
+
skipValidation: true,
|
|
317
|
+
breadcrumbsPrefix: ["response"],
|
|
318
|
+
})),
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
},
|
|
321
|
+
rawResponse: _response.rawResponse,
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
data: {
|
|
327
|
+
ok: false,
|
|
328
|
+
error: FernApi.organization.delete.Error._unknown(_response.error),
|
|
329
|
+
rawResponse: _response.rawResponse,
|
|
330
|
+
},
|
|
331
|
+
rawResponse: _response.rawResponse,
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Look up an organization by its associated Postman team ID.
|
|
337
|
+
*
|
|
338
|
+
* @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
339
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
|
+
*
|
|
341
|
+
* @example
|
|
342
|
+
* await client.organization.getOrgIdsByPostmanTeamId({
|
|
343
|
+
* postmanTeamId: "postman_team_id"
|
|
344
|
+
* })
|
|
345
|
+
*/
|
|
346
|
+
getOrgIdsByPostmanTeamId(request, requestOptions) {
|
|
347
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgIdsByPostmanTeamId(request, requestOptions));
|
|
348
|
+
}
|
|
349
|
+
__getOrgIdsByPostmanTeamId(request, requestOptions) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
352
|
+
const { postmanTeamId } = request;
|
|
353
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
354
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
|
+
const _response = yield core.fetcher({
|
|
356
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/postman-team/${core.url.encodePathParam(postmanTeamId)}`),
|
|
357
|
+
method: "GET",
|
|
358
|
+
headers: _headers,
|
|
359
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
360
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
361
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
362
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
363
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
364
|
+
logging: this._options.logging,
|
|
365
|
+
});
|
|
366
|
+
if (_response.ok) {
|
|
367
|
+
return {
|
|
368
|
+
data: {
|
|
369
|
+
ok: true,
|
|
370
|
+
body: serializers.Organization.parseOrThrow(_response.body, {
|
|
271
371
|
unrecognizedObjectKeys: "passthrough",
|
|
272
372
|
allowUnrecognizedUnionMembers: true,
|
|
273
373
|
allowUnrecognizedEnumValues: true,
|
|
@@ -280,10 +380,29 @@ export class Organization {
|
|
|
280
380
|
rawResponse: _response.rawResponse,
|
|
281
381
|
};
|
|
282
382
|
}
|
|
383
|
+
if (_response.error.reason === "status-code") {
|
|
384
|
+
switch (_response.error.statusCode) {
|
|
385
|
+
case 422:
|
|
386
|
+
return {
|
|
387
|
+
data: {
|
|
388
|
+
ok: false,
|
|
389
|
+
error: FernApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
390
|
+
unrecognizedObjectKeys: "passthrough",
|
|
391
|
+
allowUnrecognizedUnionMembers: true,
|
|
392
|
+
allowUnrecognizedEnumValues: true,
|
|
393
|
+
skipValidation: true,
|
|
394
|
+
breadcrumbsPrefix: ["response"],
|
|
395
|
+
})),
|
|
396
|
+
rawResponse: _response.rawResponse,
|
|
397
|
+
},
|
|
398
|
+
rawResponse: _response.rawResponse,
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
}
|
|
283
402
|
return {
|
|
284
403
|
data: {
|
|
285
404
|
ok: false,
|
|
286
|
-
error:
|
|
405
|
+
error: FernApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
|
|
287
406
|
rawResponse: _response.rawResponse,
|
|
288
407
|
},
|
|
289
408
|
rawResponse: _response.rawResponse,
|
|
@@ -291,40 +410,41 @@ export class Organization {
|
|
|
291
410
|
});
|
|
292
411
|
}
|
|
293
412
|
/**
|
|
294
|
-
*
|
|
413
|
+
* Get the Postman team ID associated with an organization ID.
|
|
295
414
|
*
|
|
296
|
-
* @param {
|
|
297
|
-
* @param {
|
|
415
|
+
* @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
416
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
298
417
|
*
|
|
299
418
|
* @example
|
|
300
|
-
* await client.organization.
|
|
419
|
+
* await client.organization.getPostmanTeamIdByOrgId({
|
|
420
|
+
* orgId: "org_id"
|
|
421
|
+
* })
|
|
301
422
|
*/
|
|
302
|
-
|
|
303
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
423
|
+
getPostmanTeamIdByOrgId(request, requestOptions) {
|
|
424
|
+
return core.HttpResponsePromise.fromPromise(this.__getPostmanTeamIdByOrgId(request, requestOptions));
|
|
304
425
|
}
|
|
305
|
-
|
|
306
|
-
return __awaiter(this,
|
|
307
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
308
|
-
const {
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
_queryParams.shouldIncludeFernUsers = shouldIncludeFernUsers.toString();
|
|
312
|
-
}
|
|
313
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
426
|
+
__getPostmanTeamIdByOrgId(request, requestOptions) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
429
|
+
const { orgId } = request;
|
|
430
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
431
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
314
432
|
const _response = yield core.fetcher({
|
|
315
|
-
url: core.url.join((
|
|
316
|
-
method: "
|
|
433
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/postman-team-id`),
|
|
434
|
+
method: "GET",
|
|
317
435
|
headers: _headers,
|
|
318
|
-
queryParameters:
|
|
319
|
-
timeoutMs: ((
|
|
320
|
-
maxRetries: (
|
|
436
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
437
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
438
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
321
439
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
440
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
441
|
+
logging: this._options.logging,
|
|
322
442
|
});
|
|
323
443
|
if (_response.ok) {
|
|
324
444
|
return {
|
|
325
445
|
data: {
|
|
326
446
|
ok: true,
|
|
327
|
-
body: serializers.
|
|
447
|
+
body: serializers.organization.getPostmanTeamIdByOrgId.Response.parseOrThrow(_response.body, {
|
|
328
448
|
unrecognizedObjectKeys: "passthrough",
|
|
329
449
|
allowUnrecognizedUnionMembers: true,
|
|
330
450
|
allowUnrecognizedEnumValues: true,
|
|
@@ -338,19 +458,18 @@ export class Organization {
|
|
|
338
458
|
};
|
|
339
459
|
}
|
|
340
460
|
if (_response.error.reason === "status-code") {
|
|
341
|
-
switch (
|
|
342
|
-
case
|
|
461
|
+
switch (_response.error.statusCode) {
|
|
462
|
+
case 422:
|
|
343
463
|
return {
|
|
344
464
|
data: {
|
|
345
465
|
ok: false,
|
|
346
|
-
error:
|
|
347
|
-
.body, {
|
|
466
|
+
error: FernApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
348
467
|
unrecognizedObjectKeys: "passthrough",
|
|
349
468
|
allowUnrecognizedUnionMembers: true,
|
|
350
469
|
allowUnrecognizedEnumValues: true,
|
|
351
470
|
skipValidation: true,
|
|
352
471
|
breadcrumbsPrefix: ["response"],
|
|
353
|
-
}),
|
|
472
|
+
})),
|
|
354
473
|
rawResponse: _response.rawResponse,
|
|
355
474
|
},
|
|
356
475
|
rawResponse: _response.rawResponse,
|
|
@@ -360,7 +479,7 @@ export class Organization {
|
|
|
360
479
|
return {
|
|
361
480
|
data: {
|
|
362
481
|
ok: false,
|
|
363
|
-
error:
|
|
482
|
+
error: FernApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
|
|
364
483
|
rawResponse: _response.rawResponse,
|
|
365
484
|
},
|
|
366
485
|
rawResponse: _response.rawResponse,
|
|
@@ -368,32 +487,39 @@ export class Organization {
|
|
|
368
487
|
});
|
|
369
488
|
}
|
|
370
489
|
/**
|
|
371
|
-
* @param {
|
|
490
|
+
* @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
491
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
372
492
|
*
|
|
373
493
|
* @example
|
|
374
|
-
* await client.organization.
|
|
494
|
+
* await client.organization.isMember({
|
|
495
|
+
* organizationId: "organization_id"
|
|
496
|
+
* })
|
|
375
497
|
*/
|
|
376
|
-
|
|
377
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
498
|
+
isMember(request, requestOptions) {
|
|
499
|
+
return core.HttpResponsePromise.fromPromise(this.__isMember(request, requestOptions));
|
|
378
500
|
}
|
|
379
|
-
|
|
501
|
+
__isMember(request, requestOptions) {
|
|
380
502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
381
503
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
382
|
-
const
|
|
504
|
+
const { organizationId } = request;
|
|
505
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
506
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
383
507
|
const _response = yield core.fetcher({
|
|
384
|
-
url: core.url.join((
|
|
508
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/belongs-to-organization/${core.url.encodePathParam(organizationId)}`),
|
|
385
509
|
method: "POST",
|
|
386
510
|
headers: _headers,
|
|
387
511
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
388
|
-
timeoutMs: ((
|
|
389
|
-
maxRetries: (
|
|
512
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
513
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
390
514
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
515
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
516
|
+
logging: this._options.logging,
|
|
391
517
|
});
|
|
392
518
|
if (_response.ok) {
|
|
393
519
|
return {
|
|
394
520
|
data: {
|
|
395
521
|
ok: true,
|
|
396
|
-
body: serializers.organization.
|
|
522
|
+
body: serializers.organization.isMember.Response.parseOrThrow(_response.body, {
|
|
397
523
|
unrecognizedObjectKeys: "passthrough",
|
|
398
524
|
allowUnrecognizedUnionMembers: true,
|
|
399
525
|
allowUnrecognizedEnumValues: true,
|
|
@@ -406,10 +532,29 @@ export class Organization {
|
|
|
406
532
|
rawResponse: _response.rawResponse,
|
|
407
533
|
};
|
|
408
534
|
}
|
|
535
|
+
if (_response.error.reason === "status-code") {
|
|
536
|
+
switch (_response.error.statusCode) {
|
|
537
|
+
case 422:
|
|
538
|
+
return {
|
|
539
|
+
data: {
|
|
540
|
+
ok: false,
|
|
541
|
+
error: FernApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
542
|
+
unrecognizedObjectKeys: "passthrough",
|
|
543
|
+
allowUnrecognizedUnionMembers: true,
|
|
544
|
+
allowUnrecognizedEnumValues: true,
|
|
545
|
+
skipValidation: true,
|
|
546
|
+
breadcrumbsPrefix: ["response"],
|
|
547
|
+
})),
|
|
548
|
+
rawResponse: _response.rawResponse,
|
|
549
|
+
},
|
|
550
|
+
rawResponse: _response.rawResponse,
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
}
|
|
409
554
|
return {
|
|
410
555
|
data: {
|
|
411
556
|
ok: false,
|
|
412
|
-
error:
|
|
557
|
+
error: FernApi.organization.isMember.Error._unknown(_response.error),
|
|
413
558
|
rawResponse: _response.rawResponse,
|
|
414
559
|
},
|
|
415
560
|
rawResponse: _response.rawResponse,
|
|
@@ -417,42 +562,48 @@ export class Organization {
|
|
|
417
562
|
});
|
|
418
563
|
}
|
|
419
564
|
/**
|
|
420
|
-
*
|
|
421
|
-
*
|
|
565
|
+
* Returns the org for a scoped token. The token is limited to one organization.
|
|
566
|
+
*
|
|
567
|
+
* @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
568
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
422
569
|
*
|
|
423
570
|
* @example
|
|
424
|
-
* await client.organization.
|
|
425
|
-
* userId: "userId",
|
|
426
|
-
* orgId: "orgId"
|
|
427
|
-
* })
|
|
571
|
+
* await client.organization.getMyOrganizationFromScopedToken()
|
|
428
572
|
*/
|
|
429
|
-
|
|
430
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
573
|
+
getMyOrganizationFromScopedToken(request = {}, requestOptions) {
|
|
574
|
+
return core.HttpResponsePromise.fromPromise(this.__getMyOrganizationFromScopedToken(request, requestOptions));
|
|
431
575
|
}
|
|
432
|
-
|
|
433
|
-
return __awaiter(this,
|
|
434
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
435
|
-
const
|
|
576
|
+
__getMyOrganizationFromScopedToken() {
|
|
577
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
578
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
579
|
+
const { shouldIncludeFernUsers } = request;
|
|
580
|
+
const _queryParams = {
|
|
581
|
+
shouldIncludeFernUsers,
|
|
582
|
+
};
|
|
583
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
584
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
436
585
|
const _response = yield core.fetcher({
|
|
437
|
-
url: core.url.join((
|
|
586
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/myself"),
|
|
438
587
|
method: "POST",
|
|
439
588
|
headers: _headers,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, {
|
|
444
|
-
unrecognizedObjectKeys: "strip",
|
|
445
|
-
omitUndefined: true,
|
|
446
|
-
}),
|
|
447
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
448
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
589
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
590
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
591
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
449
592
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
593
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
594
|
+
logging: this._options.logging,
|
|
450
595
|
});
|
|
451
596
|
if (_response.ok) {
|
|
452
597
|
return {
|
|
453
598
|
data: {
|
|
454
599
|
ok: true,
|
|
455
|
-
body:
|
|
600
|
+
body: serializers.Organization.parseOrThrow(_response.body, {
|
|
601
|
+
unrecognizedObjectKeys: "passthrough",
|
|
602
|
+
allowUnrecognizedUnionMembers: true,
|
|
603
|
+
allowUnrecognizedEnumValues: true,
|
|
604
|
+
skipValidation: true,
|
|
605
|
+
breadcrumbsPrefix: ["response"],
|
|
606
|
+
}),
|
|
456
607
|
headers: _response.headers,
|
|
457
608
|
rawResponse: _response.rawResponse,
|
|
458
609
|
},
|
|
@@ -460,19 +611,18 @@ export class Organization {
|
|
|
460
611
|
};
|
|
461
612
|
}
|
|
462
613
|
if (_response.error.reason === "status-code") {
|
|
463
|
-
switch (
|
|
464
|
-
case
|
|
465
|
-
case "UserIdDoesNotExistError":
|
|
614
|
+
switch (_response.error.statusCode) {
|
|
615
|
+
case 422:
|
|
466
616
|
return {
|
|
467
617
|
data: {
|
|
468
618
|
ok: false,
|
|
469
|
-
error:
|
|
619
|
+
error: FernApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
470
620
|
unrecognizedObjectKeys: "passthrough",
|
|
471
621
|
allowUnrecognizedUnionMembers: true,
|
|
472
622
|
allowUnrecognizedEnumValues: true,
|
|
473
623
|
skipValidation: true,
|
|
474
624
|
breadcrumbsPrefix: ["response"],
|
|
475
|
-
}),
|
|
625
|
+
})),
|
|
476
626
|
rawResponse: _response.rawResponse,
|
|
477
627
|
},
|
|
478
628
|
rawResponse: _response.rawResponse,
|
|
@@ -482,7 +632,7 @@ export class Organization {
|
|
|
482
632
|
return {
|
|
483
633
|
data: {
|
|
484
634
|
ok: false,
|
|
485
|
-
error:
|
|
635
|
+
error: FernApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
|
|
486
636
|
rawResponse: _response.rawResponse,
|
|
487
637
|
},
|
|
488
638
|
rawResponse: _response.rawResponse,
|
|
@@ -490,36 +640,91 @@ export class Organization {
|
|
|
490
640
|
});
|
|
491
641
|
}
|
|
492
642
|
/**
|
|
493
|
-
* @param {
|
|
494
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
643
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
495
644
|
*
|
|
496
645
|
* @example
|
|
497
|
-
* await client.organization.
|
|
498
|
-
|
|
499
|
-
|
|
646
|
+
* await client.organization.getOrgIdsFromToken()
|
|
647
|
+
*/
|
|
648
|
+
getOrgIdsFromToken(requestOptions) {
|
|
649
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgIdsFromToken(requestOptions));
|
|
650
|
+
}
|
|
651
|
+
__getOrgIdsFromToken(requestOptions) {
|
|
652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
654
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
655
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
656
|
+
const _response = yield core.fetcher({
|
|
657
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations"),
|
|
658
|
+
method: "POST",
|
|
659
|
+
headers: _headers,
|
|
660
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
661
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
662
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
663
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
664
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
665
|
+
logging: this._options.logging,
|
|
666
|
+
});
|
|
667
|
+
if (_response.ok) {
|
|
668
|
+
return {
|
|
669
|
+
data: {
|
|
670
|
+
ok: true,
|
|
671
|
+
body: serializers.organization.getOrgIdsFromToken.Response.parseOrThrow(_response.body, {
|
|
672
|
+
unrecognizedObjectKeys: "passthrough",
|
|
673
|
+
allowUnrecognizedUnionMembers: true,
|
|
674
|
+
allowUnrecognizedEnumValues: true,
|
|
675
|
+
skipValidation: true,
|
|
676
|
+
breadcrumbsPrefix: ["response"],
|
|
677
|
+
}),
|
|
678
|
+
headers: _response.headers,
|
|
679
|
+
rawResponse: _response.rawResponse,
|
|
680
|
+
},
|
|
681
|
+
rawResponse: _response.rawResponse,
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
return {
|
|
685
|
+
data: {
|
|
686
|
+
ok: false,
|
|
687
|
+
error: FernApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
|
|
688
|
+
rawResponse: _response.rawResponse,
|
|
689
|
+
},
|
|
690
|
+
rawResponse: _response.rawResponse,
|
|
691
|
+
};
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* @param {FernApi.AddUserToOrgRequest} request
|
|
696
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
697
|
+
*
|
|
698
|
+
* @example
|
|
699
|
+
* await client.organization.addUser({
|
|
700
|
+
* userId: "userId",
|
|
701
|
+
* orgId: "orgId"
|
|
500
702
|
* })
|
|
501
703
|
*/
|
|
502
|
-
|
|
503
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
704
|
+
addUser(request, requestOptions) {
|
|
705
|
+
return core.HttpResponsePromise.fromPromise(this.__addUser(request, requestOptions));
|
|
504
706
|
}
|
|
505
|
-
|
|
707
|
+
__addUser(request, requestOptions) {
|
|
506
708
|
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
508
|
-
const
|
|
709
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
710
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
711
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
509
712
|
const _response = yield core.fetcher({
|
|
510
|
-
url: core.url.join((
|
|
713
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/add-user"),
|
|
511
714
|
method: "POST",
|
|
512
715
|
headers: _headers,
|
|
513
716
|
contentType: "application/json",
|
|
514
717
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
515
718
|
requestType: "json",
|
|
516
|
-
body: serializers.
|
|
719
|
+
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, {
|
|
517
720
|
unrecognizedObjectKeys: "strip",
|
|
518
721
|
omitUndefined: true,
|
|
519
722
|
}),
|
|
520
|
-
timeoutMs: ((
|
|
521
|
-
maxRetries: (
|
|
723
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
724
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
522
725
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
726
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
727
|
+
logging: this._options.logging,
|
|
523
728
|
});
|
|
524
729
|
if (_response.ok) {
|
|
525
730
|
return {
|
|
@@ -533,19 +738,18 @@ export class Organization {
|
|
|
533
738
|
};
|
|
534
739
|
}
|
|
535
740
|
if (_response.error.reason === "status-code") {
|
|
536
|
-
switch (
|
|
537
|
-
case
|
|
538
|
-
case "UserIdDoesNotExistError":
|
|
741
|
+
switch (_response.error.statusCode) {
|
|
742
|
+
case 422:
|
|
539
743
|
return {
|
|
540
744
|
data: {
|
|
541
745
|
ok: false,
|
|
542
|
-
error:
|
|
746
|
+
error: FernApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
543
747
|
unrecognizedObjectKeys: "passthrough",
|
|
544
748
|
allowUnrecognizedUnionMembers: true,
|
|
545
749
|
allowUnrecognizedEnumValues: true,
|
|
546
750
|
skipValidation: true,
|
|
547
751
|
breadcrumbsPrefix: ["response"],
|
|
548
|
-
}),
|
|
752
|
+
})),
|
|
549
753
|
rawResponse: _response.rawResponse,
|
|
550
754
|
},
|
|
551
755
|
rawResponse: _response.rawResponse,
|
|
@@ -555,7 +759,7 @@ export class Organization {
|
|
|
555
759
|
return {
|
|
556
760
|
data: {
|
|
557
761
|
ok: false,
|
|
558
|
-
error:
|
|
762
|
+
error: FernApi.organization.addUser.Error._unknown(_response.error),
|
|
559
763
|
rawResponse: _response.rawResponse,
|
|
560
764
|
},
|
|
561
765
|
rawResponse: _response.rawResponse,
|
|
@@ -563,36 +767,39 @@ export class Organization {
|
|
|
563
767
|
});
|
|
564
768
|
}
|
|
565
769
|
/**
|
|
566
|
-
* @param {
|
|
567
|
-
* @param {
|
|
770
|
+
* @param {FernApi.InviteUserToOrgRequest} request
|
|
771
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
568
772
|
*
|
|
569
773
|
* @example
|
|
570
|
-
* await client.organization.
|
|
571
|
-
*
|
|
774
|
+
* await client.organization.inviteUser({
|
|
775
|
+
* emailAddress: "emailAddress",
|
|
572
776
|
* auth0OrgId: "auth0OrgId"
|
|
573
777
|
* })
|
|
574
778
|
*/
|
|
575
|
-
|
|
576
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
779
|
+
inviteUser(request, requestOptions) {
|
|
780
|
+
return core.HttpResponsePromise.fromPromise(this.__inviteUser(request, requestOptions));
|
|
577
781
|
}
|
|
578
|
-
|
|
782
|
+
__inviteUser(request, requestOptions) {
|
|
579
783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
580
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
581
|
-
const
|
|
784
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
785
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
786
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
582
787
|
const _response = yield core.fetcher({
|
|
583
|
-
url: core.url.join((
|
|
584
|
-
method: "
|
|
788
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/invite"),
|
|
789
|
+
method: "POST",
|
|
585
790
|
headers: _headers,
|
|
586
791
|
contentType: "application/json",
|
|
587
792
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
588
793
|
requestType: "json",
|
|
589
|
-
body: serializers.
|
|
794
|
+
body: serializers.InviteUserToOrgRequest.jsonOrThrow(request, {
|
|
590
795
|
unrecognizedObjectKeys: "strip",
|
|
591
796
|
omitUndefined: true,
|
|
592
797
|
}),
|
|
593
|
-
timeoutMs: ((
|
|
594
|
-
maxRetries: (
|
|
798
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
799
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
595
800
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
801
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
802
|
+
logging: this._options.logging,
|
|
596
803
|
});
|
|
597
804
|
if (_response.ok) {
|
|
598
805
|
return {
|
|
@@ -606,19 +813,18 @@ export class Organization {
|
|
|
606
813
|
};
|
|
607
814
|
}
|
|
608
815
|
if (_response.error.reason === "status-code") {
|
|
609
|
-
switch (
|
|
610
|
-
case
|
|
611
|
-
case "UserIdDoesNotExistError":
|
|
816
|
+
switch (_response.error.statusCode) {
|
|
817
|
+
case 422:
|
|
612
818
|
return {
|
|
613
819
|
data: {
|
|
614
820
|
ok: false,
|
|
615
|
-
error:
|
|
821
|
+
error: FernApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
616
822
|
unrecognizedObjectKeys: "passthrough",
|
|
617
823
|
allowUnrecognizedUnionMembers: true,
|
|
618
824
|
allowUnrecognizedEnumValues: true,
|
|
619
825
|
skipValidation: true,
|
|
620
826
|
breadcrumbsPrefix: ["response"],
|
|
621
|
-
}),
|
|
827
|
+
})),
|
|
622
828
|
rawResponse: _response.rawResponse,
|
|
623
829
|
},
|
|
624
830
|
rawResponse: _response.rawResponse,
|
|
@@ -628,7 +834,7 @@ export class Organization {
|
|
|
628
834
|
return {
|
|
629
835
|
data: {
|
|
630
836
|
ok: false,
|
|
631
|
-
error:
|
|
837
|
+
error: FernApi.organization.inviteUser.Error._unknown(_response.error),
|
|
632
838
|
rawResponse: _response.rawResponse,
|
|
633
839
|
},
|
|
634
840
|
rawResponse: _response.rawResponse,
|
|
@@ -636,29 +842,39 @@ export class Organization {
|
|
|
636
842
|
});
|
|
637
843
|
}
|
|
638
844
|
/**
|
|
639
|
-
*
|
|
640
|
-
*
|
|
641
|
-
* @param {FernVenusApi.OrganizationId} orgId
|
|
642
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
845
|
+
* @param {FernApi.RemoveUserFromOrgRequest} request
|
|
846
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
643
847
|
*
|
|
644
848
|
* @example
|
|
645
|
-
* await client.organization.
|
|
849
|
+
* await client.organization.removeUser({
|
|
850
|
+
* userId: "userId",
|
|
851
|
+
* auth0OrgId: "auth0OrgId"
|
|
852
|
+
* })
|
|
646
853
|
*/
|
|
647
|
-
|
|
648
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
854
|
+
removeUser(request, requestOptions) {
|
|
855
|
+
return core.HttpResponsePromise.fromPromise(this.__removeUser(request, requestOptions));
|
|
649
856
|
}
|
|
650
|
-
|
|
857
|
+
__removeUser(request, requestOptions) {
|
|
651
858
|
return __awaiter(this, void 0, void 0, function* () {
|
|
652
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
653
|
-
const
|
|
859
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
860
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
861
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
654
862
|
const _response = yield core.fetcher({
|
|
655
|
-
url: core.url.join((
|
|
863
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/user"),
|
|
656
864
|
method: "DELETE",
|
|
657
865
|
headers: _headers,
|
|
866
|
+
contentType: "application/json",
|
|
658
867
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
659
|
-
|
|
660
|
-
|
|
868
|
+
requestType: "json",
|
|
869
|
+
body: serializers.RemoveUserFromOrgRequest.jsonOrThrow(request, {
|
|
870
|
+
unrecognizedObjectKeys: "strip",
|
|
871
|
+
omitUndefined: true,
|
|
872
|
+
}),
|
|
873
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
874
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
661
875
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
876
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
877
|
+
logging: this._options.logging,
|
|
662
878
|
});
|
|
663
879
|
if (_response.ok) {
|
|
664
880
|
return {
|
|
@@ -672,19 +888,18 @@ export class Organization {
|
|
|
672
888
|
};
|
|
673
889
|
}
|
|
674
890
|
if (_response.error.reason === "status-code") {
|
|
675
|
-
switch (
|
|
676
|
-
case
|
|
677
|
-
case "OrganizationNotFoundError":
|
|
891
|
+
switch (_response.error.statusCode) {
|
|
892
|
+
case 422:
|
|
678
893
|
return {
|
|
679
894
|
data: {
|
|
680
895
|
ok: false,
|
|
681
|
-
error:
|
|
896
|
+
error: FernApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
682
897
|
unrecognizedObjectKeys: "passthrough",
|
|
683
898
|
allowUnrecognizedUnionMembers: true,
|
|
684
899
|
allowUnrecognizedEnumValues: true,
|
|
685
900
|
skipValidation: true,
|
|
686
901
|
breadcrumbsPrefix: ["response"],
|
|
687
|
-
}),
|
|
902
|
+
})),
|
|
688
903
|
rawResponse: _response.rawResponse,
|
|
689
904
|
},
|
|
690
905
|
rawResponse: _response.rawResponse,
|
|
@@ -694,20 +909,11 @@ export class Organization {
|
|
|
694
909
|
return {
|
|
695
910
|
data: {
|
|
696
911
|
ok: false,
|
|
697
|
-
error:
|
|
912
|
+
error: FernApi.organization.removeUser.Error._unknown(_response.error),
|
|
698
913
|
rawResponse: _response.rawResponse,
|
|
699
914
|
},
|
|
700
915
|
rawResponse: _response.rawResponse,
|
|
701
916
|
};
|
|
702
917
|
});
|
|
703
918
|
}
|
|
704
|
-
_getAuthorizationHeader() {
|
|
705
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
706
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
707
|
-
if (bearer != null) {
|
|
708
|
-
return `Bearer ${bearer}`;
|
|
709
|
-
}
|
|
710
|
-
return undefined;
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
919
|
}
|