@belvador/api 0.2.0 → 0.4.0
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/README.md +13 -0
- package/dist/cli.js +119 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +4 -2
- package/dist/node-wire.gen.d.ts +3 -0
- package/dist/node-wire.gen.js +11 -0
- package/dist/operations.gen.d.ts +726 -10
- package/dist/operations.gen.js +351 -1
- package/package.json +4 -1
package/dist/operations.gen.js
CHANGED
|
@@ -114,6 +114,34 @@ export const OPERATIONS = {
|
|
|
114
114
|
node: null,
|
|
115
115
|
defaults: {},
|
|
116
116
|
},
|
|
117
|
+
"coverage.get": {
|
|
118
|
+
method: "GET",
|
|
119
|
+
path: "/v1/coverage",
|
|
120
|
+
pathParams: [],
|
|
121
|
+
scope: "coverage:read",
|
|
122
|
+
kind: "read",
|
|
123
|
+
sensitivity: "normal",
|
|
124
|
+
idempotency: "none",
|
|
125
|
+
ifMatch: false,
|
|
126
|
+
paged: false,
|
|
127
|
+
status: 200,
|
|
128
|
+
node: null,
|
|
129
|
+
defaults: {},
|
|
130
|
+
},
|
|
131
|
+
"coverage.set": {
|
|
132
|
+
method: "PUT",
|
|
133
|
+
path: "/v1/projects/{project_id}/coverage-expectations",
|
|
134
|
+
pathParams: ["project_id"],
|
|
135
|
+
scope: "coverage:write",
|
|
136
|
+
kind: "write",
|
|
137
|
+
sensitivity: "normal",
|
|
138
|
+
idempotency: "optional",
|
|
139
|
+
ifMatch: false,
|
|
140
|
+
paged: false,
|
|
141
|
+
status: 200,
|
|
142
|
+
node: null,
|
|
143
|
+
defaults: {},
|
|
144
|
+
},
|
|
117
145
|
"destinations.create": {
|
|
118
146
|
method: "POST",
|
|
119
147
|
path: "/v1/destinations",
|
|
@@ -254,6 +282,132 @@ export const OPERATIONS = {
|
|
|
254
282
|
node: { path: "q/issues/{issue_id}/events", list: "events" },
|
|
255
283
|
defaults: {},
|
|
256
284
|
},
|
|
285
|
+
"incident_rules.delete": {
|
|
286
|
+
method: "DELETE",
|
|
287
|
+
path: "/v1/incident-rules/{rule_id}",
|
|
288
|
+
pathParams: ["rule_id"],
|
|
289
|
+
scope: "alerts:write",
|
|
290
|
+
kind: "write",
|
|
291
|
+
sensitivity: "normal",
|
|
292
|
+
idempotency: "none",
|
|
293
|
+
ifMatch: false,
|
|
294
|
+
paged: false,
|
|
295
|
+
status: 200,
|
|
296
|
+
node: null,
|
|
297
|
+
defaults: {},
|
|
298
|
+
},
|
|
299
|
+
"incident_rules.list": {
|
|
300
|
+
method: "GET",
|
|
301
|
+
path: "/v1/incident-rules",
|
|
302
|
+
pathParams: [],
|
|
303
|
+
scope: "alerts:read",
|
|
304
|
+
kind: "read",
|
|
305
|
+
sensitivity: "normal",
|
|
306
|
+
idempotency: "none",
|
|
307
|
+
ifMatch: false,
|
|
308
|
+
paged: false,
|
|
309
|
+
status: 200,
|
|
310
|
+
node: null,
|
|
311
|
+
defaults: {},
|
|
312
|
+
},
|
|
313
|
+
"incident_rules.save": {
|
|
314
|
+
method: "POST",
|
|
315
|
+
path: "/v1/incident-rules",
|
|
316
|
+
pathParams: [],
|
|
317
|
+
scope: "alerts:write",
|
|
318
|
+
kind: "write",
|
|
319
|
+
sensitivity: "normal",
|
|
320
|
+
idempotency: "optional",
|
|
321
|
+
ifMatch: false,
|
|
322
|
+
paged: false,
|
|
323
|
+
status: 200,
|
|
324
|
+
node: null,
|
|
325
|
+
defaults: {},
|
|
326
|
+
},
|
|
327
|
+
"incidents.acknowledge": {
|
|
328
|
+
method: "POST",
|
|
329
|
+
path: "/v1/incidents/{incident_id}/ack",
|
|
330
|
+
pathParams: ["incident_id"],
|
|
331
|
+
scope: "incidents:write",
|
|
332
|
+
kind: "write",
|
|
333
|
+
sensitivity: "normal",
|
|
334
|
+
idempotency: "optional",
|
|
335
|
+
ifMatch: false,
|
|
336
|
+
paged: false,
|
|
337
|
+
status: 200,
|
|
338
|
+
node: null,
|
|
339
|
+
defaults: {},
|
|
340
|
+
},
|
|
341
|
+
"incidents.get": {
|
|
342
|
+
method: "GET",
|
|
343
|
+
path: "/v1/incidents/{incident_id}",
|
|
344
|
+
pathParams: ["incident_id"],
|
|
345
|
+
scope: "incidents:read",
|
|
346
|
+
kind: "read",
|
|
347
|
+
sensitivity: "normal",
|
|
348
|
+
idempotency: "none",
|
|
349
|
+
ifMatch: false,
|
|
350
|
+
paged: false,
|
|
351
|
+
status: 200,
|
|
352
|
+
node: null,
|
|
353
|
+
defaults: {},
|
|
354
|
+
},
|
|
355
|
+
"incidents.list": {
|
|
356
|
+
method: "GET",
|
|
357
|
+
path: "/v1/incidents",
|
|
358
|
+
pathParams: [],
|
|
359
|
+
scope: "incidents:read",
|
|
360
|
+
kind: "read",
|
|
361
|
+
sensitivity: "normal",
|
|
362
|
+
idempotency: "none",
|
|
363
|
+
ifMatch: false,
|
|
364
|
+
paged: true,
|
|
365
|
+
status: 200,
|
|
366
|
+
node: null,
|
|
367
|
+
defaults: {},
|
|
368
|
+
},
|
|
369
|
+
"incidents.note": {
|
|
370
|
+
method: "POST",
|
|
371
|
+
path: "/v1/incidents/{incident_id}/notes",
|
|
372
|
+
pathParams: ["incident_id"],
|
|
373
|
+
scope: "incidents:write",
|
|
374
|
+
kind: "write",
|
|
375
|
+
sensitivity: "normal",
|
|
376
|
+
idempotency: "optional",
|
|
377
|
+
ifMatch: false,
|
|
378
|
+
paged: false,
|
|
379
|
+
status: 200,
|
|
380
|
+
node: null,
|
|
381
|
+
defaults: {},
|
|
382
|
+
},
|
|
383
|
+
"incidents.resolve": {
|
|
384
|
+
method: "POST",
|
|
385
|
+
path: "/v1/incidents/{incident_id}/resolve",
|
|
386
|
+
pathParams: ["incident_id"],
|
|
387
|
+
scope: "incidents:write",
|
|
388
|
+
kind: "write",
|
|
389
|
+
sensitivity: "normal",
|
|
390
|
+
idempotency: "optional",
|
|
391
|
+
ifMatch: false,
|
|
392
|
+
paged: false,
|
|
393
|
+
status: 200,
|
|
394
|
+
node: null,
|
|
395
|
+
defaults: {},
|
|
396
|
+
},
|
|
397
|
+
"incidents.update": {
|
|
398
|
+
method: "PATCH",
|
|
399
|
+
path: "/v1/incidents/{incident_id}",
|
|
400
|
+
pathParams: ["incident_id"],
|
|
401
|
+
scope: "incidents:write",
|
|
402
|
+
kind: "write",
|
|
403
|
+
sensitivity: "normal",
|
|
404
|
+
idempotency: "none",
|
|
405
|
+
ifMatch: false,
|
|
406
|
+
paged: false,
|
|
407
|
+
status: 200,
|
|
408
|
+
node: null,
|
|
409
|
+
defaults: {},
|
|
410
|
+
},
|
|
257
411
|
"ingest_keys.create": {
|
|
258
412
|
method: "POST",
|
|
259
413
|
path: "/v1/projects/{project_id}/ingest-keys",
|
|
@@ -464,6 +618,62 @@ export const OPERATIONS = {
|
|
|
464
618
|
node: { path: "q/logs", list: "logs", window: true },
|
|
465
619
|
defaults: {},
|
|
466
620
|
},
|
|
621
|
+
"maintenance.create": {
|
|
622
|
+
method: "POST",
|
|
623
|
+
path: "/v1/maintenance-windows",
|
|
624
|
+
pathParams: [],
|
|
625
|
+
scope: "monitors:write",
|
|
626
|
+
kind: "write",
|
|
627
|
+
sensitivity: "normal",
|
|
628
|
+
idempotency: "required",
|
|
629
|
+
ifMatch: false,
|
|
630
|
+
paged: false,
|
|
631
|
+
status: 201,
|
|
632
|
+
node: null,
|
|
633
|
+
defaults: {},
|
|
634
|
+
},
|
|
635
|
+
"maintenance.delete": {
|
|
636
|
+
method: "DELETE",
|
|
637
|
+
path: "/v1/maintenance-windows/{window_id}",
|
|
638
|
+
pathParams: ["window_id"],
|
|
639
|
+
scope: "monitors:write",
|
|
640
|
+
kind: "write",
|
|
641
|
+
sensitivity: "normal",
|
|
642
|
+
idempotency: "none",
|
|
643
|
+
ifMatch: false,
|
|
644
|
+
paged: false,
|
|
645
|
+
status: 200,
|
|
646
|
+
node: null,
|
|
647
|
+
defaults: {},
|
|
648
|
+
},
|
|
649
|
+
"maintenance.list": {
|
|
650
|
+
method: "GET",
|
|
651
|
+
path: "/v1/maintenance-windows",
|
|
652
|
+
pathParams: [],
|
|
653
|
+
scope: "monitors:read",
|
|
654
|
+
kind: "read",
|
|
655
|
+
sensitivity: "normal",
|
|
656
|
+
idempotency: "none",
|
|
657
|
+
ifMatch: false,
|
|
658
|
+
paged: true,
|
|
659
|
+
status: 200,
|
|
660
|
+
node: null,
|
|
661
|
+
defaults: {},
|
|
662
|
+
},
|
|
663
|
+
"maintenance.update": {
|
|
664
|
+
method: "PATCH",
|
|
665
|
+
path: "/v1/maintenance-windows/{window_id}",
|
|
666
|
+
pathParams: ["window_id"],
|
|
667
|
+
scope: "monitors:write",
|
|
668
|
+
kind: "write",
|
|
669
|
+
sensitivity: "normal",
|
|
670
|
+
idempotency: "none",
|
|
671
|
+
ifMatch: false,
|
|
672
|
+
paged: false,
|
|
673
|
+
status: 200,
|
|
674
|
+
node: null,
|
|
675
|
+
defaults: {},
|
|
676
|
+
},
|
|
467
677
|
"members.change_role": {
|
|
468
678
|
method: "PATCH",
|
|
469
679
|
path: "/v1/members/{user_id}",
|
|
@@ -506,6 +716,20 @@ export const OPERATIONS = {
|
|
|
506
716
|
node: null,
|
|
507
717
|
defaults: {},
|
|
508
718
|
},
|
|
719
|
+
"monitors.backtest": {
|
|
720
|
+
method: "POST",
|
|
721
|
+
path: "/v1/monitors/backtest",
|
|
722
|
+
pathParams: [],
|
|
723
|
+
scope: "monitors:read",
|
|
724
|
+
kind: "node",
|
|
725
|
+
sensitivity: "normal",
|
|
726
|
+
idempotency: "none",
|
|
727
|
+
ifMatch: false,
|
|
728
|
+
paged: false,
|
|
729
|
+
status: 200,
|
|
730
|
+
node: { path: "q/monitors/backtest" },
|
|
731
|
+
defaults: {},
|
|
732
|
+
},
|
|
509
733
|
"monitors.create": {
|
|
510
734
|
method: "POST",
|
|
511
735
|
path: "/v1/monitors",
|
|
@@ -576,6 +800,20 @@ export const OPERATIONS = {
|
|
|
576
800
|
node: null,
|
|
577
801
|
defaults: {},
|
|
578
802
|
},
|
|
803
|
+
"monitors.occurrences": {
|
|
804
|
+
method: "GET",
|
|
805
|
+
path: "/v1/monitors/{monitor_id}/occurrences",
|
|
806
|
+
pathParams: ["monitor_id"],
|
|
807
|
+
scope: "monitors:read",
|
|
808
|
+
kind: "node",
|
|
809
|
+
sensitivity: "normal",
|
|
810
|
+
idempotency: "none",
|
|
811
|
+
ifMatch: false,
|
|
812
|
+
paged: true,
|
|
813
|
+
status: 200,
|
|
814
|
+
node: { path: "q/monitors/{monitor_id}/occurrences", list: "occurrences" },
|
|
815
|
+
defaults: {},
|
|
816
|
+
},
|
|
579
817
|
"monitors.set_muted": {
|
|
580
818
|
method: "PUT",
|
|
581
819
|
path: "/v1/monitors/{monitor_id}/mute",
|
|
@@ -604,6 +842,20 @@ export const OPERATIONS = {
|
|
|
604
842
|
node: null,
|
|
605
843
|
defaults: {},
|
|
606
844
|
},
|
|
845
|
+
"monitors.signal": {
|
|
846
|
+
method: "GET",
|
|
847
|
+
path: "/v1/monitors/{monitor_id}/signal",
|
|
848
|
+
pathParams: ["monitor_id"],
|
|
849
|
+
scope: "monitors:read",
|
|
850
|
+
kind: "node",
|
|
851
|
+
sensitivity: "normal",
|
|
852
|
+
idempotency: "none",
|
|
853
|
+
ifMatch: false,
|
|
854
|
+
paged: false,
|
|
855
|
+
status: 200,
|
|
856
|
+
node: { path: "q/monitors/{monitor_id}/signal" },
|
|
857
|
+
defaults: {},
|
|
858
|
+
},
|
|
607
859
|
"monitors.update": {
|
|
608
860
|
method: "PATCH",
|
|
609
861
|
path: "/v1/monitors/{monitor_id}",
|
|
@@ -772,6 +1024,76 @@ export const OPERATIONS = {
|
|
|
772
1024
|
node: null,
|
|
773
1025
|
defaults: {},
|
|
774
1026
|
},
|
|
1027
|
+
"notification_policies.delete": {
|
|
1028
|
+
method: "DELETE",
|
|
1029
|
+
path: "/v1/notification-policies/{policy_id}",
|
|
1030
|
+
pathParams: ["policy_id"],
|
|
1031
|
+
scope: "alerts:write",
|
|
1032
|
+
kind: "write",
|
|
1033
|
+
sensitivity: "normal",
|
|
1034
|
+
idempotency: "none",
|
|
1035
|
+
ifMatch: false,
|
|
1036
|
+
paged: false,
|
|
1037
|
+
status: 200,
|
|
1038
|
+
node: null,
|
|
1039
|
+
defaults: {},
|
|
1040
|
+
},
|
|
1041
|
+
"notification_policies.list": {
|
|
1042
|
+
method: "GET",
|
|
1043
|
+
path: "/v1/notification-policies",
|
|
1044
|
+
pathParams: [],
|
|
1045
|
+
scope: "alerts:read",
|
|
1046
|
+
kind: "read",
|
|
1047
|
+
sensitivity: "normal",
|
|
1048
|
+
idempotency: "none",
|
|
1049
|
+
ifMatch: false,
|
|
1050
|
+
paged: false,
|
|
1051
|
+
status: 200,
|
|
1052
|
+
node: null,
|
|
1053
|
+
defaults: {},
|
|
1054
|
+
},
|
|
1055
|
+
"notification_policies.save": {
|
|
1056
|
+
method: "POST",
|
|
1057
|
+
path: "/v1/notification-policies",
|
|
1058
|
+
pathParams: [],
|
|
1059
|
+
scope: "alerts:write",
|
|
1060
|
+
kind: "write",
|
|
1061
|
+
sensitivity: "normal",
|
|
1062
|
+
idempotency: "optional",
|
|
1063
|
+
ifMatch: false,
|
|
1064
|
+
paged: false,
|
|
1065
|
+
status: 200,
|
|
1066
|
+
node: null,
|
|
1067
|
+
defaults: {},
|
|
1068
|
+
},
|
|
1069
|
+
"occurrences.cancel": {
|
|
1070
|
+
method: "DELETE",
|
|
1071
|
+
path: "/v1/occurrences/{monitor_slug}/{occurrence_id}",
|
|
1072
|
+
pathParams: ["monitor_slug", "occurrence_id"],
|
|
1073
|
+
scope: "monitors:write",
|
|
1074
|
+
kind: "node",
|
|
1075
|
+
sensitivity: "normal",
|
|
1076
|
+
idempotency: "none",
|
|
1077
|
+
ifMatch: false,
|
|
1078
|
+
paged: false,
|
|
1079
|
+
status: 200,
|
|
1080
|
+
node: { path: "w/monitors/occurrences/cancel" },
|
|
1081
|
+
defaults: {},
|
|
1082
|
+
},
|
|
1083
|
+
"occurrences.create": {
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
path: "/v1/occurrences",
|
|
1086
|
+
pathParams: [],
|
|
1087
|
+
scope: "monitors:write",
|
|
1088
|
+
kind: "node",
|
|
1089
|
+
sensitivity: "normal",
|
|
1090
|
+
idempotency: "none",
|
|
1091
|
+
ifMatch: false,
|
|
1092
|
+
paged: false,
|
|
1093
|
+
status: 200,
|
|
1094
|
+
node: { path: "w/monitors/occurrences" },
|
|
1095
|
+
defaults: {},
|
|
1096
|
+
},
|
|
775
1097
|
"ping_tokens.reset": {
|
|
776
1098
|
method: "POST",
|
|
777
1099
|
path: "/v1/monitors/{monitor_id}/ping-tokens/reset",
|
|
@@ -814,6 +1136,34 @@ export const OPERATIONS = {
|
|
|
814
1136
|
node: null,
|
|
815
1137
|
defaults: {},
|
|
816
1138
|
},
|
|
1139
|
+
"privacy.get": {
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
path: "/v1/projects/{project_id}/privacy",
|
|
1142
|
+
pathParams: ["project_id"],
|
|
1143
|
+
scope: "projects:read",
|
|
1144
|
+
kind: "read",
|
|
1145
|
+
sensitivity: "normal",
|
|
1146
|
+
idempotency: "none",
|
|
1147
|
+
ifMatch: false,
|
|
1148
|
+
paged: false,
|
|
1149
|
+
status: 200,
|
|
1150
|
+
node: null,
|
|
1151
|
+
defaults: {},
|
|
1152
|
+
},
|
|
1153
|
+
"privacy.set": {
|
|
1154
|
+
method: "PUT",
|
|
1155
|
+
path: "/v1/projects/{project_id}/privacy",
|
|
1156
|
+
pathParams: ["project_id"],
|
|
1157
|
+
scope: "privacy:write",
|
|
1158
|
+
kind: "write",
|
|
1159
|
+
sensitivity: "approval",
|
|
1160
|
+
idempotency: "optional",
|
|
1161
|
+
ifMatch: false,
|
|
1162
|
+
paged: false,
|
|
1163
|
+
status: 200,
|
|
1164
|
+
node: null,
|
|
1165
|
+
defaults: {},
|
|
1166
|
+
},
|
|
817
1167
|
"project_keys.create": {
|
|
818
1168
|
method: "POST",
|
|
819
1169
|
path: "/v1/projects/{project_id}/keys",
|
|
@@ -974,7 +1324,7 @@ export const OPERATIONS = {
|
|
|
974
1324
|
pathParams: ["project_id", "group"],
|
|
975
1325
|
scope: "privacy:write",
|
|
976
1326
|
kind: "write",
|
|
977
|
-
sensitivity: "
|
|
1327
|
+
sensitivity: "approval",
|
|
978
1328
|
idempotency: "none",
|
|
979
1329
|
ifMatch: false,
|
|
980
1330
|
paged: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belvador/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Typed client for the Belvador API (api.belvador.dev, OpenAPI 3.1): every operation by operationId, problem+json errors, retries, and node reads straight from the edge with short-lived tickets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Belvador (https://belvador.dev)",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
],
|
|
16
16
|
"type": "module",
|
|
17
17
|
"sideEffects": false,
|
|
18
|
+
"bin": {
|
|
19
|
+
"belvador-api": "dist/cli.js"
|
|
20
|
+
},
|
|
18
21
|
"main": "./dist/index.js",
|
|
19
22
|
"types": "./dist/index.d.ts",
|
|
20
23
|
"exports": {
|