approval

package
v1.0.100 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package approval registers Approval-domain EventKeys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys() []event.KeyDefinition

Keys returns all Approval-domain EventKey definitions.

Types

type ApprovalInstanceStatusChangedV4Output

type ApprovalInstanceStatusChangedV4Output struct {
	Type         string          `` /* 135-byte string literal not displayed */
	EventID      string          `json:"event_id,omitempty"      desc:"Globally unique event ID; safe for deduplication"`
	Timestamp    string          `` /* 143-byte string literal not displayed */
	ApprovalCode string          `json:"approval_code,omitempty" desc:"Approval definition code; not a subscription dimension"`
	InstanceCode string          `json:"instance_code,omitempty" desc:"Approval instance code"`
	ExternalID   string          `json:"external_id,omitempty"   desc:"Third-party approval instance id; present only for third-party approvals"`
	Status       string          `` /* 153-byte string literal not displayed */
	OperateTime  string          `json:"operate_time,omitempty"  desc:"Status change time in milliseconds" kind:"timestamp_ms"`
	StartUser    *ApprovalUserID `json:"start_user,omitempty"    desc:"Approval instance starter; omitted when unavailable"`
}

ApprovalInstanceStatusChangedV4Output is the flattened shape for approval.instance.status_changed_v4.

type ApprovalTaskStatusChangedV4Output

type ApprovalTaskStatusChangedV4Output struct {
	Type           string          `` /* 129-byte string literal not displayed */
	EventID        string          `json:"event_id,omitempty"        desc:"Globally unique event ID; safe for deduplication"`
	Timestamp      string          `` /* 145-byte string literal not displayed */
	ApprovalCode   string          `json:"approval_code,omitempty"     desc:"Approval definition code; not a subscription dimension"`
	InstanceCode   string          `json:"instance_code,omitempty"     desc:"Approval instance code"`
	TaskID         string          `json:"task_id,omitempty"           desc:"Approval task id"`
	ExternalID     string          `json:"external_id,omitempty"       desc:"Third-party approval external id; present only for third-party approvals"`
	TaskExternalID string          `` /* 130-byte string literal not displayed */
	AssignedUser   *ApprovalUserID `json:"assigned_user,omitempty"     desc:"Task assignee or operator user ids; omitted for automatic flows without an operator"`
	Status         string          `` /* 162-byte string literal not displayed */
	OperateTime    string          `json:"operate_time,omitempty"      desc:"Status change time in milliseconds" kind:"timestamp_ms"`
}

ApprovalTaskStatusChangedV4Output is the flattened shape for approval.task.status_changed_v4.

type ApprovalUserID

type ApprovalUserID struct {
	OpenID  string `json:"open_id,omitempty"  desc:"User open_id; prefixed with ou_" kind:"open_id"`
	UnionID string `json:"union_id,omitempty" desc:"User union_id"                  kind:"union_id"`
	UserID  string `json:"user_id,omitempty"  desc:"User id within the tenant"       kind:"user_id"`
}

ApprovalUserID identifies a user in the three Lark ID formats included by approval status-change events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL