@firedrill-tools/hubspot 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 (36) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +263 -0
  3. package/firedrill/agent.target.json +17 -0
  4. package/firedrill/baseline.scenario.json +5 -0
  5. package/firedrill/conformance.suite.json +20 -0
  6. package/firedrill/hubspot-deactivated-user.drill.json +53 -0
  7. package/firedrill/hubspot-denied.drill.json +74 -0
  8. package/firedrill/hubspot-fresh-actor.drill.json +128 -0
  9. package/firedrill/hubspot-invalid-auth.drill.json +433 -0
  10. package/firedrill/hubspot-mcp-aliases.drill.json +265 -0
  11. package/firedrill/hubspot-no-scopes.drill.json +433 -0
  12. package/firedrill/hubspot-owned-visibility.drill.json +113 -0
  13. package/firedrill/hubspot-rate-limited.drill.json +446 -0
  14. package/firedrill/hubspot-rest-flow.drill.json +963 -0
  15. package/firedrill/hubspot-scopes.drill.json +166 -0
  16. package/firedrill/hubspot-size-bounds.drill.json +156 -0
  17. package/firedrill/hubspot-write-committed-lost.drill.json +166 -0
  18. package/firedrill/hubspot-write-unavailable.drill.json +292 -0
  19. package/firedrill/rate-limited.scenario.json +11 -0
  20. package/firedrill/tools/hubspot/behavior.mjs +1318 -0
  21. package/firedrill/tools/hubspot/hubspot.tool.json +5524 -0
  22. package/firedrill/tools/hubspot/lib/bytes.mjs +32 -0
  23. package/firedrill/tools/hubspot/lib/json-depth.mjs +17 -0
  24. package/firedrill/tools/hubspot/lib/object-types.mjs +47 -0
  25. package/firedrill/tools/hubspot/lib/properties.mjs +275 -0
  26. package/firedrill/tools/hubspot/lib/search-matchers.mjs +85 -0
  27. package/firedrill/tools/hubspot/lib/search.mjs +301 -0
  28. package/firedrill/tools/hubspot/lib/state.mjs +248 -0
  29. package/firedrill/tools/hubspot/lib/wire.mjs +125 -0
  30. package/firedrill/world.json +3128 -0
  31. package/firedrill/write-committed-lost.scenario.json +11 -0
  32. package/firedrill/write-unavailable.scenario.json +11 -0
  33. package/firedrill.json +5 -0
  34. package/package.json +64 -0
  35. package/starter.json +2540 -0
  36. package/test/conformance.mjs +1007 -0
@@ -0,0 +1,292 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "hubspot-write-unavailable",
4
+ "title": "Writes answer HTTP 503 and leave state untouched while reads keep working",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "write-unavailable",
7
+ "actorId": "rep",
8
+ "task": {
9
+ "instruction": "Run the write-unavailable conformance flow against the synthetic HubSpot Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "objects-create-error",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "hubspot",
17
+ "operationId": "objects.create"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "objects-update-error",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "hubspot",
32
+ "operationId": "objects.update"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "objects-archive-error",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "hubspot",
47
+ "operationId": "objects.archive"
48
+ },
49
+ "outcomes": [
50
+ "tool_error"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "objects-batch-create-error",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "hubspot",
62
+ "operationId": "objects.batch-create"
63
+ },
64
+ "outcomes": [
65
+ "tool_error"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "objects-batch-update-error",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "hubspot",
77
+ "operationId": "objects.batch-update"
78
+ },
79
+ "outcomes": [
80
+ "tool_error"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "associations-create-default-error",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "hubspot",
92
+ "operationId": "associations.create-default"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "equals",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "associations-create-error",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "hubspot",
107
+ "operationId": "associations.create"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "equals",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "associations-batch-create-error",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "hubspot",
122
+ "operationId": "associations.batch-create"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "equals",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "associations-archive-error",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "hubspot",
137
+ "operationId": "associations.archive"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "equals",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "objects-list-ok",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "hubspot",
152
+ "operationId": "objects.list"
153
+ },
154
+ "outcomes": [
155
+ "ok"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "objects-search-ok",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "hubspot",
167
+ "operationId": "objects.search"
168
+ },
169
+ "outcomes": [
170
+ "ok"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "objects-get-ok",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "hubspot",
182
+ "operationId": "objects.get"
183
+ },
184
+ "outcomes": [
185
+ "ok"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "contacts-count",
194
+ "kind": "state.count",
195
+ "packageId": "hubspot",
196
+ "namespace": "contacts",
197
+ "comparison": {
198
+ "operator": "equals",
199
+ "value": 14
200
+ }
201
+ },
202
+ {
203
+ "id": "companies-count",
204
+ "kind": "state.count",
205
+ "packageId": "hubspot",
206
+ "namespace": "companies",
207
+ "comparison": {
208
+ "operator": "equals",
209
+ "value": 6
210
+ }
211
+ },
212
+ {
213
+ "id": "deals-count",
214
+ "kind": "state.count",
215
+ "packageId": "hubspot",
216
+ "namespace": "deals",
217
+ "comparison": {
218
+ "operator": "equals",
219
+ "value": 8
220
+ }
221
+ },
222
+ {
223
+ "id": "notes-count",
224
+ "kind": "state.count",
225
+ "packageId": "hubspot",
226
+ "namespace": "notes",
227
+ "comparison": {
228
+ "operator": "equals",
229
+ "value": 4
230
+ }
231
+ },
232
+ {
233
+ "id": "tasks-count",
234
+ "kind": "state.count",
235
+ "packageId": "hubspot",
236
+ "namespace": "tasks",
237
+ "comparison": {
238
+ "operator": "equals",
239
+ "value": 4
240
+ }
241
+ },
242
+ {
243
+ "id": "associations-count",
244
+ "kind": "state.count",
245
+ "packageId": "hubspot",
246
+ "namespace": "associations",
247
+ "comparison": {
248
+ "operator": "equals",
249
+ "value": 48
250
+ }
251
+ },
252
+ {
253
+ "id": "object-created-events",
254
+ "kind": "event.count",
255
+ "event": {
256
+ "packageId": "hubspot",
257
+ "eventId": "object.created"
258
+ },
259
+ "phase": "emitted",
260
+ "comparison": {
261
+ "operator": "equals",
262
+ "value": 0
263
+ }
264
+ },
265
+ {
266
+ "id": "object-property-changed-events",
267
+ "kind": "event.count",
268
+ "event": {
269
+ "packageId": "hubspot",
270
+ "eventId": "object.property-changed"
271
+ },
272
+ "phase": "emitted",
273
+ "comparison": {
274
+ "operator": "equals",
275
+ "value": 0
276
+ }
277
+ },
278
+ {
279
+ "id": "association-changed-events",
280
+ "kind": "event.count",
281
+ "event": {
282
+ "packageId": "hubspot",
283
+ "eventId": "association.changed"
284
+ },
285
+ "phase": "emitted",
286
+ "comparison": {
287
+ "operator": "equals",
288
+ "value": 0
289
+ }
290
+ }
291
+ ]
292
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "rate-limited",
4
+ "title": "Every call answers HTTP 429 (secondly limit) with HubSpot's rate-limit headers",
5
+ "faults": [
6
+ {
7
+ "packageId": "hubspot",
8
+ "faultId": "rate-limited"
9
+ }
10
+ ]
11
+ }