@enbox/protocols 0.2.0 → 0.2.2
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/esm/connect.js +2 -2
- package/dist/esm/connect.js.map +1 -1
- package/dist/esm/lists.js +8 -12
- package/dist/esm/lists.js.map +1 -1
- package/dist/esm/preferences.js +5 -5
- package/dist/esm/preferences.js.map +1 -1
- package/dist/esm/profile.js +5 -5
- package/dist/esm/profile.js.map +1 -1
- package/dist/esm/social-graph.js +5 -5
- package/dist/esm/social-graph.js.map +1 -1
- package/dist/esm/status.js +4 -4
- package/dist/esm/status.js.map +1 -1
- package/dist/types/connect.d.ts +4 -4
- package/dist/types/lists.d.ts +16 -24
- package/dist/types/lists.d.ts.map +1 -1
- package/dist/types/preferences.d.ts +10 -10
- package/dist/types/profile.d.ts +10 -10
- package/dist/types/social-graph.d.ts +10 -10
- package/dist/types/status.d.ts +8 -8
- package/package.json +3 -3
- package/src/connect.ts +2 -2
- package/src/lists.ts +9 -13
- package/src/preferences.ts +5 -5
- package/src/profile.ts +5 -5
- package/src/social-graph.ts +5 -5
- package/src/status.ts +4 -4
package/dist/esm/connect.js
CHANGED
|
@@ -12,11 +12,11 @@ import { defineProtocol } from '@enbox/api';
|
|
|
12
12
|
// Protocol definition
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export const ConnectDefinition = {
|
|
15
|
-
protocol: 'https://
|
|
15
|
+
protocol: 'https://identity.foundation/protocols/connect',
|
|
16
16
|
published: true,
|
|
17
17
|
types: {
|
|
18
18
|
wallet: {
|
|
19
|
-
schema: 'https://
|
|
19
|
+
schema: 'https://identity.foundation/schemas/connect/wallet',
|
|
20
20
|
dataFormats: ['application/json'],
|
|
21
21
|
},
|
|
22
22
|
},
|
package/dist/esm/connect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAqB5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAI
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAqB5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAI,+CAA+C;IAC3D,SAAS,EAAG,IAAI;IAChB,KAAK,EAAO;QACV,MAAM,EAAE;YACN,MAAM,EAAQ,oDAAoD;YAClE,WAAW,EAAG,CAAC,kBAAkB,CAAC;SACnC;KACF;IACD,SAAS,EAAE;QACT,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE;aACjC;SACF;KACF;CACoC,CAAC;AAExC,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAC3C,iBAAiB,EACjB,EAAsB,CACvB,CAAC"}
|
package/dist/esm/lists.js
CHANGED
|
@@ -15,30 +15,30 @@ import { defineProtocol } from '@enbox/api';
|
|
|
15
15
|
// Protocol definition
|
|
16
16
|
// ---------------------------------------------------------------------------
|
|
17
17
|
export const ListsDefinition = {
|
|
18
|
-
protocol: 'https://
|
|
18
|
+
protocol: 'https://identity.foundation/protocols/lists',
|
|
19
19
|
published: false,
|
|
20
20
|
uses: {
|
|
21
|
-
social: 'https://
|
|
21
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
22
22
|
},
|
|
23
23
|
types: {
|
|
24
24
|
list: {
|
|
25
|
-
schema: 'https://
|
|
25
|
+
schema: 'https://identity.foundation/schemas/lists/list',
|
|
26
26
|
dataFormats: ['application/json'],
|
|
27
27
|
},
|
|
28
28
|
item: {
|
|
29
|
-
schema: 'https://
|
|
29
|
+
schema: 'https://identity.foundation/schemas/lists/item',
|
|
30
30
|
dataFormats: ['application/json'],
|
|
31
31
|
},
|
|
32
32
|
folder: {
|
|
33
|
-
schema: 'https://
|
|
33
|
+
schema: 'https://identity.foundation/schemas/lists/folder',
|
|
34
34
|
dataFormats: ['application/json'],
|
|
35
35
|
},
|
|
36
36
|
collaborator: {
|
|
37
|
-
schema: 'https://
|
|
37
|
+
schema: 'https://identity.foundation/schemas/lists/collaborator',
|
|
38
38
|
dataFormats: ['application/json'],
|
|
39
39
|
},
|
|
40
40
|
comment: {
|
|
41
|
-
schema: 'https://
|
|
41
|
+
schema: 'https://identity.foundation/schemas/lists/comment',
|
|
42
42
|
dataFormats: ['application/json'],
|
|
43
43
|
},
|
|
44
44
|
},
|
|
@@ -80,16 +80,12 @@ export const ListsDefinition = {
|
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
82
|
folder: {
|
|
83
|
-
$actions: [],
|
|
84
83
|
$tags: {
|
|
85
84
|
$allowUndefinedTags: true,
|
|
86
85
|
sortOrder: { type: 'number' },
|
|
87
86
|
},
|
|
88
87
|
folder: {
|
|
89
|
-
|
|
90
|
-
folder: {
|
|
91
|
-
$actions: [],
|
|
92
|
-
},
|
|
88
|
+
folder: {},
|
|
93
89
|
},
|
|
94
90
|
},
|
|
95
91
|
},
|
package/dist/esm/lists.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/lists.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAsD5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,eAAe,GAAG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Ae,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE;oBACxC,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;iBAC3E;gBACD,KAAK,EAAE;oBACL,mBAAmB,EAAG,IAAI;oBAC1B,YAAY,EAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACzC;gBACD,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;qBACvD;iBACF;aACF;YACD,YAAY,EAAE;gBACZ,KAAK,EAAM,IAAI;gBACf,QAAQ,EAAG;oBACT,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE;iBACjC;gBACD,KAAK,EAAE;oBACL,aAAa,EAAS,CAAC,KAAK,CAAC;oBAC7B,mBAAmB,EAAG,KAAK;oBAC3B,GAAG,EAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACzC;aACF;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,mBAAmB,EAAG,IAAI;gBAC1B,SAAS,EAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzC;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;aACX;SACF;KACF;CACoC,CAAC;AAExC,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,uDAAuD;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CACzC,eAAe,EACf,EAAoB,CACrB,CAAC"}
|
package/dist/esm/preferences.js
CHANGED
|
@@ -12,24 +12,24 @@ import { defineProtocol } from '@enbox/api';
|
|
|
12
12
|
// Protocol definition
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export const PreferencesDefinition = {
|
|
15
|
-
protocol: 'https://
|
|
15
|
+
protocol: 'https://identity.foundation/protocols/preferences',
|
|
16
16
|
published: false,
|
|
17
17
|
types: {
|
|
18
18
|
theme: {
|
|
19
|
-
schema: 'https://
|
|
19
|
+
schema: 'https://identity.foundation/schemas/preferences/theme',
|
|
20
20
|
dataFormats: ['application/json'],
|
|
21
21
|
},
|
|
22
22
|
locale: {
|
|
23
|
-
schema: 'https://
|
|
23
|
+
schema: 'https://identity.foundation/schemas/preferences/locale',
|
|
24
24
|
dataFormats: ['application/json'],
|
|
25
25
|
},
|
|
26
26
|
privacy: {
|
|
27
|
-
schema: 'https://
|
|
27
|
+
schema: 'https://identity.foundation/schemas/preferences/privacy',
|
|
28
28
|
dataFormats: ['application/json'],
|
|
29
29
|
encryptionRequired: true,
|
|
30
30
|
},
|
|
31
31
|
notification: {
|
|
32
|
-
schema: 'https://
|
|
32
|
+
schema: 'https://identity.foundation/schemas/preferences/notification',
|
|
33
33
|
dataFormats: ['application/json'],
|
|
34
34
|
},
|
|
35
35
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.js","sourceRoot":"","sources":["../../src/preferences.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoD5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAI,
|
|
1
|
+
{"version":3,"file":"preferences.js","sourceRoot":"","sources":["../../src/preferences.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoD5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAI,mDAAmD;IAC/D,SAAS,EAAG,KAAK;IACjB,KAAK,EAAO;QACV,KAAK,EAAE;YACL,MAAM,EAAQ,uDAAuD;YACrE,WAAW,EAAG,CAAC,kBAAkB,CAAC;SACnC;QACD,MAAM,EAAE;YACN,MAAM,EAAQ,wDAAwD;YACtE,WAAW,EAAG,CAAC,kBAAkB,CAAC;SACnC;QACD,OAAO,EAAE;YACP,MAAM,EAAe,yDAAyD;YAC9E,WAAW,EAAU,CAAC,kBAAkB,CAAC;YACzC,kBAAkB,EAAG,IAAI;SAC1B;QACD,YAAY,EAAE;YACZ,MAAM,EAAQ,8DAA8D;YAC5E,WAAW,EAAG,CAAC,kBAAkB,CAAC;SACnC;KACF;IACD,SAAS,EAAE;QACT,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;SACb;QACD,MAAM,EAAE;YACN,QAAQ,EAAE,EAAE;SACb;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,EAAE;SACb;QACD,YAAY,EAAE;YACZ,QAAQ,EAAG,EAAE;YACb,KAAK,EAAM;gBACT,aAAa,EAAS,CAAC,SAAS,CAAC;gBACjC,mBAAmB,EAAG,KAAK;gBAC3B,OAAO,EAAe,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzC;SACF;KACF;CACoC,CAAC;AAExC,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,6DAA6D;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAC/C,qBAAqB,EACrB,EAA0B,CAC3B,CAAC"}
|
package/dist/esm/profile.js
CHANGED
|
@@ -12,14 +12,14 @@ import { defineProtocol } from '@enbox/api';
|
|
|
12
12
|
// Protocol definition
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export const ProfileDefinition = {
|
|
15
|
-
protocol: 'https://
|
|
15
|
+
protocol: 'https://identity.foundation/protocols/profile',
|
|
16
16
|
published: true,
|
|
17
17
|
uses: {
|
|
18
|
-
social: 'https://
|
|
18
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
19
19
|
},
|
|
20
20
|
types: {
|
|
21
21
|
profile: {
|
|
22
|
-
schema: 'https://
|
|
22
|
+
schema: 'https://identity.foundation/schemas/profile/profile',
|
|
23
23
|
dataFormats: ['application/json'],
|
|
24
24
|
},
|
|
25
25
|
avatar: {
|
|
@@ -29,11 +29,11 @@ export const ProfileDefinition = {
|
|
|
29
29
|
dataFormats: ['image/png', 'image/jpeg', 'image/gif', 'image/webp'],
|
|
30
30
|
},
|
|
31
31
|
link: {
|
|
32
|
-
schema: 'https://
|
|
32
|
+
schema: 'https://identity.foundation/schemas/profile/link',
|
|
33
33
|
dataFormats: ['application/json'],
|
|
34
34
|
},
|
|
35
35
|
privateNote: {
|
|
36
|
-
schema: 'https://
|
|
36
|
+
schema: 'https://identity.foundation/schemas/profile/private-note',
|
|
37
37
|
dataFormats: ['application/json'],
|
|
38
38
|
},
|
|
39
39
|
},
|
package/dist/esm/profile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAgD5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAI
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAgD5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAI,+CAA+C;IAC3D,SAAS,EAAG,IAAI;IAChB,IAAI,EAAQ;QACV,MAAM,EAAE,oDAAoD;KAC7D;IACD,KAAK,EAAE;QACL,OAAO,EAAE;YACP,MAAM,EAAQ,qDAAqD;YACnE,WAAW,EAAG,CAAC,kBAAkB,CAAC;SACnC;QACD,MAAM,EAAE;YACN,WAA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c,CAC3C,iBAAiB,EACjB,EAAsB,CACvB,CAAC"}
|
package/dist/esm/social-graph.js
CHANGED
|
@@ -12,23 +12,23 @@ import { defineProtocol } from '@enbox/api';
|
|
|
12
12
|
// Protocol definition
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export const SocialGraphDefinition = {
|
|
15
|
-
protocol: 'https://
|
|
15
|
+
protocol: 'https://identity.foundation/protocols/social-graph',
|
|
16
16
|
published: true,
|
|
17
17
|
types: {
|
|
18
18
|
friend: {
|
|
19
|
-
schema: 'https://
|
|
19
|
+
schema: 'https://identity.foundation/schemas/social-graph/friend',
|
|
20
20
|
dataFormats: ['application/json'],
|
|
21
21
|
},
|
|
22
22
|
block: {
|
|
23
|
-
schema: 'https://
|
|
23
|
+
schema: 'https://identity.foundation/schemas/social-graph/block',
|
|
24
24
|
dataFormats: ['application/json'],
|
|
25
25
|
},
|
|
26
26
|
group: {
|
|
27
|
-
schema: 'https://
|
|
27
|
+
schema: 'https://identity.foundation/schemas/social-graph/group',
|
|
28
28
|
dataFormats: ['application/json'],
|
|
29
29
|
},
|
|
30
30
|
member: {
|
|
31
|
-
schema: 'https://
|
|
31
|
+
schema: 'https://identity.foundation/schemas/social-graph/member',
|
|
32
32
|
dataFormats: ['application/json'],
|
|
33
33
|
},
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-graph.js","sourceRoot":"","sources":["../../src/social-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA4C5C,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAI,
|
|
1
|
+
{"version":3,"file":"social-graph.js","sourceRoot":"","sources":["../../src/social-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,YAA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AAG,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE;aACjC;YACD,MAAM,EAAE;gBACN,QAAQ,EAAE;oBACR,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE;iBACjC;gBACD,KAAK,EAAE;oBACL,aAAa,EAAS,CAAC,KAAK,CAAC;oBAC7B,mBAAmB,EAAG,KAAK;oBAC3B,GAAG,EAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACzC;aACF;SACF;KACF;CACoC,CAAC;AAExC,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAC/C,qBAAqB,EACrB,EAA0B,CAC3B,CAAC"}
|
package/dist/esm/status.js
CHANGED
|
@@ -12,18 +12,18 @@ import { defineProtocol } from '@enbox/api';
|
|
|
12
12
|
// Protocol definition
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export const StatusDefinition = {
|
|
15
|
-
protocol: 'https://
|
|
15
|
+
protocol: 'https://identity.foundation/protocols/status',
|
|
16
16
|
published: true,
|
|
17
17
|
uses: {
|
|
18
|
-
social: 'https://
|
|
18
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
19
19
|
},
|
|
20
20
|
types: {
|
|
21
21
|
status: {
|
|
22
|
-
schema: 'https://
|
|
22
|
+
schema: 'https://identity.foundation/schemas/status/status',
|
|
23
23
|
dataFormats: ['application/json'],
|
|
24
24
|
},
|
|
25
25
|
reaction: {
|
|
26
|
-
schema: 'https://
|
|
26
|
+
schema: 'https://identity.foundation/schemas/status/reaction',
|
|
27
27
|
dataFormats: ['application/json'],
|
|
28
28
|
},
|
|
29
29
|
},
|
package/dist/esm/status.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/status.ts"],"names":[],"mappings":"AAAA;;;;;;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gB,EAChB,EAAqB,CACtB,CAAC"}
|
package/dist/types/connect.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export type ConnectSchemaMap = {
|
|
|
17
17
|
wallet: WalletData;
|
|
18
18
|
};
|
|
19
19
|
export declare const ConnectDefinition: {
|
|
20
|
-
readonly protocol: "https://
|
|
20
|
+
readonly protocol: "https://identity.foundation/protocols/connect";
|
|
21
21
|
readonly published: true;
|
|
22
22
|
readonly types: {
|
|
23
23
|
readonly wallet: {
|
|
24
|
-
readonly schema: "https://
|
|
24
|
+
readonly schema: "https://identity.foundation/schemas/connect/wallet";
|
|
25
25
|
readonly dataFormats: ["application/json"];
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -36,11 +36,11 @@ export declare const ConnectDefinition: {
|
|
|
36
36
|
};
|
|
37
37
|
/** Typed Connect protocol for use with `dwn.using()`. */
|
|
38
38
|
export declare const ConnectProtocol: import("@enbox/api").TypedProtocol<{
|
|
39
|
-
readonly protocol: "https://
|
|
39
|
+
readonly protocol: "https://identity.foundation/protocols/connect";
|
|
40
40
|
readonly published: true;
|
|
41
41
|
readonly types: {
|
|
42
42
|
readonly wallet: {
|
|
43
|
-
readonly schema: "https://
|
|
43
|
+
readonly schema: "https://identity.foundation/schemas/connect/wallet";
|
|
44
44
|
readonly dataFormats: ["application/json"];
|
|
45
45
|
};
|
|
46
46
|
};
|
package/dist/types/lists.d.ts
CHANGED
|
@@ -49,30 +49,30 @@ export type ListsSchemaMap = {
|
|
|
49
49
|
comment: CommentData;
|
|
50
50
|
};
|
|
51
51
|
export declare const ListsDefinition: {
|
|
52
|
-
readonly protocol: "https://
|
|
52
|
+
readonly protocol: "https://identity.foundation/protocols/lists";
|
|
53
53
|
readonly published: false;
|
|
54
54
|
readonly uses: {
|
|
55
|
-
readonly social: "https://
|
|
55
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
56
56
|
};
|
|
57
57
|
readonly types: {
|
|
58
58
|
readonly list: {
|
|
59
|
-
readonly schema: "https://
|
|
59
|
+
readonly schema: "https://identity.foundation/schemas/lists/list";
|
|
60
60
|
readonly dataFormats: ["application/json"];
|
|
61
61
|
};
|
|
62
62
|
readonly item: {
|
|
63
|
-
readonly schema: "https://
|
|
63
|
+
readonly schema: "https://identity.foundation/schemas/lists/item";
|
|
64
64
|
readonly dataFormats: ["application/json"];
|
|
65
65
|
};
|
|
66
66
|
readonly folder: {
|
|
67
|
-
readonly schema: "https://
|
|
67
|
+
readonly schema: "https://identity.foundation/schemas/lists/folder";
|
|
68
68
|
readonly dataFormats: ["application/json"];
|
|
69
69
|
};
|
|
70
70
|
readonly collaborator: {
|
|
71
|
-
readonly schema: "https://
|
|
71
|
+
readonly schema: "https://identity.foundation/schemas/lists/collaborator";
|
|
72
72
|
readonly dataFormats: ["application/json"];
|
|
73
73
|
};
|
|
74
74
|
readonly comment: {
|
|
75
|
-
readonly schema: "https://
|
|
75
|
+
readonly schema: "https://identity.foundation/schemas/lists/comment";
|
|
76
76
|
readonly dataFormats: ["application/json"];
|
|
77
77
|
};
|
|
78
78
|
};
|
|
@@ -127,7 +127,6 @@ export declare const ListsDefinition: {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
readonly folder: {
|
|
130
|
-
readonly $actions: [];
|
|
131
130
|
readonly $tags: {
|
|
132
131
|
readonly $allowUndefinedTags: true;
|
|
133
132
|
readonly sortOrder: {
|
|
@@ -135,40 +134,37 @@ export declare const ListsDefinition: {
|
|
|
135
134
|
};
|
|
136
135
|
};
|
|
137
136
|
readonly folder: {
|
|
138
|
-
readonly
|
|
139
|
-
readonly folder: {
|
|
140
|
-
readonly $actions: [];
|
|
141
|
-
};
|
|
137
|
+
readonly folder: {};
|
|
142
138
|
};
|
|
143
139
|
};
|
|
144
140
|
};
|
|
145
141
|
};
|
|
146
142
|
/** Typed Lists protocol for use with `dwn.using()`. */
|
|
147
143
|
export declare const ListsProtocol: import("@enbox/api").TypedProtocol<{
|
|
148
|
-
readonly protocol: "https://
|
|
144
|
+
readonly protocol: "https://identity.foundation/protocols/lists";
|
|
149
145
|
readonly published: false;
|
|
150
146
|
readonly uses: {
|
|
151
|
-
readonly social: "https://
|
|
147
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
152
148
|
};
|
|
153
149
|
readonly types: {
|
|
154
150
|
readonly list: {
|
|
155
|
-
readonly schema: "https://
|
|
151
|
+
readonly schema: "https://identity.foundation/schemas/lists/list";
|
|
156
152
|
readonly dataFormats: ["application/json"];
|
|
157
153
|
};
|
|
158
154
|
readonly item: {
|
|
159
|
-
readonly schema: "https://
|
|
155
|
+
readonly schema: "https://identity.foundation/schemas/lists/item";
|
|
160
156
|
readonly dataFormats: ["application/json"];
|
|
161
157
|
};
|
|
162
158
|
readonly folder: {
|
|
163
|
-
readonly schema: "https://
|
|
159
|
+
readonly schema: "https://identity.foundation/schemas/lists/folder";
|
|
164
160
|
readonly dataFormats: ["application/json"];
|
|
165
161
|
};
|
|
166
162
|
readonly collaborator: {
|
|
167
|
-
readonly schema: "https://
|
|
163
|
+
readonly schema: "https://identity.foundation/schemas/lists/collaborator";
|
|
168
164
|
readonly dataFormats: ["application/json"];
|
|
169
165
|
};
|
|
170
166
|
readonly comment: {
|
|
171
|
-
readonly schema: "https://
|
|
167
|
+
readonly schema: "https://identity.foundation/schemas/lists/comment";
|
|
172
168
|
readonly dataFormats: ["application/json"];
|
|
173
169
|
};
|
|
174
170
|
};
|
|
@@ -223,7 +219,6 @@ export declare const ListsProtocol: import("@enbox/api").TypedProtocol<{
|
|
|
223
219
|
};
|
|
224
220
|
};
|
|
225
221
|
readonly folder: {
|
|
226
|
-
readonly $actions: [];
|
|
227
222
|
readonly $tags: {
|
|
228
223
|
readonly $allowUndefinedTags: true;
|
|
229
224
|
readonly sortOrder: {
|
|
@@ -231,10 +226,7 @@ export declare const ListsProtocol: import("@enbox/api").TypedProtocol<{
|
|
|
231
226
|
};
|
|
232
227
|
};
|
|
233
228
|
readonly folder: {
|
|
234
|
-
readonly
|
|
235
|
-
readonly folder: {
|
|
236
|
-
readonly $actions: [];
|
|
237
|
-
};
|
|
229
|
+
readonly folder: {};
|
|
238
230
|
};
|
|
239
231
|
};
|
|
240
232
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/lists.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,oCAAoC;AACpC,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;CACvD,CAAC;AAEF,kCAAkC;AAClC,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,sCAAsC;AACtC,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,+CAA+C;AAC/C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAMF,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,gBAA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eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EW,CAAC;AAMxC,uDAAuD;AACvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGzB,CAAC"}
|
|
@@ -45,24 +45,24 @@ export type PreferencesSchemaMap = {
|
|
|
45
45
|
notification: NotificationData;
|
|
46
46
|
};
|
|
47
47
|
export declare const PreferencesDefinition: {
|
|
48
|
-
readonly protocol: "https://
|
|
48
|
+
readonly protocol: "https://identity.foundation/protocols/preferences";
|
|
49
49
|
readonly published: false;
|
|
50
50
|
readonly types: {
|
|
51
51
|
readonly theme: {
|
|
52
|
-
readonly schema: "https://
|
|
52
|
+
readonly schema: "https://identity.foundation/schemas/preferences/theme";
|
|
53
53
|
readonly dataFormats: ["application/json"];
|
|
54
54
|
};
|
|
55
55
|
readonly locale: {
|
|
56
|
-
readonly schema: "https://
|
|
56
|
+
readonly schema: "https://identity.foundation/schemas/preferences/locale";
|
|
57
57
|
readonly dataFormats: ["application/json"];
|
|
58
58
|
};
|
|
59
59
|
readonly privacy: {
|
|
60
|
-
readonly schema: "https://
|
|
60
|
+
readonly schema: "https://identity.foundation/schemas/preferences/privacy";
|
|
61
61
|
readonly dataFormats: ["application/json"];
|
|
62
62
|
readonly encryptionRequired: true;
|
|
63
63
|
};
|
|
64
64
|
readonly notification: {
|
|
65
|
-
readonly schema: "https://
|
|
65
|
+
readonly schema: "https://identity.foundation/schemas/preferences/notification";
|
|
66
66
|
readonly dataFormats: ["application/json"];
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -90,24 +90,24 @@ export declare const PreferencesDefinition: {
|
|
|
90
90
|
};
|
|
91
91
|
/** Typed Preferences protocol for use with `dwn.using()`. */
|
|
92
92
|
export declare const PreferencesProtocol: import("@enbox/api").TypedProtocol<{
|
|
93
|
-
readonly protocol: "https://
|
|
93
|
+
readonly protocol: "https://identity.foundation/protocols/preferences";
|
|
94
94
|
readonly published: false;
|
|
95
95
|
readonly types: {
|
|
96
96
|
readonly theme: {
|
|
97
|
-
readonly schema: "https://
|
|
97
|
+
readonly schema: "https://identity.foundation/schemas/preferences/theme";
|
|
98
98
|
readonly dataFormats: ["application/json"];
|
|
99
99
|
};
|
|
100
100
|
readonly locale: {
|
|
101
|
-
readonly schema: "https://
|
|
101
|
+
readonly schema: "https://identity.foundation/schemas/preferences/locale";
|
|
102
102
|
readonly dataFormats: ["application/json"];
|
|
103
103
|
};
|
|
104
104
|
readonly privacy: {
|
|
105
|
-
readonly schema: "https://
|
|
105
|
+
readonly schema: "https://identity.foundation/schemas/preferences/privacy";
|
|
106
106
|
readonly dataFormats: ["application/json"];
|
|
107
107
|
readonly encryptionRequired: true;
|
|
108
108
|
};
|
|
109
109
|
readonly notification: {
|
|
110
|
-
readonly schema: "https://
|
|
110
|
+
readonly schema: "https://identity.foundation/schemas/preferences/notification";
|
|
111
111
|
readonly dataFormats: ["application/json"];
|
|
112
112
|
};
|
|
113
113
|
};
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -40,14 +40,14 @@ export type ProfileSchemaMap = {
|
|
|
40
40
|
privateNote: PrivateNoteData;
|
|
41
41
|
};
|
|
42
42
|
export declare const ProfileDefinition: {
|
|
43
|
-
readonly protocol: "https://
|
|
43
|
+
readonly protocol: "https://identity.foundation/protocols/profile";
|
|
44
44
|
readonly published: true;
|
|
45
45
|
readonly uses: {
|
|
46
|
-
readonly social: "https://
|
|
46
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
47
47
|
};
|
|
48
48
|
readonly types: {
|
|
49
49
|
readonly profile: {
|
|
50
|
-
readonly schema: "https://
|
|
50
|
+
readonly schema: "https://identity.foundation/schemas/profile/profile";
|
|
51
51
|
readonly dataFormats: ["application/json"];
|
|
52
52
|
};
|
|
53
53
|
readonly avatar: {
|
|
@@ -57,11 +57,11 @@ export declare const ProfileDefinition: {
|
|
|
57
57
|
readonly dataFormats: ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
58
58
|
};
|
|
59
59
|
readonly link: {
|
|
60
|
-
readonly schema: "https://
|
|
60
|
+
readonly schema: "https://identity.foundation/schemas/profile/link";
|
|
61
61
|
readonly dataFormats: ["application/json"];
|
|
62
62
|
};
|
|
63
63
|
readonly privateNote: {
|
|
64
|
-
readonly schema: "https://
|
|
64
|
+
readonly schema: "https://identity.foundation/schemas/profile/private-note";
|
|
65
65
|
readonly dataFormats: ["application/json"];
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -109,14 +109,14 @@ export declare const ProfileDefinition: {
|
|
|
109
109
|
};
|
|
110
110
|
/** Typed Profile protocol for use with `dwn.using()`. */
|
|
111
111
|
export declare const ProfileProtocol: import("@enbox/api").TypedProtocol<{
|
|
112
|
-
readonly protocol: "https://
|
|
112
|
+
readonly protocol: "https://identity.foundation/protocols/profile";
|
|
113
113
|
readonly published: true;
|
|
114
114
|
readonly uses: {
|
|
115
|
-
readonly social: "https://
|
|
115
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
116
116
|
};
|
|
117
117
|
readonly types: {
|
|
118
118
|
readonly profile: {
|
|
119
|
-
readonly schema: "https://
|
|
119
|
+
readonly schema: "https://identity.foundation/schemas/profile/profile";
|
|
120
120
|
readonly dataFormats: ["application/json"];
|
|
121
121
|
};
|
|
122
122
|
readonly avatar: {
|
|
@@ -126,11 +126,11 @@ export declare const ProfileProtocol: import("@enbox/api").TypedProtocol<{
|
|
|
126
126
|
readonly dataFormats: ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
127
127
|
};
|
|
128
128
|
readonly link: {
|
|
129
|
-
readonly schema: "https://
|
|
129
|
+
readonly schema: "https://identity.foundation/schemas/profile/link";
|
|
130
130
|
readonly dataFormats: ["application/json"];
|
|
131
131
|
};
|
|
132
132
|
readonly privateNote: {
|
|
133
|
-
readonly schema: "https://
|
|
133
|
+
readonly schema: "https://identity.foundation/schemas/profile/private-note";
|
|
134
134
|
readonly dataFormats: ["application/json"];
|
|
135
135
|
};
|
|
136
136
|
};
|
|
@@ -37,23 +37,23 @@ export type SocialGraphSchemaMap = {
|
|
|
37
37
|
member: MemberData;
|
|
38
38
|
};
|
|
39
39
|
export declare const SocialGraphDefinition: {
|
|
40
|
-
readonly protocol: "https://
|
|
40
|
+
readonly protocol: "https://identity.foundation/protocols/social-graph";
|
|
41
41
|
readonly published: true;
|
|
42
42
|
readonly types: {
|
|
43
43
|
readonly friend: {
|
|
44
|
-
readonly schema: "https://
|
|
44
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/friend";
|
|
45
45
|
readonly dataFormats: ["application/json"];
|
|
46
46
|
};
|
|
47
47
|
readonly block: {
|
|
48
|
-
readonly schema: "https://
|
|
48
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/block";
|
|
49
49
|
readonly dataFormats: ["application/json"];
|
|
50
50
|
};
|
|
51
51
|
readonly group: {
|
|
52
|
-
readonly schema: "https://
|
|
52
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/group";
|
|
53
53
|
readonly dataFormats: ["application/json"];
|
|
54
54
|
};
|
|
55
55
|
readonly member: {
|
|
56
|
-
readonly schema: "https://
|
|
56
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/member";
|
|
57
57
|
readonly dataFormats: ["application/json"];
|
|
58
58
|
};
|
|
59
59
|
};
|
|
@@ -112,23 +112,23 @@ export declare const SocialGraphDefinition: {
|
|
|
112
112
|
};
|
|
113
113
|
/** Typed Social Graph protocol for use with `dwn.using()`. */
|
|
114
114
|
export declare const SocialGraphProtocol: import("@enbox/api").TypedProtocol<{
|
|
115
|
-
readonly protocol: "https://
|
|
115
|
+
readonly protocol: "https://identity.foundation/protocols/social-graph";
|
|
116
116
|
readonly published: true;
|
|
117
117
|
readonly types: {
|
|
118
118
|
readonly friend: {
|
|
119
|
-
readonly schema: "https://
|
|
119
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/friend";
|
|
120
120
|
readonly dataFormats: ["application/json"];
|
|
121
121
|
};
|
|
122
122
|
readonly block: {
|
|
123
|
-
readonly schema: "https://
|
|
123
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/block";
|
|
124
124
|
readonly dataFormats: ["application/json"];
|
|
125
125
|
};
|
|
126
126
|
readonly group: {
|
|
127
|
-
readonly schema: "https://
|
|
127
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/group";
|
|
128
128
|
readonly dataFormats: ["application/json"];
|
|
129
129
|
};
|
|
130
130
|
readonly member: {
|
|
131
|
-
readonly schema: "https://
|
|
131
|
+
readonly schema: "https://identity.foundation/schemas/social-graph/member";
|
|
132
132
|
readonly dataFormats: ["application/json"];
|
|
133
133
|
};
|
|
134
134
|
};
|
package/dist/types/status.d.ts
CHANGED
|
@@ -24,18 +24,18 @@ export type StatusSchemaMap = {
|
|
|
24
24
|
reaction: ReactionData;
|
|
25
25
|
};
|
|
26
26
|
export declare const StatusDefinition: {
|
|
27
|
-
readonly protocol: "https://
|
|
27
|
+
readonly protocol: "https://identity.foundation/protocols/status";
|
|
28
28
|
readonly published: true;
|
|
29
29
|
readonly uses: {
|
|
30
|
-
readonly social: "https://
|
|
30
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
31
31
|
};
|
|
32
32
|
readonly types: {
|
|
33
33
|
readonly status: {
|
|
34
|
-
readonly schema: "https://
|
|
34
|
+
readonly schema: "https://identity.foundation/schemas/status/status";
|
|
35
35
|
readonly dataFormats: ["application/json"];
|
|
36
36
|
};
|
|
37
37
|
readonly reaction: {
|
|
38
|
-
readonly schema: "https://
|
|
38
|
+
readonly schema: "https://identity.foundation/schemas/status/reaction";
|
|
39
39
|
readonly dataFormats: ["application/json"];
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -62,18 +62,18 @@ export declare const StatusDefinition: {
|
|
|
62
62
|
};
|
|
63
63
|
/** Typed Status protocol for use with `dwn.using()`. */
|
|
64
64
|
export declare const StatusProtocol: import("@enbox/api").TypedProtocol<{
|
|
65
|
-
readonly protocol: "https://
|
|
65
|
+
readonly protocol: "https://identity.foundation/protocols/status";
|
|
66
66
|
readonly published: true;
|
|
67
67
|
readonly uses: {
|
|
68
|
-
readonly social: "https://
|
|
68
|
+
readonly social: "https://identity.foundation/protocols/social-graph";
|
|
69
69
|
};
|
|
70
70
|
readonly types: {
|
|
71
71
|
readonly status: {
|
|
72
|
-
readonly schema: "https://
|
|
72
|
+
readonly schema: "https://identity.foundation/schemas/status/status";
|
|
73
73
|
readonly dataFormats: ["application/json"];
|
|
74
74
|
};
|
|
75
75
|
readonly reaction: {
|
|
76
|
-
readonly schema: "https://
|
|
76
|
+
readonly schema: "https://identity.foundation/schemas/status/reaction";
|
|
77
77
|
readonly dataFormats: ["application/json"];
|
|
78
78
|
};
|
|
79
79
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enbox/protocols",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Standard reusable DWN protocol definitions for the Enbox ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"bun": ">=1.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@enbox/api": "0.
|
|
50
|
-
"@enbox/dwn-sdk-js": "0.0.
|
|
49
|
+
"@enbox/api": "0.2.0",
|
|
50
|
+
"@enbox/dwn-sdk-js": "0.0.7"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@typescript-eslint/eslint-plugin": "8.32.1",
|
package/src/connect.ts
CHANGED
|
@@ -36,11 +36,11 @@ export type ConnectSchemaMap = {
|
|
|
36
36
|
// ---------------------------------------------------------------------------
|
|
37
37
|
|
|
38
38
|
export const ConnectDefinition = {
|
|
39
|
-
protocol : 'https://
|
|
39
|
+
protocol : 'https://identity.foundation/protocols/connect',
|
|
40
40
|
published : true,
|
|
41
41
|
types : {
|
|
42
42
|
wallet: {
|
|
43
|
-
schema : 'https://
|
|
43
|
+
schema : 'https://identity.foundation/schemas/connect/wallet',
|
|
44
44
|
dataFormats : ['application/json'],
|
|
45
45
|
},
|
|
46
46
|
},
|
package/src/lists.ts
CHANGED
|
@@ -72,30 +72,30 @@ export type ListsSchemaMap = {
|
|
|
72
72
|
// ---------------------------------------------------------------------------
|
|
73
73
|
|
|
74
74
|
export const ListsDefinition = {
|
|
75
|
-
protocol : 'https://
|
|
75
|
+
protocol : 'https://identity.foundation/protocols/lists',
|
|
76
76
|
published : false,
|
|
77
77
|
uses : {
|
|
78
|
-
social: 'https://
|
|
78
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
79
79
|
},
|
|
80
80
|
types: {
|
|
81
81
|
list: {
|
|
82
|
-
schema : 'https://
|
|
82
|
+
schema : 'https://identity.foundation/schemas/lists/list',
|
|
83
83
|
dataFormats : ['application/json'],
|
|
84
84
|
},
|
|
85
85
|
item: {
|
|
86
|
-
schema : 'https://
|
|
86
|
+
schema : 'https://identity.foundation/schemas/lists/item',
|
|
87
87
|
dataFormats : ['application/json'],
|
|
88
88
|
},
|
|
89
89
|
folder: {
|
|
90
|
-
schema : 'https://
|
|
90
|
+
schema : 'https://identity.foundation/schemas/lists/folder',
|
|
91
91
|
dataFormats : ['application/json'],
|
|
92
92
|
},
|
|
93
93
|
collaborator: {
|
|
94
|
-
schema : 'https://
|
|
94
|
+
schema : 'https://identity.foundation/schemas/lists/collaborator',
|
|
95
95
|
dataFormats : ['application/json'],
|
|
96
96
|
},
|
|
97
97
|
comment: {
|
|
98
|
-
schema : 'https://
|
|
98
|
+
schema : 'https://identity.foundation/schemas/lists/comment',
|
|
99
99
|
dataFormats : ['application/json'],
|
|
100
100
|
},
|
|
101
101
|
},
|
|
@@ -137,16 +137,12 @@ export const ListsDefinition = {
|
|
|
137
137
|
},
|
|
138
138
|
},
|
|
139
139
|
folder: {
|
|
140
|
-
$
|
|
141
|
-
$tags : {
|
|
140
|
+
$tags: {
|
|
142
141
|
$allowUndefinedTags : true,
|
|
143
142
|
sortOrder : { type: 'number' },
|
|
144
143
|
},
|
|
145
144
|
folder: {
|
|
146
|
-
|
|
147
|
-
folder : {
|
|
148
|
-
$actions: [],
|
|
149
|
-
},
|
|
145
|
+
folder: {},
|
|
150
146
|
},
|
|
151
147
|
},
|
|
152
148
|
},
|
package/src/preferences.ts
CHANGED
|
@@ -67,24 +67,24 @@ export type PreferencesSchemaMap = {
|
|
|
67
67
|
// ---------------------------------------------------------------------------
|
|
68
68
|
|
|
69
69
|
export const PreferencesDefinition = {
|
|
70
|
-
protocol : 'https://
|
|
70
|
+
protocol : 'https://identity.foundation/protocols/preferences',
|
|
71
71
|
published : false,
|
|
72
72
|
types : {
|
|
73
73
|
theme: {
|
|
74
|
-
schema : 'https://
|
|
74
|
+
schema : 'https://identity.foundation/schemas/preferences/theme',
|
|
75
75
|
dataFormats : ['application/json'],
|
|
76
76
|
},
|
|
77
77
|
locale: {
|
|
78
|
-
schema : 'https://
|
|
78
|
+
schema : 'https://identity.foundation/schemas/preferences/locale',
|
|
79
79
|
dataFormats : ['application/json'],
|
|
80
80
|
},
|
|
81
81
|
privacy: {
|
|
82
|
-
schema : 'https://
|
|
82
|
+
schema : 'https://identity.foundation/schemas/preferences/privacy',
|
|
83
83
|
dataFormats : ['application/json'],
|
|
84
84
|
encryptionRequired : true,
|
|
85
85
|
},
|
|
86
86
|
notification: {
|
|
87
|
-
schema : 'https://
|
|
87
|
+
schema : 'https://identity.foundation/schemas/preferences/notification',
|
|
88
88
|
dataFormats : ['application/json'],
|
|
89
89
|
},
|
|
90
90
|
},
|
package/src/profile.ts
CHANGED
|
@@ -63,14 +63,14 @@ export type ProfileSchemaMap = {
|
|
|
63
63
|
// ---------------------------------------------------------------------------
|
|
64
64
|
|
|
65
65
|
export const ProfileDefinition = {
|
|
66
|
-
protocol : 'https://
|
|
66
|
+
protocol : 'https://identity.foundation/protocols/profile',
|
|
67
67
|
published : true,
|
|
68
68
|
uses : {
|
|
69
|
-
social: 'https://
|
|
69
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
70
70
|
},
|
|
71
71
|
types: {
|
|
72
72
|
profile: {
|
|
73
|
-
schema : 'https://
|
|
73
|
+
schema : 'https://identity.foundation/schemas/profile/profile',
|
|
74
74
|
dataFormats : ['application/json'],
|
|
75
75
|
},
|
|
76
76
|
avatar: {
|
|
@@ -80,11 +80,11 @@ export const ProfileDefinition = {
|
|
|
80
80
|
dataFormats: ['image/png', 'image/jpeg', 'image/gif', 'image/webp'],
|
|
81
81
|
},
|
|
82
82
|
link: {
|
|
83
|
-
schema : 'https://
|
|
83
|
+
schema : 'https://identity.foundation/schemas/profile/link',
|
|
84
84
|
dataFormats : ['application/json'],
|
|
85
85
|
},
|
|
86
86
|
privateNote: {
|
|
87
|
-
schema : 'https://
|
|
87
|
+
schema : 'https://identity.foundation/schemas/profile/private-note',
|
|
88
88
|
dataFormats : ['application/json'],
|
|
89
89
|
},
|
|
90
90
|
},
|
package/src/social-graph.ts
CHANGED
|
@@ -59,23 +59,23 @@ export type SocialGraphSchemaMap = {
|
|
|
59
59
|
// ---------------------------------------------------------------------------
|
|
60
60
|
|
|
61
61
|
export const SocialGraphDefinition = {
|
|
62
|
-
protocol : 'https://
|
|
62
|
+
protocol : 'https://identity.foundation/protocols/social-graph',
|
|
63
63
|
published : true,
|
|
64
64
|
types : {
|
|
65
65
|
friend: {
|
|
66
|
-
schema : 'https://
|
|
66
|
+
schema : 'https://identity.foundation/schemas/social-graph/friend',
|
|
67
67
|
dataFormats : ['application/json'],
|
|
68
68
|
},
|
|
69
69
|
block: {
|
|
70
|
-
schema : 'https://
|
|
70
|
+
schema : 'https://identity.foundation/schemas/social-graph/block',
|
|
71
71
|
dataFormats : ['application/json'],
|
|
72
72
|
},
|
|
73
73
|
group: {
|
|
74
|
-
schema : 'https://
|
|
74
|
+
schema : 'https://identity.foundation/schemas/social-graph/group',
|
|
75
75
|
dataFormats : ['application/json'],
|
|
76
76
|
},
|
|
77
77
|
member: {
|
|
78
|
-
schema : 'https://
|
|
78
|
+
schema : 'https://identity.foundation/schemas/social-graph/member',
|
|
79
79
|
dataFormats : ['application/json'],
|
|
80
80
|
},
|
|
81
81
|
},
|
package/src/status.ts
CHANGED
|
@@ -44,18 +44,18 @@ export type StatusSchemaMap = {
|
|
|
44
44
|
// ---------------------------------------------------------------------------
|
|
45
45
|
|
|
46
46
|
export const StatusDefinition = {
|
|
47
|
-
protocol : 'https://
|
|
47
|
+
protocol : 'https://identity.foundation/protocols/status',
|
|
48
48
|
published : true,
|
|
49
49
|
uses : {
|
|
50
|
-
social: 'https://
|
|
50
|
+
social: 'https://identity.foundation/protocols/social-graph',
|
|
51
51
|
},
|
|
52
52
|
types: {
|
|
53
53
|
status: {
|
|
54
|
-
schema : 'https://
|
|
54
|
+
schema : 'https://identity.foundation/schemas/status/status',
|
|
55
55
|
dataFormats : ['application/json'],
|
|
56
56
|
},
|
|
57
57
|
reaction: {
|
|
58
|
-
schema : 'https://
|
|
58
|
+
schema : 'https://identity.foundation/schemas/status/reaction',
|
|
59
59
|
dataFormats : ['application/json'],
|
|
60
60
|
},
|
|
61
61
|
},
|