@ref0/sdk 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ConnectionCall, An as WorkflowPasskeyState, At as SandboxPushAnswer, Bn as WorkflowTrigger, Bt as StartActor$1, Cn as WorkflowEvent, Dn as WorkflowPasskeyAsked, Dt as SandboxOpen, En as WorkflowPasskeyAsk, Et as SandboxExecAnswer, In as WorkflowStartEnded, K as GetIssueInput, Ln as WorkflowStartState, Nn as WorkflowPullRequestAnswer, On as WorkflowPasskeyEnded, Ot as SandboxOpenAnswer, Pn as WorkflowPullRequestOpen, Qt as WorkflowActionAnswer, Rn as WorkflowText, Sn as WorkflowConnections, Tn as WorkflowOwn, Tt as SandboxExec, U as ForkAnswer$1, V as EventRunInput, Vt as StartRun$1, W as ForkCreate, Wt as ThreadStage, Zt as WorkflowAction, _ as CheckOn, _n as WorkflowCheckStartAnswer, an as WorkflowCallInput, b as CheckRunParams, bn as WorkflowCheckWhere, bt as Ref0Owned, cn as WorkflowCalledState, dn as WorkflowCheckRefused, fn as WorkflowCheckResults, gn as WorkflowCheckStart, hn as WorkflowCheckRunEnded, in as WorkflowCallEnded, j as ConnectionCallAnswer, jn as WorkflowPermissions, kn as WorkflowPasskeyRead, kt as SandboxPush, ln as WorkflowCalledStateAnswer, mn as WorkflowCheckRun, nn as WorkflowCall, on as WorkflowCallRefusal, pn as WorkflowCheckResultsAnswer, rn as WorkflowCallAnswer, sn as WorkflowCallRefused, tn as WorkflowAskClosed, un as WorkflowCheckRefusal, v as CheckOwn, vn as WorkflowCheckStates, wn as WorkflowFilters, x as CheckTreeEntry, xn as WorkflowComment, y as CheckRunError, yn as WorkflowCheckStatesAnswer, zn as WorkflowThreadStart } from "./index-
|
|
1
|
+
import { A as ConnectionCall, An as WorkflowPasskeyState, At as SandboxPushAnswer, Bn as WorkflowTrigger, Bt as StartActor$1, Cn as WorkflowEvent, Dn as WorkflowPasskeyAsked, Dt as SandboxOpen, En as WorkflowPasskeyAsk, Et as SandboxExecAnswer, In as WorkflowStartEnded, K as GetIssueInput, Ln as WorkflowStartState, Nn as WorkflowPullRequestAnswer, On as WorkflowPasskeyEnded, Ot as SandboxOpenAnswer, Pn as WorkflowPullRequestOpen, Qt as WorkflowActionAnswer, Rn as WorkflowText, Sn as WorkflowConnections, Tn as WorkflowOwn, Tt as SandboxExec, U as ForkAnswer$1, V as EventRunInput, Vt as StartRun$1, W as ForkCreate, Wt as ThreadStage, Zt as WorkflowAction, _ as CheckOn, _n as WorkflowCheckStartAnswer, an as WorkflowCallInput, b as CheckRunParams, bn as WorkflowCheckWhere, bt as Ref0Owned, cn as WorkflowCalledState, dn as WorkflowCheckRefused, fn as WorkflowCheckResults, gn as WorkflowCheckStart, hn as WorkflowCheckRunEnded, in as WorkflowCallEnded, j as ConnectionCallAnswer, jn as WorkflowPermissions, kn as WorkflowPasskeyRead, kt as SandboxPush, ln as WorkflowCalledStateAnswer, mn as WorkflowCheckRun, nn as WorkflowCall, on as WorkflowCallRefusal, pn as WorkflowCheckResultsAnswer, rn as WorkflowCallAnswer, sn as WorkflowCallRefused, tn as WorkflowAskClosed, un as WorkflowCheckRefusal, v as CheckOwn, vn as WorkflowCheckStates, wn as WorkflowFilters, x as CheckTreeEntry, xn as WorkflowComment, y as CheckRunError, yn as WorkflowCheckStatesAnswer, zn as WorkflowThreadStart } from "./index-DnaFeYru.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/needs.d.ts
|
|
4
4
|
/**
|
|
@@ -671,4 +671,4 @@ interface Browser {
|
|
|
671
671
|
}
|
|
672
672
|
//#endregion
|
|
673
673
|
export { StartActor as $, ForkOptions as A, WorkflowContext as B, Comment as C, EventWorkflow as D, EventOf as E, StepConfig as F, CalledWorkflow as G, text as H, StepContext as I, TreeEntry as J, JsonValue as K, ThreadStart as L, PullRequestAnswer as M, PullRequestOptions as N, EventWorkflowSpec as O, Ref0Actions as P, Refusal as Q, WaitType as R, CheckRunEnded as S, Duration as T, workflow as U, WorkflowStep as V, CalledRunFailed as W, Allow as X, TreeRead as Y, CalledRun as Z, ActionAnswer as _, CheckRunOptions as a, allow as at, CalledContext as b, CheckRunResult as c, Need as ct, OneOfValues as d, StartContext as et, OutputResult as f, oneOf as g, check as h, CheckResult as i, StartRun as it, NeedAddOptions as j, ForkAnswer as k, CheckSpec as l, Step as m, Check as n, StartOutput as nt, CheckRunReference as o, refuse as ot, OutputSchema as p, Tree as q, CheckContext as r, StartRule as rt, CheckRunRefused as s, CheckNeed as st, Browser as t, StartItem as tt, DurationText as u, CallAnswer as v, ConnectionsOf as w, CalledWorkflowSpec as x, CallEnded as y, WaitedEvent as z };
|
|
674
|
-
//# sourceMappingURL=browse-
|
|
674
|
+
//# sourceMappingURL=browse-Ca3kOOpg.d.mts.map
|
package/dist/browser.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Browser } from "./browse-
|
|
1
|
+
import { t as Browser } from "./browse-Ca3kOOpg.mjs";
|
|
2
2
|
import { BrowserContext, BrowserContext as BrowserContext$1, BrowserContextOptions, Locator, Page, Page as Page$1, Request, Response } from "@cloudflare/playwright";
|
|
3
3
|
import { expect as expect$1 } from "@cloudflare/playwright/test";
|
|
4
4
|
//#region src/browser-stub.d.ts
|
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as MirrorChoice, B as EndpointName, C as ClientGranted, Ct as RepoView, D as ConnectFolderOption, E as ConnectFolderChoices, F as ConnectionView, Ft as SentryRegion, Gn as hookTokenPrefix, Gt as TrackClosed, H as FoldersConnected, Hn as commandLine, Ht as StatementView, I as ConsentAsked, It as SentryToken, J as ImportFailure, Jn as liveSocketUrl, Jt as TypedApprovalCode, Kn as hookUrl, Kt as TrackSession, L as ConsentClient, Lt as SignInDestination, M as ConnectionChanged, Mn as WorkflowPreview, Mt as ScopeAction, N as ConnectionKind, Nt as SecretHash, O as ConnectOptions, P as ConnectionName, Pt as SentryOrg, Q as MachineConnected, Qn as threadParts, R as ConsentProject, Rt as SignedIn, S as ClientAccess, St as RepoUrl, T as ConnectChosen, Un as connectEndpoint, Ut as ThreadId, Vn as WrittenProject, Wn as encodeSecret, Wt as ThreadStage, X as LiveTicketRequest, Xn as repoNameKey, Xt as Welcome, Y as LiveTicket, Yn as projectParts, Z as LiveTrackName, Zn as surfaceOf, _t as ProjectTrackMessage, a as AnswerKey, at as OwnerThreadPage, c as ApprovalAnswer, ct as PasskeyAsserted, d as ApprovalState, et as MirrorEntry, f as ApprovalView, gt as ProjectName, h as Authorization, ht as PreviewUnavailable, i as AgentView, it as OwnerName, k as ConnectableAgent, l as ApprovalId, lt as PasskeyCreated, m as AttachmentRequestView, mt as PreviewEcho, n as AgentPermissionChoice, nt as NamedDecision, o as Api, ot as OwnerThreadView, p as AttachmentFailed, pt as PasskeyRequestOptions, q as Harness, qn as isRef0Path, qt as TrackThread, r as AgentPermissionSetting, rt as OwnerId, s as ApiOrigin, st as OwnerTrackMessage, t as AgentHandle, tt as MirrorView, u as ApprovalPreview, ut as PasskeyCreationOptions, vt as RanOf, w as ConnectAgent, wt as RequestFolder, xt as RepoName, yt as ReadEvent, z as CredentialView, zt as SocketUrl } from "./index-
|
|
1
|
+
import { $ as MirrorChoice, B as EndpointName, C as ClientGranted, Ct as RepoView, D as ConnectFolderOption, E as ConnectFolderChoices, F as ConnectionView, Ft as SentryRegion, Gn as hookTokenPrefix, Gt as TrackClosed, H as FoldersConnected, Hn as commandLine, Ht as StatementView, I as ConsentAsked, It as SentryToken, J as ImportFailure, Jn as liveSocketUrl, Jt as TypedApprovalCode, Kn as hookUrl, Kt as TrackSession, L as ConsentClient, Lt as SignInDestination, M as ConnectionChanged, Mn as WorkflowPreview, Mt as ScopeAction, N as ConnectionKind, Nt as SecretHash, O as ConnectOptions, P as ConnectionName, Pt as SentryOrg, Q as MachineConnected, Qn as threadParts, R as ConsentProject, Rt as SignedIn, S as ClientAccess, St as RepoUrl, T as ConnectChosen, Un as connectEndpoint, Ut as ThreadId, Vn as WrittenProject, Wn as encodeSecret, Wt as ThreadStage, X as LiveTicketRequest, Xn as repoNameKey, Xt as Welcome, Y as LiveTicket, Yn as projectParts, Z as LiveTrackName, Zn as surfaceOf, _t as ProjectTrackMessage, a as AnswerKey, at as OwnerThreadPage, c as ApprovalAnswer, ct as PasskeyAsserted, d as ApprovalState, et as MirrorEntry, f as ApprovalView, gt as ProjectName, h as Authorization, ht as PreviewUnavailable, i as AgentView, it as OwnerName, k as ConnectableAgent, l as ApprovalId, lt as PasskeyCreated, m as AttachmentRequestView, mt as PreviewEcho, n as AgentPermissionChoice, nt as NamedDecision, o as Api, ot as OwnerThreadView, p as AttachmentFailed, pt as PasskeyRequestOptions, q as Harness, qn as isRef0Path, qt as TrackThread, r as AgentPermissionSetting, rt as OwnerId, s as ApiOrigin, st as OwnerTrackMessage, t as AgentHandle, tt as MirrorView, u as ApprovalPreview, ut as PasskeyCreationOptions, vt as RanOf, w as ConnectAgent, wt as RequestFolder, xt as RepoName, yt as ReadEvent, z as CredentialView, zt as SocketUrl } from "./index-DnaFeYru.mjs";
|
|
2
2
|
import { Effect, Layer, Option, Redacted, Schema, Stream } from "effect";
|
|
3
3
|
import { HttpApi, HttpApiClient, HttpApiGroup, HttpApiMiddleware } from "effect/http-api";
|
|
4
4
|
import { HttpBody, HttpClient } from "effect/http";
|
package/dist/client.mjs
CHANGED
|
@@ -6576,12 +6576,15 @@ const RequestOrganization = Schema.Struct({
|
|
|
6576
6576
|
/**
|
|
6577
6577
|
* The result collected with the machine's two proofs: each included folder's identity and grant,
|
|
6578
6578
|
* its agent's owner name and organizations, and excluded paths. Confirmation checks each saved
|
|
6579
|
-
* grant's live deadline in the Owner DO.
|
|
6579
|
+
* grant's live deadline in the Owner DO. Once a yes connected and the machine hasn't sent its
|
|
6580
|
+
* answer code, waiting says until when: `confirmBy`, when ref0 revokes each grant the machine
|
|
6581
|
+
* hasn't confirmed.
|
|
6580
6582
|
*/
|
|
6581
6583
|
const RequestState = Schema.Union([
|
|
6582
6584
|
Schema.Struct({
|
|
6583
6585
|
state: Schema.Literal("waiting"),
|
|
6584
|
-
expiresAt: Timestamp
|
|
6586
|
+
expiresAt: Timestamp,
|
|
6587
|
+
confirmBy: Schema.optionalKey(Timestamp)
|
|
6585
6588
|
}),
|
|
6586
6589
|
Schema.Struct({
|
|
6587
6590
|
state: Schema.Literal("connected"),
|