@firedrill-tools/linkedin 0.1.1

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.
Files changed (111) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +189 -0
  3. package/firedrill/agent.target.json +16 -0
  4. package/firedrill/baseline.scenario.json +1834 -0
  5. package/firedrill/comment-throttled.scenario.json +11 -0
  6. package/firedrill/conformance.suite.json +27 -0
  7. package/firedrill/linkedin-comment-throttled.drill.json +51 -0
  8. package/firedrill/linkedin-comments-connection.drill.json +43 -0
  9. package/firedrill/linkedin-comments.drill.json +196 -0
  10. package/firedrill/linkedin-denied.drill.json +383 -0
  11. package/firedrill/linkedin-fresh-install.drill.json +43 -0
  12. package/firedrill/linkedin-identity.drill.json +73 -0
  13. package/firedrill/linkedin-invalid-token.drill.json +393 -0
  14. package/firedrill/linkedin-limited-scopes.drill.json +88 -0
  15. package/firedrill/linkedin-openid-only.drill.json +383 -0
  16. package/firedrill/linkedin-orgs-connection.drill.json +28 -0
  17. package/firedrill/linkedin-orgs-network.drill.json +193 -0
  18. package/firedrill/linkedin-post-lost-response.drill.json +61 -0
  19. package/firedrill/linkedin-posts-lifecycle.drill.json +228 -0
  20. package/firedrill/linkedin-reactions-metadata.drill.json +196 -0
  21. package/firedrill/linkedin-reactions-outage.drill.json +66 -0
  22. package/firedrill/linkedin-tight-limits.drill.json +228 -0
  23. package/firedrill/linkedin-ugc-legacy.drill.json +43 -0
  24. package/firedrill/linkedin-visibility-connection.drill.json +73 -0
  25. package/firedrill/linkedin-visibility-stranger.drill.json +88 -0
  26. package/firedrill/linkedin-wire-errors.drill.json +353 -0
  27. package/firedrill/post-lost-response.scenario.json +11 -0
  28. package/firedrill/reactions-outage.scenario.json +11 -0
  29. package/firedrill/tight-limits.scenario.json +16 -0
  30. package/firedrill/tools/linkedin/app/assets/ATTRIBUTION.md +28 -0
  31. package/firedrill/tools/linkedin/app/assets/fonts/OFL.txt +93 -0
  32. package/firedrill/tools/linkedin/app/assets/linkedin-in.svg +1 -0
  33. package/firedrill/tools/linkedin/app/assets/linkedin-wordmark.svg +1 -0
  34. package/firedrill/tools/linkedin/app/assets/linkedin.svg +1 -0
  35. package/firedrill/tools/linkedin/app/site/app.js +80 -0
  36. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-400-normal.woff2 +0 -0
  37. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-600-normal.woff2 +0 -0
  38. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-700-normal.woff2 +0 -0
  39. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-400-normal.woff2 +0 -0
  40. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-600-normal.woff2 +0 -0
  41. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-700-normal.woff2 +0 -0
  42. package/firedrill/tools/linkedin/app/site/assets/linkedin-wordmark.svg +1 -0
  43. package/firedrill/tools/linkedin/app/site/assets/linkedin.svg +1 -0
  44. package/firedrill/tools/linkedin/app/site/base.css +87 -0
  45. package/firedrill/tools/linkedin/app/site/comment-box.js +119 -0
  46. package/firedrill/tools/linkedin/app/site/comments.css +59 -0
  47. package/firedrill/tools/linkedin/app/site/comments.js +188 -0
  48. package/firedrill/tools/linkedin/app/site/company.js +115 -0
  49. package/firedrill/tools/linkedin/app/site/composer.js +112 -0
  50. package/firedrill/tools/linkedin/app/site/feed.css +105 -0
  51. package/firedrill/tools/linkedin/app/site/feed.js +134 -0
  52. package/firedrill/tools/linkedin/app/site/icons.js +70 -0
  53. package/firedrill/tools/linkedin/app/site/index.html +58 -0
  54. package/firedrill/tools/linkedin/app/site/nav.css +51 -0
  55. package/firedrill/tools/linkedin/app/site/network.js +77 -0
  56. package/firedrill/tools/linkedin/app/site/overlay.css +62 -0
  57. package/firedrill/tools/linkedin/app/site/overlay.js +108 -0
  58. package/firedrill/tools/linkedin/app/site/pages.css +78 -0
  59. package/firedrill/tools/linkedin/app/site/post-actions.js +83 -0
  60. package/firedrill/tools/linkedin/app/site/post-menu.js +72 -0
  61. package/firedrill/tools/linkedin/app/site/post.css +82 -0
  62. package/firedrill/tools/linkedin/app/site/post.js +131 -0
  63. package/firedrill/tools/linkedin/app/site/profile.js +139 -0
  64. package/firedrill/tools/linkedin/app/site/reactions.js +46 -0
  65. package/firedrill/tools/linkedin/app/site/reactors.js +71 -0
  66. package/firedrill/tools/linkedin/app/site/shell.js +107 -0
  67. package/firedrill/tools/linkedin/app/site/store.js +62 -0
  68. package/firedrill/tools/linkedin/app/site/text.js +80 -0
  69. package/firedrill/tools/linkedin/app/site/ui.js +142 -0
  70. package/firedrill/tools/linkedin/behavior.mjs +66 -0
  71. package/firedrill/tools/linkedin/lib/access.mjs +69 -0
  72. package/firedrill/tools/linkedin/lib/auth.mjs +115 -0
  73. package/firedrill/tools/linkedin/lib/cascade.mjs +28 -0
  74. package/firedrill/tools/linkedin/lib/errors.mjs +50 -0
  75. package/firedrill/tools/linkedin/lib/message.mjs +43 -0
  76. package/firedrill/tools/linkedin/lib/paging.mjs +54 -0
  77. package/firedrill/tools/linkedin/lib/postinput.mjs +47 -0
  78. package/firedrill/tools/linkedin/lib/render.mjs +95 -0
  79. package/firedrill/tools/linkedin/lib/routes.mjs +219 -0
  80. package/firedrill/tools/linkedin/lib/social.mjs +25 -0
  81. package/firedrill/tools/linkedin/lib/store.mjs +54 -0
  82. package/firedrill/tools/linkedin/lib/text.mjs +55 -0
  83. package/firedrill/tools/linkedin/lib/urn.mjs +93 -0
  84. package/firedrill/tools/linkedin/lib/wire.mjs +125 -0
  85. package/firedrill/tools/linkedin/linkedin.tool.json +8935 -0
  86. package/firedrill/tools/linkedin/ops/comments-read.mjs +57 -0
  87. package/firedrill/tools/linkedin/ops/comments-write.mjs +104 -0
  88. package/firedrill/tools/linkedin/ops/feed.mjs +74 -0
  89. package/firedrill/tools/linkedin/ops/network.mjs +46 -0
  90. package/firedrill/tools/linkedin/ops/orgs.mjs +93 -0
  91. package/firedrill/tools/linkedin/ops/posts-edit.mjs +71 -0
  92. package/firedrill/tools/linkedin/ops/posts-read.mjs +54 -0
  93. package/firedrill/tools/linkedin/ops/posts-write.mjs +74 -0
  94. package/firedrill/tools/linkedin/ops/profile.mjs +38 -0
  95. package/firedrill/tools/linkedin/ops/reactions.mjs +78 -0
  96. package/firedrill/tools/linkedin/ops/social.mjs +34 -0
  97. package/firedrill/world.json +2585 -0
  98. package/firedrill.json +5 -0
  99. package/package.json +52 -0
  100. package/starter.json +1833 -0
  101. package/test/client.mjs +71 -0
  102. package/test/conformance.mjs +20 -0
  103. package/test/fixtures.mjs +182 -0
  104. package/test/flows/comments.mjs +116 -0
  105. package/test/flows/every.mjs +38 -0
  106. package/test/flows/faults.mjs +56 -0
  107. package/test/flows/identity.mjs +70 -0
  108. package/test/flows/orgs.mjs +107 -0
  109. package/test/flows/posts.mjs +196 -0
  110. package/test/flows/reactions.mjs +101 -0
  111. package/test/flows/wire.mjs +62 -0
