@sockethub/schemas 3.0.0-alpha.3
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/LICENSE +22 -0
- package/README.md +11 -0
- package/dist/helpers/error-parser.d.ts +9 -0
- package/dist/helpers/error-parser.js +91 -0
- package/dist/helpers/objects.d.ts +206 -0
- package/dist/helpers/objects.js +217 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +22 -0
- package/dist/index.test.data.credentials.d.ts +37 -0
- package/dist/index.test.data.credentials.js +69 -0
- package/dist/index.test.data.objects.d.ts +50 -0
- package/dist/index.test.data.objects.js +214 -0
- package/dist/index.test.data.platform.d.ts +44 -0
- package/dist/index.test.data.platform.js +47 -0
- package/dist/index.test.data.streams.d.ts +256 -0
- package/dist/index.test.data.streams.js +449 -0
- package/dist/schemas/activity-object.d.ts +16 -0
- package/dist/schemas/activity-object.js +18 -0
- package/dist/schemas/activity-stream.d.ts +235 -0
- package/dist/schemas/activity-stream.js +49 -0
- package/dist/schemas/json/activity-object.json +356 -0
- package/dist/schemas/json/activity-stream.json +465 -0
- package/dist/schemas/json/platform.json +27 -0
- package/dist/schemas/platform.d.ts +41 -0
- package/dist/schemas/platform.js +44 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.js +2 -0
- package/dist/validator.d.ts +8 -0
- package/dist/validator.js +78 -0
- package/package.json +58 -0
- package/src/helpers/error-parser.ts +99 -0
- package/src/helpers/objects.ts +230 -0
- package/src/index.test.data.credentials.ts +71 -0
- package/src/index.test.data.objects.ts +235 -0
- package/src/index.test.data.platform.ts +45 -0
- package/src/index.test.data.streams.ts +470 -0
- package/src/index.test.ts +84 -0
- package/src/index.ts +26 -0
- package/src/schemas/activity-object.ts +19 -0
- package/src/schemas/activity-stream.ts +51 -0
- package/src/schemas/platform.ts +47 -0
- package/src/types.ts +23 -0
- package/src/validator.ts +79 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: ((string | boolean | {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
})[] | (string | boolean | {
|
|
6
|
+
type: string;
|
|
7
|
+
})[] | (string | boolean | {
|
|
8
|
+
type: string;
|
|
9
|
+
user: string;
|
|
10
|
+
pass: string;
|
|
11
|
+
})[] | (string | boolean | {
|
|
12
|
+
type: string;
|
|
13
|
+
name: string;
|
|
14
|
+
})[] | (string | boolean | {
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
})[] | (string | boolean | {
|
|
18
|
+
id: string;
|
|
19
|
+
type: string;
|
|
20
|
+
content: string;
|
|
21
|
+
})[] | (string | boolean | {
|
|
22
|
+
type: string;
|
|
23
|
+
members: string[];
|
|
24
|
+
})[] | (string | boolean | {
|
|
25
|
+
type: string;
|
|
26
|
+
status: string;
|
|
27
|
+
})[] | (string | boolean | {
|
|
28
|
+
type: string;
|
|
29
|
+
presence: string;
|
|
30
|
+
content: string;
|
|
31
|
+
})[] | (string | boolean | {
|
|
32
|
+
type: string;
|
|
33
|
+
content: string;
|
|
34
|
+
})[] | (string | boolean | {
|
|
35
|
+
type: string;
|
|
36
|
+
topic: string;
|
|
37
|
+
})[] | (string | boolean | {
|
|
38
|
+
type: string;
|
|
39
|
+
relationship: string;
|
|
40
|
+
subject: {
|
|
41
|
+
type: string;
|
|
42
|
+
role: string;
|
|
43
|
+
};
|
|
44
|
+
object: {
|
|
45
|
+
type: string;
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
})[])[];
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const objects_1 = require("./helpers/objects");
|
|
4
|
+
exports.default = [
|
|
5
|
+
[
|
|
6
|
+
'room object',
|
|
7
|
+
{
|
|
8
|
+
id: 'irc.freenode.net/server',
|
|
9
|
+
type: 'room',
|
|
10
|
+
name: 'sockethub'
|
|
11
|
+
},
|
|
12
|
+
true,
|
|
13
|
+
``
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
'credentials with no props',
|
|
17
|
+
{
|
|
18
|
+
type: 'credentials'
|
|
19
|
+
},
|
|
20
|
+
false,
|
|
21
|
+
`/object: must match exactly one schema in oneOf: ${objects_1.ObjectTypesList.join(', ')}`
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
'credentials with props',
|
|
25
|
+
{
|
|
26
|
+
type: 'credentials',
|
|
27
|
+
user: "foo",
|
|
28
|
+
pass: "bar"
|
|
29
|
+
},
|
|
30
|
+
false,
|
|
31
|
+
`/object: must match exactly one schema in oneOf: ${objects_1.ObjectTypesList.join(', ')}`
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
'bad target',
|
|
35
|
+
{
|
|
36
|
+
type: 'person',
|
|
37
|
+
name: 'bob'
|
|
38
|
+
},
|
|
39
|
+
false,
|
|
40
|
+
'/object: must have required property \'id\''
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
'bad iri in object id',
|
|
44
|
+
{
|
|
45
|
+
id: 'example.org/some/path.html',
|
|
46
|
+
type: 'website'
|
|
47
|
+
},
|
|
48
|
+
false,
|
|
49
|
+
'/object/id: must match format "iri"'
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
'valid iri in object id',
|
|
53
|
+
{
|
|
54
|
+
id: 'https://example.org/some/path.html',
|
|
55
|
+
type: 'website'
|
|
56
|
+
},
|
|
57
|
+
true,
|
|
58
|
+
''
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
'wrong actor type',
|
|
62
|
+
{
|
|
63
|
+
id: 'doobar@freenode.net/channel',
|
|
64
|
+
type: 'foo',
|
|
65
|
+
content: 'hi there'
|
|
66
|
+
},
|
|
67
|
+
false,
|
|
68
|
+
`/object: must match exactly one schema in oneOf: ${objects_1.ObjectTypesList.join(', ')}`
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
'missing actor id',
|
|
72
|
+
{
|
|
73
|
+
type: 'person',
|
|
74
|
+
name: 'dood'
|
|
75
|
+
},
|
|
76
|
+
false,
|
|
77
|
+
'/object: must have required property \'id\''
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
'attendance request',
|
|
81
|
+
{
|
|
82
|
+
type: 'attendance',
|
|
83
|
+
},
|
|
84
|
+
true,
|
|
85
|
+
''
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
'attendance response',
|
|
89
|
+
{
|
|
90
|
+
type: 'attendance',
|
|
91
|
+
members: ['bill', 'bob', 'hank']
|
|
92
|
+
},
|
|
93
|
+
true,
|
|
94
|
+
''
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
'invalid attendance request',
|
|
98
|
+
{
|
|
99
|
+
type: 'attendance',
|
|
100
|
+
status: 'foobar'
|
|
101
|
+
},
|
|
102
|
+
false,
|
|
103
|
+
'/object: must NOT have additional properties: status'
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
'setting presence',
|
|
107
|
+
{
|
|
108
|
+
type: 'presence',
|
|
109
|
+
presence: 'away',
|
|
110
|
+
content: 'forgot the milk'
|
|
111
|
+
},
|
|
112
|
+
true,
|
|
113
|
+
''
|
|
114
|
+
],
|
|
115
|
+
[
|
|
116
|
+
'setting invalid presence',
|
|
117
|
+
{
|
|
118
|
+
type: 'presence',
|
|
119
|
+
presence: 'afk',
|
|
120
|
+
content: 'forgot the milk'
|
|
121
|
+
},
|
|
122
|
+
false,
|
|
123
|
+
'/object/presence: must be equal to one of the allowed values: ' +
|
|
124
|
+
'away, chat, dnd, xa, offline, online'
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
'setting topic',
|
|
128
|
+
{
|
|
129
|
+
type: 'topic',
|
|
130
|
+
content: 'the topic is goats'
|
|
131
|
+
},
|
|
132
|
+
true,
|
|
133
|
+
''
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
'setting topic incorrectly',
|
|
137
|
+
{
|
|
138
|
+
type: 'topic',
|
|
139
|
+
topic: 'the topic is goats'
|
|
140
|
+
},
|
|
141
|
+
false,
|
|
142
|
+
'/object: must NOT have additional properties: topic'
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
'send message',
|
|
146
|
+
{
|
|
147
|
+
type: 'message',
|
|
148
|
+
content: 'the message is goats'
|
|
149
|
+
},
|
|
150
|
+
true,
|
|
151
|
+
''
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
'change user address',
|
|
155
|
+
{
|
|
156
|
+
type: 'address'
|
|
157
|
+
},
|
|
158
|
+
true,
|
|
159
|
+
''
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
'change user address incorrectly',
|
|
163
|
+
{
|
|
164
|
+
type: 'address',
|
|
165
|
+
id: 'futurebar@example.com',
|
|
166
|
+
},
|
|
167
|
+
false,
|
|
168
|
+
'/object: must NOT have additional properties: id'
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
'invalid room',
|
|
172
|
+
{
|
|
173
|
+
"type": "room",
|
|
174
|
+
"name": "sh-9K3Vk"
|
|
175
|
+
},
|
|
176
|
+
false,
|
|
177
|
+
'/object: must have required property \'id\''
|
|
178
|
+
],
|
|
179
|
+
[
|
|
180
|
+
'relationship',
|
|
181
|
+
{
|
|
182
|
+
"type": "relationship",
|
|
183
|
+
"relationship": "role",
|
|
184
|
+
"subject": {
|
|
185
|
+
"type": "presence",
|
|
186
|
+
"role": "owner"
|
|
187
|
+
},
|
|
188
|
+
"object": {
|
|
189
|
+
"type": "room",
|
|
190
|
+
"id": "localhost/#Finnish",
|
|
191
|
+
"name": "#Finnish"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
true, ""
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
'invalid role in relationship',
|
|
198
|
+
{
|
|
199
|
+
"type": "relationship",
|
|
200
|
+
"relationship": "role",
|
|
201
|
+
"subject": {
|
|
202
|
+
"type": "presence",
|
|
203
|
+
"role": "manager"
|
|
204
|
+
},
|
|
205
|
+
"object": {
|
|
206
|
+
"type": "room",
|
|
207
|
+
"id": "localhost/#Finnish",
|
|
208
|
+
"name": "#Finnish"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
false, "/object/subject/role: must be equal to one of the allowed values: " +
|
|
212
|
+
"owner, member, participant, admin"
|
|
213
|
+
]
|
|
214
|
+
];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
messages: {
|
|
5
|
+
required: string[];
|
|
6
|
+
properties: {
|
|
7
|
+
type: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
credentials: {
|
|
13
|
+
required: string[];
|
|
14
|
+
properties: {
|
|
15
|
+
actor: {
|
|
16
|
+
type: string;
|
|
17
|
+
required: string[];
|
|
18
|
+
};
|
|
19
|
+
object: {
|
|
20
|
+
type: string;
|
|
21
|
+
required: string[];
|
|
22
|
+
additionalProperties: boolean;
|
|
23
|
+
properties: {
|
|
24
|
+
type: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
username: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
password: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
host: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
port: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
"name": "fake",
|
|
5
|
+
"version": "1.0",
|
|
6
|
+
"messages": {
|
|
7
|
+
"required": ['type'],
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"enum": ['connect', 'update', 'send', 'join', 'query', 'foo']
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"credentials": {
|
|
15
|
+
"required": ['object'],
|
|
16
|
+
"properties": {
|
|
17
|
+
// TODO platforms shouldn't have to define the actor property if
|
|
18
|
+
// they don't want to, just credential specifics
|
|
19
|
+
"actor": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": ["id"]
|
|
22
|
+
},
|
|
23
|
+
"object": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ['type', 'username', 'password', 'host'],
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"properties": {
|
|
28
|
+
"type": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"username": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"password": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"host": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"port": {
|
|
41
|
+
"type": "number"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
declare const _default: ((string | boolean | {
|
|
2
|
+
type: string;
|
|
3
|
+
context: string;
|
|
4
|
+
actor: {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
target: {
|
|
10
|
+
id: string;
|
|
11
|
+
type: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
object: {
|
|
15
|
+
type: string;
|
|
16
|
+
content: string;
|
|
17
|
+
};
|
|
18
|
+
})[] | (string | boolean | {
|
|
19
|
+
type: string;
|
|
20
|
+
context: string;
|
|
21
|
+
actor: {
|
|
22
|
+
id: string;
|
|
23
|
+
type: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
target: {
|
|
27
|
+
id: string;
|
|
28
|
+
type: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
object: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
})[] | (string | boolean | {
|
|
35
|
+
context: string;
|
|
36
|
+
type: string;
|
|
37
|
+
actor: {
|
|
38
|
+
id: string;
|
|
39
|
+
type: string;
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
object: {
|
|
43
|
+
type: string;
|
|
44
|
+
user: string;
|
|
45
|
+
pass: string;
|
|
46
|
+
};
|
|
47
|
+
})[] | (string | boolean | {
|
|
48
|
+
id: string;
|
|
49
|
+
type: string;
|
|
50
|
+
context: string;
|
|
51
|
+
actor: {
|
|
52
|
+
id: string;
|
|
53
|
+
type: string;
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
target: {
|
|
57
|
+
type: string;
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
object: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
})[] | (string | boolean | {
|
|
64
|
+
type: string;
|
|
65
|
+
context: string;
|
|
66
|
+
actor: {
|
|
67
|
+
id: string;
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
object: {
|
|
71
|
+
id: string;
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
})[] | (string | boolean | {
|
|
75
|
+
type: string;
|
|
76
|
+
context: string;
|
|
77
|
+
actor: {
|
|
78
|
+
id: string;
|
|
79
|
+
type: string;
|
|
80
|
+
content: string;
|
|
81
|
+
};
|
|
82
|
+
object: {
|
|
83
|
+
type: string;
|
|
84
|
+
id: string;
|
|
85
|
+
};
|
|
86
|
+
})[] | (string | boolean | {
|
|
87
|
+
id: string;
|
|
88
|
+
type: string;
|
|
89
|
+
context: string;
|
|
90
|
+
actor: {
|
|
91
|
+
type: string;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
target: {
|
|
95
|
+
id: string;
|
|
96
|
+
type: string;
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
99
|
+
object: {
|
|
100
|
+
type: string;
|
|
101
|
+
id: string;
|
|
102
|
+
};
|
|
103
|
+
})[] | (string | boolean | {
|
|
104
|
+
id: string;
|
|
105
|
+
type: string;
|
|
106
|
+
context: string;
|
|
107
|
+
actor: {
|
|
108
|
+
id: string;
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
target: {
|
|
112
|
+
id: string;
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
object: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
})[] | (string | boolean | {
|
|
119
|
+
id: string;
|
|
120
|
+
type: string;
|
|
121
|
+
context: string;
|
|
122
|
+
actor: {
|
|
123
|
+
id: string;
|
|
124
|
+
type: string;
|
|
125
|
+
name: string;
|
|
126
|
+
};
|
|
127
|
+
object: {
|
|
128
|
+
type: string;
|
|
129
|
+
members: string[];
|
|
130
|
+
};
|
|
131
|
+
})[] | (string | boolean | {
|
|
132
|
+
id: string;
|
|
133
|
+
type: string;
|
|
134
|
+
context: string;
|
|
135
|
+
actor: {
|
|
136
|
+
id: string;
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
target: {
|
|
140
|
+
id: string;
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
object: {
|
|
144
|
+
type: string;
|
|
145
|
+
status: string;
|
|
146
|
+
};
|
|
147
|
+
})[] | (string | boolean | {
|
|
148
|
+
id: string;
|
|
149
|
+
type: string;
|
|
150
|
+
context: string;
|
|
151
|
+
actor: {
|
|
152
|
+
id: string;
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
object: {
|
|
156
|
+
type: string;
|
|
157
|
+
presence: string;
|
|
158
|
+
content: string;
|
|
159
|
+
};
|
|
160
|
+
target: {
|
|
161
|
+
id: string;
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
})[] | (string | boolean | {
|
|
165
|
+
id: string;
|
|
166
|
+
type: string;
|
|
167
|
+
context: string;
|
|
168
|
+
actor: {
|
|
169
|
+
id: string;
|
|
170
|
+
type: string;
|
|
171
|
+
};
|
|
172
|
+
object: {
|
|
173
|
+
type: string;
|
|
174
|
+
content: string;
|
|
175
|
+
};
|
|
176
|
+
target: {
|
|
177
|
+
id: string;
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
})[] | (string | boolean | {
|
|
181
|
+
id: string;
|
|
182
|
+
type: string;
|
|
183
|
+
context: string;
|
|
184
|
+
actor: {
|
|
185
|
+
id: string;
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
object: {
|
|
189
|
+
type: string;
|
|
190
|
+
topic: string;
|
|
191
|
+
};
|
|
192
|
+
target: {
|
|
193
|
+
id: string;
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
})[] | (string | boolean | {
|
|
197
|
+
id: string;
|
|
198
|
+
type: string;
|
|
199
|
+
context: string;
|
|
200
|
+
actor: {
|
|
201
|
+
id: string;
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
object: {
|
|
205
|
+
type: string;
|
|
206
|
+
content: string;
|
|
207
|
+
};
|
|
208
|
+
})[] | (string | boolean | {
|
|
209
|
+
actor: {
|
|
210
|
+
id: string;
|
|
211
|
+
type: string;
|
|
212
|
+
};
|
|
213
|
+
context: string;
|
|
214
|
+
target: {
|
|
215
|
+
id: string;
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
})[] | (string | boolean | {
|
|
219
|
+
context: string;
|
|
220
|
+
type: string;
|
|
221
|
+
actor: {
|
|
222
|
+
id: string;
|
|
223
|
+
type: string;
|
|
224
|
+
};
|
|
225
|
+
target: {
|
|
226
|
+
type: string;
|
|
227
|
+
name: string;
|
|
228
|
+
};
|
|
229
|
+
})[] | (string | boolean | {
|
|
230
|
+
context: string;
|
|
231
|
+
type: string;
|
|
232
|
+
actor: {
|
|
233
|
+
type: string;
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
};
|
|
237
|
+
target: {
|
|
238
|
+
type: string;
|
|
239
|
+
id: string;
|
|
240
|
+
name: string;
|
|
241
|
+
};
|
|
242
|
+
object: {
|
|
243
|
+
type: string;
|
|
244
|
+
relationship: string;
|
|
245
|
+
subject: {
|
|
246
|
+
type: string;
|
|
247
|
+
role: string;
|
|
248
|
+
};
|
|
249
|
+
object: {
|
|
250
|
+
type: string;
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
})[])[];
|
|
256
|
+
export default _default;
|