@fungi.computer/oyster 0.28.2 → 0.29.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.
@@ -208,7 +208,7 @@ const invocationFactsSchema: Struct<{
208
208
  method: string;
209
209
  seal: string;
210
210
  };
211
- role?: "member" | "owner";
211
+ role?: "member" | "owner" | "admin";
212
212
  soleMember?: true;
213
213
  workflow?: {
214
214
  workflowId: string;
@@ -236,7 +236,7 @@ const invocationFactsSchema: Struct<{
236
236
  method: string;
237
237
  seal: string;
238
238
  };
239
- role?: "member" | "owner";
239
+ role?: "member" | "owner" | "admin";
240
240
  soleMember?: true;
241
241
  workflow?: {
242
242
  workflowId: string;
@@ -264,7 +264,7 @@ const invocationFactsSchema: Struct<{
264
264
  method: string;
265
265
  seal: string;
266
266
  };
267
- role?: "member" | "owner";
267
+ role?: "member" | "owner" | "admin";
268
268
  soleMember?: true;
269
269
  workflow?: {
270
270
  workflowId: string;
@@ -467,7 +467,7 @@ projection.
467
467
  | `backgroundOrigin?` | `object` |
468
468
  | `backgroundOrigin.method` | `string` |
469
469
  | `backgroundOrigin.seal` | `string` |
470
- | `role?` | `"member"` \| `"owner"` |
470
+ | `role?` | `"member"` \| `"owner"` \| `"admin"` |
471
471
  | `soleMember?` | `true` |
472
472
  | `workflow?` | `object` |
473
473
  | `workflow.workflowId` | `string` |
@@ -524,58 +524,58 @@ Mint standalone facts only after host caller and Release admission.
524
524
 
525
525
  #### Parameters
526
526
 
527
- | Parameter | Type | Default value |
528
- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
529
- | `installation` | [`Installation`](apps.md#installation) | `undefined` |
530
- | `release` | [`VerifiedRelease`](host.md#verifiedrelease) | `undefined` |
531
- | `context` | \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \} | `undefined` |
532
- | `context.computerId` | `string` \| `null` | `undefined` |
533
- | `context.actor` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
534
- | `context.backgroundLane?` | `string` | `undefined` |
535
- | `context.backgroundOrigin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
536
- | `context.backgroundOrigin.method?` | `string` | `undefined` |
537
- | `context.backgroundOrigin.seal?` | `string` | `undefined` |
538
- | `context.role?` | `"member"` \| `"owner"` | `undefined` |
539
- | `context.soleMember?` | `true` | `undefined` |
540
- | `context.workflow?` | \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \} | `undefined` |
541
- | `context.workflow.workflowId?` | `string` | `undefined` |
542
- | `context.workflow.runId?` | `string` | `undefined` |
543
- | `context.workflow.nodeId?` | `string` | `undefined` |
544
- | `context.workflow.armedBy?` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
545
- | `context.idempotencyKey?` | `string` | `undefined` |
546
- | `grants?` | readonly `object`[] | `undefined` |
547
- | `ancestry?` | readonly [`InstanceId`](index.md#instanceid)[] | `[]` |
548
- | `sessionId?` | `string` | `undefined` |
549
- | `agentPolicy?` | \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \} | `undefined` |
550
- | `agentPolicy.policyRevision?` | `string` | `appToolPolicySchema.fields.revision` |
551
- | `agentPolicy.grantorMemberId?` | `string` | `appToolPolicySchema.fields.grantedBy` |
552
- | `method?` | \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \} | `undefined` |
553
- | `method.name?` | `string` | `appApiMethodNameSchema` |
554
- | `method.effect?` | `"read"` \| `"write"` \| `"external"` | `...` |
555
- | `origin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
556
- | `origin.method?` | `string` | `undefined` |
557
- | `origin.seal?` | `string` | `undefined` |
527
+ | Parameter | Type | Default value |
528
+ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
529
+ | `installation` | [`Installation`](apps.md#installation) | `undefined` |
530
+ | `release` | [`VerifiedRelease`](host.md#verifiedrelease) | `undefined` |
531
+ | `context` | \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"` \| `"admin"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \} | `undefined` |
532
+ | `context.computerId` | `string` \| `null` | `undefined` |
533
+ | `context.actor` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
534
+ | `context.backgroundLane?` | `string` | `undefined` |
535
+ | `context.backgroundOrigin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
536
+ | `context.backgroundOrigin.method?` | `string` | `undefined` |
537
+ | `context.backgroundOrigin.seal?` | `string` | `undefined` |
538
+ | `context.role?` | `"member"` \| `"owner"` \| `"admin"` | `undefined` |
539
+ | `context.soleMember?` | `true` | `undefined` |
540
+ | `context.workflow?` | \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \} | `undefined` |
541
+ | `context.workflow.workflowId?` | `string` | `undefined` |
542
+ | `context.workflow.runId?` | `string` | `undefined` |
543
+ | `context.workflow.nodeId?` | `string` | `undefined` |
544
+ | `context.workflow.armedBy?` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
545
+ | `context.idempotencyKey?` | `string` | `undefined` |
546
+ | `grants?` | readonly `object`[] | `undefined` |
547
+ | `ancestry?` | readonly [`InstanceId`](index.md#instanceid)[] | `[]` |
548
+ | `sessionId?` | `string` | `undefined` |
549
+ | `agentPolicy?` | \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \} | `undefined` |
550
+ | `agentPolicy.policyRevision?` | `string` | `appToolPolicySchema.fields.revision` |
551
+ | `agentPolicy.grantorMemberId?` | `string` | `appToolPolicySchema.fields.grantedBy` |
552
+ | `method?` | \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \} | `undefined` |
553
+ | `method.name?` | `string` | `appApiMethodNameSchema` |
554
+ | `method.effect?` | `"read"` \| `"write"` \| `"external"` | `...` |
555
+ | `origin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
556
+ | `origin.method?` | `string` | `undefined` |
557
+ | `origin.seal?` | `string` | `undefined` |
558
558
 
559
559
  #### Returns
560
560
 
561
561
  `object`
562
562
 
563
- | Name | Type | Default value |
564
- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------- |
565
- | `instanceId` | [`InstanceId`](index.md#instanceid) | `instanceIdSchema` |
566
- | `selection` | `object` | `selectionSchema` |
567
- | `selection.instanceId` | [`InstanceId`](index.md#instanceid) | `instanceIdSchema` |
568
- | `selection.owner` | `object` | `ownerSchema` |
569
- | `selection.owner.kind` | `"installation"` \| `"deployment"` | - |
570
- | `selection.owner.id` | `string` | `Schema.NonEmptyString` |
571
- | `selection.appId` | `AppId` | `appIdSchema` |
572
- | `selection.releaseId` | `ReleaseId` | `releaseIdSchema` |
573
- | `selection.authorityVersion` | `number` | - |
574
- | `artifactDigest` | `Sha256Digest` | `sha256DigestSchema` |
575
- | `subject` | \| \{ `kind`: `"call"`; `context`: \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \}; `sessionId?`: `string`; `agentPolicy?`: \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \}; `method?`: \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \}; `replay?`: \{ `lane`: `string`; `epoch`: `number`; `admitted`: readonly `string`[]; \}; \} \| \{ `kind`: `"lifecycle"`; `name`: `"onGitPush"`; `eventId`: `string`; \} \| \{ `kind`: `"lifecycle"`; `name`: `"syncRefused"`; `lane`: `string`; `code`: `"access_changed"` \| `"installation_unavailable"`; \} | - |
576
- | `grants` | readonly `object`[] | `grantsSchema` |
577
- | `deadlineAt` | `number` | - |
578
- | `ancestry` | readonly [`InstanceId`](index.md#instanceid)[] | - |
563
+ | Name | Type | Default value |
564
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
565
+ | `instanceId` | [`InstanceId`](index.md#instanceid) | `instanceIdSchema` |
566
+ | `selection` | `object` | `selectionSchema` |
567
+ | `selection.instanceId` | [`InstanceId`](index.md#instanceid) | `instanceIdSchema` |
568
+ | `selection.owner` | `object` | `ownerSchema` |
569
+ | `selection.owner.kind` | `"installation"` \| `"deployment"` | - |
570
+ | `selection.owner.id` | `string` | `Schema.NonEmptyString` |
571
+ | `selection.appId` | `AppId` | `appIdSchema` |
572
+ | `selection.releaseId` | `ReleaseId` | `releaseIdSchema` |
573
+ | `selection.authorityVersion` | `number` | - |
574
+ | `artifactDigest` | `Sha256Digest` | `sha256DigestSchema` |
575
+ | `subject` | \| \{ `kind`: `"call"`; `context`: \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"` \| `"admin"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \}; `sessionId?`: `string`; `agentPolicy?`: \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \}; `method?`: \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \}; `replay?`: \{ `lane`: `string`; `epoch`: `number`; `admitted`: readonly `string`[]; \}; \} \| \{ `kind`: `"lifecycle"`; `name`: `"onGitPush"`; `eventId`: `string`; \} \| \{ `kind`: `"lifecycle"`; `name`: `"syncRefused"`; `lane`: `string`; `code`: `"access_changed"` \| `"installation_unavailable"`; \} | - |
576
+ | `grants` | readonly `object`[] | `grantsSchema` |
577
+ | `deadlineAt` | `number` | - |
578
+ | `ancestry` | readonly [`InstanceId`](index.md#instanceid)[] | - |
579
579
 
580
580
  ---
581
581
 
@@ -628,7 +628,7 @@ function admittedMethodCallerFacts(
628
628
  method: string;
629
629
  seal: string;
630
630
  };
631
- role?: "member" | "owner";
631
+ role?: "member" | "owner" | "admin";
632
632
  soleMember?: true;
633
633
  workflow?: {
634
634
  workflowId: string;
@@ -686,35 +686,35 @@ Seal the host-verified named method after its current admission checks.
686
686
 
687
687
  #### Parameters
688
688
 
689
- | Parameter | Type | Default value |
690
- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
691
- | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), `"backgroundOriginKey"`\> | `undefined` |
692
- | `installation` | [`Installation`](apps.md#installation) | `undefined` |
693
- | `release` | [`VerifiedRelease`](host.md#verifiedrelease) | `undefined` |
694
- | `context` | \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \} | `undefined` |
695
- | `context.computerId` | `string` \| `null` | `undefined` |
696
- | `context.actor` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
697
- | `context.backgroundLane?` | `string` | `undefined` |
698
- | `context.backgroundOrigin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
699
- | `context.backgroundOrigin.method?` | `string` | `undefined` |
700
- | `context.backgroundOrigin.seal?` | `string` | `undefined` |
701
- | `context.role?` | `"member"` \| `"owner"` | `undefined` |
702
- | `context.soleMember?` | `true` | `undefined` |
703
- | `context.workflow?` | \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \} | `undefined` |
704
- | `context.workflow.workflowId?` | `string` | `undefined` |
705
- | `context.workflow.runId?` | `string` | `undefined` |
706
- | `context.workflow.nodeId?` | `string` | `undefined` |
707
- | `context.workflow.armedBy?` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
708
- | `context.idempotencyKey?` | `string` | `undefined` |
709
- | `grants?` | readonly `object`[] | `undefined` |
710
- | `method?` | \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \} | `undefined` |
711
- | `method.name?` | `string` | `appApiMethodNameSchema` |
712
- | `method.effect?` | `"read"` \| `"write"` \| `"external"` | `...` |
713
- | `ancestry?` | readonly [`InstanceId`](index.md#instanceid)[] | `[]` |
714
- | `sessionId?` | `string` | `undefined` |
715
- | `agentPolicy?` | \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \} | `undefined` |
716
- | `agentPolicy.policyRevision?` | `string` | `appToolPolicySchema.fields.revision` |
717
- | `agentPolicy.grantorMemberId?` | `string` | `appToolPolicySchema.fields.grantedBy` |
689
+ | Parameter | Type | Default value |
690
+ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
691
+ | `host` | `Pick`\<[`OysterHost`](host.md#oysterhost), `"backgroundOriginKey"`\> | `undefined` |
692
+ | `installation` | [`Installation`](apps.md#installation) | `undefined` |
693
+ | `release` | [`VerifiedRelease`](host.md#verifiedrelease) | `undefined` |
694
+ | `context` | \{ `computerId`: `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"` \| `"admin"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \} | `undefined` |
695
+ | `context.computerId` | `string` \| `null` | `undefined` |
696
+ | `context.actor` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
697
+ | `context.backgroundLane?` | `string` | `undefined` |
698
+ | `context.backgroundOrigin?` | \{ `method`: `string`; `seal`: `string`; \} | `undefined` |
699
+ | `context.backgroundOrigin.method?` | `string` | `undefined` |
700
+ | `context.backgroundOrigin.seal?` | `string` | `undefined` |
701
+ | `context.role?` | `"member"` \| `"owner"` \| `"admin"` | `undefined` |
702
+ | `context.soleMember?` | `true` | `undefined` |
703
+ | `context.workflow?` | \{ `workflowId`: `string`; `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \}; \} | `undefined` |
704
+ | `context.workflow.workflowId?` | `string` | `undefined` |
705
+ | `context.workflow.runId?` | `string` | `undefined` |
706
+ | `context.workflow.nodeId?` | `string` | `undefined` |
707
+ | `context.workflow.armedBy?` | \| \{ `kind`: `"member"`; `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`; `keyId`: `string`; \} | `undefined` |
708
+ | `context.idempotencyKey?` | `string` | `undefined` |
709
+ | `grants?` | readonly `object`[] | `undefined` |
710
+ | `method?` | \{ `name`: `string`; `effect`: `"read"` \| `"write"` \| `"external"`; \} | `undefined` |
711
+ | `method.name?` | `string` | `appApiMethodNameSchema` |
712
+ | `method.effect?` | `"read"` \| `"write"` \| `"external"` | `...` |
713
+ | `ancestry?` | readonly [`InstanceId`](index.md#instanceid)[] | `[]` |
714
+ | `sessionId?` | `string` | `undefined` |
715
+ | `agentPolicy?` | \{ `policyRevision`: `string`; `grantorMemberId`: `string`; \} | `undefined` |
716
+ | `agentPolicy.policyRevision?` | `string` | `appToolPolicySchema.fields.revision` |
717
+ | `agentPolicy.grantorMemberId?` | `string` | `appToolPolicySchema.fields.grantedBy` |
718
718
 
719
719
  #### Returns
720
720
 
@@ -726,12 +726,12 @@ Seal the host-verified named method after its current admission checks.
726
726
  `string` \| `null`; `actor`: \| \{ `kind`: `"member"`; `memberId`: `string`; \}
727
727
  \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`: `"team-key"`;
728
728
  `keyId`: `string`; \}; `backgroundLane?`: `string`; `backgroundOrigin?`: \{
729
- `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"`;
730
- `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`; `runId`:
731
- `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`; `memberId`:
732
- `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{ `kind`:
733
- `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`; \};
734
- `sessionId?`: `string`; `agentPolicy?`: \{ `policyRevision`: `string`;
729
+ `method`: `string`; `seal`: `string`; \}; `role?`: `"member"` \| `"owner"` \|
730
+ `"admin"`; `soleMember?`: `true`; `workflow?`: \{ `workflowId`: `string`;
731
+ `runId`: `string`; `nodeId`: `string`; `armedBy`: \| \{ `kind`: `"member"`;
732
+ `memberId`: `string`; \} \| \{ `kind`: `"agent"`; `agentId`: `string`; \} \| \{
733
+ `kind`: `"team-key"`; `keyId`: `string`; \}; \}; `idempotencyKey?`: `string`;
734
+ \}; `sessionId?`: `string`; `agentPolicy?`: \{ `policyRevision`: `string`;
735
735
  `grantorMemberId`: `string`; \}; `method?`: \{ `name`: `string`; `effect`:
736
736
  `"read"` \| `"write"` \| `"external"`; \}; `replay?`: \{ `lane`: `string`;
737
737
  `epoch`: `number`; `admitted`: readonly `string`[]; \}; \} \| \{ `kind`:
@@ -46,7 +46,7 @@ One provisioned tenant and its registry-owned canonical public origin.
46
46
  ```ts
47
47
  type Membership = Readonly<{
48
48
  memberId: string;
49
- role: "owner" | "member";
49
+ role: TeamRole;
50
50
  membershipVersion: number;
51
51
  }>;
52
52
  ```
@@ -86,12 +86,12 @@ type ReadonlyTenantRegistry = Readonly<{
86
86
  status: Promise<"active" | "suspended" | "deleting" | null>;
87
87
  membershipOf: Promise<Readonly<{
88
88
  memberId: string;
89
- role: "owner" | "member";
89
+ role: TeamRole;
90
90
  membershipVersion: number;
91
91
  }> | null>;
92
92
  memberById: Promise<Readonly<{
93
93
  memberId: string;
94
- role: "owner" | "member";
94
+ role: TeamRole;
95
95
  membershipVersion: number;
96
96
  }> | null>;
97
97
  }>;
@@ -31,7 +31,7 @@ type TenantPrincipal =
31
31
  kind: "member";
32
32
  }
33
33
  >;
34
- role: "owner" | "member";
34
+ role: TeamRole;
35
35
  soleMember?: true;
36
36
  }>
37
37
  | Readonly<{