Skip to content

Update from World - #9199

Merged
shopify-build-cli[bot] merged 1 commit into
mainfrom
world-mirror/main
Nov 26, 2026
Merged

shopify-build-cli[bot] merged 1 commit into
mainfrom
world-mirror/main

Conversation

@shopify-build-cli

Copy link
Copy Markdown
Contributor

This pull request brings the latest changes from World, the monorepo where Shopify develops this project.

  • Files: 3 added, 10 changed, 0 deleted

Don't push to this branch: the next update replaces it.

Published by the World mirror.

World-Commit: e3efdb79ade74e25a53d2b5539f062af9b2ebbf7
@shopify-build-cli
shopify-build-cli Bot requested a review from a team as a code owner November 26, 2026 15:47
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

packages/cli-kit/dist/private/node/session/constants.d.ts
export declare const NEW_LOGIN_LABEL = "Log in with a different account";

Existing type declarations

packages/cli-kit/dist/public/node/session-prompt.d.ts
@@ -1,3 +1,5 @@
+import { NEW_LOGIN_LABEL } from '../../private/node/session/constants.js';
+export { NEW_LOGIN_LABEL };
 /**
  * Prompts the user to select from existing sessions or log in with a different account.
  *
packages/cli-kit/dist/private/node/api/graphql.d.ts
@@ -11,6 +11,16 @@ export declare function sanitizeVariables(variables: Variables): string;
  * the full JSON representation if no messages can be extracted.
  */
 export declare function extractGraphQLErrorMessages(errors: any[] | undefined): string | undefined;
+/**
+ * Whether a request was refused because the session didn't use multi-factor authentication.
+ *
+ * Business Platform and the Admin API answer such a request with HTTP 401 and a `[TFA]` marker in the body.
+ * A refreshed token keeps the session's authentication methods, so refreshing it can't satisfy the requirement.
+ *
+ * @param error - The error thrown by graphql-request.
+ * @returns True when the response is a 401 that carries the `[TFA]` marker.
+ */
+export declare function isMfaRequiredError(error: unknown): boolean;
 export declare function errorHandler(api: string): (error: unknown, requestId?: string) => unknown;
 /**
  * Reads the `x-request-id` header of a failed GraphQL response.
packages/cli-kit/dist/public/node/error/index.d.ts
@@ -43,6 +43,10 @@ export declare abstract class FatalError extends Error {
 export declare class AbortError extends FatalError {
     constructor(message: TokenItem | OutputMessage, tryMessage?: TokenItem | OutputMessage | null, nextSteps?: TokenItem<InlineToken>[], customSections?: AlertCustomSection[]);
 }
+/** An API refused a session that didn't use multi-factor authentication. */
+export declare class MfaRequiredError extends AbortError {
+    constructor(requestId?: string);
+}
 /**
  * An external error is similar to Abort but has extra command and args attributes.
  * This is useful to represent errors coming from external commands, usually executed by execa.

@shopify-build-cli
shopify-build-cli Bot merged commit 69d523b into main Nov 26, 2026
29 checks passed
@shopify-build-cli
shopify-build-cli Bot deleted the world-mirror/main branch November 26, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants