@cueloop/schema 0.1.0-alpha.26 → 0.1.0-alpha.27
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.
- package/package.json +1 -1
- package/src/types.ts +22 -0
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -117,6 +117,22 @@ export interface Revision {
|
|
|
117
117
|
|
|
118
118
|
export type SessionStatus = "pending" | "resolved";
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* A person who authored annotations on a session. `id` is the stable key an
|
|
122
|
+
* annotation's `author` points at - the SSH fingerprint today, an OAuth id
|
|
123
|
+
* ("github:…") later. Provider-agnostic so those identities slot in unchanged.
|
|
124
|
+
*/
|
|
125
|
+
export interface Identity {
|
|
126
|
+
/** Stable identity key; equals an annotation's `author`. */
|
|
127
|
+
id: string;
|
|
128
|
+
/** Identity source. One value today; widen the union when OAuth lands. */
|
|
129
|
+
provider: "ssh";
|
|
130
|
+
/** Display name; absent = the collaborator stayed anonymous. */
|
|
131
|
+
name?: string;
|
|
132
|
+
/** Provider handle: a github login, an email, or a short fingerprint. */
|
|
133
|
+
handle?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
120
136
|
export interface ReviewSession {
|
|
121
137
|
schemaVersion: string;
|
|
122
138
|
id: string;
|
|
@@ -144,6 +160,12 @@ export interface ReviewSession {
|
|
|
144
160
|
shareId?: string;
|
|
145
161
|
/** SSH fingerprint that created the share; the gateway stamps it to gate pulls. */
|
|
146
162
|
owner?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Identities that authored annotations here, keyed by id (union-by-id, like
|
|
165
|
+
* annotations). The gateway records a collaborator's identity and chosen name;
|
|
166
|
+
* the rail resolves an annotation's `author` against this registry.
|
|
167
|
+
*/
|
|
168
|
+
participants?: Identity[];
|
|
147
169
|
}
|
|
148
170
|
|
|
149
171
|
/** comment and request_changes both map to deny in agent-native contracts. */
|