@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? ​
optionalcommandId:string
Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:68
CLI command ID, e.g., "sandbox:delete" (for command operations).
jobId? ​
optionaljobId:string
Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:66
Job identifier (for job operations, or extracted from http operation URLs).
method? ​
optionalmethod:string
Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:60
HTTP method (for http operations).
path? ​
optionalpath: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? ​
optionalurl:string
Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:62
Full request URL (for http operations).