@edgible-team/sdk
    Preparing search index...

    Class ApplicationShortCodesClient

    sdk.applications.shortCodes — short login codes granting access to an application.

    Index

    Constructors

    Methods

    • The backend returns the created short-code row directly (no envelope).

      Parameters

      • params: { applicationId: string; expiresAt?: string; maxUses?: number; name: string }
      • Optionalopts: RequestOptions

      Returns Promise<ApplicationShortCodeData>

    • Delete a short code.

      Parameters

      • params: { applicationId: string; codeId: string }
      • Optionalopts: RequestOptions

      Returns Promise<void>

      NotFoundError if the application or code does not exist.

    • List an application's short codes.

      Parameters

      Returns Promise<ApplicationShortCodeData[]>

    • Update a short code's name/enabled/expiry/maxUses; returns the updated row.

      Parameters

      • params: {
            applicationId: string;
            codeId: string;
            enabled?: boolean;
            expiresAt?: string;
            maxUses?: number;
            name?: string;
        }
      • Optionalopts: RequestOptions

      Returns Promise<ApplicationShortCodeData>

      NotFoundError if the application or code does not exist.