@openvtc/trust-tasks 0.12.5 → 0.12.6
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/dist/vtc/join-requests/list/0.1/payload.d.ts +123 -0
- package/dist/vtc/join-requests/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/list/0.1/payload.js +74 -0
- package/dist/vtc/join-requests/list/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.d.ts +123 -0
- package/dist/vtc/join-requests/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.js +74 -0
- package/dist/vtc/join-requests/show/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.d.ts +68 -6
- package/dist/vtc/join-requests/status/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.js +33 -4
- package/dist/vtc/join-requests/status/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/vtc/join-requests/list/0.1/payload.ts +97 -0
- package/src/vtc/join-requests/show/0.1/payload.ts +97 -0
- package/src/vtc/join-requests/status/0.1/payload.ts +47 -6
|
@@ -45,12 +45,35 @@ export interface JoinRequest {
|
|
|
45
45
|
* The W3C Verifiable Presentation the applicant submitted (opaque here).
|
|
46
46
|
*/
|
|
47
47
|
vp: {};
|
|
48
|
+
/**
|
|
49
|
+
* Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.
|
|
50
|
+
*/
|
|
51
|
+
vpClaims?: {} | null;
|
|
48
52
|
submittedAt: string;
|
|
49
53
|
status: "pending" | "approved" | "rejected" | "withdrawn" | "deferred";
|
|
50
54
|
/**
|
|
51
55
|
* The community policy verdict recorded for this request (opaque here); absent while pending.
|
|
52
56
|
*/
|
|
53
57
|
policyDecision?: {};
|
|
58
|
+
/**
|
|
59
|
+
* Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.
|
|
60
|
+
*
|
|
61
|
+
* Distinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.
|
|
62
|
+
*/
|
|
63
|
+
decision?: {
|
|
64
|
+
/**
|
|
65
|
+
* Stable refusal code, safe to branch on.
|
|
66
|
+
*/
|
|
67
|
+
code: string;
|
|
68
|
+
/**
|
|
69
|
+
* Elaboration in prose, when the decider gave one.
|
|
70
|
+
*/
|
|
71
|
+
reason?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.
|
|
74
|
+
*/
|
|
75
|
+
decidedAt: string;
|
|
76
|
+
} | null;
|
|
54
77
|
/**
|
|
55
78
|
* Whether the applicant consented to trust-registry publication.
|
|
56
79
|
*/
|
|
@@ -160,6 +183,10 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
160
183
|
readonly type: "object";
|
|
161
184
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
162
185
|
};
|
|
186
|
+
readonly vpClaims: {
|
|
187
|
+
readonly type: readonly ["object", "null"];
|
|
188
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
189
|
+
};
|
|
163
190
|
readonly submittedAt: {
|
|
164
191
|
readonly type: "string";
|
|
165
192
|
readonly format: "date-time";
|
|
@@ -172,6 +199,27 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
172
199
|
readonly type: "object";
|
|
173
200
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
174
201
|
};
|
|
202
|
+
readonly decision: {
|
|
203
|
+
readonly type: readonly ["object", "null"];
|
|
204
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
205
|
+
readonly properties: {
|
|
206
|
+
readonly code: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
209
|
+
};
|
|
210
|
+
readonly reason: {
|
|
211
|
+
readonly type: readonly ["string", "null"];
|
|
212
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
213
|
+
};
|
|
214
|
+
readonly decidedAt: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly format: "date-time";
|
|
217
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
221
|
+
readonly additionalProperties: false;
|
|
222
|
+
};
|
|
175
223
|
readonly registryConsent: {
|
|
176
224
|
readonly type: "boolean";
|
|
177
225
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -245,6 +293,10 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
245
293
|
readonly type: "object";
|
|
246
294
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
247
295
|
};
|
|
296
|
+
readonly vpClaims: {
|
|
297
|
+
readonly type: readonly ["object", "null"];
|
|
298
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
299
|
+
};
|
|
248
300
|
readonly submittedAt: {
|
|
249
301
|
readonly type: "string";
|
|
250
302
|
readonly format: "date-time";
|
|
@@ -257,6 +309,27 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
257
309
|
readonly type: "object";
|
|
258
310
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
259
311
|
};
|
|
312
|
+
readonly decision: {
|
|
313
|
+
readonly type: readonly ["object", "null"];
|
|
314
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
315
|
+
readonly properties: {
|
|
316
|
+
readonly code: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
319
|
+
};
|
|
320
|
+
readonly reason: {
|
|
321
|
+
readonly type: readonly ["string", "null"];
|
|
322
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
323
|
+
};
|
|
324
|
+
readonly decidedAt: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly format: "date-time";
|
|
327
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
331
|
+
readonly additionalProperties: false;
|
|
332
|
+
};
|
|
260
333
|
readonly registryConsent: {
|
|
261
334
|
readonly type: "boolean";
|
|
262
335
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -363,6 +436,10 @@ export declare const SPEC: {
|
|
|
363
436
|
readonly type: "object";
|
|
364
437
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
365
438
|
};
|
|
439
|
+
readonly vpClaims: {
|
|
440
|
+
readonly type: readonly ["object", "null"];
|
|
441
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
442
|
+
};
|
|
366
443
|
readonly submittedAt: {
|
|
367
444
|
readonly type: "string";
|
|
368
445
|
readonly format: "date-time";
|
|
@@ -375,6 +452,27 @@ export declare const SPEC: {
|
|
|
375
452
|
readonly type: "object";
|
|
376
453
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
377
454
|
};
|
|
455
|
+
readonly decision: {
|
|
456
|
+
readonly type: readonly ["object", "null"];
|
|
457
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
458
|
+
readonly properties: {
|
|
459
|
+
readonly code: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
462
|
+
};
|
|
463
|
+
readonly reason: {
|
|
464
|
+
readonly type: readonly ["string", "null"];
|
|
465
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
466
|
+
};
|
|
467
|
+
readonly decidedAt: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
readonly format: "date-time";
|
|
470
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
474
|
+
readonly additionalProperties: false;
|
|
475
|
+
};
|
|
378
476
|
readonly registryConsent: {
|
|
379
477
|
readonly type: "boolean";
|
|
380
478
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -458,6 +556,10 @@ export declare const RESPONSE_SPEC: {
|
|
|
458
556
|
readonly type: "object";
|
|
459
557
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
460
558
|
};
|
|
559
|
+
readonly vpClaims: {
|
|
560
|
+
readonly type: readonly ["object", "null"];
|
|
561
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
562
|
+
};
|
|
461
563
|
readonly submittedAt: {
|
|
462
564
|
readonly type: "string";
|
|
463
565
|
readonly format: "date-time";
|
|
@@ -470,6 +572,27 @@ export declare const RESPONSE_SPEC: {
|
|
|
470
572
|
readonly type: "object";
|
|
471
573
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
472
574
|
};
|
|
575
|
+
readonly decision: {
|
|
576
|
+
readonly type: readonly ["object", "null"];
|
|
577
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
578
|
+
readonly properties: {
|
|
579
|
+
readonly code: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
582
|
+
};
|
|
583
|
+
readonly reason: {
|
|
584
|
+
readonly type: readonly ["string", "null"];
|
|
585
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
586
|
+
};
|
|
587
|
+
readonly decidedAt: {
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
readonly format: "date-time";
|
|
590
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
594
|
+
readonly additionalProperties: false;
|
|
595
|
+
};
|
|
473
596
|
readonly registryConsent: {
|
|
474
597
|
readonly type: "boolean";
|
|
475
598
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;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;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;IACxE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,EAAE,CAAC;IACP;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;IACvE;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACv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,13 @@ export const PAYLOAD_SCHEMA = {
|
|
|
118
118
|
"type": "object",
|
|
119
119
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
120
120
|
},
|
|
121
|
+
"vpClaims": {
|
|
122
|
+
"type": [
|
|
123
|
+
"object",
|
|
124
|
+
"null"
|
|
125
|
+
],
|
|
126
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
127
|
+
},
|
|
121
128
|
"submittedAt": {
|
|
122
129
|
"type": "string",
|
|
123
130
|
"format": "date-time"
|
|
@@ -136,6 +143,36 @@ export const PAYLOAD_SCHEMA = {
|
|
|
136
143
|
"type": "object",
|
|
137
144
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
138
145
|
},
|
|
146
|
+
"decision": {
|
|
147
|
+
"type": [
|
|
148
|
+
"object",
|
|
149
|
+
"null"
|
|
150
|
+
],
|
|
151
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
152
|
+
"properties": {
|
|
153
|
+
"code": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Stable refusal code, safe to branch on."
|
|
156
|
+
},
|
|
157
|
+
"reason": {
|
|
158
|
+
"type": [
|
|
159
|
+
"string",
|
|
160
|
+
"null"
|
|
161
|
+
],
|
|
162
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
163
|
+
},
|
|
164
|
+
"decidedAt": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"format": "date-time",
|
|
167
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": [
|
|
171
|
+
"code",
|
|
172
|
+
"decidedAt"
|
|
173
|
+
],
|
|
174
|
+
"additionalProperties": false
|
|
175
|
+
},
|
|
139
176
|
"registryConsent": {
|
|
140
177
|
"type": "boolean",
|
|
141
178
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -223,6 +260,13 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
223
260
|
"type": "object",
|
|
224
261
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
225
262
|
},
|
|
263
|
+
"vpClaims": {
|
|
264
|
+
"type": [
|
|
265
|
+
"object",
|
|
266
|
+
"null"
|
|
267
|
+
],
|
|
268
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
269
|
+
},
|
|
226
270
|
"submittedAt": {
|
|
227
271
|
"type": "string",
|
|
228
272
|
"format": "date-time"
|
|
@@ -241,6 +285,36 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
241
285
|
"type": "object",
|
|
242
286
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
243
287
|
},
|
|
288
|
+
"decision": {
|
|
289
|
+
"type": [
|
|
290
|
+
"object",
|
|
291
|
+
"null"
|
|
292
|
+
],
|
|
293
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
294
|
+
"properties": {
|
|
295
|
+
"code": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"description": "Stable refusal code, safe to branch on."
|
|
298
|
+
},
|
|
299
|
+
"reason": {
|
|
300
|
+
"type": [
|
|
301
|
+
"string",
|
|
302
|
+
"null"
|
|
303
|
+
],
|
|
304
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
305
|
+
},
|
|
306
|
+
"decidedAt": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"format": "date-time",
|
|
309
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": [
|
|
313
|
+
"code",
|
|
314
|
+
"decidedAt"
|
|
315
|
+
],
|
|
316
|
+
"additionalProperties": false
|
|
317
|
+
},
|
|
244
318
|
"registryConsent": {
|
|
245
319
|
"type": "boolean",
|
|
246
320
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,UAAU;gBACV,UAAU;gBACV,WAAW;gBACX,UAAU;aACX;YACD,aAAa,EAAE,oCAAoC;SACpD;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,8CAA8C;SAC9D;QACD,OAAO,EAAE;YACP,MA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AAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -35,12 +35,35 @@ export interface JoinRequest {
|
|
|
35
35
|
* The W3C Verifiable Presentation the applicant submitted (opaque here).
|
|
36
36
|
*/
|
|
37
37
|
vp: {};
|
|
38
|
+
/**
|
|
39
|
+
* Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.
|
|
40
|
+
*/
|
|
41
|
+
vpClaims?: {} | null;
|
|
38
42
|
submittedAt: string;
|
|
39
43
|
status: "pending" | "approved" | "rejected" | "withdrawn" | "deferred";
|
|
40
44
|
/**
|
|
41
45
|
* The community policy verdict recorded for this request (opaque here); absent while pending.
|
|
42
46
|
*/
|
|
43
47
|
policyDecision?: {};
|
|
48
|
+
/**
|
|
49
|
+
* Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.
|
|
50
|
+
*
|
|
51
|
+
* Distinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.
|
|
52
|
+
*/
|
|
53
|
+
decision?: {
|
|
54
|
+
/**
|
|
55
|
+
* Stable refusal code, safe to branch on.
|
|
56
|
+
*/
|
|
57
|
+
code: string;
|
|
58
|
+
/**
|
|
59
|
+
* Elaboration in prose, when the decider gave one.
|
|
60
|
+
*/
|
|
61
|
+
reason?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.
|
|
64
|
+
*/
|
|
65
|
+
decidedAt: string;
|
|
66
|
+
} | null;
|
|
44
67
|
/**
|
|
45
68
|
* Whether the applicant consented to trust-registry publication.
|
|
46
69
|
*/
|
|
@@ -132,6 +155,10 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
132
155
|
readonly type: "object";
|
|
133
156
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
134
157
|
};
|
|
158
|
+
readonly vpClaims: {
|
|
159
|
+
readonly type: readonly ["object", "null"];
|
|
160
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
161
|
+
};
|
|
135
162
|
readonly submittedAt: {
|
|
136
163
|
readonly type: "string";
|
|
137
164
|
readonly format: "date-time";
|
|
@@ -144,6 +171,27 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
144
171
|
readonly type: "object";
|
|
145
172
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
146
173
|
};
|
|
174
|
+
readonly decision: {
|
|
175
|
+
readonly type: readonly ["object", "null"];
|
|
176
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly code: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
181
|
+
};
|
|
182
|
+
readonly reason: {
|
|
183
|
+
readonly type: readonly ["string", "null"];
|
|
184
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
185
|
+
};
|
|
186
|
+
readonly decidedAt: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly format: "date-time";
|
|
189
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
193
|
+
readonly additionalProperties: false;
|
|
194
|
+
};
|
|
147
195
|
readonly registryConsent: {
|
|
148
196
|
readonly type: "boolean";
|
|
149
197
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -208,6 +256,10 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
208
256
|
readonly type: "object";
|
|
209
257
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
210
258
|
};
|
|
259
|
+
readonly vpClaims: {
|
|
260
|
+
readonly type: readonly ["object", "null"];
|
|
261
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
262
|
+
};
|
|
211
263
|
readonly submittedAt: {
|
|
212
264
|
readonly type: "string";
|
|
213
265
|
readonly format: "date-time";
|
|
@@ -220,6 +272,27 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
220
272
|
readonly type: "object";
|
|
221
273
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
222
274
|
};
|
|
275
|
+
readonly decision: {
|
|
276
|
+
readonly type: readonly ["object", "null"];
|
|
277
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
278
|
+
readonly properties: {
|
|
279
|
+
readonly code: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
282
|
+
};
|
|
283
|
+
readonly reason: {
|
|
284
|
+
readonly type: readonly ["string", "null"];
|
|
285
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
286
|
+
};
|
|
287
|
+
readonly decidedAt: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly format: "date-time";
|
|
290
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
294
|
+
readonly additionalProperties: false;
|
|
295
|
+
};
|
|
223
296
|
readonly registryConsent: {
|
|
224
297
|
readonly type: "boolean";
|
|
225
298
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -308,6 +381,10 @@ export declare const SPEC: {
|
|
|
308
381
|
readonly type: "object";
|
|
309
382
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
310
383
|
};
|
|
384
|
+
readonly vpClaims: {
|
|
385
|
+
readonly type: readonly ["object", "null"];
|
|
386
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
387
|
+
};
|
|
311
388
|
readonly submittedAt: {
|
|
312
389
|
readonly type: "string";
|
|
313
390
|
readonly format: "date-time";
|
|
@@ -320,6 +397,27 @@ export declare const SPEC: {
|
|
|
320
397
|
readonly type: "object";
|
|
321
398
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
322
399
|
};
|
|
400
|
+
readonly decision: {
|
|
401
|
+
readonly type: readonly ["object", "null"];
|
|
402
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly code: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
407
|
+
};
|
|
408
|
+
readonly reason: {
|
|
409
|
+
readonly type: readonly ["string", "null"];
|
|
410
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
411
|
+
};
|
|
412
|
+
readonly decidedAt: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
readonly format: "date-time";
|
|
415
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
419
|
+
readonly additionalProperties: false;
|
|
420
|
+
};
|
|
323
421
|
readonly registryConsent: {
|
|
324
422
|
readonly type: "boolean";
|
|
325
423
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -394,6 +492,10 @@ export declare const RESPONSE_SPEC: {
|
|
|
394
492
|
readonly type: "object";
|
|
395
493
|
readonly description: "The W3C Verifiable Presentation the applicant submitted (opaque here).";
|
|
396
494
|
};
|
|
495
|
+
readonly vpClaims: {
|
|
496
|
+
readonly type: readonly ["object", "null"];
|
|
497
|
+
readonly description: "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.";
|
|
498
|
+
};
|
|
397
499
|
readonly submittedAt: {
|
|
398
500
|
readonly type: "string";
|
|
399
501
|
readonly format: "date-time";
|
|
@@ -406,6 +508,27 @@ export declare const RESPONSE_SPEC: {
|
|
|
406
508
|
readonly type: "object";
|
|
407
509
|
readonly description: "The community policy verdict recorded for this request (opaque here); absent while pending.";
|
|
408
510
|
};
|
|
511
|
+
readonly decision: {
|
|
512
|
+
readonly type: readonly ["object", "null"];
|
|
513
|
+
readonly description: "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.";
|
|
514
|
+
readonly properties: {
|
|
515
|
+
readonly code: {
|
|
516
|
+
readonly type: "string";
|
|
517
|
+
readonly description: "Stable refusal code, safe to branch on.";
|
|
518
|
+
};
|
|
519
|
+
readonly reason: {
|
|
520
|
+
readonly type: readonly ["string", "null"];
|
|
521
|
+
readonly description: "Elaboration in prose, when the decider gave one.";
|
|
522
|
+
};
|
|
523
|
+
readonly decidedAt: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
readonly format: "date-time";
|
|
526
|
+
readonly description: "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.";
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
readonly required: readonly ["code", "decidedAt"];
|
|
530
|
+
readonly additionalProperties: false;
|
|
531
|
+
};
|
|
409
532
|
readonly registryConsent: {
|
|
410
533
|
readonly type: "boolean";
|
|
411
534
|
readonly description: "Whether the applicant consented to trust-registry publication.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,WAAW,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,EAAE,CAAC;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;IACvE;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,CAAC;CACjB;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAEjD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,WAAW,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,EAAE,CAAC;IACP;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,GAAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -90,6 +90,13 @@ export const PAYLOAD_SCHEMA = {
|
|
|
90
90
|
"type": "object",
|
|
91
91
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
92
92
|
},
|
|
93
|
+
"vpClaims": {
|
|
94
|
+
"type": [
|
|
95
|
+
"object",
|
|
96
|
+
"null"
|
|
97
|
+
],
|
|
98
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
99
|
+
},
|
|
93
100
|
"submittedAt": {
|
|
94
101
|
"type": "string",
|
|
95
102
|
"format": "date-time"
|
|
@@ -108,6 +115,36 @@ export const PAYLOAD_SCHEMA = {
|
|
|
108
115
|
"type": "object",
|
|
109
116
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
110
117
|
},
|
|
118
|
+
"decision": {
|
|
119
|
+
"type": [
|
|
120
|
+
"object",
|
|
121
|
+
"null"
|
|
122
|
+
],
|
|
123
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
124
|
+
"properties": {
|
|
125
|
+
"code": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Stable refusal code, safe to branch on."
|
|
128
|
+
},
|
|
129
|
+
"reason": {
|
|
130
|
+
"type": [
|
|
131
|
+
"string",
|
|
132
|
+
"null"
|
|
133
|
+
],
|
|
134
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
135
|
+
},
|
|
136
|
+
"decidedAt": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"format": "date-time",
|
|
139
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"required": [
|
|
143
|
+
"code",
|
|
144
|
+
"decidedAt"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
111
148
|
"registryConsent": {
|
|
112
149
|
"type": "boolean",
|
|
113
150
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -180,6 +217,13 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
180
217
|
"type": "object",
|
|
181
218
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
182
219
|
},
|
|
220
|
+
"vpClaims": {
|
|
221
|
+
"type": [
|
|
222
|
+
"object",
|
|
223
|
+
"null"
|
|
224
|
+
],
|
|
225
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
226
|
+
},
|
|
183
227
|
"submittedAt": {
|
|
184
228
|
"type": "string",
|
|
185
229
|
"format": "date-time"
|
|
@@ -198,6 +242,36 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
198
242
|
"type": "object",
|
|
199
243
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
200
244
|
},
|
|
245
|
+
"decision": {
|
|
246
|
+
"type": [
|
|
247
|
+
"object",
|
|
248
|
+
"null"
|
|
249
|
+
],
|
|
250
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
251
|
+
"properties": {
|
|
252
|
+
"code": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "Stable refusal code, safe to branch on."
|
|
255
|
+
},
|
|
256
|
+
"reason": {
|
|
257
|
+
"type": [
|
|
258
|
+
"string",
|
|
259
|
+
"null"
|
|
260
|
+
],
|
|
261
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
262
|
+
},
|
|
263
|
+
"decidedAt": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"format": "date-time",
|
|
266
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": [
|
|
270
|
+
"code",
|
|
271
|
+
"decidedAt"
|
|
272
|
+
],
|
|
273
|
+
"additionalProperties": false
|
|
274
|
+
},
|
|
201
275
|
"registryConsent": {
|
|
202
276
|
"type": "boolean",
|
|
203
277
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0EH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;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
|
export interface VTCJoinRequestsStatusPayload {
|
|
6
6
|
/**
|
|
7
|
-
* The applicant's
|
|
7
|
+
* The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.
|
|
8
8
|
*/
|
|
9
|
-
requestId
|
|
9
|
+
requestId?: string;
|
|
10
10
|
ext?: Ext;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -18,6 +18,18 @@ export interface Ext {
|
|
|
18
18
|
export interface VTCJoinRequestsStatusResponsePayload {
|
|
19
19
|
requestId: string;
|
|
20
20
|
status: "pending" | "deferred" | "approved" | "rejected" | "withdrawn";
|
|
21
|
+
/**
|
|
22
|
+
* Stable refusal code, safe to branch on. Present only when `status` is `rejected`.
|
|
23
|
+
*/
|
|
24
|
+
code?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.
|
|
27
|
+
*/
|
|
28
|
+
reason?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.
|
|
31
|
+
*/
|
|
32
|
+
decidedAt?: string;
|
|
21
33
|
/**
|
|
22
34
|
* When deferred, what the applicant must supply next.
|
|
23
35
|
*/
|
|
@@ -51,12 +63,11 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
51
63
|
readonly title: "VTC Join-Requests Status — payload";
|
|
52
64
|
readonly type: "object";
|
|
53
65
|
readonly additionalProperties: false;
|
|
54
|
-
readonly required: readonly ["requestId"];
|
|
55
66
|
readonly properties: {
|
|
56
67
|
readonly requestId: {
|
|
57
68
|
readonly type: "string";
|
|
58
69
|
readonly minLength: 1;
|
|
59
|
-
readonly description: "The applicant's
|
|
70
|
+
readonly description: "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.";
|
|
60
71
|
};
|
|
61
72
|
readonly ext: {
|
|
62
73
|
readonly $ref: "#/$defs/Ext";
|
|
@@ -78,6 +89,19 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
78
89
|
readonly type: "string";
|
|
79
90
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
80
91
|
};
|
|
92
|
+
readonly code: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
95
|
+
};
|
|
96
|
+
readonly reason: {
|
|
97
|
+
readonly type: readonly ["string", "null"];
|
|
98
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
99
|
+
};
|
|
100
|
+
readonly decidedAt: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly format: "date-time";
|
|
103
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
104
|
+
};
|
|
81
105
|
readonly needs: {
|
|
82
106
|
readonly type: "array";
|
|
83
107
|
readonly items: {
|
|
@@ -126,6 +150,19 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
126
150
|
readonly type: "string";
|
|
127
151
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
128
152
|
};
|
|
153
|
+
readonly code: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
156
|
+
};
|
|
157
|
+
readonly reason: {
|
|
158
|
+
readonly type: readonly ["string", "null"];
|
|
159
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
160
|
+
};
|
|
161
|
+
readonly decidedAt: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly format: "date-time";
|
|
164
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
165
|
+
};
|
|
129
166
|
readonly needs: {
|
|
130
167
|
readonly type: "array";
|
|
131
168
|
readonly items: {
|
|
@@ -171,12 +208,11 @@ export declare const SPEC: {
|
|
|
171
208
|
readonly title: "VTC Join-Requests Status — payload";
|
|
172
209
|
readonly type: "object";
|
|
173
210
|
readonly additionalProperties: false;
|
|
174
|
-
readonly required: readonly ["requestId"];
|
|
175
211
|
readonly properties: {
|
|
176
212
|
readonly requestId: {
|
|
177
213
|
readonly type: "string";
|
|
178
214
|
readonly minLength: 1;
|
|
179
|
-
readonly description: "The applicant's
|
|
215
|
+
readonly description: "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.";
|
|
180
216
|
};
|
|
181
217
|
readonly ext: {
|
|
182
218
|
readonly $ref: "#/$defs/Ext";
|
|
@@ -198,6 +234,19 @@ export declare const SPEC: {
|
|
|
198
234
|
readonly type: "string";
|
|
199
235
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
200
236
|
};
|
|
237
|
+
readonly code: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
240
|
+
};
|
|
241
|
+
readonly reason: {
|
|
242
|
+
readonly type: readonly ["string", "null"];
|
|
243
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
244
|
+
};
|
|
245
|
+
readonly decidedAt: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly format: "date-time";
|
|
248
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
249
|
+
};
|
|
201
250
|
readonly needs: {
|
|
202
251
|
readonly type: "array";
|
|
203
252
|
readonly items: {
|
|
@@ -256,6 +305,19 @@ export declare const RESPONSE_SPEC: {
|
|
|
256
305
|
readonly type: "string";
|
|
257
306
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
258
307
|
};
|
|
308
|
+
readonly code: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
311
|
+
};
|
|
312
|
+
readonly reason: {
|
|
313
|
+
readonly type: readonly ["string", "null"];
|
|
314
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
315
|
+
};
|
|
316
|
+
readonly decidedAt: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly format: "date-time";
|
|
319
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
320
|
+
};
|
|
259
321
|
readonly needs: {
|
|
260
322
|
readonly type: "array";
|
|
261
323
|
readonly items: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IACvE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,sBAAsB,CAAC,EAAE,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAEnD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC;AAE9G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,oCAAoC,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -21,14 +21,11 @@ export const PAYLOAD_SCHEMA = {
|
|
|
21
21
|
"title": "VTC Join-Requests Status — payload",
|
|
22
22
|
"type": "object",
|
|
23
23
|
"additionalProperties": false,
|
|
24
|
-
"required": [
|
|
25
|
-
"requestId"
|
|
26
|
-
],
|
|
27
24
|
"properties": {
|
|
28
25
|
"requestId": {
|
|
29
26
|
"type": "string",
|
|
30
27
|
"minLength": 1,
|
|
31
|
-
"description": "The applicant's
|
|
28
|
+
"description": "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller."
|
|
32
29
|
},
|
|
33
30
|
"ext": {
|
|
34
31
|
"$ref": "#/$defs/Ext"
|
|
@@ -59,6 +56,22 @@ export const PAYLOAD_SCHEMA = {
|
|
|
59
56
|
"withdrawn"
|
|
60
57
|
]
|
|
61
58
|
},
|
|
59
|
+
"code": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
62
|
+
},
|
|
63
|
+
"reason": {
|
|
64
|
+
"type": [
|
|
65
|
+
"string",
|
|
66
|
+
"null"
|
|
67
|
+
],
|
|
68
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
69
|
+
},
|
|
70
|
+
"decidedAt": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": "date-time",
|
|
73
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
74
|
+
},
|
|
62
75
|
"needs": {
|
|
63
76
|
"type": "array",
|
|
64
77
|
"items": {
|
|
@@ -116,6 +129,22 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
116
129
|
"withdrawn"
|
|
117
130
|
]
|
|
118
131
|
},
|
|
132
|
+
"code": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
135
|
+
},
|
|
136
|
+
"reason": {
|
|
137
|
+
"type": [
|
|
138
|
+
"string",
|
|
139
|
+
"null"
|
|
140
|
+
],
|
|
141
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
142
|
+
},
|
|
143
|
+
"decidedAt": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"format": "date-time",
|
|
146
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
147
|
+
},
|
|
119
148
|
"needs": {
|
|
120
149
|
"type": "array",
|
|
121
150
|
"items": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,oCAAoC;IAC7C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,6TAA6T;SAC7U;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,6CAA6C;YACtD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,WAAW;gBACX,QAAQ;aACT;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,WAAW,EAAE,CAAC;iBACf;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ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AAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -46,12 +46,35 @@ export interface JoinRequest {
|
|
|
46
46
|
* The W3C Verifiable Presentation the applicant submitted (opaque here).
|
|
47
47
|
*/
|
|
48
48
|
vp: {};
|
|
49
|
+
/**
|
|
50
|
+
* Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.
|
|
51
|
+
*/
|
|
52
|
+
vpClaims?: {} | null;
|
|
49
53
|
submittedAt: string;
|
|
50
54
|
status: "pending" | "approved" | "rejected" | "withdrawn" | "deferred";
|
|
51
55
|
/**
|
|
52
56
|
* The community policy verdict recorded for this request (opaque here); absent while pending.
|
|
53
57
|
*/
|
|
54
58
|
policyDecision?: {};
|
|
59
|
+
/**
|
|
60
|
+
* Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.
|
|
61
|
+
*
|
|
62
|
+
* Distinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.
|
|
63
|
+
*/
|
|
64
|
+
decision?: {
|
|
65
|
+
/**
|
|
66
|
+
* Stable refusal code, safe to branch on.
|
|
67
|
+
*/
|
|
68
|
+
code: string;
|
|
69
|
+
/**
|
|
70
|
+
* Elaboration in prose, when the decider gave one.
|
|
71
|
+
*/
|
|
72
|
+
reason?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.
|
|
75
|
+
*/
|
|
76
|
+
decidedAt: string;
|
|
77
|
+
} | null;
|
|
55
78
|
/**
|
|
56
79
|
* Whether the applicant consented to trust-registry publication.
|
|
57
80
|
*/
|
|
@@ -186,6 +209,13 @@ export const PAYLOAD_SCHEMA = {
|
|
|
186
209
|
"type": "object",
|
|
187
210
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
188
211
|
},
|
|
212
|
+
"vpClaims": {
|
|
213
|
+
"type": [
|
|
214
|
+
"object",
|
|
215
|
+
"null"
|
|
216
|
+
],
|
|
217
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
218
|
+
},
|
|
189
219
|
"submittedAt": {
|
|
190
220
|
"type": "string",
|
|
191
221
|
"format": "date-time"
|
|
@@ -204,6 +234,36 @@ export const PAYLOAD_SCHEMA = {
|
|
|
204
234
|
"type": "object",
|
|
205
235
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
206
236
|
},
|
|
237
|
+
"decision": {
|
|
238
|
+
"type": [
|
|
239
|
+
"object",
|
|
240
|
+
"null"
|
|
241
|
+
],
|
|
242
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
243
|
+
"properties": {
|
|
244
|
+
"code": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "Stable refusal code, safe to branch on."
|
|
247
|
+
},
|
|
248
|
+
"reason": {
|
|
249
|
+
"type": [
|
|
250
|
+
"string",
|
|
251
|
+
"null"
|
|
252
|
+
],
|
|
253
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
254
|
+
},
|
|
255
|
+
"decidedAt": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"format": "date-time",
|
|
258
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"required": [
|
|
262
|
+
"code",
|
|
263
|
+
"decidedAt"
|
|
264
|
+
],
|
|
265
|
+
"additionalProperties": false
|
|
266
|
+
},
|
|
207
267
|
"registryConsent": {
|
|
208
268
|
"type": "boolean",
|
|
209
269
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -292,6 +352,13 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
292
352
|
"type": "object",
|
|
293
353
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
294
354
|
},
|
|
355
|
+
"vpClaims": {
|
|
356
|
+
"type": [
|
|
357
|
+
"object",
|
|
358
|
+
"null"
|
|
359
|
+
],
|
|
360
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
361
|
+
},
|
|
295
362
|
"submittedAt": {
|
|
296
363
|
"type": "string",
|
|
297
364
|
"format": "date-time"
|
|
@@ -310,6 +377,36 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
310
377
|
"type": "object",
|
|
311
378
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
312
379
|
},
|
|
380
|
+
"decision": {
|
|
381
|
+
"type": [
|
|
382
|
+
"object",
|
|
383
|
+
"null"
|
|
384
|
+
],
|
|
385
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
386
|
+
"properties": {
|
|
387
|
+
"code": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "Stable refusal code, safe to branch on."
|
|
390
|
+
},
|
|
391
|
+
"reason": {
|
|
392
|
+
"type": [
|
|
393
|
+
"string",
|
|
394
|
+
"null"
|
|
395
|
+
],
|
|
396
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
397
|
+
},
|
|
398
|
+
"decidedAt": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"format": "date-time",
|
|
401
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"code",
|
|
406
|
+
"decidedAt"
|
|
407
|
+
],
|
|
408
|
+
"additionalProperties": false
|
|
409
|
+
},
|
|
313
410
|
"registryConsent": {
|
|
314
411
|
"type": "boolean",
|
|
315
412
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -36,12 +36,35 @@ export interface JoinRequest {
|
|
|
36
36
|
* The W3C Verifiable Presentation the applicant submitted (opaque here).
|
|
37
37
|
*/
|
|
38
38
|
vp: {};
|
|
39
|
+
/**
|
|
40
|
+
* Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one.
|
|
41
|
+
*/
|
|
42
|
+
vpClaims?: {} | null;
|
|
39
43
|
submittedAt: string;
|
|
40
44
|
status: "pending" | "approved" | "rejected" | "withdrawn" | "deferred";
|
|
41
45
|
/**
|
|
42
46
|
* The community policy verdict recorded for this request (opaque here); absent while pending.
|
|
43
47
|
*/
|
|
44
48
|
policyDecision?: {};
|
|
49
|
+
/**
|
|
50
|
+
* Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.
|
|
51
|
+
*
|
|
52
|
+
* Distinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.
|
|
53
|
+
*/
|
|
54
|
+
decision?: {
|
|
55
|
+
/**
|
|
56
|
+
* Stable refusal code, safe to branch on.
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
/**
|
|
60
|
+
* Elaboration in prose, when the decider gave one.
|
|
61
|
+
*/
|
|
62
|
+
reason?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask.
|
|
65
|
+
*/
|
|
66
|
+
decidedAt: string;
|
|
67
|
+
} | null;
|
|
45
68
|
/**
|
|
46
69
|
* Whether the applicant consented to trust-registry publication.
|
|
47
70
|
*/
|
|
@@ -148,6 +171,13 @@ export const PAYLOAD_SCHEMA = {
|
|
|
148
171
|
"type": "object",
|
|
149
172
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
150
173
|
},
|
|
174
|
+
"vpClaims": {
|
|
175
|
+
"type": [
|
|
176
|
+
"object",
|
|
177
|
+
"null"
|
|
178
|
+
],
|
|
179
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
180
|
+
},
|
|
151
181
|
"submittedAt": {
|
|
152
182
|
"type": "string",
|
|
153
183
|
"format": "date-time"
|
|
@@ -166,6 +196,36 @@ export const PAYLOAD_SCHEMA = {
|
|
|
166
196
|
"type": "object",
|
|
167
197
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
168
198
|
},
|
|
199
|
+
"decision": {
|
|
200
|
+
"type": [
|
|
201
|
+
"object",
|
|
202
|
+
"null"
|
|
203
|
+
],
|
|
204
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
205
|
+
"properties": {
|
|
206
|
+
"code": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"description": "Stable refusal code, safe to branch on."
|
|
209
|
+
},
|
|
210
|
+
"reason": {
|
|
211
|
+
"type": [
|
|
212
|
+
"string",
|
|
213
|
+
"null"
|
|
214
|
+
],
|
|
215
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
216
|
+
},
|
|
217
|
+
"decidedAt": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"format": "date-time",
|
|
220
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": [
|
|
224
|
+
"code",
|
|
225
|
+
"decidedAt"
|
|
226
|
+
],
|
|
227
|
+
"additionalProperties": false
|
|
228
|
+
},
|
|
169
229
|
"registryConsent": {
|
|
170
230
|
"type": "boolean",
|
|
171
231
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -239,6 +299,13 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
239
299
|
"type": "object",
|
|
240
300
|
"description": "The W3C Verifiable Presentation the applicant submitted (opaque here)."
|
|
241
301
|
},
|
|
302
|
+
"vpClaims": {
|
|
303
|
+
"type": [
|
|
304
|
+
"object",
|
|
305
|
+
"null"
|
|
306
|
+
],
|
|
307
|
+
"description": "Canonical projection of `vp`, extracted when the request was submitted and used as the input the community's join policy reads. Carried on the row so an approval does not have to re-extract it, and opaque here: its members are whatever the community's policy asks of an applicant. `null` on a request recorded before a community began extracting one."
|
|
308
|
+
},
|
|
242
309
|
"submittedAt": {
|
|
243
310
|
"type": "string",
|
|
244
311
|
"format": "date-time"
|
|
@@ -257,6 +324,36 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
257
324
|
"type": "object",
|
|
258
325
|
"description": "The community policy verdict recorded for this request (opaque here); absent while pending."
|
|
259
326
|
},
|
|
327
|
+
"decision": {
|
|
328
|
+
"type": [
|
|
329
|
+
"object",
|
|
330
|
+
"null"
|
|
331
|
+
],
|
|
332
|
+
"description": "Why this request was refused, in terms meant for the applicant rather than the operator. `null` unless the request was rejected.\n\nDistinct from `policyDecision`, which records the community's internal verdict: both rejection paths — a policy auto-deny at submit and an admin's later refusal — write this one, so a client reads a single shape instead of reconciling two.",
|
|
333
|
+
"properties": {
|
|
334
|
+
"code": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Stable refusal code, safe to branch on."
|
|
337
|
+
},
|
|
338
|
+
"reason": {
|
|
339
|
+
"type": [
|
|
340
|
+
"string",
|
|
341
|
+
"null"
|
|
342
|
+
],
|
|
343
|
+
"description": "Elaboration in prose, when the decider gave one."
|
|
344
|
+
},
|
|
345
|
+
"decidedAt": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"format": "date-time",
|
|
348
|
+
"description": "When the decision was taken — not when the poll answering it was produced. On an admin refusal the two diverge by however long the applicant takes to ask."
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": [
|
|
352
|
+
"code",
|
|
353
|
+
"decidedAt"
|
|
354
|
+
],
|
|
355
|
+
"additionalProperties": false
|
|
356
|
+
},
|
|
260
357
|
"registryConsent": {
|
|
261
358
|
"type": "boolean",
|
|
262
359
|
"description": "Whether the applicant consented to trust-registry publication."
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
export interface VTCJoinRequestsStatusPayload {
|
|
7
7
|
/**
|
|
8
|
-
* The applicant's
|
|
8
|
+
* The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.
|
|
9
9
|
*/
|
|
10
|
-
requestId
|
|
10
|
+
requestId?: string;
|
|
11
11
|
ext?: Ext;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -19,6 +19,18 @@ export interface Ext {
|
|
|
19
19
|
export interface VTCJoinRequestsStatusResponsePayload {
|
|
20
20
|
requestId: string;
|
|
21
21
|
status: "pending" | "deferred" | "approved" | "rejected" | "withdrawn";
|
|
22
|
+
/**
|
|
23
|
+
* Stable refusal code, safe to branch on. Present only when `status` is `rejected`.
|
|
24
|
+
*/
|
|
25
|
+
code?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.
|
|
28
|
+
*/
|
|
29
|
+
reason?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.
|
|
32
|
+
*/
|
|
33
|
+
decidedAt?: string;
|
|
22
34
|
/**
|
|
23
35
|
* When deferred, what the applicant must supply next.
|
|
24
36
|
*/
|
|
@@ -57,14 +69,11 @@ export const PAYLOAD_SCHEMA = {
|
|
|
57
69
|
"title": "VTC Join-Requests Status — payload",
|
|
58
70
|
"type": "object",
|
|
59
71
|
"additionalProperties": false,
|
|
60
|
-
"required": [
|
|
61
|
-
"requestId"
|
|
62
|
-
],
|
|
63
72
|
"properties": {
|
|
64
73
|
"requestId": {
|
|
65
74
|
"type": "string",
|
|
66
75
|
"minLength": 1,
|
|
67
|
-
"description": "The applicant's
|
|
76
|
+
"description": "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller."
|
|
68
77
|
},
|
|
69
78
|
"ext": {
|
|
70
79
|
"$ref": "#/$defs/Ext"
|
|
@@ -95,6 +104,22 @@ export const PAYLOAD_SCHEMA = {
|
|
|
95
104
|
"withdrawn"
|
|
96
105
|
]
|
|
97
106
|
},
|
|
107
|
+
"code": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
110
|
+
},
|
|
111
|
+
"reason": {
|
|
112
|
+
"type": [
|
|
113
|
+
"string",
|
|
114
|
+
"null"
|
|
115
|
+
],
|
|
116
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
117
|
+
},
|
|
118
|
+
"decidedAt": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"format": "date-time",
|
|
121
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
122
|
+
},
|
|
98
123
|
"needs": {
|
|
99
124
|
"type": "array",
|
|
100
125
|
"items": {
|
|
@@ -153,6 +178,22 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
153
178
|
"withdrawn"
|
|
154
179
|
]
|
|
155
180
|
},
|
|
181
|
+
"code": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
184
|
+
},
|
|
185
|
+
"reason": {
|
|
186
|
+
"type": [
|
|
187
|
+
"string",
|
|
188
|
+
"null"
|
|
189
|
+
],
|
|
190
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
191
|
+
},
|
|
192
|
+
"decidedAt": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"format": "date-time",
|
|
195
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
196
|
+
},
|
|
156
197
|
"needs": {
|
|
157
198
|
"type": "array",
|
|
158
199
|
"items": {
|