Interface: EnqueueOnBehalfOfParams
Extends
Properties
authority
authority: {
kind:"request";request_id:string;user_id:string; } | {kind:"resource";resource_id:string;resource_kind:string;user_id:string; } | {cron_job_name:string;kind:"cron";user_id:string; }
Type declaration
{ kind: "request"; request_id: string; user_id: string; }
kind
kind:
"request"
Example
request
@enum {string}request_id
request_id:
string
Description
Originating request id (e.g. X-Request-ID).
Example
r - abc123;user_id
user_id:
string
Description
User who made the originating request.
Example
Us7k_pQ2;{ kind: "resource"; resource_id: string; resource_kind: string; user_id: string; }
kind
kind:
"resource"
Example
resource
@enum {string}resource_id
resource_id:
string
Description
Short id of the resource row that authorized the chain.
Example
Ch7k_mN2;resource_kind
resource_kind:
string
Description
Product-specific resource type for resource_id (e.g. channel_subscription, importer). Tells consumers which table or domain object to resolve.
Example
channel_subscription;user_id
user_id:
string
Description
Owner of the resource whose authority is used.
Example
Us7k_pQ2;{ cron_job_name: string; kind: "cron"; user_id: string; }
cron_job_name
cron_job_name:
string
Description
Name of the cron job that enqueued this chain.
Example
recoverySweep;kind
kind:
"cron"
Example
cron
@enum {string}user_id
user_id:
string
Description
Admin who enabled the cron job (enabled_by).
Example
Us7k_pQ2;concurrency_key?
optionalconcurrency_key:null|string
Inherited from
dedupe_key?
optionaldedupe_key:null|string
Inherited from
delay_ms?
optionaldelay_ms:number
Inherited from
operation_id
operation_id:
string
Inherited from
priority?
optionalpriority:number
Inherited from
request?
optionalrequest:object
body?
optionalbody:unknown
Description
JSON request body for the target operation, when any.
path_params?
optionalpath_params:object
Index Signature
[key: string]: unknown
Description
Path template substitutions keyed by parameter name.
query?
optionalquery:object
Index Signature
[key: string]: unknown
Description
Query string parameters keyed by name.
Inherited from
run_at?
optionalrun_at:string
Inherited from
user_id
user_id:
string