# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: IntermediateService API version: 0.0.1 paths: /intermediate/v1/email-signin: post: tags: - IntermediateService description: Creates a new intermediate session or session and cookies the requester. operationId: IntermediateService_SignInWithEmail requestBody: content: application/json: schema: $ref: '#/components/schemas/SignInWithEmailRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/SignInWithEmailResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/exchange-intermediate-session-for-new-organization-session: post: tags: - IntermediateService operationId: IntermediateService_ExchangeIntermediateSessionForNewOrganizationSession requestBody: content: application/json: schema: $ref: '#/components/schemas/ExchangeIntermediateSessionForNewOrganizationSessionRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ExchangeIntermediateSessionForNewOrganizationSessionResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/exchange-intermediate-session-for-session: post: tags: - IntermediateService operationId: IntermediateService_ExchangeIntermediateSessionForSession requestBody: content: application/json: schema: $ref: '#/components/schemas/ExchangeIntermediateSessionForSessionRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ExchangeIntermediateSessionForSessionResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/google-oauth-redirect-url: post: tags: - IntermediateService operationId: IntermediateService_GetGoogleOAuthRedirectURL requestBody: content: application/json: schema: $ref: '#/components/schemas/GetGoogleOAuthRedirectURLRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/GetGoogleOAuthRedirectURLResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/issue-email-verification-challenge: post: tags: - IntermediateService description: Issues a new email verification challenge. operationId: IntermediateService_IssueEmailVerificationChallenge requestBody: content: application/json: schema: $ref: '#/components/schemas/IssueEmailVerificationChallengeRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/IssueEmailVerificationChallengeResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/microsoft-oauth-redirect-url: post: tags: - IntermediateService operationId: IntermediateService_GetMicrosoftOAuthRedirectURL requestBody: content: application/json: schema: $ref: '#/components/schemas/GetMicrosoftOAuthRedirectURLRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/GetMicrosoftOAuthRedirectURLResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/organizations: get: tags: - IntermediateService description: Gets a list of organizations. operationId: IntermediateService_ListOrganizations parameters: - name: pageToken in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ListOrganizationsResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/redeem-google-oauth-code: post: tags: - IntermediateService operationId: IntermediateService_RedeemGoogleOAuthCode requestBody: content: application/json: schema: $ref: '#/components/schemas/RedeemGoogleOAuthCodeRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/RedeemGoogleOAuthCodeResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/redeem-microsoft-oauth-code: post: tags: - IntermediateService operationId: IntermediateService_RedeemMicrosoftOAuthCode requestBody: content: application/json: schema: $ref: '#/components/schemas/RedeemMicrosoftOAuthCodeRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/RedeemMicrosoftOAuthCodeResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/verify-email-challenge: post: tags: - IntermediateService description: Submits a challenge for verification of email address. operationId: IntermediateService_VerifyEmailChallenge requestBody: content: application/json: schema: $ref: '#/components/schemas/VerifyEmailChallengeRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VerifyEmailChallengeResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' /intermediate/v1/whoami: get: tags: - IntermediateService operationId: IntermediateService_Whoami responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/WhoamiResponse' default: description: Default error response content: application/json: schema: $ref: '#/components/schemas/Status' components: schemas: ExchangeIntermediateSessionForNewOrganizationSessionRequest: type: object properties: displayName: type: string description: The display name of the organization to create. ExchangeIntermediateSessionForNewOrganizationSessionResponse: type: object properties: accessToken: type: string description: The session access token. refreshToken: type: string description: The refresh token for the new session. ExchangeIntermediateSessionForSessionRequest: type: object properties: organizationId: type: string description: The organization ID for the full session. ExchangeIntermediateSessionForSessionResponse: type: object properties: accessToken: type: string description: The session access token. refreshToken: type: string description: The refresh token for the new session. GetGoogleOAuthRedirectURLRequest: type: object properties: redirectUrl: type: string GetGoogleOAuthRedirectURLResponse: type: object properties: url: type: string intermediateSessionToken: type: string GetMicrosoftOAuthRedirectURLRequest: type: object properties: redirectUrl: type: string GetMicrosoftOAuthRedirectURLResponse: type: object properties: url: type: string intermediateSessionToken: type: string GoogleProtobufAny: type: object properties: '@type': type: string description: The type of the serialized message. additionalProperties: true description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. IssueEmailVerificationChallengeRequest: type: object properties: {} IssueEmailVerificationChallengeResponse: type: object properties: emailVerificationChallengeId: type: string description: The ID of the email verification challenge. ListOrganizationsResponse: type: object properties: organizations: type: array items: $ref: '#/components/schemas/Organization' nextPageToken: type: string Organization: type: object properties: id: type: string projectId: type: string displayName: type: string logInWithGoogleEnabled: type: boolean logInWithMicrosoftEnabled: type: boolean logInWithPasswordEnabled: type: boolean RedeemGoogleOAuthCodeRequest: type: object properties: code: type: string state: type: string redirectUrl: type: string RedeemGoogleOAuthCodeResponse: type: object properties: {} RedeemMicrosoftOAuthCodeRequest: type: object properties: code: type: string state: type: string redirectUrl: type: string RedeemMicrosoftOAuthCodeResponse: type: object properties: {} SignInWithEmailRequest: type: object properties: email: type: string description: The email address to sign in with. SignInWithEmailResponse: type: object properties: intermediateSessionToken: type: string description: The access token for the new intermediate session. challengeId: type: string description: The ID of the email verification challenge, if required. Status: type: object properties: code: type: integer description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. format: int32 message: type: string description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. details: type: array items: $ref: '#/components/schemas/GoogleProtobufAny' description: A list of messages that carry the error details. There is a common set of message types for APIs to use. description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).' VerifyEmailChallengeRequest: type: object properties: code: type: string description: The challenge to verify. emailVerificationChallengeId: type: string description: The ID of the email verification challenge. VerifyEmailChallengeResponse: type: object properties: {} WhoamiResponse: type: object properties: email: type: string description: The email associated with the intermediate session. googleUserId: type: string description: The Google User ID associated with the intermediate session. isEmailVerified: type: boolean description: A boolean representing whether the user has verified their email address. microsoftUserId: type: string description: The Microsoft User ID associated with the intermediate session. organizationId: type: string description: The organization ID associated with the intermediate session. tags: - name: IntermediateService