@hypercerts-org/lexicon 0.10.0-beta.13 → 0.10.0-beta.14
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/CHANGELOG.md +43 -0
- package/SCHEMAS.md +46 -0
- package/dist/exports.d.ts +94 -7
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +94 -7
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +182 -18
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/generated/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/generated/types/app/certified/defs.d.ts +11 -1
- package/dist/generated/types/app/certified/defs.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/index.cjs +345 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +337 -86
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +98 -9
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +182 -18
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +98 -9
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/types/app/certified/defs.d.ts +11 -1
- package/dist/types/app/certified/defs.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/lexicons/app/certified/actor/profile.json +51 -0
- package/lexicons/app/certified/defs.json +11 -3
- package/lexicons/org/hypercerts/claim/activity.json +31 -8
- package/package.json +1 -1
package/dist/lexicons.d.ts
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Lexicons, type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
export declare const schemaDict: {
|
|
6
|
+
readonly AppCertifiedActorProfile: {
|
|
7
|
+
readonly lexicon: 1;
|
|
8
|
+
readonly id: "app.certified.actor.profile";
|
|
9
|
+
readonly defs: {
|
|
10
|
+
readonly main: {
|
|
11
|
+
readonly type: "record";
|
|
12
|
+
readonly description: "A declaration of a Hypercert account profile.";
|
|
13
|
+
readonly key: "literal:self";
|
|
14
|
+
readonly record: {
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly properties: {
|
|
17
|
+
readonly displayName: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly maxGraphemes: 64;
|
|
20
|
+
readonly maxLength: 640;
|
|
21
|
+
};
|
|
22
|
+
readonly description: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly description: "Free-form profile description text.";
|
|
25
|
+
readonly maxGraphemes: 256;
|
|
26
|
+
readonly maxLength: 2560;
|
|
27
|
+
};
|
|
28
|
+
readonly pronouns: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly description: "Free-form pronouns text.";
|
|
31
|
+
readonly maxGraphemes: 20;
|
|
32
|
+
readonly maxLength: 200;
|
|
33
|
+
};
|
|
34
|
+
readonly website: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly format: "uri";
|
|
37
|
+
};
|
|
38
|
+
readonly avatar: {
|
|
39
|
+
readonly type: "union";
|
|
40
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
41
|
+
readonly description: "Small image to be displayed next to posts from account. AKA, 'profile picture'";
|
|
42
|
+
};
|
|
43
|
+
readonly banner: {
|
|
44
|
+
readonly type: "union";
|
|
45
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#largeImage"];
|
|
46
|
+
readonly description: "Larger horizontal image to display behind profile view.";
|
|
47
|
+
};
|
|
48
|
+
readonly createdAt: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly format: "datetime";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
6
57
|
readonly AppCertifiedBadgeAward: {
|
|
7
58
|
readonly lexicon: 1;
|
|
8
59
|
readonly id: "app.certified.badge.award";
|
|
@@ -129,9 +180,17 @@ export declare const schemaDict: {
|
|
|
129
180
|
readonly description: "Common type definitions used across certified protocols.";
|
|
130
181
|
readonly defs: {
|
|
131
182
|
readonly did: {
|
|
132
|
-
readonly type: "
|
|
133
|
-
readonly format: "did";
|
|
183
|
+
readonly type: "object";
|
|
134
184
|
readonly description: "A Decentralized Identifier (DID) string.";
|
|
185
|
+
readonly required: ["did"];
|
|
186
|
+
readonly properties: {
|
|
187
|
+
readonly did: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly format: "did";
|
|
190
|
+
readonly description: "The DID string value.";
|
|
191
|
+
readonly maxLength: 256;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
135
194
|
};
|
|
136
195
|
};
|
|
137
196
|
};
|
|
@@ -340,20 +399,43 @@ export declare const schemaDict: {
|
|
|
340
399
|
};
|
|
341
400
|
};
|
|
342
401
|
readonly contributorIdentity: {
|
|
343
|
-
readonly type: "
|
|
402
|
+
readonly type: "object";
|
|
344
403
|
readonly description: "Contributor information as a string (DID or identifier).";
|
|
404
|
+
readonly required: ["identity"];
|
|
405
|
+
readonly properties: {
|
|
406
|
+
readonly identity: {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly description: "The contributor identity string (DID or identifier).";
|
|
409
|
+
readonly maxLength: 1000;
|
|
410
|
+
readonly maxGraphemes: 100;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
345
413
|
};
|
|
346
414
|
readonly contributorRole: {
|
|
347
|
-
readonly type: "
|
|
415
|
+
readonly type: "object";
|
|
348
416
|
readonly description: "Contribution details as a string.";
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
417
|
+
readonly required: ["role"];
|
|
418
|
+
readonly properties: {
|
|
419
|
+
readonly role: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly description: "The contribution role or details.";
|
|
422
|
+
readonly maxLength: 1000;
|
|
423
|
+
readonly maxGraphemes: 100;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
351
426
|
};
|
|
352
427
|
readonly workScopeString: {
|
|
353
|
-
readonly type: "
|
|
428
|
+
readonly type: "object";
|
|
354
429
|
readonly description: "A free-form string describing the work scope for simple or legacy scopes.";
|
|
355
|
-
readonly
|
|
356
|
-
readonly
|
|
430
|
+
readonly required: ["scope"];
|
|
431
|
+
readonly properties: {
|
|
432
|
+
readonly scope: {
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly description: "The work scope description string.";
|
|
435
|
+
readonly maxLength: 1000;
|
|
436
|
+
readonly maxGraphemes: 100;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
357
439
|
};
|
|
358
440
|
};
|
|
359
441
|
};
|
|
@@ -1034,6 +1116,56 @@ export declare const schemaDict: {
|
|
|
1034
1116
|
};
|
|
1035
1117
|
};
|
|
1036
1118
|
export declare const schemas: ({
|
|
1119
|
+
readonly lexicon: 1;
|
|
1120
|
+
readonly id: "app.certified.actor.profile";
|
|
1121
|
+
readonly defs: {
|
|
1122
|
+
readonly main: {
|
|
1123
|
+
readonly type: "record";
|
|
1124
|
+
readonly description: "A declaration of a Hypercert account profile.";
|
|
1125
|
+
readonly key: "literal:self";
|
|
1126
|
+
readonly record: {
|
|
1127
|
+
readonly type: "object";
|
|
1128
|
+
readonly properties: {
|
|
1129
|
+
readonly displayName: {
|
|
1130
|
+
readonly type: "string";
|
|
1131
|
+
readonly maxGraphemes: 64;
|
|
1132
|
+
readonly maxLength: 640;
|
|
1133
|
+
};
|
|
1134
|
+
readonly description: {
|
|
1135
|
+
readonly type: "string";
|
|
1136
|
+
readonly description: "Free-form profile description text.";
|
|
1137
|
+
readonly maxGraphemes: 256;
|
|
1138
|
+
readonly maxLength: 2560;
|
|
1139
|
+
};
|
|
1140
|
+
readonly pronouns: {
|
|
1141
|
+
readonly type: "string";
|
|
1142
|
+
readonly description: "Free-form pronouns text.";
|
|
1143
|
+
readonly maxGraphemes: 20;
|
|
1144
|
+
readonly maxLength: 200;
|
|
1145
|
+
};
|
|
1146
|
+
readonly website: {
|
|
1147
|
+
readonly type: "string";
|
|
1148
|
+
readonly format: "uri";
|
|
1149
|
+
};
|
|
1150
|
+
readonly avatar: {
|
|
1151
|
+
readonly type: "union";
|
|
1152
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1153
|
+
readonly description: "Small image to be displayed next to posts from account. AKA, 'profile picture'";
|
|
1154
|
+
};
|
|
1155
|
+
readonly banner: {
|
|
1156
|
+
readonly type: "union";
|
|
1157
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#largeImage"];
|
|
1158
|
+
readonly description: "Larger horizontal image to display behind profile view.";
|
|
1159
|
+
};
|
|
1160
|
+
readonly createdAt: {
|
|
1161
|
+
readonly type: "string";
|
|
1162
|
+
readonly format: "datetime";
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
} | {
|
|
1037
1169
|
readonly lexicon: 1;
|
|
1038
1170
|
readonly id: "app.certified.badge.award";
|
|
1039
1171
|
readonly defs: {
|
|
@@ -1156,9 +1288,17 @@ export declare const schemas: ({
|
|
|
1156
1288
|
readonly description: "Common type definitions used across certified protocols.";
|
|
1157
1289
|
readonly defs: {
|
|
1158
1290
|
readonly did: {
|
|
1159
|
-
readonly type: "
|
|
1160
|
-
readonly format: "did";
|
|
1291
|
+
readonly type: "object";
|
|
1161
1292
|
readonly description: "A Decentralized Identifier (DID) string.";
|
|
1293
|
+
readonly required: ["did"];
|
|
1294
|
+
readonly properties: {
|
|
1295
|
+
readonly did: {
|
|
1296
|
+
readonly type: "string";
|
|
1297
|
+
readonly format: "did";
|
|
1298
|
+
readonly description: "The DID string value.";
|
|
1299
|
+
readonly maxLength: 256;
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1162
1302
|
};
|
|
1163
1303
|
};
|
|
1164
1304
|
} | {
|
|
@@ -1364,20 +1504,43 @@ export declare const schemas: ({
|
|
|
1364
1504
|
};
|
|
1365
1505
|
};
|
|
1366
1506
|
readonly contributorIdentity: {
|
|
1367
|
-
readonly type: "
|
|
1507
|
+
readonly type: "object";
|
|
1368
1508
|
readonly description: "Contributor information as a string (DID or identifier).";
|
|
1509
|
+
readonly required: ["identity"];
|
|
1510
|
+
readonly properties: {
|
|
1511
|
+
readonly identity: {
|
|
1512
|
+
readonly type: "string";
|
|
1513
|
+
readonly description: "The contributor identity string (DID or identifier).";
|
|
1514
|
+
readonly maxLength: 1000;
|
|
1515
|
+
readonly maxGraphemes: 100;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1369
1518
|
};
|
|
1370
1519
|
readonly contributorRole: {
|
|
1371
|
-
readonly type: "
|
|
1520
|
+
readonly type: "object";
|
|
1372
1521
|
readonly description: "Contribution details as a string.";
|
|
1373
|
-
readonly
|
|
1374
|
-
readonly
|
|
1522
|
+
readonly required: ["role"];
|
|
1523
|
+
readonly properties: {
|
|
1524
|
+
readonly role: {
|
|
1525
|
+
readonly type: "string";
|
|
1526
|
+
readonly description: "The contribution role or details.";
|
|
1527
|
+
readonly maxLength: 1000;
|
|
1528
|
+
readonly maxGraphemes: 100;
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1375
1531
|
};
|
|
1376
1532
|
readonly workScopeString: {
|
|
1377
|
-
readonly type: "
|
|
1533
|
+
readonly type: "object";
|
|
1378
1534
|
readonly description: "A free-form string describing the work scope for simple or legacy scopes.";
|
|
1379
|
-
readonly
|
|
1380
|
-
readonly
|
|
1535
|
+
readonly required: ["scope"];
|
|
1536
|
+
readonly properties: {
|
|
1537
|
+
readonly scope: {
|
|
1538
|
+
readonly type: "string";
|
|
1539
|
+
readonly description: "The work scope description string.";
|
|
1540
|
+
readonly maxLength: 1000;
|
|
1541
|
+
readonly maxGraphemes: 100;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1381
1544
|
};
|
|
1382
1545
|
};
|
|
1383
1546
|
} | {
|
|
@@ -2054,6 +2217,7 @@ export declare function validate<T extends {
|
|
|
2054
2217
|
$type?: string;
|
|
2055
2218
|
}>(v: unknown, id: string, hash: string, requiredType?: false): ValidationResult<T>;
|
|
2056
2219
|
export declare const ids: {
|
|
2220
|
+
readonly AppCertifiedActorProfile: "app.certified.actor.profile";
|
|
2057
2221
|
readonly AppCertifiedBadgeAward: "app.certified.badge.award";
|
|
2058
2222
|
readonly AppCertifiedBadgeDefinition: "app.certified.badge.definition";
|
|
2059
2223
|
readonly AppCertifiedBadgeResponse: "app.certified.badge.response";
|
package/dist/lexicons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,QAAQ,EAAE,QAAgC,CAAA;AAEvD,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAClD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,IAAI,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AACtB,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACnD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,KAAK,GACnB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAiBtB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;CAqBN,CAAA"}
|
package/dist/lexicons.mjs
CHANGED
|
@@ -28,6 +28,63 @@ function maybe$typed(v, id, hash) {
|
|
|
28
28
|
* GENERATED CODE - DO NOT MODIFY
|
|
29
29
|
*/
|
|
30
30
|
const schemaDict = {
|
|
31
|
+
AppCertifiedActorProfile: {
|
|
32
|
+
lexicon: 1,
|
|
33
|
+
id: 'app.certified.actor.profile',
|
|
34
|
+
defs: {
|
|
35
|
+
main: {
|
|
36
|
+
type: 'record',
|
|
37
|
+
description: 'A declaration of a Hypercert account profile.',
|
|
38
|
+
key: 'literal:self',
|
|
39
|
+
record: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
displayName: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
maxGraphemes: 64,
|
|
45
|
+
maxLength: 640,
|
|
46
|
+
},
|
|
47
|
+
description: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Free-form profile description text.',
|
|
50
|
+
maxGraphemes: 256,
|
|
51
|
+
maxLength: 2560,
|
|
52
|
+
},
|
|
53
|
+
pronouns: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Free-form pronouns text.',
|
|
56
|
+
maxGraphemes: 20,
|
|
57
|
+
maxLength: 200,
|
|
58
|
+
},
|
|
59
|
+
website: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
format: 'uri',
|
|
62
|
+
},
|
|
63
|
+
avatar: {
|
|
64
|
+
type: 'union',
|
|
65
|
+
refs: [
|
|
66
|
+
'lex:org.hypercerts.defs#uri',
|
|
67
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
68
|
+
],
|
|
69
|
+
description: "Small image to be displayed next to posts from account. AKA, 'profile picture'",
|
|
70
|
+
},
|
|
71
|
+
banner: {
|
|
72
|
+
type: 'union',
|
|
73
|
+
refs: [
|
|
74
|
+
'lex:org.hypercerts.defs#uri',
|
|
75
|
+
'lex:org.hypercerts.defs#largeImage',
|
|
76
|
+
],
|
|
77
|
+
description: 'Larger horizontal image to display behind profile view.',
|
|
78
|
+
},
|
|
79
|
+
createdAt: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
format: 'datetime',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
31
88
|
AppCertifiedBadgeAward: {
|
|
32
89
|
lexicon: 1,
|
|
33
90
|
id: 'app.certified.badge.award',
|
|
@@ -162,9 +219,17 @@ const schemaDict = {
|
|
|
162
219
|
description: 'Common type definitions used across certified protocols.',
|
|
163
220
|
defs: {
|
|
164
221
|
did: {
|
|
165
|
-
type: '
|
|
166
|
-
format: 'did',
|
|
222
|
+
type: 'object',
|
|
167
223
|
description: 'A Decentralized Identifier (DID) string.',
|
|
224
|
+
required: ['did'],
|
|
225
|
+
properties: {
|
|
226
|
+
did: {
|
|
227
|
+
type: 'string',
|
|
228
|
+
format: 'did',
|
|
229
|
+
description: 'The DID string value.',
|
|
230
|
+
maxLength: 256,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
168
233
|
},
|
|
169
234
|
},
|
|
170
235
|
},
|
|
@@ -395,20 +460,43 @@ const schemaDict = {
|
|
|
395
460
|
},
|
|
396
461
|
},
|
|
397
462
|
contributorIdentity: {
|
|
398
|
-
type: '
|
|
463
|
+
type: 'object',
|
|
399
464
|
description: 'Contributor information as a string (DID or identifier).',
|
|
465
|
+
required: ['identity'],
|
|
466
|
+
properties: {
|
|
467
|
+
identity: {
|
|
468
|
+
type: 'string',
|
|
469
|
+
description: 'The contributor identity string (DID or identifier).',
|
|
470
|
+
maxLength: 1000,
|
|
471
|
+
maxGraphemes: 100,
|
|
472
|
+
},
|
|
473
|
+
},
|
|
400
474
|
},
|
|
401
475
|
contributorRole: {
|
|
402
|
-
type: '
|
|
476
|
+
type: 'object',
|
|
403
477
|
description: 'Contribution details as a string.',
|
|
404
|
-
|
|
405
|
-
|
|
478
|
+
required: ['role'],
|
|
479
|
+
properties: {
|
|
480
|
+
role: {
|
|
481
|
+
type: 'string',
|
|
482
|
+
description: 'The contribution role or details.',
|
|
483
|
+
maxLength: 1000,
|
|
484
|
+
maxGraphemes: 100,
|
|
485
|
+
},
|
|
486
|
+
},
|
|
406
487
|
},
|
|
407
488
|
workScopeString: {
|
|
408
|
-
type: '
|
|
489
|
+
type: 'object',
|
|
409
490
|
description: 'A free-form string describing the work scope for simple or legacy scopes.',
|
|
410
|
-
|
|
411
|
-
|
|
491
|
+
required: ['scope'],
|
|
492
|
+
properties: {
|
|
493
|
+
scope: {
|
|
494
|
+
type: 'string',
|
|
495
|
+
description: 'The work scope description string.',
|
|
496
|
+
maxLength: 1000,
|
|
497
|
+
maxGraphemes: 100,
|
|
498
|
+
},
|
|
499
|
+
},
|
|
412
500
|
},
|
|
413
501
|
},
|
|
414
502
|
},
|
|
@@ -1125,6 +1213,7 @@ function validate(v, id, hash, requiredType) {
|
|
|
1125
1213
|
};
|
|
1126
1214
|
}
|
|
1127
1215
|
const ids = {
|
|
1216
|
+
AppCertifiedActorProfile: 'app.certified.actor.profile',
|
|
1128
1217
|
AppCertifiedBadgeAward: 'app.certified.badge.award',
|
|
1129
1218
|
AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
|
|
1130
1219
|
AppCertifiedBadgeResponse: 'app.certified.badge.response',
|