@fungi.computer/oyster 0.35.1 → 0.36.0

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.
@@ -20154,6 +20154,10 @@ var appApiReservedMethodNames = Object.freeze({
20154
20154
  ]
20155
20155
  });
20156
20156
  var identity2 = string5().check(_minLength(1), _maxLength(256));
20157
+ var appCallerScopeSchema = discriminatedUnion("kind", [
20158
+ strictObject({ kind: literal2("team"), teamId: identity2 }),
20159
+ strictObject({ kind: literal2("standalone"), tenant: identity2 })
20160
+ ]);
20157
20161
  var memberActor = object2({ kind: literal2("member"), memberId: identity2 });
20158
20162
  var agentActor = object2({ kind: literal2("agent"), agentId: identity2 });
20159
20163
  var keyActor = object2({ kind: literal2("team-key"), keyId: identity2 });
@@ -20177,6 +20181,7 @@ var backgroundOrigin = _lazy(() => strictObject({
20177
20181
  seal: string5().check(_regex(/^[A-Za-z0-9_-]{43}$/u))
20178
20182
  }));
20179
20183
  var appMethodCallerSchema = object2({
20184
+ scope: appCallerScopeSchema,
20180
20185
  computerId: nullable2(identity2),
20181
20186
  actor: hostActorSchema,
20182
20187
  /** Host-attested enqueue eligibility for this ordinary write; absent otherwise. */
@@ -466,6 +466,7 @@ export function createCloudflareAppTestCopies(ctx, loader, ports, limits) {
466
466
  throw new AppInstanceError("invalid_invocation_facts");
467
467
  // Attribution is not a live call frame: no Computer, workflow or durable lane.
468
468
  const context = parseAppMethodCallContext({
469
+ scope: decoded.scope,
469
470
  actor: decoded.actor,
470
471
  role: "owner",
471
472
  computerId: null,