@openvtc/trust-tasks 0.12.9 → 0.12.11
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/_shared/0.1/endorsement.d.ts +1 -1
- package/dist/vtc/ceremonies/list/0.1/payload.d.ts +22 -0
- package/dist/vtc/ceremonies/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/ceremonies/list/0.1/payload.js +8 -0
- package/dist/vtc/ceremonies/list/0.1/payload.js.map +1 -1
- package/dist/vtc/community/profile/show/0.1/payload.d.ts +81 -22
- package/dist/vtc/community/profile/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/community/profile/show/0.1/payload.js +34 -8
- package/dist/vtc/community/profile/show/0.1/payload.js.map +1 -1
- package/dist/vtc/community/profile/update/0.1/payload.d.ts +81 -22
- package/dist/vtc/community/profile/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/community/profile/update/0.1/payload.js +34 -8
- package/dist/vtc/community/profile/update/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/issue/0.1/payload.d.ts +65 -65
- package/dist/vtc/endorsements/issue/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/issue/0.1/payload.js +36 -32
- package/dist/vtc/endorsements/issue/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/list/0.1/payload.d.ts +41 -61
- package/dist/vtc/endorsements/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/list/0.1/payload.js +24 -30
- package/dist/vtc/endorsements/list/0.1/payload.js.map +1 -1
- package/dist/vtc/endorsements/show/0.1/payload.d.ts +41 -61
- package/dist/vtc/endorsements/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/endorsements/show/0.1/payload.js +24 -30
- package/dist/vtc/endorsements/show/0.1/payload.js.map +1 -1
- package/dist/vtc/install/claim/finish/0.2/payload.d.ts +271 -0
- package/dist/vtc/install/claim/finish/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/finish/0.2/payload.js +152 -0
- package/dist/vtc/install/claim/finish/0.2/payload.js.map +1 -0
- package/dist/vtc/install/claim/start/0.1/payload.d.ts +18 -0
- package/dist/vtc/install/claim/start/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/install/claim/start/0.1/payload.js +5 -0
- package/dist/vtc/install/claim/start/0.1/payload.js.map +1 -1
- package/dist/vtc/install/claim/start/0.2/payload.d.ts +264 -0
- package/dist/vtc/install/claim/start/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/start/0.2/payload.js +145 -0
- package/dist/vtc/install/claim/start/0.2/payload.js.map +1 -0
- package/dist/vtc/registry/diagnostics/0.1/payload.d.ts +491 -0
- package/dist/vtc/registry/diagnostics/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/registry/diagnostics/0.1/payload.js +260 -0
- package/dist/vtc/registry/diagnostics/0.1/payload.js.map +1 -1
- package/dist/vtc/website/files/list/0.1/payload.d.ts +24 -0
- package/dist/vtc/website/files/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/website/files/list/0.1/payload.js +10 -0
- package/dist/vtc/website/files/list/0.1/payload.js.map +1 -1
- package/dist/vtc/website/generations/list/0.1/payload.d.ts +48 -0
- package/dist/vtc/website/generations/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/website/generations/list/0.1/payload.js +20 -0
- package/dist/vtc/website/generations/list/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/vtc/_shared/0.1/endorsement.ts +1 -1
- package/src/vtc/ceremonies/list/0.1/payload.ts +14 -0
- package/src/vtc/community/profile/show/0.1/payload.ts +47 -10
- package/src/vtc/community/profile/update/0.1/payload.ts +47 -10
- package/src/vtc/endorsements/issue/0.1/payload.ts +45 -41
- package/src/vtc/endorsements/list/0.1/payload.ts +29 -39
- package/src/vtc/endorsements/show/0.1/payload.ts +29 -39
- package/src/vtc/install/claim/finish/0.2/payload.ts +193 -0
- package/src/vtc/install/claim/start/0.1/payload.ts +13 -0
- package/src/vtc/install/claim/start/0.2/payload.ts +189 -0
- package/src/vtc/registry/diagnostics/0.1/payload.ts +343 -0
- package/src/vtc/website/files/list/0.1/payload.ts +14 -0
- package/src/vtc/website/generations/list/0.1/payload.ts +28 -0
|
@@ -48,14 +48,25 @@ export interface Ext {
|
|
|
48
48
|
[k: string]: unknown | undefined;
|
|
49
49
|
}
|
|
50
50
|
export interface VTCCommunityProfileUpdateResponsePayload {
|
|
51
|
-
profile:
|
|
51
|
+
profile: CommunityProfileView;
|
|
52
52
|
/**
|
|
53
53
|
* Names of the profile members this update actually changed, in the wire spelling. Empty when the submitted values all matched what was already stored. Lets a caller distinguish a no-op from an applied change without diffing the returned profile against the one it sent.
|
|
54
54
|
*/
|
|
55
55
|
fieldsChanged?: string[];
|
|
56
56
|
ext?: Ext;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
/**
|
|
59
|
+
* The community's profile as read, including the immutable `communityDid` an update cannot set.
|
|
60
|
+
*/
|
|
61
|
+
export interface CommunityProfileView {
|
|
62
|
+
/**
|
|
63
|
+
* The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update.
|
|
64
|
+
*/
|
|
65
|
+
communityDid: string;
|
|
66
|
+
/**
|
|
67
|
+
* When the community was created. Immutable, like `communityDid`.
|
|
68
|
+
*/
|
|
69
|
+
createdAt?: string;
|
|
59
70
|
name: string;
|
|
60
71
|
description?: string;
|
|
61
72
|
logoUrl?: string | null;
|
|
@@ -167,7 +178,8 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
167
178
|
readonly required: readonly ["profile"];
|
|
168
179
|
readonly properties: {
|
|
169
180
|
readonly profile: {
|
|
170
|
-
readonly $ref: "#/$defs/
|
|
181
|
+
readonly $ref: "#/$defs/CommunityProfileView";
|
|
182
|
+
readonly description: "The community's profile as read, including the immutable `communityDid` an update cannot set.";
|
|
171
183
|
};
|
|
172
184
|
readonly fieldsChanged: {
|
|
173
185
|
readonly type: "array";
|
|
@@ -191,13 +203,24 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
191
203
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
192
204
|
};
|
|
193
205
|
};
|
|
194
|
-
readonly
|
|
195
|
-
readonly $anchor: "
|
|
196
|
-
readonly title: "
|
|
206
|
+
readonly CommunityProfileView: {
|
|
207
|
+
readonly $anchor: "communityProfileView";
|
|
208
|
+
readonly title: "CommunityProfileView";
|
|
197
209
|
readonly type: "object";
|
|
198
210
|
readonly additionalProperties: false;
|
|
199
|
-
readonly
|
|
211
|
+
readonly description: "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.";
|
|
212
|
+
readonly required: readonly ["communityDid", "name", "language"];
|
|
200
213
|
readonly properties: {
|
|
214
|
+
readonly communityDid: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly minLength: 1;
|
|
217
|
+
readonly description: "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update.";
|
|
218
|
+
};
|
|
219
|
+
readonly createdAt: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly format: "date-time";
|
|
222
|
+
readonly description: "When the community was created. Immutable, like `communityDid`.";
|
|
223
|
+
};
|
|
201
224
|
readonly name: {
|
|
202
225
|
readonly type: "string";
|
|
203
226
|
readonly minLength: 1;
|
|
@@ -282,7 +305,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
282
305
|
readonly required: readonly ["profile"];
|
|
283
306
|
readonly properties: {
|
|
284
307
|
readonly profile: {
|
|
285
|
-
readonly $ref: "#/$defs/
|
|
308
|
+
readonly $ref: "#/$defs/CommunityProfileView";
|
|
309
|
+
readonly description: "The community's profile as read, including the immutable `communityDid` an update cannot set.";
|
|
286
310
|
};
|
|
287
311
|
readonly fieldsChanged: {
|
|
288
312
|
readonly type: "array";
|
|
@@ -306,13 +330,24 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
306
330
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
307
331
|
};
|
|
308
332
|
};
|
|
309
|
-
readonly
|
|
310
|
-
readonly $anchor: "
|
|
311
|
-
readonly title: "
|
|
333
|
+
readonly CommunityProfileView: {
|
|
334
|
+
readonly $anchor: "communityProfileView";
|
|
335
|
+
readonly title: "CommunityProfileView";
|
|
312
336
|
readonly type: "object";
|
|
313
337
|
readonly additionalProperties: false;
|
|
314
|
-
readonly
|
|
338
|
+
readonly description: "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.";
|
|
339
|
+
readonly required: readonly ["communityDid", "name", "language"];
|
|
315
340
|
readonly properties: {
|
|
341
|
+
readonly communityDid: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly minLength: 1;
|
|
344
|
+
readonly description: "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update.";
|
|
345
|
+
};
|
|
346
|
+
readonly createdAt: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly format: "date-time";
|
|
349
|
+
readonly description: "When the community was created. Immutable, like `communityDid`.";
|
|
350
|
+
};
|
|
316
351
|
readonly name: {
|
|
317
352
|
readonly type: "string";
|
|
318
353
|
readonly minLength: 1;
|
|
@@ -448,7 +483,8 @@ export declare const SPEC: {
|
|
|
448
483
|
readonly required: readonly ["profile"];
|
|
449
484
|
readonly properties: {
|
|
450
485
|
readonly profile: {
|
|
451
|
-
readonly $ref: "#/$defs/
|
|
486
|
+
readonly $ref: "#/$defs/CommunityProfileView";
|
|
487
|
+
readonly description: "The community's profile as read, including the immutable `communityDid` an update cannot set.";
|
|
452
488
|
};
|
|
453
489
|
readonly fieldsChanged: {
|
|
454
490
|
readonly type: "array";
|
|
@@ -472,13 +508,24 @@ export declare const SPEC: {
|
|
|
472
508
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
473
509
|
};
|
|
474
510
|
};
|
|
475
|
-
readonly
|
|
476
|
-
readonly $anchor: "
|
|
477
|
-
readonly title: "
|
|
511
|
+
readonly CommunityProfileView: {
|
|
512
|
+
readonly $anchor: "communityProfileView";
|
|
513
|
+
readonly title: "CommunityProfileView";
|
|
478
514
|
readonly type: "object";
|
|
479
515
|
readonly additionalProperties: false;
|
|
480
|
-
readonly
|
|
516
|
+
readonly description: "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.";
|
|
517
|
+
readonly required: readonly ["communityDid", "name", "language"];
|
|
481
518
|
readonly properties: {
|
|
519
|
+
readonly communityDid: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly minLength: 1;
|
|
522
|
+
readonly description: "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update.";
|
|
523
|
+
};
|
|
524
|
+
readonly createdAt: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly format: "date-time";
|
|
527
|
+
readonly description: "When the community was created. Immutable, like `communityDid`.";
|
|
528
|
+
};
|
|
482
529
|
readonly name: {
|
|
483
530
|
readonly type: "string";
|
|
484
531
|
readonly minLength: 1;
|
|
@@ -573,7 +620,8 @@ export declare const RESPONSE_SPEC: {
|
|
|
573
620
|
readonly required: readonly ["profile"];
|
|
574
621
|
readonly properties: {
|
|
575
622
|
readonly profile: {
|
|
576
|
-
readonly $ref: "#/$defs/
|
|
623
|
+
readonly $ref: "#/$defs/CommunityProfileView";
|
|
624
|
+
readonly description: "The community's profile as read, including the immutable `communityDid` an update cannot set.";
|
|
577
625
|
};
|
|
578
626
|
readonly fieldsChanged: {
|
|
579
627
|
readonly type: "array";
|
|
@@ -597,13 +645,24 @@ export declare const RESPONSE_SPEC: {
|
|
|
597
645
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
598
646
|
};
|
|
599
647
|
};
|
|
600
|
-
readonly
|
|
601
|
-
readonly $anchor: "
|
|
602
|
-
readonly title: "
|
|
648
|
+
readonly CommunityProfileView: {
|
|
649
|
+
readonly $anchor: "communityProfileView";
|
|
650
|
+
readonly title: "CommunityProfileView";
|
|
603
651
|
readonly type: "object";
|
|
604
652
|
readonly additionalProperties: false;
|
|
605
|
-
readonly
|
|
653
|
+
readonly description: "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.";
|
|
654
|
+
readonly required: readonly ["communityDid", "name", "language"];
|
|
606
655
|
readonly properties: {
|
|
656
|
+
readonly communityDid: {
|
|
657
|
+
readonly type: "string";
|
|
658
|
+
readonly minLength: 1;
|
|
659
|
+
readonly description: "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update.";
|
|
660
|
+
};
|
|
661
|
+
readonly createdAt: {
|
|
662
|
+
readonly type: "string";
|
|
663
|
+
readonly format: "date-time";
|
|
664
|
+
readonly description: "When the community was created. Immutable, like `communityDid`.";
|
|
665
|
+
};
|
|
607
666
|
readonly name: {
|
|
608
667
|
readonly type: "string";
|
|
609
668
|
readonly minLength: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,6BAA6B,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC1D,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,wCAAwC;IACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,6BAA6B,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC1D,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GA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M,MAAM,QAAQ,GAAG,wCAAwC,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJ1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -82,7 +82,8 @@ export const PAYLOAD_SCHEMA = {
|
|
|
82
82
|
],
|
|
83
83
|
"properties": {
|
|
84
84
|
"profile": {
|
|
85
|
-
"$ref": "#/$defs/
|
|
85
|
+
"$ref": "#/$defs/CommunityProfileView",
|
|
86
|
+
"description": "The community's profile as read, including the immutable `communityDid` an update cannot set."
|
|
86
87
|
},
|
|
87
88
|
"fieldsChanged": {
|
|
88
89
|
"type": "array",
|
|
@@ -106,16 +107,28 @@ export const PAYLOAD_SCHEMA = {
|
|
|
106
107
|
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
|
-
"
|
|
110
|
-
"$anchor": "
|
|
111
|
-
"title": "
|
|
110
|
+
"CommunityProfileView": {
|
|
111
|
+
"$anchor": "communityProfileView",
|
|
112
|
+
"title": "CommunityProfileView",
|
|
112
113
|
"type": "object",
|
|
113
114
|
"additionalProperties": false,
|
|
115
|
+
"description": "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.",
|
|
114
116
|
"required": [
|
|
117
|
+
"communityDid",
|
|
115
118
|
"name",
|
|
116
119
|
"language"
|
|
117
120
|
],
|
|
118
121
|
"properties": {
|
|
122
|
+
"communityDid": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"description": "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update."
|
|
126
|
+
},
|
|
127
|
+
"createdAt": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"format": "date-time",
|
|
130
|
+
"description": "When the community was created. Immutable, like `communityDid`."
|
|
131
|
+
},
|
|
119
132
|
"name": {
|
|
120
133
|
"type": "string",
|
|
121
134
|
"minLength": 1
|
|
@@ -220,7 +233,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
220
233
|
],
|
|
221
234
|
"properties": {
|
|
222
235
|
"profile": {
|
|
223
|
-
"$ref": "#/$defs/
|
|
236
|
+
"$ref": "#/$defs/CommunityProfileView",
|
|
237
|
+
"description": "The community's profile as read, including the immutable `communityDid` an update cannot set."
|
|
224
238
|
},
|
|
225
239
|
"fieldsChanged": {
|
|
226
240
|
"type": "array",
|
|
@@ -244,16 +258,28 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
244
258
|
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
245
259
|
}
|
|
246
260
|
},
|
|
247
|
-
"
|
|
248
|
-
"$anchor": "
|
|
249
|
-
"title": "
|
|
261
|
+
"CommunityProfileView": {
|
|
262
|
+
"$anchor": "communityProfileView",
|
|
263
|
+
"title": "CommunityProfileView",
|
|
250
264
|
"type": "object",
|
|
251
265
|
"additionalProperties": false,
|
|
266
|
+
"description": "A community profile **as read**: every member of CommunityProfile, plus the immutable identity a reader needs and an update must never set.\n\nCommunityProfile is the update-facing view and omits `communityDid` on purpose, so that a patch cannot re-point a community's identity. That is right for a payload and wrong for a response: a client holding a profile has no other way to learn which DID to verify that community's credentials against, and `community/profile/show` returning the update-facing view left the one member a consumer most needs undefined.\n\nSo reads get this and updates keep CommunityProfile. The split is the point — the immutability of `communityDid` is enforced by it being absent from the payload, not by prose asking implementers not to honour it.",
|
|
252
267
|
"required": [
|
|
268
|
+
"communityDid",
|
|
253
269
|
"name",
|
|
254
270
|
"language"
|
|
255
271
|
],
|
|
256
272
|
"properties": {
|
|
273
|
+
"communityDid": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"minLength": 1,
|
|
276
|
+
"description": "The community's own DID — the identifier every credential it issues names as `issuer`, and the one a member's credential binds them to. Immutable: set when the community is created and not settable through an update."
|
|
277
|
+
},
|
|
278
|
+
"createdAt": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"format": "date-time",
|
|
281
|
+
"description": "When the community was created. Immutable, like `communityDid`."
|
|
282
|
+
},
|
|
257
283
|
"name": {
|
|
258
284
|
"type": "string",
|
|
259
285
|
"minLength": 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/profile/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uEAAgF,CAAC;AAKlH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,8DAA8D;IACrE,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACT,MAAM,EAAE;gBACN,QAAQ;gBACR,MAAM;aACP;SACF;QACD,WAAW,EAAE;YACX,MAAM,EAAE;gBACN,QAAQ;gBACR,MAAM;aACP;SACF;QACD,cAAc,EAAE;YACd,MAAM,EAAE;gBACN,QAAQ;gBACR,MAAM;aACP;SACF;QACD,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,+BAA+B,EAAE;YAC/B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,YAAY;gBACZ,UAAU;aACX;YACD,aAAa,EAAE,2LAA2L;SAC3M;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,8BAA8B;YACtC,aAAa,EAAE,oRAAoR;SACpS;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,aAAa,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