import * as z from "zod/v4-mini"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CarrierAccountServiceLevel } from "./carrieraccountservicelevel.js"; import { FedExConnectExistingOwnAccountParameters } from "./fedexconnectexistingownaccountparameters.js"; import { UPSConnectExistingOwnAccountParameters } from "./upsconnectexistingownaccountparameters.js"; export type ParametersT = UPSConnectExistingOwnAccountParameters | FedExConnectExistingOwnAccountParameters | { [k: string]: any; }; /** * Authentication method used by this account. */ export declare const CarrierAccountWithExtraInfoType: { readonly Default: "default"; readonly Oauth: "oauth"; }; /** * Authentication method used by this account. */ export type CarrierAccountWithExtraInfoType = ClosedEnum; /** * Current authentication status. Possible values: 'disconnected' (authorization lost, reconnect needed), 'connected' (authorized and active), 'authorization_pending' (awaiting initial authorization flow). */ export declare const CarrierAccountWithExtraInfoStatus: { readonly Disconnected: "disconnected"; readonly Connected: "connected"; readonly AuthorizationPending: "authorization_pending"; }; /** * Current authentication status. Possible values: 'disconnected' (authorization lost, reconnect needed), 'connected' (authorized and active), 'authorization_pending' (awaiting initial authorization flow). */ export type CarrierAccountWithExtraInfoStatus = ClosedEnum; export type Authentication = { /** * Authentication method used by this account. */ type?: CarrierAccountWithExtraInfoType | undefined; /** * Current authentication status. Possible values: 'disconnected' (authorization lost, reconnect needed), 'connected' (authorized and active), 'authorization_pending' (awaiting initial authorization flow). */ status?: CarrierAccountWithExtraInfoStatus | undefined; }; /** * Holds internal state relevant to users. */ export type ObjectInfo = { authentication?: Authentication | undefined; }; export type CarrierAccountWithExtraInfo = { /** * Unique identifier of the account. Please check the carrier accounts tutorial * * @remarks * page for the `account_id` per carrier.
* To protect account information, this field will be masked in any API response. */ accountId: string; /** * Determines whether the account is active. When creating a shipment, if no `carrier_accounts` are explicitly * * @remarks * passed Shippo will query all carrier accounts that have this field set. By default, this is set to True. */ active?: boolean | undefined; /** * Carrier token, see Carriers
* * @remarks * Please check the carrier accounts tutorial page for all supported carriers. */ carrier: string; parameters?: UPSConnectExistingOwnAccountParameters | FedExConnectExistingOwnAccountParameters | { [k: string]: any; } | undefined; /** * Carrier name, see Carriers
*/ carrierName?: any | undefined; isShippoAccount?: boolean | undefined; metadata?: string | undefined; /** * Unique identifier of the carrier account object. */ objectId?: string | undefined; /** * Username of the user who created the carrier account object. */ objectOwner?: string | undefined; serviceLevels?: Array | undefined; /** * Indicates whether the object has been created in test mode. */ test?: boolean | undefined; /** * Holds internal state relevant to users. */ objectInfo?: ObjectInfo | undefined; }; /** @internal */ export declare const ParametersT$inboundSchema: z.ZodMiniType; export declare function parametersFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CarrierAccountWithExtraInfoType$inboundSchema: z.ZodMiniEnum; /** @internal */ export declare const CarrierAccountWithExtraInfoStatus$inboundSchema: z.ZodMiniEnum; /** @internal */ export declare const Authentication$inboundSchema: z.ZodMiniType; export declare function authenticationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ObjectInfo$inboundSchema: z.ZodMiniType; export declare function objectInfoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CarrierAccountWithExtraInfo$inboundSchema: z.ZodMiniType; export declare function carrierAccountWithExtraInfoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=carrieraccountwithextrainfo.d.ts.map