Skip to content

@salesforce/b2c-tooling-sdk / safety / SafetyOperation

Interface: SafetyOperation ​

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:56

An operation being evaluated for safety.

Constructed by the caller (HTTP middleware, CLI command, etc.) and passed to SafetyGuard.evaluate for rule matching.

Properties ​

commandId? ​

optional commandId: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:68

CLI command ID, e.g., "sandbox:delete" (for command operations).


jobId? ​

optional jobId: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:66

Job identifier (for job operations, or extracted from http operation URLs).


method? ​

optional method: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:60

HTTP method (for http operations).


path? ​

optional path: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:64

Parsed URL pathname (for http operations).


type ​

type: "http" | "job" | "command"

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:58

The type of operation being evaluated.


url? ​

optional url: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:62

Full request URL (for http operations).

Released under the Apache-2.0 License.