Skip to content

SkillScriptGrantRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Request to grant script execution permission.

public sealed record SkillScriptGrantRequest : IEquatable<SkillScriptGrantRequest>

objectSkillScriptGrantRequest

IEquatable<SkillScriptGrantRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Granting permission means authorizing code to run on the server on behalf of this tenant. Because of this, the corresponding endpoint is open only to the admin role and every request is written to the audit log.

public SkillScriptGrantRequest()

Expiration time of the grant. If null, it is unlimited.

public DateTimeOffset? ExpiresAt { get; init; }

DateTimeOffset?

Name of the script being granted permission. If null, every script of the skill is covered.

public string? ScriptName { get; init; }

string?

Name of the skill being granted permission.

public required string SkillName { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SkillScriptGrantRequest? other)

other SkillScriptGrantRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SkillScriptGrantRequest?, SkillScriptGrantRequest?)

Section titled “ operator ==(SkillScriptGrantRequest?, SkillScriptGrantRequest?)”
public static bool operator ==(SkillScriptGrantRequest? left, SkillScriptGrantRequest? right)

left SkillScriptGrantRequest?

right SkillScriptGrantRequest?

bool

operator !=(SkillScriptGrantRequest?, SkillScriptGrantRequest?)

Section titled “ operator !=(SkillScriptGrantRequest?, SkillScriptGrantRequest?)”
public static bool operator !=(SkillScriptGrantRequest? left, SkillScriptGrantRequest? right)

left SkillScriptGrantRequest?

right SkillScriptGrantRequest?

bool