OrbitSpaceDevelopers

TYPESCRIPT / JAVASCRIPT

Goals & experiences

Method reference generated from the public package declarations · v0.3.0

Create an idempotent Goal Experience or explicitly control a native Goal. Native Goal observation follows status; use the Experience projection for detailed phases and human interaction.

Related HTTP contract
export class GoalsResource

constructor

constructor(client: OrbitSpaceClient);

cancel

cancel(id: string, body: VersionedRequest<AutonomyServiceCancelGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceCancelGoalResponses[200]>;

controlExperience

controlExperience(id: string, body: VersionedRequest<AutonomyServiceControlGoalExperienceData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceControlGoalExperienceResponses[200]>;

create

create(body: AutonomyServiceCreateGoalData["body"], options?: ResourceCallOptions): Promise<AutonomyServiceCreateGoalResponses[200]>;

createExperience

createExperience(body: IdempotentRequest<AutonomyServiceCreateGoalExperienceData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceCreateGoalExperienceResponses[200]>;

evaluations

evaluations(id: string, query?: NonNullable<AutonomyServiceListGoalEvaluationsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalEvaluationsResponses[200]>;

events

events(id: string, options?: WatchOptions): AsyncGenerator<ServerSentEvent<Record<string, unknown>>, any, any>;

get

get(id: string, options?: ResourceCallOptions): Promise<AutonomyServiceGetGoalResponses[200]>;

getExperience

getExperience(id: string, options?: ResourceCallOptions): Promise<AutonomyServiceGetGoalExperienceResponses[200]>;

iterations

iterations(id: string, query?: NonNullable<AutonomyServiceListGoalIterationsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalIterationsResponses[200]>;

list

list(query?: NonNullable<AutonomyServiceListGoalsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalsResponses[200]>;

observe

observe(id: string, options: ExecutionObserveOptions): AsyncGenerator<ExecutionObservation<Goal>>;

pause

pause(id: string, body: VersionedRequest<AutonomyServicePauseGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServicePauseGoalResponses[200]>;

releases

releases(id: string, query?: NonNullable<AutonomyServiceListGoalReleasesData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalReleasesResponses[200]>;

resume

resume(id: string, body: VersionedRequest<AutonomyServiceResumeGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceResumeGoalResponses[200]>;

start

start(id: string, body: VersionedRequest<AutonomyServiceStartGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceStartGoalResponses[200]>;

wait

wait(id: string, options: ExecutionObserveOptions): Promise<ExecutionObservation<Goal>>;
export type GoalExperienceReference = string | {
    goal?: {
        id?: string;
    };
    deep_link?: string;
    event_stream_url?: string;
};

Download method index JSON ↓ · Source digest 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2