@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
|
@@ -42,20 +42,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
57
|
+
exports.OrganizationClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
47
59
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
60
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
|
-
const environments = __importStar(require("../../../../environments.js"));
|
|
50
61
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
51
|
-
const
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
this._options =
|
|
62
|
+
const FernApi = __importStar(require("../../../index.js"));
|
|
63
|
+
class OrganizationClient {
|
|
64
|
+
constructor(options) {
|
|
65
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
66
|
}
|
|
56
67
|
/**
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
68
|
+
* @param {FernApi.CreateOrganizationRequest} request
|
|
69
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
70
|
*
|
|
60
71
|
* @example
|
|
61
72
|
* await client.organization.create({
|
|
@@ -67,10 +78,11 @@ class Organization {
|
|
|
67
78
|
}
|
|
68
79
|
__create(request, requestOptions) {
|
|
69
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
71
|
-
const
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
82
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
83
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
72
84
|
const _response = yield core.fetcher({
|
|
73
|
-
url: core.url.join((
|
|
85
|
+
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"),
|
|
74
86
|
method: "POST",
|
|
75
87
|
headers: _headers,
|
|
76
88
|
contentType: "application/json",
|
|
@@ -80,9 +92,11 @@ class Organization {
|
|
|
80
92
|
unrecognizedObjectKeys: "strip",
|
|
81
93
|
omitUndefined: true,
|
|
82
94
|
}),
|
|
83
|
-
timeoutMs: ((
|
|
84
|
-
maxRetries: (
|
|
95
|
+
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,
|
|
96
|
+
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,
|
|
85
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
99
|
+
logging: this._options.logging,
|
|
86
100
|
});
|
|
87
101
|
if (_response.ok) {
|
|
88
102
|
return {
|
|
@@ -102,19 +116,18 @@ class Organization {
|
|
|
102
116
|
};
|
|
103
117
|
}
|
|
104
118
|
if (_response.error.reason === "status-code") {
|
|
105
|
-
switch (
|
|
106
|
-
case
|
|
107
|
-
case "OrganizationAlreadyExistsError":
|
|
119
|
+
switch (_response.error.statusCode) {
|
|
120
|
+
case 422:
|
|
108
121
|
return {
|
|
109
122
|
data: {
|
|
110
123
|
ok: false,
|
|
111
|
-
error:
|
|
124
|
+
error: FernApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
112
125
|
unrecognizedObjectKeys: "passthrough",
|
|
113
126
|
allowUnrecognizedUnionMembers: true,
|
|
114
127
|
allowUnrecognizedEnumValues: true,
|
|
115
128
|
skipValidation: true,
|
|
116
129
|
breadcrumbsPrefix: ["response"],
|
|
117
|
-
}),
|
|
130
|
+
})),
|
|
118
131
|
rawResponse: _response.rawResponse,
|
|
119
132
|
},
|
|
120
133
|
rawResponse: _response.rawResponse,
|
|
@@ -124,7 +137,7 @@ class Organization {
|
|
|
124
137
|
return {
|
|
125
138
|
data: {
|
|
126
139
|
ok: false,
|
|
127
|
-
error:
|
|
140
|
+
error: FernApi.organization.create.Error._unknown(_response.error),
|
|
128
141
|
rawResponse: _response.rawResponse,
|
|
129
142
|
},
|
|
130
143
|
rawResponse: _response.rawResponse,
|
|
@@ -132,34 +145,39 @@ class Organization {
|
|
|
132
145
|
});
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
|
-
* @param {
|
|
136
|
-
* @param {
|
|
137
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
* @param {FernApi.UpdateOrganizationRequest} request
|
|
149
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
150
|
*
|
|
139
151
|
* @example
|
|
140
|
-
* await client.organization.update(
|
|
152
|
+
* await client.organization.update({
|
|
153
|
+
* orgId: "org_id"
|
|
154
|
+
* })
|
|
141
155
|
*/
|
|
142
|
-
update(
|
|
143
|
-
return core.HttpResponsePromise.fromPromise(this.__update(
|
|
156
|
+
update(request, requestOptions) {
|
|
157
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
144
158
|
}
|
|
145
|
-
__update(
|
|
146
|
-
return __awaiter(this,
|
|
147
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
148
|
-
const
|
|
159
|
+
__update(request, requestOptions) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
162
|
+
const { orgId } = request, _body = __rest(request, ["orgId"]);
|
|
163
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
164
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
165
|
const _response = yield core.fetcher({
|
|
150
|
-
url: core.url.join((
|
|
166
|
+
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`),
|
|
151
167
|
method: "POST",
|
|
152
168
|
headers: _headers,
|
|
153
169
|
contentType: "application/json",
|
|
154
170
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
155
171
|
requestType: "json",
|
|
156
|
-
body: serializers.UpdateOrganizationRequest.jsonOrThrow(
|
|
172
|
+
body: serializers.UpdateOrganizationRequest.jsonOrThrow(_body, {
|
|
157
173
|
unrecognizedObjectKeys: "strip",
|
|
158
174
|
omitUndefined: true,
|
|
159
175
|
}),
|
|
160
|
-
timeoutMs: ((
|
|
161
|
-
maxRetries: (
|
|
176
|
+
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,
|
|
177
|
+
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,
|
|
162
178
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
179
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
180
|
+
logging: this._options.logging,
|
|
163
181
|
});
|
|
164
182
|
if (_response.ok) {
|
|
165
183
|
return {
|
|
@@ -173,18 +191,18 @@ class Organization {
|
|
|
173
191
|
};
|
|
174
192
|
}
|
|
175
193
|
if (_response.error.reason === "status-code") {
|
|
176
|
-
switch (
|
|
177
|
-
case
|
|
194
|
+
switch (_response.error.statusCode) {
|
|
195
|
+
case 422:
|
|
178
196
|
return {
|
|
179
197
|
data: {
|
|
180
198
|
ok: false,
|
|
181
|
-
error:
|
|
199
|
+
error: FernApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
182
200
|
unrecognizedObjectKeys: "passthrough",
|
|
183
201
|
allowUnrecognizedUnionMembers: true,
|
|
184
202
|
allowUnrecognizedEnumValues: true,
|
|
185
203
|
skipValidation: true,
|
|
186
204
|
breadcrumbsPrefix: ["response"],
|
|
187
|
-
}),
|
|
205
|
+
})),
|
|
188
206
|
rawResponse: _response.rawResponse,
|
|
189
207
|
},
|
|
190
208
|
rawResponse: _response.rawResponse,
|
|
@@ -194,7 +212,7 @@ class Organization {
|
|
|
194
212
|
return {
|
|
195
213
|
data: {
|
|
196
214
|
ok: false,
|
|
197
|
-
error:
|
|
215
|
+
error: FernApi.organization.update.Error._unknown(_response.error),
|
|
198
216
|
rawResponse: _response.rawResponse,
|
|
199
217
|
},
|
|
200
218
|
rawResponse: _response.rawResponse,
|
|
@@ -202,33 +220,36 @@ class Organization {
|
|
|
202
220
|
});
|
|
203
221
|
}
|
|
204
222
|
/**
|
|
205
|
-
* @param {
|
|
206
|
-
* @param {
|
|
207
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
223
|
+
* @param {FernApi.GetOrganizationsOrgIdGetRequest} request
|
|
224
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
225
|
*
|
|
209
226
|
* @example
|
|
210
|
-
* await client.organization.get(
|
|
227
|
+
* await client.organization.get({
|
|
228
|
+
* orgId: "org_id"
|
|
229
|
+
* })
|
|
211
230
|
*/
|
|
212
|
-
get(
|
|
213
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
231
|
+
get(request, requestOptions) {
|
|
232
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
214
233
|
}
|
|
215
|
-
__get(
|
|
216
|
-
return __awaiter(this,
|
|
217
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
218
|
-
const { shouldIncludeFernUsers } = request;
|
|
219
|
-
const _queryParams = {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
234
|
+
__get(request, requestOptions) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
237
|
+
const { orgId, shouldIncludeFernUsers } = request;
|
|
238
|
+
const _queryParams = {
|
|
239
|
+
shouldIncludeFernUsers,
|
|
240
|
+
};
|
|
241
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
242
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
224
243
|
const _response = yield core.fetcher({
|
|
225
|
-
url: core.url.join((
|
|
244
|
+
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)}`),
|
|
226
245
|
method: "GET",
|
|
227
246
|
headers: _headers,
|
|
228
247
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
229
|
-
timeoutMs: ((
|
|
230
|
-
maxRetries: (
|
|
248
|
+
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,
|
|
249
|
+
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,
|
|
231
250
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
251
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
252
|
+
logging: this._options.logging,
|
|
232
253
|
});
|
|
233
254
|
if (_response.ok) {
|
|
234
255
|
return {
|
|
@@ -248,18 +269,18 @@ class Organization {
|
|
|
248
269
|
};
|
|
249
270
|
}
|
|
250
271
|
if (_response.error.reason === "status-code") {
|
|
251
|
-
switch (
|
|
252
|
-
case
|
|
272
|
+
switch (_response.error.statusCode) {
|
|
273
|
+
case 422:
|
|
253
274
|
return {
|
|
254
275
|
data: {
|
|
255
276
|
ok: false,
|
|
256
|
-
error:
|
|
277
|
+
error: FernApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
257
278
|
unrecognizedObjectKeys: "passthrough",
|
|
258
279
|
allowUnrecognizedUnionMembers: true,
|
|
259
280
|
allowUnrecognizedEnumValues: true,
|
|
260
281
|
skipValidation: true,
|
|
261
282
|
breadcrumbsPrefix: ["response"],
|
|
262
|
-
}),
|
|
283
|
+
})),
|
|
263
284
|
rawResponse: _response.rawResponse,
|
|
264
285
|
},
|
|
265
286
|
rawResponse: _response.rawResponse,
|
|
@@ -269,7 +290,7 @@ class Organization {
|
|
|
269
290
|
return {
|
|
270
291
|
data: {
|
|
271
292
|
ok: false,
|
|
272
|
-
error:
|
|
293
|
+
error: FernApi.organization.get.Error._unknown(_response.error),
|
|
273
294
|
rawResponse: _response.rawResponse,
|
|
274
295
|
},
|
|
275
296
|
rawResponse: _response.rawResponse,
|
|
@@ -277,33 +298,112 @@ class Organization {
|
|
|
277
298
|
});
|
|
278
299
|
}
|
|
279
300
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
301
|
+
* Deletes an organization. Only users with admin role can delete organizations.
|
|
302
|
+
*
|
|
303
|
+
* @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
304
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
282
305
|
*
|
|
283
306
|
* @example
|
|
284
|
-
* await client.organization.
|
|
307
|
+
* await client.organization.delete({
|
|
308
|
+
* orgId: "org_id"
|
|
309
|
+
* })
|
|
285
310
|
*/
|
|
286
|
-
|
|
287
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
311
|
+
delete(request, requestOptions) {
|
|
312
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
288
313
|
}
|
|
289
|
-
|
|
314
|
+
__delete(request, requestOptions) {
|
|
290
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
316
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
292
|
-
const
|
|
317
|
+
const { orgId } = request;
|
|
318
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
319
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
293
320
|
const _response = yield core.fetcher({
|
|
294
|
-
url: core.url.join((
|
|
295
|
-
method: "
|
|
321
|
+
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)}`),
|
|
322
|
+
method: "DELETE",
|
|
296
323
|
headers: _headers,
|
|
297
324
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
298
|
-
timeoutMs: ((
|
|
299
|
-
maxRetries: (
|
|
325
|
+
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,
|
|
326
|
+
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,
|
|
300
327
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
328
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
329
|
+
logging: this._options.logging,
|
|
301
330
|
});
|
|
302
331
|
if (_response.ok) {
|
|
303
332
|
return {
|
|
304
333
|
data: {
|
|
305
334
|
ok: true,
|
|
306
|
-
body:
|
|
335
|
+
body: undefined,
|
|
336
|
+
headers: _response.headers,
|
|
337
|
+
rawResponse: _response.rawResponse,
|
|
338
|
+
},
|
|
339
|
+
rawResponse: _response.rawResponse,
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
if (_response.error.reason === "status-code") {
|
|
343
|
+
switch (_response.error.statusCode) {
|
|
344
|
+
case 422:
|
|
345
|
+
return {
|
|
346
|
+
data: {
|
|
347
|
+
ok: false,
|
|
348
|
+
error: FernApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
349
|
+
unrecognizedObjectKeys: "passthrough",
|
|
350
|
+
allowUnrecognizedUnionMembers: true,
|
|
351
|
+
allowUnrecognizedEnumValues: true,
|
|
352
|
+
skipValidation: true,
|
|
353
|
+
breadcrumbsPrefix: ["response"],
|
|
354
|
+
})),
|
|
355
|
+
rawResponse: _response.rawResponse,
|
|
356
|
+
},
|
|
357
|
+
rawResponse: _response.rawResponse,
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return {
|
|
362
|
+
data: {
|
|
363
|
+
ok: false,
|
|
364
|
+
error: FernApi.organization.delete.Error._unknown(_response.error),
|
|
365
|
+
rawResponse: _response.rawResponse,
|
|
366
|
+
},
|
|
367
|
+
rawResponse: _response.rawResponse,
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Look up an organization by its associated Postman team ID.
|
|
373
|
+
*
|
|
374
|
+
* @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
375
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* await client.organization.getOrgIdsByPostmanTeamId({
|
|
379
|
+
* postmanTeamId: "postman_team_id"
|
|
380
|
+
* })
|
|
381
|
+
*/
|
|
382
|
+
getOrgIdsByPostmanTeamId(request, requestOptions) {
|
|
383
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgIdsByPostmanTeamId(request, requestOptions));
|
|
384
|
+
}
|
|
385
|
+
__getOrgIdsByPostmanTeamId(request, requestOptions) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
388
|
+
const { postmanTeamId } = request;
|
|
389
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
390
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
391
|
+
const _response = yield core.fetcher({
|
|
392
|
+
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)}`),
|
|
393
|
+
method: "GET",
|
|
394
|
+
headers: _headers,
|
|
395
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
396
|
+
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,
|
|
397
|
+
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,
|
|
398
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
399
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
400
|
+
logging: this._options.logging,
|
|
401
|
+
});
|
|
402
|
+
if (_response.ok) {
|
|
403
|
+
return {
|
|
404
|
+
data: {
|
|
405
|
+
ok: true,
|
|
406
|
+
body: serializers.Organization.parseOrThrow(_response.body, {
|
|
307
407
|
unrecognizedObjectKeys: "passthrough",
|
|
308
408
|
allowUnrecognizedUnionMembers: true,
|
|
309
409
|
allowUnrecognizedEnumValues: true,
|
|
@@ -316,10 +416,29 @@ class Organization {
|
|
|
316
416
|
rawResponse: _response.rawResponse,
|
|
317
417
|
};
|
|
318
418
|
}
|
|
419
|
+
if (_response.error.reason === "status-code") {
|
|
420
|
+
switch (_response.error.statusCode) {
|
|
421
|
+
case 422:
|
|
422
|
+
return {
|
|
423
|
+
data: {
|
|
424
|
+
ok: false,
|
|
425
|
+
error: FernApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
426
|
+
unrecognizedObjectKeys: "passthrough",
|
|
427
|
+
allowUnrecognizedUnionMembers: true,
|
|
428
|
+
allowUnrecognizedEnumValues: true,
|
|
429
|
+
skipValidation: true,
|
|
430
|
+
breadcrumbsPrefix: ["response"],
|
|
431
|
+
})),
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
},
|
|
434
|
+
rawResponse: _response.rawResponse,
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
}
|
|
319
438
|
return {
|
|
320
439
|
data: {
|
|
321
440
|
ok: false,
|
|
322
|
-
error:
|
|
441
|
+
error: FernApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
|
|
323
442
|
rawResponse: _response.rawResponse,
|
|
324
443
|
},
|
|
325
444
|
rawResponse: _response.rawResponse,
|
|
@@ -327,40 +446,41 @@ class Organization {
|
|
|
327
446
|
});
|
|
328
447
|
}
|
|
329
448
|
/**
|
|
330
|
-
*
|
|
449
|
+
* Get the Postman team ID associated with an organization ID.
|
|
331
450
|
*
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {
|
|
451
|
+
* @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
452
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
334
453
|
*
|
|
335
454
|
* @example
|
|
336
|
-
* await client.organization.
|
|
455
|
+
* await client.organization.getPostmanTeamIdByOrgId({
|
|
456
|
+
* orgId: "org_id"
|
|
457
|
+
* })
|
|
337
458
|
*/
|
|
338
|
-
|
|
339
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
459
|
+
getPostmanTeamIdByOrgId(request, requestOptions) {
|
|
460
|
+
return core.HttpResponsePromise.fromPromise(this.__getPostmanTeamIdByOrgId(request, requestOptions));
|
|
340
461
|
}
|
|
341
|
-
|
|
342
|
-
return __awaiter(this,
|
|
343
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
344
|
-
const {
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
_queryParams.shouldIncludeFernUsers = shouldIncludeFernUsers.toString();
|
|
348
|
-
}
|
|
349
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
462
|
+
__getPostmanTeamIdByOrgId(request, requestOptions) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
465
|
+
const { orgId } = request;
|
|
466
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
467
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
350
468
|
const _response = yield core.fetcher({
|
|
351
|
-
url: core.url.join((
|
|
352
|
-
method: "
|
|
469
|
+
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`),
|
|
470
|
+
method: "GET",
|
|
353
471
|
headers: _headers,
|
|
354
|
-
queryParameters:
|
|
355
|
-
timeoutMs: ((
|
|
356
|
-
maxRetries: (
|
|
472
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
473
|
+
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,
|
|
474
|
+
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,
|
|
357
475
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
476
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
477
|
+
logging: this._options.logging,
|
|
358
478
|
});
|
|
359
479
|
if (_response.ok) {
|
|
360
480
|
return {
|
|
361
481
|
data: {
|
|
362
482
|
ok: true,
|
|
363
|
-
body: serializers.
|
|
483
|
+
body: serializers.organization.getPostmanTeamIdByOrgId.Response.parseOrThrow(_response.body, {
|
|
364
484
|
unrecognizedObjectKeys: "passthrough",
|
|
365
485
|
allowUnrecognizedUnionMembers: true,
|
|
366
486
|
allowUnrecognizedEnumValues: true,
|
|
@@ -374,19 +494,18 @@ class Organization {
|
|
|
374
494
|
};
|
|
375
495
|
}
|
|
376
496
|
if (_response.error.reason === "status-code") {
|
|
377
|
-
switch (
|
|
378
|
-
case
|
|
497
|
+
switch (_response.error.statusCode) {
|
|
498
|
+
case 422:
|
|
379
499
|
return {
|
|
380
500
|
data: {
|
|
381
501
|
ok: false,
|
|
382
|
-
error:
|
|
383
|
-
.body, {
|
|
502
|
+
error: FernApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
384
503
|
unrecognizedObjectKeys: "passthrough",
|
|
385
504
|
allowUnrecognizedUnionMembers: true,
|
|
386
505
|
allowUnrecognizedEnumValues: true,
|
|
387
506
|
skipValidation: true,
|
|
388
507
|
breadcrumbsPrefix: ["response"],
|
|
389
|
-
}),
|
|
508
|
+
})),
|
|
390
509
|
rawResponse: _response.rawResponse,
|
|
391
510
|
},
|
|
392
511
|
rawResponse: _response.rawResponse,
|
|
@@ -396,7 +515,7 @@ class Organization {
|
|
|
396
515
|
return {
|
|
397
516
|
data: {
|
|
398
517
|
ok: false,
|
|
399
|
-
error:
|
|
518
|
+
error: FernApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
|
|
400
519
|
rawResponse: _response.rawResponse,
|
|
401
520
|
},
|
|
402
521
|
rawResponse: _response.rawResponse,
|
|
@@ -404,32 +523,39 @@ class Organization {
|
|
|
404
523
|
});
|
|
405
524
|
}
|
|
406
525
|
/**
|
|
407
|
-
* @param {
|
|
526
|
+
* @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
527
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
408
528
|
*
|
|
409
529
|
* @example
|
|
410
|
-
* await client.organization.
|
|
530
|
+
* await client.organization.isMember({
|
|
531
|
+
* organizationId: "organization_id"
|
|
532
|
+
* })
|
|
411
533
|
*/
|
|
412
|
-
|
|
413
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
534
|
+
isMember(request, requestOptions) {
|
|
535
|
+
return core.HttpResponsePromise.fromPromise(this.__isMember(request, requestOptions));
|
|
414
536
|
}
|
|
415
|
-
|
|
537
|
+
__isMember(request, requestOptions) {
|
|
416
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
539
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
418
|
-
const
|
|
540
|
+
const { organizationId } = request;
|
|
541
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
542
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
419
543
|
const _response = yield core.fetcher({
|
|
420
|
-
url: core.url.join((
|
|
544
|
+
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)}`),
|
|
421
545
|
method: "POST",
|
|
422
546
|
headers: _headers,
|
|
423
547
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
424
|
-
timeoutMs: ((
|
|
425
|
-
maxRetries: (
|
|
548
|
+
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,
|
|
549
|
+
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,
|
|
426
550
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
551
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
552
|
+
logging: this._options.logging,
|
|
427
553
|
});
|
|
428
554
|
if (_response.ok) {
|
|
429
555
|
return {
|
|
430
556
|
data: {
|
|
431
557
|
ok: true,
|
|
432
|
-
body: serializers.organization.
|
|
558
|
+
body: serializers.organization.isMember.Response.parseOrThrow(_response.body, {
|
|
433
559
|
unrecognizedObjectKeys: "passthrough",
|
|
434
560
|
allowUnrecognizedUnionMembers: true,
|
|
435
561
|
allowUnrecognizedEnumValues: true,
|
|
@@ -442,10 +568,29 @@ class Organization {
|
|
|
442
568
|
rawResponse: _response.rawResponse,
|
|
443
569
|
};
|
|
444
570
|
}
|
|
571
|
+
if (_response.error.reason === "status-code") {
|
|
572
|
+
switch (_response.error.statusCode) {
|
|
573
|
+
case 422:
|
|
574
|
+
return {
|
|
575
|
+
data: {
|
|
576
|
+
ok: false,
|
|
577
|
+
error: FernApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
578
|
+
unrecognizedObjectKeys: "passthrough",
|
|
579
|
+
allowUnrecognizedUnionMembers: true,
|
|
580
|
+
allowUnrecognizedEnumValues: true,
|
|
581
|
+
skipValidation: true,
|
|
582
|
+
breadcrumbsPrefix: ["response"],
|
|
583
|
+
})),
|
|
584
|
+
rawResponse: _response.rawResponse,
|
|
585
|
+
},
|
|
586
|
+
rawResponse: _response.rawResponse,
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
}
|
|
445
590
|
return {
|
|
446
591
|
data: {
|
|
447
592
|
ok: false,
|
|
448
|
-
error:
|
|
593
|
+
error: FernApi.organization.isMember.Error._unknown(_response.error),
|
|
449
594
|
rawResponse: _response.rawResponse,
|
|
450
595
|
},
|
|
451
596
|
rawResponse: _response.rawResponse,
|
|
@@ -453,42 +598,48 @@ class Organization {
|
|
|
453
598
|
});
|
|
454
599
|
}
|
|
455
600
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
601
|
+
* Returns the org for a scoped token. The token is limited to one organization.
|
|
602
|
+
*
|
|
603
|
+
* @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
604
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
458
605
|
*
|
|
459
606
|
* @example
|
|
460
|
-
* await client.organization.
|
|
461
|
-
* userId: "userId",
|
|
462
|
-
* orgId: "orgId"
|
|
463
|
-
* })
|
|
607
|
+
* await client.organization.getMyOrganizationFromScopedToken()
|
|
464
608
|
*/
|
|
465
|
-
|
|
466
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
609
|
+
getMyOrganizationFromScopedToken(request = {}, requestOptions) {
|
|
610
|
+
return core.HttpResponsePromise.fromPromise(this.__getMyOrganizationFromScopedToken(request, requestOptions));
|
|
467
611
|
}
|
|
468
|
-
|
|
469
|
-
return __awaiter(this,
|
|
470
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
471
|
-
const
|
|
612
|
+
__getMyOrganizationFromScopedToken() {
|
|
613
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
614
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
615
|
+
const { shouldIncludeFernUsers } = request;
|
|
616
|
+
const _queryParams = {
|
|
617
|
+
shouldIncludeFernUsers,
|
|
618
|
+
};
|
|
619
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
620
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
472
621
|
const _response = yield core.fetcher({
|
|
473
|
-
url: core.url.join((
|
|
622
|
+
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"),
|
|
474
623
|
method: "POST",
|
|
475
624
|
headers: _headers,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, {
|
|
480
|
-
unrecognizedObjectKeys: "strip",
|
|
481
|
-
omitUndefined: true,
|
|
482
|
-
}),
|
|
483
|
-
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,
|
|
484
|
-
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,
|
|
625
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
626
|
+
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,
|
|
627
|
+
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,
|
|
485
628
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
629
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
630
|
+
logging: this._options.logging,
|
|
486
631
|
});
|
|
487
632
|
if (_response.ok) {
|
|
488
633
|
return {
|
|
489
634
|
data: {
|
|
490
635
|
ok: true,
|
|
491
|
-
body:
|
|
636
|
+
body: serializers.Organization.parseOrThrow(_response.body, {
|
|
637
|
+
unrecognizedObjectKeys: "passthrough",
|
|
638
|
+
allowUnrecognizedUnionMembers: true,
|
|
639
|
+
allowUnrecognizedEnumValues: true,
|
|
640
|
+
skipValidation: true,
|
|
641
|
+
breadcrumbsPrefix: ["response"],
|
|
642
|
+
}),
|
|
492
643
|
headers: _response.headers,
|
|
493
644
|
rawResponse: _response.rawResponse,
|
|
494
645
|
},
|
|
@@ -496,19 +647,18 @@ class Organization {
|
|
|
496
647
|
};
|
|
497
648
|
}
|
|
498
649
|
if (_response.error.reason === "status-code") {
|
|
499
|
-
switch (
|
|
500
|
-
case
|
|
501
|
-
case "UserIdDoesNotExistError":
|
|
650
|
+
switch (_response.error.statusCode) {
|
|
651
|
+
case 422:
|
|
502
652
|
return {
|
|
503
653
|
data: {
|
|
504
654
|
ok: false,
|
|
505
|
-
error:
|
|
655
|
+
error: FernApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
506
656
|
unrecognizedObjectKeys: "passthrough",
|
|
507
657
|
allowUnrecognizedUnionMembers: true,
|
|
508
658
|
allowUnrecognizedEnumValues: true,
|
|
509
659
|
skipValidation: true,
|
|
510
660
|
breadcrumbsPrefix: ["response"],
|
|
511
|
-
}),
|
|
661
|
+
})),
|
|
512
662
|
rawResponse: _response.rawResponse,
|
|
513
663
|
},
|
|
514
664
|
rawResponse: _response.rawResponse,
|
|
@@ -518,7 +668,7 @@ class Organization {
|
|
|
518
668
|
return {
|
|
519
669
|
data: {
|
|
520
670
|
ok: false,
|
|
521
|
-
error:
|
|
671
|
+
error: FernApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
|
|
522
672
|
rawResponse: _response.rawResponse,
|
|
523
673
|
},
|
|
524
674
|
rawResponse: _response.rawResponse,
|
|
@@ -526,36 +676,91 @@ class Organization {
|
|
|
526
676
|
});
|
|
527
677
|
}
|
|
528
678
|
/**
|
|
529
|
-
* @param {
|
|
530
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
679
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
531
680
|
*
|
|
532
681
|
* @example
|
|
533
|
-
* await client.organization.
|
|
534
|
-
|
|
535
|
-
|
|
682
|
+
* await client.organization.getOrgIdsFromToken()
|
|
683
|
+
*/
|
|
684
|
+
getOrgIdsFromToken(requestOptions) {
|
|
685
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrgIdsFromToken(requestOptions));
|
|
686
|
+
}
|
|
687
|
+
__getOrgIdsFromToken(requestOptions) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
690
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
691
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
692
|
+
const _response = yield core.fetcher({
|
|
693
|
+
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"),
|
|
694
|
+
method: "POST",
|
|
695
|
+
headers: _headers,
|
|
696
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
697
|
+
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,
|
|
698
|
+
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,
|
|
699
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
700
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
701
|
+
logging: this._options.logging,
|
|
702
|
+
});
|
|
703
|
+
if (_response.ok) {
|
|
704
|
+
return {
|
|
705
|
+
data: {
|
|
706
|
+
ok: true,
|
|
707
|
+
body: serializers.organization.getOrgIdsFromToken.Response.parseOrThrow(_response.body, {
|
|
708
|
+
unrecognizedObjectKeys: "passthrough",
|
|
709
|
+
allowUnrecognizedUnionMembers: true,
|
|
710
|
+
allowUnrecognizedEnumValues: true,
|
|
711
|
+
skipValidation: true,
|
|
712
|
+
breadcrumbsPrefix: ["response"],
|
|
713
|
+
}),
|
|
714
|
+
headers: _response.headers,
|
|
715
|
+
rawResponse: _response.rawResponse,
|
|
716
|
+
},
|
|
717
|
+
rawResponse: _response.rawResponse,
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
return {
|
|
721
|
+
data: {
|
|
722
|
+
ok: false,
|
|
723
|
+
error: FernApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
|
|
724
|
+
rawResponse: _response.rawResponse,
|
|
725
|
+
},
|
|
726
|
+
rawResponse: _response.rawResponse,
|
|
727
|
+
};
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* @param {FernApi.AddUserToOrgRequest} request
|
|
732
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
733
|
+
*
|
|
734
|
+
* @example
|
|
735
|
+
* await client.organization.addUser({
|
|
736
|
+
* userId: "userId",
|
|
737
|
+
* orgId: "orgId"
|
|
536
738
|
* })
|
|
537
739
|
*/
|
|
538
|
-
|
|
539
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
740
|
+
addUser(request, requestOptions) {
|
|
741
|
+
return core.HttpResponsePromise.fromPromise(this.__addUser(request, requestOptions));
|
|
540
742
|
}
|
|
541
|
-
|
|
743
|
+
__addUser(request, requestOptions) {
|
|
542
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
544
|
-
const
|
|
745
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
746
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
747
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
545
748
|
const _response = yield core.fetcher({
|
|
546
|
-
url: core.url.join((
|
|
749
|
+
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"),
|
|
547
750
|
method: "POST",
|
|
548
751
|
headers: _headers,
|
|
549
752
|
contentType: "application/json",
|
|
550
753
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
551
754
|
requestType: "json",
|
|
552
|
-
body: serializers.
|
|
755
|
+
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, {
|
|
553
756
|
unrecognizedObjectKeys: "strip",
|
|
554
757
|
omitUndefined: true,
|
|
555
758
|
}),
|
|
556
|
-
timeoutMs: ((
|
|
557
|
-
maxRetries: (
|
|
759
|
+
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,
|
|
760
|
+
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,
|
|
558
761
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
762
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
763
|
+
logging: this._options.logging,
|
|
559
764
|
});
|
|
560
765
|
if (_response.ok) {
|
|
561
766
|
return {
|
|
@@ -569,19 +774,18 @@ class Organization {
|
|
|
569
774
|
};
|
|
570
775
|
}
|
|
571
776
|
if (_response.error.reason === "status-code") {
|
|
572
|
-
switch (
|
|
573
|
-
case
|
|
574
|
-
case "UserIdDoesNotExistError":
|
|
777
|
+
switch (_response.error.statusCode) {
|
|
778
|
+
case 422:
|
|
575
779
|
return {
|
|
576
780
|
data: {
|
|
577
781
|
ok: false,
|
|
578
|
-
error:
|
|
782
|
+
error: FernApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
579
783
|
unrecognizedObjectKeys: "passthrough",
|
|
580
784
|
allowUnrecognizedUnionMembers: true,
|
|
581
785
|
allowUnrecognizedEnumValues: true,
|
|
582
786
|
skipValidation: true,
|
|
583
787
|
breadcrumbsPrefix: ["response"],
|
|
584
|
-
}),
|
|
788
|
+
})),
|
|
585
789
|
rawResponse: _response.rawResponse,
|
|
586
790
|
},
|
|
587
791
|
rawResponse: _response.rawResponse,
|
|
@@ -591,7 +795,7 @@ class Organization {
|
|
|
591
795
|
return {
|
|
592
796
|
data: {
|
|
593
797
|
ok: false,
|
|
594
|
-
error:
|
|
798
|
+
error: FernApi.organization.addUser.Error._unknown(_response.error),
|
|
595
799
|
rawResponse: _response.rawResponse,
|
|
596
800
|
},
|
|
597
801
|
rawResponse: _response.rawResponse,
|
|
@@ -599,36 +803,39 @@ class Organization {
|
|
|
599
803
|
});
|
|
600
804
|
}
|
|
601
805
|
/**
|
|
602
|
-
* @param {
|
|
603
|
-
* @param {
|
|
806
|
+
* @param {FernApi.InviteUserToOrgRequest} request
|
|
807
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
604
808
|
*
|
|
605
809
|
* @example
|
|
606
|
-
* await client.organization.
|
|
607
|
-
*
|
|
810
|
+
* await client.organization.inviteUser({
|
|
811
|
+
* emailAddress: "emailAddress",
|
|
608
812
|
* auth0OrgId: "auth0OrgId"
|
|
609
813
|
* })
|
|
610
814
|
*/
|
|
611
|
-
|
|
612
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
815
|
+
inviteUser(request, requestOptions) {
|
|
816
|
+
return core.HttpResponsePromise.fromPromise(this.__inviteUser(request, requestOptions));
|
|
613
817
|
}
|
|
614
|
-
|
|
818
|
+
__inviteUser(request, requestOptions) {
|
|
615
819
|
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
617
|
-
const
|
|
820
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
821
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
822
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
618
823
|
const _response = yield core.fetcher({
|
|
619
|
-
url: core.url.join((
|
|
620
|
-
method: "
|
|
824
|
+
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"),
|
|
825
|
+
method: "POST",
|
|
621
826
|
headers: _headers,
|
|
622
827
|
contentType: "application/json",
|
|
623
828
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
624
829
|
requestType: "json",
|
|
625
|
-
body: serializers.
|
|
830
|
+
body: serializers.InviteUserToOrgRequest.jsonOrThrow(request, {
|
|
626
831
|
unrecognizedObjectKeys: "strip",
|
|
627
832
|
omitUndefined: true,
|
|
628
833
|
}),
|
|
629
|
-
timeoutMs: ((
|
|
630
|
-
maxRetries: (
|
|
834
|
+
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,
|
|
835
|
+
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,
|
|
631
836
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
837
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
838
|
+
logging: this._options.logging,
|
|
632
839
|
});
|
|
633
840
|
if (_response.ok) {
|
|
634
841
|
return {
|
|
@@ -642,19 +849,18 @@ class Organization {
|
|
|
642
849
|
};
|
|
643
850
|
}
|
|
644
851
|
if (_response.error.reason === "status-code") {
|
|
645
|
-
switch (
|
|
646
|
-
case
|
|
647
|
-
case "UserIdDoesNotExistError":
|
|
852
|
+
switch (_response.error.statusCode) {
|
|
853
|
+
case 422:
|
|
648
854
|
return {
|
|
649
855
|
data: {
|
|
650
856
|
ok: false,
|
|
651
|
-
error:
|
|
857
|
+
error: FernApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
652
858
|
unrecognizedObjectKeys: "passthrough",
|
|
653
859
|
allowUnrecognizedUnionMembers: true,
|
|
654
860
|
allowUnrecognizedEnumValues: true,
|
|
655
861
|
skipValidation: true,
|
|
656
862
|
breadcrumbsPrefix: ["response"],
|
|
657
|
-
}),
|
|
863
|
+
})),
|
|
658
864
|
rawResponse: _response.rawResponse,
|
|
659
865
|
},
|
|
660
866
|
rawResponse: _response.rawResponse,
|
|
@@ -664,7 +870,7 @@ class Organization {
|
|
|
664
870
|
return {
|
|
665
871
|
data: {
|
|
666
872
|
ok: false,
|
|
667
|
-
error:
|
|
873
|
+
error: FernApi.organization.inviteUser.Error._unknown(_response.error),
|
|
668
874
|
rawResponse: _response.rawResponse,
|
|
669
875
|
},
|
|
670
876
|
rawResponse: _response.rawResponse,
|
|
@@ -672,29 +878,39 @@ class Organization {
|
|
|
672
878
|
});
|
|
673
879
|
}
|
|
674
880
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
* @param {FernVenusApi.OrganizationId} orgId
|
|
678
|
-
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
881
|
+
* @param {FernApi.RemoveUserFromOrgRequest} request
|
|
882
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
679
883
|
*
|
|
680
884
|
* @example
|
|
681
|
-
* await client.organization.
|
|
885
|
+
* await client.organization.removeUser({
|
|
886
|
+
* userId: "userId",
|
|
887
|
+
* auth0OrgId: "auth0OrgId"
|
|
888
|
+
* })
|
|
682
889
|
*/
|
|
683
|
-
|
|
684
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
890
|
+
removeUser(request, requestOptions) {
|
|
891
|
+
return core.HttpResponsePromise.fromPromise(this.__removeUser(request, requestOptions));
|
|
685
892
|
}
|
|
686
|
-
|
|
893
|
+
__removeUser(request, requestOptions) {
|
|
687
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
689
|
-
const
|
|
895
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
896
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
897
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
690
898
|
const _response = yield core.fetcher({
|
|
691
|
-
url: core.url.join((
|
|
899
|
+
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"),
|
|
692
900
|
method: "DELETE",
|
|
693
901
|
headers: _headers,
|
|
902
|
+
contentType: "application/json",
|
|
694
903
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
695
|
-
|
|
696
|
-
|
|
904
|
+
requestType: "json",
|
|
905
|
+
body: serializers.RemoveUserFromOrgRequest.jsonOrThrow(request, {
|
|
906
|
+
unrecognizedObjectKeys: "strip",
|
|
907
|
+
omitUndefined: true,
|
|
908
|
+
}),
|
|
909
|
+
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,
|
|
910
|
+
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,
|
|
697
911
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
912
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
913
|
+
logging: this._options.logging,
|
|
698
914
|
});
|
|
699
915
|
if (_response.ok) {
|
|
700
916
|
return {
|
|
@@ -708,19 +924,18 @@ class Organization {
|
|
|
708
924
|
};
|
|
709
925
|
}
|
|
710
926
|
if (_response.error.reason === "status-code") {
|
|
711
|
-
switch (
|
|
712
|
-
case
|
|
713
|
-
case "OrganizationNotFoundError":
|
|
927
|
+
switch (_response.error.statusCode) {
|
|
928
|
+
case 422:
|
|
714
929
|
return {
|
|
715
930
|
data: {
|
|
716
931
|
ok: false,
|
|
717
|
-
error:
|
|
932
|
+
error: FernApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
718
933
|
unrecognizedObjectKeys: "passthrough",
|
|
719
934
|
allowUnrecognizedUnionMembers: true,
|
|
720
935
|
allowUnrecognizedEnumValues: true,
|
|
721
936
|
skipValidation: true,
|
|
722
937
|
breadcrumbsPrefix: ["response"],
|
|
723
|
-
}),
|
|
938
|
+
})),
|
|
724
939
|
rawResponse: _response.rawResponse,
|
|
725
940
|
},
|
|
726
941
|
rawResponse: _response.rawResponse,
|
|
@@ -730,21 +945,12 @@ class Organization {
|
|
|
730
945
|
return {
|
|
731
946
|
data: {
|
|
732
947
|
ok: false,
|
|
733
|
-
error:
|
|
948
|
+
error: FernApi.organization.removeUser.Error._unknown(_response.error),
|
|
734
949
|
rawResponse: _response.rawResponse,
|
|
735
950
|
},
|
|
736
951
|
rawResponse: _response.rawResponse,
|
|
737
952
|
};
|
|
738
953
|
});
|
|
739
954
|
}
|
|
740
|
-
_getAuthorizationHeader() {
|
|
741
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
742
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
743
|
-
if (bearer != null) {
|
|
744
|
-
return `Bearer ${bearer}`;
|
|
745
|
-
}
|
|
746
|
-
return undefined;
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
955
|
}
|
|
750
|
-
exports.
|
|
956
|
+
exports.OrganizationClient = OrganizationClient;
|