@@ -0,0 +1,383 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-denied",
4
+ "title": "An actor without Firedrill grants is denied before the Tool runs",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "no-grants",
8
+ "task": {
9
+ "instruction": "Run the denied flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "profile-userinfo-denied",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "profile.userinfo"
18
+ },
19
+ "outcomes": [
20
+ "denied"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "profile-me-denied",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "profile.me"
33
+ },
34
+ "outcomes": [
35
+ "denied"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "people-get-denied",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "linkedin",
47
+ "operationId": "people.get"
48
+ },
49
+ "outcomes": [
50
+ "denied"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "posts-create-denied",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "linkedin",
62
+ "operationId": "posts.create"
63
+ },
64
+ "outcomes": [
65
+ "denied"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "posts-get-denied",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "linkedin",
77
+ "operationId": "posts.get"
78
+ },
79
+ "outcomes": [
80
+ "denied"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "posts-list-by-author-denied",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "linkedin",
92
+ "operationId": "posts.list_by_author"
93
+ },
94
+ "outcomes": [
95
+ "denied"
96
+ ],
97
+ "comparison": {
98
+ "operator": "equals",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "posts-update-denied",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "linkedin",
107
+ "operationId": "posts.update"
108
+ },
109
+ "outcomes": [
110
+ "denied"
111
+ ],
112
+ "comparison": {
113
+ "operator": "equals",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "posts-delete-denied",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "linkedin",
122
+ "operationId": "posts.delete"
123
+ },
124
+ "outcomes": [
125
+ "denied"
126
+ ],
127
+ "comparison": {
128
+ "operator": "equals",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "feed-list-denied",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "linkedin",
137
+ "operationId": "feed.list"
138
+ },
139
+ "outcomes": [
140
+ "denied"
141
+ ],
142
+ "comparison": {
143
+ "operator": "equals",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "comments-create-denied",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "linkedin",
152
+ "operationId": "comments.create"
153
+ },
154
+ "outcomes": [
155
+ "denied"
156
+ ],
157
+ "comparison": {
158
+ "operator": "equals",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "comments-list-denied",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "linkedin",
167
+ "operationId": "comments.list"
168
+ },
169
+ "outcomes": [
170
+ "denied"
171
+ ],
172
+ "comparison": {
173
+ "operator": "equals",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "comments-get-denied",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "linkedin",
182
+ "operationId": "comments.get"
183
+ },
184
+ "outcomes": [
185
+ "denied"
186
+ ],
187
+ "comparison": {
188
+ "operator": "equals",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "comments-update-denied",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "linkedin",
197
+ "operationId": "comments.update"
198
+ },
199
+ "outcomes": [
200
+ "denied"
201
+ ],
202
+ "comparison": {
203
+ "operator": "equals",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "comments-delete-denied",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "linkedin",
212
+ "operationId": "comments.delete"
213
+ },
214
+ "outcomes": [
215
+ "denied"
216
+ ],
217
+ "comparison": {
218
+ "operator": "equals",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "reactions-create-denied",
224
+ "kind": "operation.count",
225
+ "operation": {
226
+ "packageId": "linkedin",
227
+ "operationId": "reactions.create"
228
+ },
229
+ "outcomes": [
230
+ "denied"
231
+ ],
232
+ "comparison": {
233
+ "operator": "equals",
234
+ "value": 1
235
+ }
236
+ },
237
+ {
238
+ "id": "reactions-list-denied",
239
+ "kind": "operation.count",
240
+ "operation": {
241
+ "packageId": "linkedin",
242
+ "operationId": "reactions.list"
243
+ },
244
+ "outcomes": [
245
+ "denied"
246
+ ],
247
+ "comparison": {
248
+ "operator": "equals",
249
+ "value": 1
250
+ }
251
+ },
252
+ {
253
+ "id": "reactions-delete-denied",
254
+ "kind": "operation.count",
255
+ "operation": {
256
+ "packageId": "linkedin",
257
+ "operationId": "reactions.delete"
258
+ },
259
+ "outcomes": [
260
+ "denied"
261
+ ],
262
+ "comparison": {
263
+ "operator": "equals",
264
+ "value": 1
265
+ }
266
+ },
267
+ {
268
+ "id": "social-metadata-get-denied",
269
+ "kind": "operation.count",
270
+ "operation": {
271
+ "packageId": "linkedin",
272
+ "operationId": "social_metadata.get"
273
+ },
274
+ "outcomes": [
275
+ "denied"
276
+ ],
277
+ "comparison": {
278
+ "operator": "equals",
279
+ "value": 1
280
+ }
281
+ },
282
+ {
283
+ "id": "social-metadata-set-comments-state-denied",
284
+ "kind": "operation.count",
285
+ "operation": {
286
+ "packageId": "linkedin",
287
+ "operationId": "social_metadata.set_comments_state"
288
+ },
289
+ "outcomes": [
290
+ "denied"
291
+ ],
292
+ "comparison": {
293
+ "operator": "equals",
294
+ "value": 1
295
+ }
296
+ },
297
+ {
298
+ "id": "organizations-get-denied",
299
+ "kind": "operation.count",
300
+ "operation": {
301
+ "packageId": "linkedin",
302
+ "operationId": "organizations.get"
303
+ },
304
+ "outcomes": [
305
+ "denied"
306
+ ],
307
+ "comparison": {
308
+ "operator": "equals",
309
+ "value": 1
310
+ }
311
+ },
312
+ {
313
+ "id": "organizations-find-by-vanity-name-denied",
314
+ "kind": "operation.count",
315
+ "operation": {
316
+ "packageId": "linkedin",
317
+ "operationId": "organizations.find_by_vanity_name"
318
+ },
319
+ "outcomes": [
320
+ "denied"
321
+ ],
322
+ "comparison": {
323
+ "operator": "equals",
324
+ "value": 1
325
+ }
326
+ },
327
+ {
328
+ "id": "organization-acls-list-denied",
329
+ "kind": "operation.count",
330
+ "operation": {
331
+ "packageId": "linkedin",
332
+ "operationId": "organization_acls.list"
333
+ },
334
+ "outcomes": [
335
+ "denied"
336
+ ],
337
+ "comparison": {
338
+ "operator": "equals",
339
+ "value": 1
340
+ }
341
+ },
342
+ {
343
+ "id": "network-sizes-get-denied",
344
+ "kind": "operation.count",
345
+ "operation": {
346
+ "packageId": "linkedin",
347
+ "operationId": "network_sizes.get"
348
+ },
349
+ "outcomes": [
350
+ "denied"
351
+ ],
352
+ "comparison": {
353
+ "operator": "equals",
354
+ "value": 1
355
+ }
356
+ },
357
+ {
358
+ "id": "connections-list-denied",
359
+ "kind": "operation.count",
360
+ "operation": {
361
+ "packageId": "linkedin",
362
+ "operationId": "connections.list"
363
+ },
364
+ "outcomes": [
365
+ "denied"
366
+ ],
367
+ "comparison": {
368
+ "operator": "equals",
369
+ "value": 1
370
+ }
371
+ },
372
+ {
373
+ "id": "posts-count",
374
+ "kind": "state.count",
375
+ "packageId": "linkedin",
376
+ "namespace": "posts",
377
+ "comparison": {
378
+ "operator": "equals",
379
+ "value": 19
380
+ }
381
+ }
382
+ ]
383
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-fresh-install",
4
+ "title": "An actor without identity attributes acts as the default member",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "fresh",
8
+ "task": {
9
+ "instruction": "Run the fresh-install flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "feed-list-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "feed.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "profile-me-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "profile.me"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-identity",
4
+ "title": "Userinfo, lite profile and member lookup as Maya",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the identity flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "profile-userinfo-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "profile.userinfo"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "profile-me-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "profile.me"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "people-get-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "linkedin",
47
+ "operationId": "people.get"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "people-get-tool-error",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "linkedin",
62
+ "operationId": "people.get"
63
+ },
64
+ "outcomes": [
65
+ "tool_error"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ }
72
+ ]
73
+ }