@@ -362,6 +362,7 @@ export type TerminalSession = {
362362 readonly sshCommand : string
363363 readonly status : TerminalSessionStatus
364364 readonly createdAt : string
365+ readonly attachedClients ?: number | undefined
365366 readonly startedAt ?: string | undefined
366367 readonly closedAt ?: string | undefined
367368 readonly exitCode ?: number | undefined
@@ -399,21 +400,46 @@ export type ForgeFedTicket = {
399400 readonly summary : string
400401 readonly content : string
401402 readonly mediaType ?: string | undefined
402- readonly source ?: string | undefined
403+ readonly source ?: string | ForgeFedTicketSource | undefined
403404 readonly published ?: string | undefined
404405 readonly updated ?: string | undefined
405406 readonly url ?: string | undefined
407+ readonly context ?: string | undefined
408+ readonly workType ?: string | undefined
409+ readonly attachment ?: ReadonlyArray < unknown > | undefined
410+ readonly raw ?: unknown | undefined
406411}
407412
408- export type FederationIssueStatus = "offered" | "accepted" | "rejected"
413+ export type ForgeFedTicketSource = {
414+ readonly content ?: string | undefined
415+ readonly mediaType ?: string | undefined
416+ }
417+
418+ export type FederationIssueStatus =
419+ | "offered"
420+ | "accepted"
421+ | "rejected"
422+ | "queued"
423+ | "running"
424+ | "completed"
425+ | "failed"
409426
410427export type FederationIssueRecord = {
411428 readonly issueId : string
412429 readonly offerId ?: string | undefined
430+ readonly activityId ?: string | undefined
431+ readonly actor ?: string | undefined
413432 readonly tracker ?: string | undefined
414433 readonly status : FederationIssueStatus
415434 readonly receivedAt : string
435+ readonly updatedAt ?: string | undefined
416436 readonly ticket : ForgeFedTicket
437+ readonly projectId ?: string | undefined
438+ readonly agentId ?: string | undefined
439+ readonly remoteInbox ?: string | undefined
440+ readonly remoteOutbox ?: string | undefined
441+ readonly result ?: string | undefined
442+ readonly error ?: string | undefined
417443}
418444
419445export type CreateFollowRequest = {
@@ -437,6 +463,12 @@ export type ActivityPubFollowActivity = {
437463 readonly capability ?: string | undefined
438464}
439465
466+ export type ActivityPubPublicKey = {
467+ readonly id : string
468+ readonly owner : string
469+ readonly publicKeyPem : string
470+ }
471+
440472export type ActivityPubPerson = {
441473 readonly "@context" : "https://www.w3.org/ns/activitystreams"
442474 readonly type : "Person"
@@ -449,10 +481,14 @@ export type ActivityPubPerson = {
449481 readonly followers : string
450482 readonly following : string
451483 readonly liked : string
484+ readonly publicKey ?: ActivityPubPublicKey | undefined
485+ readonly endpoints ?: {
486+ readonly sharedInbox ?: string | undefined
487+ } | undefined
452488}
453489
454490export type ActivityPubOrderedCollection = {
455- readonly "@context" : "https://www.w3.org/ns/activitystreams"
491+ readonly "@context" : "https://www.w3.org/ns/activitystreams" | ReadonlyArray < string >
456492 readonly type : "OrderedCollection"
457493 readonly id : string
458494 readonly totalItems : number
@@ -465,6 +501,18 @@ export type FollowSubscription = {
465501 readonly actor : string
466502 readonly object : string
467503 readonly inbox ?: string | undefined
504+ readonly remoteActor ?: string | undefined
505+ readonly remoteInbox ?: string | undefined
506+ readonly remoteOutbox ?: string | undefined
507+ readonly remoteFollowers ?: string | undefined
508+ readonly remoteSharedInbox ?: string | undefined
509+ readonly remotePublicKeyId ?: string | undefined
510+ readonly remotePublicKeyPem ?: string | undefined
511+ readonly subscriptionName ?: string | undefined
512+ readonly queue ?: string | undefined
513+ readonly projectRepoUrl ?: string | undefined
514+ readonly agentProvider ?: AgentProvider | undefined
515+ readonly agentCommand ?: string | undefined
468516 readonly to : ReadonlyArray < string >
469517 readonly capability ?: string | undefined
470518 status : FollowStatus
@@ -487,6 +535,10 @@ export type FederationInboxResult =
487535 readonly kind : "issue.ticket"
488536 readonly issue : FederationIssueRecord
489537 }
538+ | {
539+ readonly kind : "issue.create"
540+ readonly issue : FederationIssueRecord
541+ }
490542 | {
491543 readonly kind : "follow.accept"
492544 readonly subscription : FollowSubscription
@@ -496,6 +548,30 @@ export type FederationInboxResult =
496548 readonly subscription : FollowSubscription
497549 }
498550
551+ export type ExchangeSubscribeRequest = {
552+ readonly target : string
553+ readonly domain ?: string | undefined
554+ readonly actor ?: string | undefined
555+ readonly inbox ?: string | undefined
556+ readonly projectRepoUrl ?: string | undefined
557+ readonly agentProvider ?: AgentProvider | undefined
558+ readonly agentCommand ?: string | undefined
559+ }
560+
561+ export type ExchangePollRequest = {
562+ readonly target ?: string | undefined
563+ readonly runTasks ?: boolean | undefined
564+ }
565+
566+ export type ExchangePollResult = {
567+ readonly polledAt : string
568+ readonly subscriptions : number
569+ readonly totalItems : number
570+ readonly newItems : number
571+ readonly processedItems : number
572+ readonly failedItems : number
573+ }
574+
499575export type ApiEventType =
500576 | "snapshot"
501577 | "project.created"
0 commit comments