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