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