@openvtc/trust-tasks 0.12.5 → 0.12.7
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/dist/vtc/relationships/publish/0.1/payload.d.ts +106 -0
- package/dist/vtc/relationships/publish/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/relationships/publish/0.1/payload.js +49 -0
- package/dist/vtc/relationships/publish/0.1/payload.js.map +1 -1
- package/dist/vtc/relationships/publish/0.2/payload.d.ts +76 -2
- package/dist/vtc/relationships/publish/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/relationships/publish/0.2/payload.js +29 -0
- package/dist/vtc/relationships/publish/0.2/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
- package/src/vtc/relationships/publish/0.1/payload.ts +76 -0
- package/src/vtc/relationships/publish/0.2/payload.ts +57 -2
|
@@ -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;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,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/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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O,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -118,6 +118,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,E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,EAAE,WAAW;4BACrB,aAAa,EAAE,4JAA4J;yBAC5K;qBACF;oBACD,UAAU,EAAE;wBACV,MAAM;wBACN,WAAW;qBACZ;oBACD,sBAAsB,EAAE,KAAK;iBAC9B;gBACD,iBAAiB,EAAE;oBACjB,MAAM,EAAE,SAAS;oBACjB,aAAa,EAAE,gEAAgE;iBAChF;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,yCAAyC;iBACzD;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;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;;GAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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."
|