slackline/api/tooling

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Slack Web API methods for app configuration tokens.

Types

Identifies tooling.tokens.rotate in the slackline.Call that tokens_rotate returns.

pub type TokensRotate

A successful response from tooling.tokens.rotate.

pub type TokensRotateResponse {
  TokensRotateResponse(
    token: String,
    refresh_token: String,
    team_id: option.Option(String),
    user_id: option.Option(String),
    iat: option.Option(Int),
    exp: option.Option(Int),
  )
}

Constructors

  • TokensRotateResponse(
      token: String,
      refresh_token: String,
      team_id: option.Option(String),
      user_id: option.Option(String),
      iat: option.Option(Int),
      exp: option.Option(Int),
    )

    Arguments

    token

    The new app configuration access token.

    refresh_token

    The new refresh token.

    team_id

    The workspace the token belongs to.

    user_id

    The user the token belongs to.

    iat

    Unix timestamp of when the token was issued.

    exp

    Unix timestamp of when the token expires.

Values

pub fn tokens_rotate(
  refresh_token refresh_token: String,
) -> slackline.Call(TokensRotate, TokensRotateResponse)

tooling.tokens.rotate: Exchanges a refresh token for a new app configuration token.

tooling.TokensRotate identifies this method in slackline.Call.

Rate limit tier: t5.

Documented errors: invalid_refresh_token, unknown_error.

pub fn tokens_rotate_response_decoder() -> decode.Decoder(
  TokensRotateResponse,
)

Decodes the response from tooling.tokens.rotate.

✨ Search Document