infrawrench-sdk 1.98.0 → 1.100.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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +1756 -252
- data/lib/infrawrench/sdk.rb +2 -2
- data/lib/infrawrench/transport.rb +2 -2
- data/lib/infrawrench/version.rb +3 -3
- data/lib/infrawrench-sdk.rb +2 -2
- data/sig/infrawrench/sdk.rbs +1475 -1004
- metadata +6 -6
data/sig/infrawrench/sdk.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# infrawrench-sdk v1.
|
|
1
|
+
# infrawrench-sdk v1.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
2
2
|
# https://github.com/Infrawrench/Infrawrench
|
|
3
3
|
#
|
|
4
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -138,22 +138,18 @@ module Infrawrench
|
|
|
138
138
|
"admin" => bool | nil,
|
|
139
139
|
"mfa" => bool | nil,
|
|
140
140
|
"parent" => String | nil,
|
|
141
|
-
"owner" => access_principal_owner,
|
|
141
|
+
"owner" => access_principal_owner | nil,
|
|
142
142
|
"revokeActionId" => String | nil
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
# Who owns the resource, from the resource-ownership record. Null when nobody
|
|
146
|
-
# is named.
|
|
147
|
-
#
|
|
148
145
|
# Spec schema: `AccessPrincipalOwner`.
|
|
149
146
|
type access_principal_owner = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
| nil
|
|
147
|
+
"userId" => String | nil,
|
|
148
|
+
"displayName" => String,
|
|
149
|
+
"isLabel" => bool,
|
|
150
|
+
"ticketUrl" => String | nil,
|
|
151
|
+
"purpose" => String | nil
|
|
152
|
+
}
|
|
157
153
|
|
|
158
154
|
# Spec schema: `AccessRequest`.
|
|
159
155
|
type access_request = {
|
|
@@ -486,7 +482,7 @@ module Infrawrench
|
|
|
486
482
|
?"surface" => "terminal" | "t3-code" | "nibblets",
|
|
487
483
|
?"serviceAccountIds" => Array[String],
|
|
488
484
|
?"t3Access" => "t3-connect" | "tailscale",
|
|
489
|
-
?"t3Policy" =>
|
|
485
|
+
?"t3Policy" => untyped,
|
|
490
486
|
?"t3PolicyRestartPending" => bool,
|
|
491
487
|
?"serviceInstalls" => Array[agent_service_install],
|
|
492
488
|
?"agentLinkId" => String | nil,
|
|
@@ -500,17 +496,16 @@ module Infrawrench
|
|
|
500
496
|
|
|
501
497
|
# Spec schema: `AgentSettings`.
|
|
502
498
|
type agent_settings = {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
| nil
|
|
499
|
+
"accountId" => String,
|
|
500
|
+
"pluginId" => String,
|
|
501
|
+
"resourceTypeId" => String,
|
|
502
|
+
"tool" => "codex" | "claude-code",
|
|
503
|
+
?"surface" => "terminal" | "t3-code" | "nibblets",
|
|
504
|
+
"fields" => Hash[String, String],
|
|
505
|
+
?"serviceAccountIds" => Array[String],
|
|
506
|
+
?"t3Access" => "t3-connect" | "tailscale",
|
|
507
|
+
?"t3Policy" => untyped
|
|
508
|
+
}
|
|
514
509
|
|
|
515
510
|
# Spec schema: `AgentT3PolicyApplyRequest`.
|
|
516
511
|
type agent_t3_policy_apply_request = { "restart" => bool, ?"sessionId" => String }
|
|
@@ -776,8 +771,8 @@ module Infrawrench
|
|
|
776
771
|
"conditions" => Array[alert_condition],
|
|
777
772
|
"destinations" => Array[alert_destination],
|
|
778
773
|
"continueOnMatch" => bool,
|
|
779
|
-
"quietHours" => quiet_hours,
|
|
780
|
-
"escalation" => escalation_policy
|
|
774
|
+
"quietHours" => quiet_hours | nil,
|
|
775
|
+
"escalation" => escalation_policy | nil
|
|
781
776
|
}
|
|
782
777
|
|
|
783
778
|
# Spec schema: `AlertRuleInput`.
|
|
@@ -788,8 +783,8 @@ module Infrawrench
|
|
|
788
783
|
?"conditions" => Array[alert_condition],
|
|
789
784
|
?"destinations" => Array[alert_destination],
|
|
790
785
|
?"continueOnMatch" => bool,
|
|
791
|
-
?"quietHours" => quiet_hours,
|
|
792
|
-
?"escalation" => escalation_policy
|
|
786
|
+
?"quietHours" => quiet_hours | nil,
|
|
787
|
+
?"escalation" => escalation_policy | nil
|
|
793
788
|
}
|
|
794
789
|
|
|
795
790
|
# Spec schema: `AlertRulesResponse`.
|
|
@@ -852,9 +847,6 @@ module Infrawrench
|
|
|
852
847
|
# Spec schema: `AllocationRuleInput`.
|
|
853
848
|
type allocation_rule_input = { "costCentreId" => String, "priority" => Integer, "match" => allocation_rule_match }
|
|
854
849
|
|
|
855
|
-
# All set fields must match (AND). A rule with no fields is a catch-all that
|
|
856
|
-
# claims everything reaching it.
|
|
857
|
-
#
|
|
858
850
|
# Spec schema: `AllocationRuleMatch`.
|
|
859
851
|
type allocation_rule_match = {
|
|
860
852
|
?"tagKey" => String,
|
|
@@ -926,7 +918,7 @@ module Infrawrench
|
|
|
926
918
|
"action" => String,
|
|
927
919
|
"entityType" => String,
|
|
928
920
|
"entityId" => String,
|
|
929
|
-
"metadata" => json_object
|
|
921
|
+
"metadata" => json_object | nil,
|
|
930
922
|
"ipAddress" => String | nil,
|
|
931
923
|
"createdAt" => String,
|
|
932
924
|
"userName" => String | nil,
|
|
@@ -953,7 +945,7 @@ module Infrawrench
|
|
|
953
945
|
# JSON text.
|
|
954
946
|
#
|
|
955
947
|
# Spec schema: `AwsPricingCell`.
|
|
956
|
-
type aws_pricing_cell = String | Numeric | bool | nil
|
|
948
|
+
type aws_pricing_cell = String | Numeric | bool | nil
|
|
957
949
|
|
|
958
950
|
# Spec schema: `AwsPricingQueryRequest`.
|
|
959
951
|
type aws_pricing_query_request = { "sql" => String, ?"maxRows" => Integer }
|
|
@@ -1171,7 +1163,7 @@ module Infrawrench
|
|
|
1171
1163
|
"numberIncludesYear" => bool,
|
|
1172
1164
|
"numberStart" => Integer,
|
|
1173
1165
|
"taxRates" => Array[billing_profile_tax_rate],
|
|
1174
|
-
"bank" => billing_profile_bank,
|
|
1166
|
+
"bank" => billing_profile_bank | nil,
|
|
1175
1167
|
"footer" => String | nil,
|
|
1176
1168
|
"logo" => String | nil,
|
|
1177
1169
|
"managedAccountIds" => Array[String],
|
|
@@ -1182,27 +1174,25 @@ module Infrawrench
|
|
|
1182
1174
|
|
|
1183
1175
|
# Spec schema: `BillingProfileBank`.
|
|
1184
1176
|
type billing_profile_bank = {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
| nil
|
|
1177
|
+
"accountName" => String | nil,
|
|
1178
|
+
"bankName" => String | nil,
|
|
1179
|
+
"iban" => String | nil,
|
|
1180
|
+
"bic" => String | nil,
|
|
1181
|
+
"accountNumber" => String | nil,
|
|
1182
|
+
"routingNumber" => String | nil,
|
|
1183
|
+
"instructions" => String | nil
|
|
1184
|
+
}
|
|
1194
1185
|
|
|
1195
1186
|
# Spec schema: `BillingProfileBankInput`.
|
|
1196
1187
|
type billing_profile_bank_input = {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
| nil
|
|
1188
|
+
?"accountName" => String | nil,
|
|
1189
|
+
?"bankName" => String | nil,
|
|
1190
|
+
?"iban" => String | nil,
|
|
1191
|
+
?"bic" => String | nil,
|
|
1192
|
+
?"accountNumber" => String | nil,
|
|
1193
|
+
?"routingNumber" => String | nil,
|
|
1194
|
+
?"instructions" => String | nil
|
|
1195
|
+
}
|
|
1206
1196
|
|
|
1207
1197
|
# Spec schema: `BillingProfileInput`.
|
|
1208
1198
|
type billing_profile_input = {
|
|
@@ -1219,7 +1209,7 @@ module Infrawrench
|
|
|
1219
1209
|
?"numberIncludesYear" => bool,
|
|
1220
1210
|
?"numberStart" => Integer,
|
|
1221
1211
|
?"taxRates" => Array[billing_profile_tax_rate],
|
|
1222
|
-
?"bank" => billing_profile_bank_input,
|
|
1212
|
+
?"bank" => billing_profile_bank_input | nil,
|
|
1223
1213
|
?"footer" => String | nil,
|
|
1224
1214
|
?"logo" => String | nil
|
|
1225
1215
|
}
|
|
@@ -1270,9 +1260,6 @@ module Infrawrench
|
|
|
1270
1260
|
?"managedAccountIds" => Array[String]
|
|
1271
1261
|
}
|
|
1272
1262
|
|
|
1273
|
-
# All set fields must match (AND); a rule with no fields matches all spend.
|
|
1274
|
-
# The same vocabulary allocation rules use, plus chargeType.
|
|
1275
|
-
#
|
|
1276
1263
|
# Spec schema: `BillingRuleMatch`.
|
|
1277
1264
|
type billing_rule_match = {
|
|
1278
1265
|
?"tagKey" => String,
|
|
@@ -1299,11 +1286,15 @@ module Infrawrench
|
|
|
1299
1286
|
type billing_rule_tier = { "upTo" => Numeric | nil, "percent" => Numeric }
|
|
1300
1287
|
|
|
1301
1288
|
# Spec schema: `BillingStatus`.
|
|
1302
|
-
type billing_status = {
|
|
1289
|
+
type billing_status = {
|
|
1290
|
+
"complimentary" => bool,
|
|
1291
|
+
"subscription" => subscription | nil,
|
|
1292
|
+
"capacity" => capacity_status
|
|
1293
|
+
}
|
|
1303
1294
|
|
|
1304
1295
|
# Spec schema: `BlastRadiusDependant`.
|
|
1305
1296
|
type blast_radius_dependant = {
|
|
1306
|
-
"node" => blast_radius_node
|
|
1297
|
+
"node" => blast_radius_node,
|
|
1307
1298
|
"depth" => Integer,
|
|
1308
1299
|
?"via" => {
|
|
1309
1300
|
"fieldKey" => String,
|
|
@@ -1323,7 +1314,7 @@ module Infrawrench
|
|
|
1323
1314
|
"estimatedCost" => Numeric,
|
|
1324
1315
|
"currency" => String,
|
|
1325
1316
|
"days" => Integer,
|
|
1326
|
-
"resourceId" => resource_id
|
|
1317
|
+
"resourceId" => resource_id | nil
|
|
1327
1318
|
}
|
|
1328
1319
|
|
|
1329
1320
|
# Spec schema: `BlastRadiusGap`.
|
|
@@ -1336,21 +1327,18 @@ module Infrawrench
|
|
|
1336
1327
|
"reason" => String
|
|
1337
1328
|
}
|
|
1338
1329
|
|
|
1339
|
-
# The resource itself, when it participates in the dependency graph.
|
|
1340
|
-
#
|
|
1341
1330
|
# Spec schema: `BlastRadiusNode`.
|
|
1342
1331
|
type blast_radius_node = {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
| nil
|
|
1332
|
+
"id" => resource_id,
|
|
1333
|
+
"displayName" => String,
|
|
1334
|
+
"pluginId" => String,
|
|
1335
|
+
"pluginDisplayName" => String,
|
|
1336
|
+
"pluginLogoSvg" => String,
|
|
1337
|
+
"resourceTypeId" => String,
|
|
1338
|
+
"resourceTypeLabel" => String,
|
|
1339
|
+
"accountId" => String,
|
|
1340
|
+
"accountName" => String
|
|
1341
|
+
}
|
|
1354
1342
|
|
|
1355
1343
|
# Spec schema: `BlastRadiusReference`.
|
|
1356
1344
|
type blast_radius_reference = {
|
|
@@ -1373,7 +1361,7 @@ module Infrawrench
|
|
|
1373
1361
|
# Spec schema: `BlastRadiusReport`.
|
|
1374
1362
|
type blast_radius_report = {
|
|
1375
1363
|
"resourceId" => resource_id,
|
|
1376
|
-
"resource" => blast_radius_node,
|
|
1364
|
+
"resource" => blast_radius_node | nil,
|
|
1377
1365
|
"dependants" => Array[blast_radius_dependant],
|
|
1378
1366
|
"directCount" => Integer,
|
|
1379
1367
|
"transitiveCount" => Integer,
|
|
@@ -1398,26 +1386,39 @@ module Infrawrench
|
|
|
1398
1386
|
"periodEnd" => String | nil,
|
|
1399
1387
|
"actualUsage" => Numeric | nil,
|
|
1400
1388
|
"forecastUsage" => Numeric | nil,
|
|
1401
|
-
"note" => budget_alert_note
|
|
1389
|
+
"note" => budget_alert_note | nil
|
|
1402
1390
|
}
|
|
1403
1391
|
|
|
1404
1392
|
# Somebody's explanation of this firing. Null while there is none.
|
|
1405
1393
|
#
|
|
1406
1394
|
# Spec schema: `BudgetAlertNote`.
|
|
1407
1395
|
type budget_alert_note = {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
| nil
|
|
1396
|
+
"text" => String,
|
|
1397
|
+
"notedAt" => String,
|
|
1398
|
+
"notedByUserId" => String | nil,
|
|
1399
|
+
"notedByName" => String | nil,
|
|
1400
|
+
"annotationId" => String | nil
|
|
1401
|
+
}
|
|
1415
1402
|
|
|
1416
1403
|
# Spec schema: `BudgetAlertNoteInput`.
|
|
1417
1404
|
type budget_alert_note_input = { "note" => String }
|
|
1418
1405
|
|
|
1419
1406
|
# Spec schema: `BudgetAlertNoteResult`.
|
|
1420
|
-
type budget_alert_note_result =
|
|
1407
|
+
type budget_alert_note_result = {
|
|
1408
|
+
"id" => String,
|
|
1409
|
+
"month" => String,
|
|
1410
|
+
"thresholdType" => "actual" | "forecast",
|
|
1411
|
+
"thresholdPercent" => Integer,
|
|
1412
|
+
"actualAmountCents" => Integer,
|
|
1413
|
+
"forecastAmountCents" => Integer | nil,
|
|
1414
|
+
"triggeredAt" => String,
|
|
1415
|
+
"periodStart" => String | nil,
|
|
1416
|
+
"periodEnd" => String | nil,
|
|
1417
|
+
"actualUsage" => Numeric | nil,
|
|
1418
|
+
"forecastUsage" => Numeric | nil,
|
|
1419
|
+
"note" => budget_alert_note | nil,
|
|
1420
|
+
"followUp" => { "slack" => Integer, "msTeams" => Integer }
|
|
1421
|
+
}
|
|
1421
1422
|
|
|
1422
1423
|
# The basis `actualCents` and `forecastCents` were measured on.
|
|
1423
1424
|
#
|
|
@@ -1426,15 +1427,7 @@ module Infrawrench
|
|
|
1426
1427
|
|
|
1427
1428
|
# Spec schema: `BudgetCostFilter`.
|
|
1428
1429
|
type budget_cost_filter = {
|
|
1429
|
-
"dimension" =>
|
|
1430
|
-
| "account"
|
|
1431
|
-
| "service"
|
|
1432
|
-
| "region"
|
|
1433
|
-
| "resource"
|
|
1434
|
-
| "tag"
|
|
1435
|
-
| "charge_type"
|
|
1436
|
-
| "commitment"
|
|
1437
|
-
| "virtual_tag",
|
|
1430
|
+
"dimension" => cost_dimension,
|
|
1438
1431
|
"op" => cost_filter_operator,
|
|
1439
1432
|
"values" => Array[String],
|
|
1440
1433
|
?"tagKey" => String
|
|
@@ -1457,7 +1450,7 @@ module Infrawrench
|
|
|
1457
1450
|
"savedFilterId" => String | nil,
|
|
1458
1451
|
"scenarioModelId" => String | nil,
|
|
1459
1452
|
"thresholds" => Array[budget_threshold],
|
|
1460
|
-
"costBasis" => budget_cost_basis
|
|
1453
|
+
"costBasis" => budget_cost_basis,
|
|
1461
1454
|
"useAdjustedSpend" => bool,
|
|
1462
1455
|
"emailRecipients" => alert_email_recipients,
|
|
1463
1456
|
"createdByUserId" => String | nil,
|
|
@@ -1467,7 +1460,7 @@ module Infrawrench
|
|
|
1467
1460
|
"measure" => budget_measure,
|
|
1468
1461
|
"usageUnit" => String | nil,
|
|
1469
1462
|
"usageAmount" => Numeric | nil,
|
|
1470
|
-
"period" => budget_period,
|
|
1463
|
+
"period" => budget_period | nil,
|
|
1471
1464
|
"parentBudgetId" => String | nil
|
|
1472
1465
|
}
|
|
1473
1466
|
|
|
@@ -1487,12 +1480,12 @@ module Infrawrench
|
|
|
1487
1480
|
?"savedFilterId" => String,
|
|
1488
1481
|
?"scenarioModelId" => String,
|
|
1489
1482
|
"thresholds" => Array[budget_threshold],
|
|
1490
|
-
?"costBasis" => budget_cost_basis
|
|
1483
|
+
?"costBasis" => budget_cost_basis,
|
|
1491
1484
|
?"useAdjustedSpend" => bool,
|
|
1492
1485
|
?"measure" => budget_measure,
|
|
1493
1486
|
?"usageUnit" => String,
|
|
1494
1487
|
?"usageAmount" => Numeric,
|
|
1495
|
-
?"period" => budget_period
|
|
1488
|
+
?"period" => budget_period,
|
|
1496
1489
|
?"parentBudgetId" => String,
|
|
1497
1490
|
?"emailRecipients" => alert_email_recipients
|
|
1498
1491
|
}
|
|
@@ -1515,7 +1508,7 @@ module Infrawrench
|
|
|
1515
1508
|
# measured.
|
|
1516
1509
|
#
|
|
1517
1510
|
# Spec schema: `BudgetPeriod`.
|
|
1518
|
-
type budget_period = budget_recurring_period | budget_explicit_periods
|
|
1511
|
+
type budget_period = budget_recurring_period | budget_explicit_periods
|
|
1519
1512
|
|
|
1520
1513
|
# Spec schema: `BudgetRecurringPeriod`.
|
|
1521
1514
|
type budget_recurring_period = {
|
|
@@ -1554,13 +1547,13 @@ module Infrawrench
|
|
|
1554
1547
|
"thresholdType" => "actual" | "forecast",
|
|
1555
1548
|
"thresholdPercent" => Integer,
|
|
1556
1549
|
"triggeredAt" => String,
|
|
1557
|
-
?"note" => budget_alert_note
|
|
1550
|
+
?"note" => budget_alert_note | nil
|
|
1558
1551
|
}],
|
|
1559
1552
|
"placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }],
|
|
1560
1553
|
"measure" => budget_measure,
|
|
1561
1554
|
"usageUnit" => String | nil,
|
|
1562
1555
|
"usageAmount" => Numeric | nil,
|
|
1563
|
-
"period" => budget_period,
|
|
1556
|
+
"period" => budget_period | nil,
|
|
1564
1557
|
"parentBudgetId" => String | nil,
|
|
1565
1558
|
"periodStart" => String | nil,
|
|
1566
1559
|
"periodEnd" => String | nil,
|
|
@@ -1588,15 +1581,12 @@ module Infrawrench
|
|
|
1588
1581
|
"createdByUserId" => String | nil,
|
|
1589
1582
|
"createdAt" => String,
|
|
1590
1583
|
"updatedAt" => String,
|
|
1591
|
-
"coverage" => business_metric_coverage,
|
|
1592
|
-
"importer" => business_metric_importer_summary
|
|
1584
|
+
"coverage" => business_metric_coverage | nil,
|
|
1585
|
+
"importer" => business_metric_importer_summary | nil
|
|
1593
1586
|
}
|
|
1594
1587
|
|
|
1595
|
-
# Null when the metric has no values at all; not an error, but every unit-cost
|
|
1596
|
-
# chart drawn from it is one continuous gap.
|
|
1597
|
-
#
|
|
1598
1588
|
# Spec schema: `BusinessMetricCoverage`.
|
|
1599
|
-
type business_metric_coverage = { "firstDay" => String, "lastDay" => String, "reportedDays" => Integer }
|
|
1589
|
+
type business_metric_coverage = { "firstDay" => String, "lastDay" => String, "reportedDays" => Integer }
|
|
1600
1590
|
|
|
1601
1591
|
# Spec schema: `BusinessMetricForecastValue`.
|
|
1602
1592
|
type business_metric_forecast_value = { "day" => String, "value" => Numeric, "updatedAt" => String }
|
|
@@ -1656,28 +1646,27 @@ module Infrawrench
|
|
|
1656
1646
|
|
|
1657
1647
|
# Spec schema: `BusinessMetricImporter`.
|
|
1658
1648
|
type business_metric_importer = {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
| nil
|
|
1649
|
+
"id" => String,
|
|
1650
|
+
"metricId" => String,
|
|
1651
|
+
"accountId" => String,
|
|
1652
|
+
"accountName" => String | nil,
|
|
1653
|
+
"pluginId" => String | nil,
|
|
1654
|
+
"sourceLabel" => String | nil,
|
|
1655
|
+
"params" => Hash[String, String],
|
|
1656
|
+
"schedule" => business_metric_import_schedule,
|
|
1657
|
+
"backfillDays" => Integer,
|
|
1658
|
+
"timezone" => String,
|
|
1659
|
+
"aggregation" => business_metric_import_aggregation,
|
|
1660
|
+
"enabled" => bool,
|
|
1661
|
+
"nextRunAt" => String | nil,
|
|
1662
|
+
"lastRunAt" => String | nil,
|
|
1663
|
+
"lastStatus" => "success" | "error" | nil,
|
|
1664
|
+
"lastError" => String | nil,
|
|
1665
|
+
"consecutiveFailures" => Integer,
|
|
1666
|
+
"createdByUserId" => String | nil,
|
|
1667
|
+
"createdAt" => String,
|
|
1668
|
+
"updatedAt" => String
|
|
1669
|
+
}
|
|
1681
1670
|
|
|
1682
1671
|
# Spec schema: `BusinessMetricImporterInput`.
|
|
1683
1672
|
type business_metric_importer_input = {
|
|
@@ -1686,25 +1675,21 @@ module Infrawrench
|
|
|
1686
1675
|
?"schedule" => business_metric_import_schedule & untyped,
|
|
1687
1676
|
?"backfillDays" => Integer,
|
|
1688
1677
|
?"timezone" => String,
|
|
1689
|
-
?"aggregation" => business_metric_import_aggregation,
|
|
1678
|
+
?"aggregation" => business_metric_import_aggregation & untyped,
|
|
1690
1679
|
?"enabled" => bool
|
|
1691
1680
|
}
|
|
1692
1681
|
|
|
1693
|
-
# The scheduled importer feeding this metric, or null when its values are only
|
|
1694
|
-
# pushed.
|
|
1695
|
-
#
|
|
1696
1682
|
# Spec schema: `BusinessMetricImporterSummary`.
|
|
1697
1683
|
type business_metric_importer_summary = {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
| nil
|
|
1684
|
+
"accountId" => String,
|
|
1685
|
+
"accountName" => String | nil,
|
|
1686
|
+
"pluginId" => String | nil,
|
|
1687
|
+
"sourceLabel" => String | nil,
|
|
1688
|
+
"enabled" => bool,
|
|
1689
|
+
"lastRunAt" => String | nil,
|
|
1690
|
+
"lastStatus" => "success" | "error" | nil,
|
|
1691
|
+
"lastError" => String | nil
|
|
1692
|
+
}
|
|
1708
1693
|
|
|
1709
1694
|
# Spec schema: `BusinessMetricInput`.
|
|
1710
1695
|
type business_metric_input = {
|
|
@@ -1741,22 +1726,7 @@ module Infrawrench
|
|
|
1741
1726
|
"key" => String,
|
|
1742
1727
|
"values" => Array[String],
|
|
1743
1728
|
"truncated" => bool,
|
|
1744
|
-
"mapping" => business_metric_label_target
|
|
1745
|
-
& ({
|
|
1746
|
-
"kind" => "dimension",
|
|
1747
|
-
"dimension" => "provider"
|
|
1748
|
-
| "account"
|
|
1749
|
-
| "service"
|
|
1750
|
-
| "region"
|
|
1751
|
-
| "resource"
|
|
1752
|
-
| "tag"
|
|
1753
|
-
| "charge_type"
|
|
1754
|
-
| "commitment"
|
|
1755
|
-
| "virtual_tag",
|
|
1756
|
-
?"tagKey" => String
|
|
1757
|
-
}
|
|
1758
|
-
| { "kind" => "cost_centre" }
|
|
1759
|
-
| nil)
|
|
1729
|
+
"mapping" => business_metric_label_target | nil
|
|
1760
1730
|
}
|
|
1761
1731
|
|
|
1762
1732
|
# Where a label's values live on the cost side. A `dimension` target matches
|
|
@@ -1764,19 +1734,7 @@ module Infrawrench
|
|
|
1764
1734
|
# id or, case-insensitively, by name.
|
|
1765
1735
|
#
|
|
1766
1736
|
# Spec schema: `BusinessMetricLabelTarget`.
|
|
1767
|
-
type business_metric_label_target = {
|
|
1768
|
-
"kind" => "dimension",
|
|
1769
|
-
"dimension" => "provider"
|
|
1770
|
-
| "account"
|
|
1771
|
-
| "service"
|
|
1772
|
-
| "region"
|
|
1773
|
-
| "resource"
|
|
1774
|
-
| "tag"
|
|
1775
|
-
| "charge_type"
|
|
1776
|
-
| "commitment"
|
|
1777
|
-
| "virtual_tag",
|
|
1778
|
-
?"tagKey" => String
|
|
1779
|
-
}
|
|
1737
|
+
type business_metric_label_target = { "kind" => "dimension", "dimension" => cost_dimension, ?"tagKey" => String }
|
|
1780
1738
|
| { "kind" => "cost_centre" }
|
|
1781
1739
|
|
|
1782
1740
|
# A value's labels, e.g. `{ "customer": "acme", "plan": "pro" }`. At most 8,
|
|
@@ -1790,15 +1748,7 @@ module Infrawrench
|
|
|
1790
1748
|
|
|
1791
1749
|
# Spec schema: `BusinessMetricScopeTerm`.
|
|
1792
1750
|
type business_metric_scope_term = {
|
|
1793
|
-
"dimension" =>
|
|
1794
|
-
| "account"
|
|
1795
|
-
| "service"
|
|
1796
|
-
| "region"
|
|
1797
|
-
| "resource"
|
|
1798
|
-
| "tag"
|
|
1799
|
-
| "charge_type"
|
|
1800
|
-
| "commitment"
|
|
1801
|
-
| "virtual_tag",
|
|
1751
|
+
"dimension" => cost_dimension,
|
|
1802
1752
|
"op" => cost_filter_operator,
|
|
1803
1753
|
"values" => Array[String],
|
|
1804
1754
|
?"tagKey" => String
|
|
@@ -1985,22 +1935,19 @@ module Infrawrench
|
|
|
1985
1935
|
"generatedAt" => String
|
|
1986
1936
|
}
|
|
1987
1937
|
|
|
1988
|
-
# Monthly (730 h) footprint, or null.
|
|
1989
|
-
#
|
|
1990
1938
|
# Spec schema: `CarbonFootprint`.
|
|
1991
1939
|
type carbon_footprint = {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
| nil
|
|
1940
|
+
"vcpus" => Numeric,
|
|
1941
|
+
"count" => Integer,
|
|
1942
|
+
"region" => String,
|
|
1943
|
+
"grid" => String,
|
|
1944
|
+
"gridIntensity" => Numeric,
|
|
1945
|
+
"gridZone" => String,
|
|
1946
|
+
"gridBasis" => "ccf" | "ember-2024",
|
|
1947
|
+
"pue" => Numeric,
|
|
1948
|
+
"kwh" => Numeric,
|
|
1949
|
+
"kgCo2e" => Numeric
|
|
1950
|
+
}
|
|
2004
1951
|
|
|
2005
1952
|
# Spec schema: `CarbonGroup`.
|
|
2006
1953
|
type carbon_group = {
|
|
@@ -2061,8 +2008,8 @@ module Infrawrench
|
|
|
2061
2008
|
"windowDays" => Integer,
|
|
2062
2009
|
"effectiveWindowDays" => Integer,
|
|
2063
2010
|
"eventDay" => String,
|
|
2064
|
-
"before" => change_cost_impact_window,
|
|
2065
|
-
"after" => change_cost_impact_window,
|
|
2011
|
+
"before" => change_cost_impact_window | nil,
|
|
2012
|
+
"after" => change_cost_impact_window | nil,
|
|
2066
2013
|
"series" => Array[change_cost_impact_series],
|
|
2067
2014
|
"confidence" => change_cost_impact_confidence,
|
|
2068
2015
|
"reasons" => Array[change_cost_impact_reason],
|
|
@@ -2127,7 +2074,7 @@ module Infrawrench
|
|
|
2127
2074
|
type change_cost_impact_status = "measured" | "insufficient_data" | "unknown"
|
|
2128
2075
|
|
|
2129
2076
|
# Spec schema: `ChangeCostImpactWindow`.
|
|
2130
|
-
type change_cost_impact_window = { "from" => String, "to" => String }
|
|
2077
|
+
type change_cost_impact_window = { "from" => String, "to" => String }
|
|
2131
2078
|
|
|
2132
2079
|
# Spec schema: `ChangeCostImpactsRequest`.
|
|
2133
2080
|
type change_cost_impacts_request = { "changeIds" => Array[String], ?"windowDays" => Integer, ?"costBasis" => change_cost_basis }
|
|
@@ -2166,7 +2113,7 @@ module Infrawrench
|
|
|
2166
2113
|
type change_freeze_input = { "name" => String, ?"reason" => String, ?"startsAt" => String, ?"endsAt" => String }
|
|
2167
2114
|
|
|
2168
2115
|
# Spec schema: `ChangeFreezeStatus`.
|
|
2169
|
-
type change_freeze_status = { "freeze" => change_freeze
|
|
2116
|
+
type change_freeze_status = { "freeze" => change_freeze | nil }
|
|
2170
2117
|
|
|
2171
2118
|
# Spec schema: `ChatAskQuestionAnswer`.
|
|
2172
2119
|
type chat_ask_question_answer = { "questionId" => String, ?"optionId" => String, ?"text" => String }
|
|
@@ -2177,9 +2124,145 @@ module Infrawrench
|
|
|
2177
2124
|
# Spec schema: `ChatAskQuestionResult`.
|
|
2178
2125
|
type chat_ask_question_result = { "ok" => bool, "allResolved" => bool }
|
|
2179
2126
|
|
|
2127
|
+
# Spec schema: `ChatContentBlock`.
|
|
2128
|
+
type chat_content_block = {
|
|
2129
|
+
"type" => "text",
|
|
2130
|
+
"text" => String,
|
|
2131
|
+
?"signature" => String,
|
|
2132
|
+
?"provider" => "anthropic" | "gemini"
|
|
2133
|
+
}
|
|
2134
|
+
| {
|
|
2135
|
+
"type" => "thinking",
|
|
2136
|
+
"thinking" => String,
|
|
2137
|
+
"signature" => String,
|
|
2138
|
+
?"provider" => "anthropic" | "gemini"
|
|
2139
|
+
}
|
|
2140
|
+
| {
|
|
2141
|
+
"type" => "tool_use",
|
|
2142
|
+
"id" => String,
|
|
2143
|
+
"name" => String,
|
|
2144
|
+
"input" => Hash[String, untyped],
|
|
2145
|
+
?"signature" => String,
|
|
2146
|
+
?"provider" => "anthropic" | "gemini"
|
|
2147
|
+
}
|
|
2148
|
+
| {
|
|
2149
|
+
"type" => "tool_result",
|
|
2150
|
+
"tool_use_id" => String,
|
|
2151
|
+
"content" => String | Array[{ "type" => "text", "text" => String }],
|
|
2152
|
+
?"is_error" => bool
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
# Spec schema: `ChatConversation`.
|
|
2156
|
+
type chat_conversation = {
|
|
2157
|
+
"id" => String,
|
|
2158
|
+
"organizationId" => String,
|
|
2159
|
+
"userId" => String | nil,
|
|
2160
|
+
"costCanvasId" => String | nil,
|
|
2161
|
+
"title" => String,
|
|
2162
|
+
"model" => String,
|
|
2163
|
+
"systemPrompt" => String | nil,
|
|
2164
|
+
"archivedAt" => String | nil,
|
|
2165
|
+
"createdAt" => String,
|
|
2166
|
+
"updatedAt" => String
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
# Spec schema: `ChatConversationCreateInput`.
|
|
2170
|
+
type chat_conversation_create_input = {
|
|
2171
|
+
?"model" => "gemini-3.7-flash" | "claude-sonnet-5" | "claude-opus-5" | "claude-haiku-4-5",
|
|
2172
|
+
?"title" => String,
|
|
2173
|
+
?"systemPrompt" => String
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
# Spec schema: `ChatConversationCreated`.
|
|
2177
|
+
type chat_conversation_created = { "id" => String }
|
|
2178
|
+
|
|
2179
|
+
# Spec schema: `ChatConversationDetail`.
|
|
2180
|
+
type chat_conversation_detail = {
|
|
2181
|
+
"conversation" => chat_conversation,
|
|
2182
|
+
"messages" => Array[chat_message],
|
|
2183
|
+
"pendingActions" => Array[chat_pending_action],
|
|
2184
|
+
"pendingSecretRequests" => Array[chat_pending_secret_request]
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
# Spec schema: `ChatConversationList`.
|
|
2188
|
+
type chat_conversation_list = { "conversations" => Array[chat_conversation_summary] }
|
|
2189
|
+
|
|
2190
|
+
# Spec schema: `ChatConversationModelInput`.
|
|
2191
|
+
type chat_conversation_model_input = { "model" => "gemini-3.7-flash" | "claude-sonnet-5" | "claude-opus-5" | "claude-haiku-4-5" }
|
|
2192
|
+
|
|
2193
|
+
# Spec schema: `ChatConversationSummary`.
|
|
2194
|
+
type chat_conversation_summary = {
|
|
2195
|
+
"id" => String,
|
|
2196
|
+
"title" => String,
|
|
2197
|
+
"model" => String,
|
|
2198
|
+
"createdAt" => String,
|
|
2199
|
+
"updatedAt" => String
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
# Spec schema: `ChatMessage`.
|
|
2203
|
+
type chat_message = {
|
|
2204
|
+
"id" => String,
|
|
2205
|
+
"conversationId" => String,
|
|
2206
|
+
"role" => "user" | "assistant",
|
|
2207
|
+
"content" => Array[chat_content_block],
|
|
2208
|
+
"inputTokens" => Integer,
|
|
2209
|
+
"outputTokens" => Integer,
|
|
2210
|
+
"cacheReadTokens" => Integer,
|
|
2211
|
+
"cacheWriteTokens" => Integer,
|
|
2212
|
+
"stopReason" => String | nil,
|
|
2213
|
+
"createdAt" => String
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
# Spec schema: `ChatPendingAction`.
|
|
2217
|
+
type chat_pending_action = {
|
|
2218
|
+
"id" => String,
|
|
2219
|
+
"conversationId" => String,
|
|
2220
|
+
"messageId" => String,
|
|
2221
|
+
"toolUseId" => String,
|
|
2222
|
+
"toolName" => String,
|
|
2223
|
+
"toolInput" => Hash[String, untyped],
|
|
2224
|
+
"status" => "pending" | "approved" | "rejected" | "executed" | "errored",
|
|
2225
|
+
"result" => String | nil,
|
|
2226
|
+
"isError" => bool,
|
|
2227
|
+
"summary" => String | nil,
|
|
2228
|
+
"resolvedAt" => String | nil,
|
|
2229
|
+
"createdAt" => String
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
# Spec schema: `ChatPendingDecisionInput`.
|
|
2233
|
+
type chat_pending_decision_input = { "action" => "approve" | "reject", ?"reason" => String }
|
|
2234
|
+
|
|
2235
|
+
# Spec schema: `ChatPendingDecisionResult`.
|
|
2236
|
+
type chat_pending_decision_result = { "ok" => bool, "allResolved" => bool }
|
|
2237
|
+
|
|
2238
|
+
# Spec schema: `ChatPendingSecretRequest`.
|
|
2239
|
+
type chat_pending_secret_request = {
|
|
2240
|
+
"id" => String,
|
|
2241
|
+
"conversationId" => String,
|
|
2242
|
+
"messageId" => String,
|
|
2243
|
+
"toolUseId" => String,
|
|
2244
|
+
"secretId" => String | nil,
|
|
2245
|
+
"name" => String,
|
|
2246
|
+
"title" => String | nil,
|
|
2247
|
+
"description" => String | nil,
|
|
2248
|
+
"status" => "pending" | "submitting" | "stored",
|
|
2249
|
+
"resolvedAt" => String | nil,
|
|
2250
|
+
"createdAt" => String,
|
|
2251
|
+
"updatedAt" => String
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2180
2254
|
# Spec schema: `ChatSecretRequestResult`.
|
|
2181
2255
|
type chat_secret_request_result = { "ok" => bool, "allResolved" => bool }
|
|
2182
2256
|
|
|
2257
|
+
# Spec schema: `ChatSpendStatus`.
|
|
2258
|
+
type chat_spend_status = {
|
|
2259
|
+
"monthToDateMicros" => Numeric,
|
|
2260
|
+
"monthlyCapMicros" => Numeric | nil,
|
|
2261
|
+
"exceeded" => bool,
|
|
2262
|
+
"freeTier" => bool,
|
|
2263
|
+
"complimentary" => bool
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2183
2266
|
# Spec schema: `ChildResourceRef`.
|
|
2184
2267
|
type child_resource_ref = {
|
|
2185
2268
|
"id" => resource_id,
|
|
@@ -2202,6 +2285,97 @@ module Infrawrench
|
|
|
2202
2285
|
?"fields" => Array[json_object]
|
|
2203
2286
|
}
|
|
2204
2287
|
|
|
2288
|
+
# Spec schema: `CiAccount`.
|
|
2289
|
+
type ci_account = {
|
|
2290
|
+
"installationId" => Integer,
|
|
2291
|
+
"accountLogin" => String,
|
|
2292
|
+
"accountType" => String | nil,
|
|
2293
|
+
"ciEnabled" => bool
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
# Spec schema: `CiJobOutput`.
|
|
2297
|
+
type ci_job_output = {
|
|
2298
|
+
"pipeline" => String,
|
|
2299
|
+
"id" => String,
|
|
2300
|
+
"name" => String,
|
|
2301
|
+
"status" => "passed" | "failed" | "skipped" | "error",
|
|
2302
|
+
"reason" => String | nil,
|
|
2303
|
+
"durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
|
|
2304
|
+
"stdout" => String,
|
|
2305
|
+
"stderr" => String
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
# Spec schema: `CiJobSummary`.
|
|
2309
|
+
type ci_job_summary = {
|
|
2310
|
+
"pipeline" => String,
|
|
2311
|
+
"id" => String,
|
|
2312
|
+
"name" => String,
|
|
2313
|
+
"status" => "passed" | "failed" | "skipped" | "error",
|
|
2314
|
+
"reason" => String | nil,
|
|
2315
|
+
"durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
# Spec schema: `CiRun`.
|
|
2319
|
+
type ci_run = {
|
|
2320
|
+
"id" => String,
|
|
2321
|
+
"repoFullName" => String,
|
|
2322
|
+
"event" => "push" | "pull-request",
|
|
2323
|
+
"headRef" => String,
|
|
2324
|
+
"sha" => String,
|
|
2325
|
+
"pullNumber" => Integer | nil,
|
|
2326
|
+
"headRepoFullName" => String | nil,
|
|
2327
|
+
"fromFork" => bool,
|
|
2328
|
+
"actorLogin" => String | nil,
|
|
2329
|
+
"status" => ci_run_status,
|
|
2330
|
+
"statusReason" => String | nil,
|
|
2331
|
+
"createdAt" => String,
|
|
2332
|
+
"startedAt" => String | nil,
|
|
2333
|
+
"finishedAt" => String | nil,
|
|
2334
|
+
"jobs" => Array[ci_job_summary] | nil,
|
|
2335
|
+
"vcpuSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
|
|
2336
|
+
"memoryGibSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
|
|
2337
|
+
"githubUrl" => String
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
# Spec schema: `CiRunDetail`.
|
|
2341
|
+
type ci_run_detail = { "run" => ci_run, "jobs" => Array[ci_job_output] | nil }
|
|
2342
|
+
|
|
2343
|
+
# Spec schema: `CiRunStatus`.
|
|
2344
|
+
type ci_run_status = "awaiting_approval" | "queued" | "running" | "passed" | "failed" | "error" | "rejected"
|
|
2345
|
+
|
|
2346
|
+
# Spec schema: `CiSecret`.
|
|
2347
|
+
type ci_secret = { "name" => String, "updatedAt" => String }
|
|
2348
|
+
|
|
2349
|
+
# Spec schema: `CiStatus`.
|
|
2350
|
+
type ci_status = {
|
|
2351
|
+
"enabled" => bool,
|
|
2352
|
+
"configured" => bool,
|
|
2353
|
+
"githubConfigured" => bool,
|
|
2354
|
+
"planIncludesCi" => bool,
|
|
2355
|
+
"accounts" => Array[ci_account]
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
# Spec schema: `CiUsage`.
|
|
2359
|
+
type ci_usage = {
|
|
2360
|
+
"month" => String,
|
|
2361
|
+
"runs" => Integer,
|
|
2362
|
+
"vcpuSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN",
|
|
2363
|
+
"memoryGibSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN",
|
|
2364
|
+
"storageGibHours" => Numeric | "Infinity" | "-Infinity" | "NaN",
|
|
2365
|
+
"storageBytes" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
# Spec schema: `CiValues`.
|
|
2369
|
+
type ci_values = {
|
|
2370
|
+
"installationId" => Integer,
|
|
2371
|
+
"repo" => String | nil,
|
|
2372
|
+
"secrets" => Array[ci_secret],
|
|
2373
|
+
"variables" => Array[ci_variable]
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
# Spec schema: `CiVariable`.
|
|
2377
|
+
type ci_variable = { "name" => String, "value" => String, "updatedAt" => String }
|
|
2378
|
+
|
|
2205
2379
|
# Spec schema: `CommitmentCoverage`.
|
|
2206
2380
|
type commitment_coverage = {
|
|
2207
2381
|
"available" => bool,
|
|
@@ -2320,7 +2494,7 @@ module Infrawrench
|
|
|
2320
2494
|
}
|
|
2321
2495
|
|
|
2322
2496
|
# Spec schema: `ComplianceControlOwner`.
|
|
2323
|
-
type compliance_control_owner = { "userId" => String | nil, "displayName" => String, "isLabel" => bool }
|
|
2497
|
+
type compliance_control_owner = { "userId" => String | nil, "displayName" => String, "isLabel" => bool }
|
|
2324
2498
|
|
|
2325
2499
|
# Spec schema: `ComplianceControlRow`.
|
|
2326
2500
|
type compliance_control_row = {
|
|
@@ -2333,7 +2507,7 @@ module Infrawrench
|
|
|
2333
2507
|
"missingSources" => Array[String],
|
|
2334
2508
|
"applicable" => bool,
|
|
2335
2509
|
"justification" => String | nil,
|
|
2336
|
-
"owner" => compliance_control_owner,
|
|
2510
|
+
"owner" => compliance_control_owner | nil,
|
|
2337
2511
|
"notes" => String | nil,
|
|
2338
2512
|
"settingUpdatedAt" => String | nil
|
|
2339
2513
|
}
|
|
@@ -2441,7 +2615,7 @@ module Infrawrench
|
|
|
2441
2615
|
# Spec schema: `ComplianceStatus`.
|
|
2442
2616
|
type compliance_status = {
|
|
2443
2617
|
"framework" => compliance_framework_summary,
|
|
2444
|
-
"period" => { "from" =>
|
|
2618
|
+
"period" => { "from" => untyped, "to" => untyped },
|
|
2445
2619
|
"controls" => Array[compliance_control_row],
|
|
2446
2620
|
"sources" => Array[compliance_evidence_source_result],
|
|
2447
2621
|
"counts" => compliance_status_counts,
|
|
@@ -2552,16 +2726,7 @@ module Infrawrench
|
|
|
2552
2726
|
"id" => String,
|
|
2553
2727
|
"name" => String,
|
|
2554
2728
|
"filters" => Array[cost_alert_filter],
|
|
2555
|
-
"groupBy" =>
|
|
2556
|
-
| "account"
|
|
2557
|
-
| "service"
|
|
2558
|
-
| "region"
|
|
2559
|
-
| "resource"
|
|
2560
|
-
| "tag"
|
|
2561
|
-
| "charge_type"
|
|
2562
|
-
| "commitment"
|
|
2563
|
-
| "virtual_tag"
|
|
2564
|
-
| nil,
|
|
2729
|
+
"groupBy" => cost_dimension | nil,
|
|
2565
2730
|
"groupByTagKey" => String | nil,
|
|
2566
2731
|
"cadence" => cost_change_cadence,
|
|
2567
2732
|
"thresholdPercent" => Integer | nil,
|
|
@@ -2597,15 +2762,7 @@ module Infrawrench
|
|
|
2597
2762
|
|
|
2598
2763
|
# Spec schema: `CostAlertFilter`.
|
|
2599
2764
|
type cost_alert_filter = {
|
|
2600
|
-
"dimension" =>
|
|
2601
|
-
| "account"
|
|
2602
|
-
| "service"
|
|
2603
|
-
| "region"
|
|
2604
|
-
| "resource"
|
|
2605
|
-
| "tag"
|
|
2606
|
-
| "charge_type"
|
|
2607
|
-
| "commitment"
|
|
2608
|
-
| "virtual_tag",
|
|
2765
|
+
"dimension" => cost_dimension,
|
|
2609
2766
|
"op" => cost_filter_operator,
|
|
2610
2767
|
"values" => Array[String],
|
|
2611
2768
|
?"tagKey" => String
|
|
@@ -2615,16 +2772,7 @@ module Infrawrench
|
|
|
2615
2772
|
type cost_alert_input = {
|
|
2616
2773
|
"name" => String,
|
|
2617
2774
|
?"filters" => Array[cost_alert_filter],
|
|
2618
|
-
?"groupBy" =>
|
|
2619
|
-
| "account"
|
|
2620
|
-
| "service"
|
|
2621
|
-
| "region"
|
|
2622
|
-
| "resource"
|
|
2623
|
-
| "tag"
|
|
2624
|
-
| "charge_type"
|
|
2625
|
-
| "commitment"
|
|
2626
|
-
| "virtual_tag"
|
|
2627
|
-
| nil,
|
|
2775
|
+
?"groupBy" => cost_dimension | nil,
|
|
2628
2776
|
?"groupByTagKey" => String,
|
|
2629
2777
|
"cadence" => cost_change_cadence,
|
|
2630
2778
|
?"thresholdPercent" => Integer | nil,
|
|
@@ -2678,7 +2826,7 @@ module Infrawrench
|
|
|
2678
2826
|
"annotationId" => String | nil
|
|
2679
2827
|
}
|
|
2680
2828
|
| nil,
|
|
2681
|
-
"feedback" => cost_anomaly_feedback,
|
|
2829
|
+
"feedback" => cost_anomaly_feedback | nil,
|
|
2682
2830
|
"suppressionId" => String | nil
|
|
2683
2831
|
}
|
|
2684
2832
|
|
|
@@ -2710,20 +2858,19 @@ module Infrawrench
|
|
|
2710
2858
|
#
|
|
2711
2859
|
# Spec schema: `CostAnomalyFeedback`.
|
|
2712
2860
|
type cost_anomaly_feedback = {
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
| nil
|
|
2861
|
+
"verdict" => "expected" | "unexpected",
|
|
2862
|
+
"reason" => cost_anomaly_feedback_reason | nil,
|
|
2863
|
+
"note" => String | nil,
|
|
2864
|
+
"at" => String,
|
|
2865
|
+
"byUserId" => String | nil,
|
|
2866
|
+
"byName" => String | nil,
|
|
2867
|
+
"suppressionId" => String | nil
|
|
2868
|
+
}
|
|
2722
2869
|
|
|
2723
2870
|
# Spec schema: `CostAnomalyFeedbackInput`.
|
|
2724
2871
|
type cost_anomaly_feedback_input = {
|
|
2725
2872
|
"verdict" => "expected" | "unexpected",
|
|
2726
|
-
?"reason" => cost_anomaly_feedback_reason,
|
|
2873
|
+
?"reason" => cost_anomaly_feedback_reason | nil,
|
|
2727
2874
|
?"note" => String | nil,
|
|
2728
2875
|
?"explain" => bool,
|
|
2729
2876
|
?"suppress" => {
|
|
@@ -2737,10 +2884,9 @@ module Infrawrench
|
|
|
2737
2884
|
|
|
2738
2885
|
# Spec schema: `CostAnomalyFeedbackReason`.
|
|
2739
2886
|
type cost_anomaly_feedback_reason = "planned_launch" | "migration" | "seasonal" | "pricing_change" | "data_issue" | "other"
|
|
2740
|
-
| nil
|
|
2741
2887
|
|
|
2742
2888
|
# Spec schema: `CostAnomalyFeedbackResult`.
|
|
2743
|
-
type cost_anomaly_feedback_result = { "anomaly" => cost_anomaly, "suppression" => cost_anomaly_suppression }
|
|
2889
|
+
type cost_anomaly_feedback_result = { "anomaly" => cost_anomaly, "suppression" => cost_anomaly_suppression | nil }
|
|
2744
2890
|
|
|
2745
2891
|
# Spec schema: `CostAnomalyPrecisionReport`.
|
|
2746
2892
|
type cost_anomaly_precision_report = {
|
|
@@ -2760,7 +2906,7 @@ module Infrawrench
|
|
|
2760
2906
|
"unexpected" => Integer,
|
|
2761
2907
|
"precision" => Numeric | nil
|
|
2762
2908
|
},
|
|
2763
|
-
"reasons" => Array[{ "reason" => cost_anomaly_feedback_reason
|
|
2909
|
+
"reasons" => Array[{ "reason" => cost_anomaly_feedback_reason, "count" => Integer }]
|
|
2764
2910
|
}
|
|
2765
2911
|
|
|
2766
2912
|
# How the suppression repeats. `one_off` covers every day from `startsOn` to
|
|
@@ -2795,34 +2941,41 @@ module Infrawrench
|
|
|
2795
2941
|
"newSourceMinCents" => Integer,
|
|
2796
2942
|
"smsAlerts" => "off" | "new_source" | "all",
|
|
2797
2943
|
?"feedbackTuning" => bool,
|
|
2798
|
-
?"emailRecipients" => alert_email_recipients
|
|
2944
|
+
?"emailRecipients" => alert_email_recipients & untyped
|
|
2799
2945
|
}
|
|
2800
2946
|
|
|
2801
2947
|
# Spec schema: `CostAnomalySettingsView`.
|
|
2802
|
-
type cost_anomaly_settings_view =
|
|
2948
|
+
type cost_anomaly_settings_view = {
|
|
2949
|
+
"sigmas" => Numeric,
|
|
2950
|
+
"minDeltaCents" => Integer,
|
|
2951
|
+
"newSourceMinCents" => Integer,
|
|
2952
|
+
"smsAlerts" => "off" | "new_source" | "all",
|
|
2953
|
+
?"feedbackTuning" => bool,
|
|
2954
|
+
?"emailRecipients" => alert_email_recipients & untyped,
|
|
2955
|
+
"smsConfigured" => bool
|
|
2956
|
+
}
|
|
2803
2957
|
|
|
2804
2958
|
# Spec schema: `CostAnomalySuppression`.
|
|
2805
2959
|
type cost_anomaly_suppression = {
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
| nil
|
|
2960
|
+
"id" => String,
|
|
2961
|
+
"scope" => cost_anomaly_suppression_scope,
|
|
2962
|
+
"scopeKey" => String,
|
|
2963
|
+
"tagKey" => String | nil,
|
|
2964
|
+
"scopeLabel" => String | nil,
|
|
2965
|
+
"recurrence" => cost_anomaly_recurrence,
|
|
2966
|
+
"anchorDay" => String,
|
|
2967
|
+
"startsOn" => String,
|
|
2968
|
+
"expiresOn" => String,
|
|
2969
|
+
"reason" => cost_anomaly_feedback_reason | nil,
|
|
2970
|
+
"note" => String | nil,
|
|
2971
|
+
"sourceAnomalyId" => String | nil,
|
|
2972
|
+
"createdByUserId" => String | nil,
|
|
2973
|
+
"createdByName" => String | nil,
|
|
2974
|
+
"createdAt" => String,
|
|
2975
|
+
"updatedAt" => String,
|
|
2976
|
+
"active" => bool,
|
|
2977
|
+
"suppressedCount" => Integer
|
|
2978
|
+
}
|
|
2826
2979
|
|
|
2827
2980
|
# Spec schema: `CostAnomalySuppressionInput`.
|
|
2828
2981
|
type cost_anomaly_suppression_input = {
|
|
@@ -2833,7 +2986,7 @@ module Infrawrench
|
|
|
2833
2986
|
"anchorDay" => String,
|
|
2834
2987
|
?"startsOn" => String,
|
|
2835
2988
|
"expiresOn" => String,
|
|
2836
|
-
?"reason" => cost_anomaly_feedback_reason,
|
|
2989
|
+
?"reason" => cost_anomaly_feedback_reason | nil,
|
|
2837
2990
|
?"note" => String | nil
|
|
2838
2991
|
}
|
|
2839
2992
|
|
|
@@ -2894,7 +3047,49 @@ module Infrawrench
|
|
|
2894
3047
|
"metric" => cost_canvas_kpi_metric,
|
|
2895
3048
|
?"comparePreviousPeriod" => bool
|
|
2896
3049
|
}
|
|
2897
|
-
| {
|
|
3050
|
+
| {
|
|
3051
|
+
"id" => String,
|
|
3052
|
+
"kind" => "chart",
|
|
3053
|
+
"title" => String,
|
|
3054
|
+
"config" => {
|
|
3055
|
+
"version" => Numeric,
|
|
3056
|
+
"chartType" => "stacked_bar" | "multi_bar" | "line" | "area" | "pie" | "donut" | "table",
|
|
3057
|
+
"binning" => cost_binning,
|
|
3058
|
+
"dateRange" => cost_date_range,
|
|
3059
|
+
"groupBy" => "none"
|
|
3060
|
+
| "provider"
|
|
3061
|
+
| "account"
|
|
3062
|
+
| "service"
|
|
3063
|
+
| "region"
|
|
3064
|
+
| "resource"
|
|
3065
|
+
| "tag"
|
|
3066
|
+
| "charge_type"
|
|
3067
|
+
| "commitment"
|
|
3068
|
+
| "virtual_tag",
|
|
3069
|
+
?"groupByTagKey" => String,
|
|
3070
|
+
?"filters" => Array[cost_report_filter],
|
|
3071
|
+
?"savedFilterId" => String,
|
|
3072
|
+
?"topN" => Integer,
|
|
3073
|
+
?"comparePreviousPeriod" => bool,
|
|
3074
|
+
?"showForecast" => bool,
|
|
3075
|
+
?"scenarioModelId" => String,
|
|
3076
|
+
?"costBasis" => "cash" | "amortized" | "blended",
|
|
3077
|
+
?"unitCostMetricId" => String,
|
|
3078
|
+
?"unitCostMode" => unit_cost_mode & untyped,
|
|
3079
|
+
?"unitCostScale" => Numeric,
|
|
3080
|
+
?"unitCostUsageUnit" => String,
|
|
3081
|
+
?"unitCostLabelFilters" => Array[unit_cost_label_filter],
|
|
3082
|
+
?"unitCostGroupByLabel" => String,
|
|
3083
|
+
?"adjusted" => bool,
|
|
3084
|
+
?"measure" => cost_measure,
|
|
3085
|
+
?"usageUnit" => String,
|
|
3086
|
+
?"cumulative" => bool,
|
|
3087
|
+
?"xAxis" => cost_dimension,
|
|
3088
|
+
?"xAxisTagKey" => String,
|
|
3089
|
+
?"segmentByDate" => bool,
|
|
3090
|
+
?"comparisonStyle" => "line" | "bars"
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
2898
3093
|
| { "id" => String, "kind" => "table", "title" => String, "query" => cost_canvas_table_query }
|
|
2899
3094
|
| { "id" => String, "kind" => "budgets", "title" => String, ?"budgetIds" => Array[String] }
|
|
2900
3095
|
| {
|
|
@@ -2916,7 +3111,7 @@ module Infrawrench
|
|
|
2916
3111
|
# Spec schema: `CostCanvasKpiMetric`.
|
|
2917
3112
|
type cost_canvas_kpi_metric = {
|
|
2918
3113
|
"type" => "spend",
|
|
2919
|
-
"dateRange" => cost_date_range
|
|
3114
|
+
"dateRange" => cost_date_range,
|
|
2920
3115
|
?"filters" => Array[cost_report_filter],
|
|
2921
3116
|
?"savedFilterId" => String,
|
|
2922
3117
|
?"costBasis" => "cash" | "amortized" | "blended",
|
|
@@ -2925,7 +3120,7 @@ module Infrawrench
|
|
|
2925
3120
|
| {
|
|
2926
3121
|
"type" => "unit_cost",
|
|
2927
3122
|
"businessMetricId" => String,
|
|
2928
|
-
"dateRange" => cost_date_range
|
|
3123
|
+
"dateRange" => cost_date_range,
|
|
2929
3124
|
?"filters" => Array[cost_report_filter],
|
|
2930
3125
|
?"savedFilterId" => String,
|
|
2931
3126
|
?"costBasis" => "cash" | "amortized" | "blended"
|
|
@@ -2973,16 +3168,12 @@ module Infrawrench
|
|
|
2973
3168
|
"blocks" => Array[json_object]
|
|
2974
3169
|
}
|
|
2975
3170
|
|
|
2976
|
-
# The structured query spec. It holds queries, never numbers: running the
|
|
2977
|
-
# canvas re-executes every block, so a refresh needs no model call. Validated
|
|
2978
|
-
# strictly on write; there is no field that takes a query string or SQL.
|
|
2979
|
-
#
|
|
2980
3171
|
# Spec schema: `CostCanvasSpec`.
|
|
2981
3172
|
type cost_canvas_spec = { "version" => Numeric, "blocks" => Array[cost_canvas_block] }
|
|
2982
3173
|
|
|
2983
3174
|
# Spec schema: `CostCanvasTableQuery`.
|
|
2984
3175
|
type cost_canvas_table_query = {
|
|
2985
|
-
"dateRange" => cost_date_range
|
|
3176
|
+
"dateRange" => cost_date_range,
|
|
2986
3177
|
"binning" => "none" | "daily" | "weekly" | "monthly",
|
|
2987
3178
|
"groupBy" => "provider"
|
|
2988
3179
|
| "account"
|
|
@@ -2991,7 +3182,8 @@ module Infrawrench
|
|
|
2991
3182
|
| "resource"
|
|
2992
3183
|
| "tag"
|
|
2993
3184
|
| "charge_type"
|
|
2994
|
-
| "commitment"
|
|
3185
|
+
| "commitment"
|
|
3186
|
+
| "virtual_tag",
|
|
2995
3187
|
?"groupByTagKey" => String,
|
|
2996
3188
|
?"filters" => Array[cost_report_filter],
|
|
2997
3189
|
?"savedFilterId" => String,
|
|
@@ -3037,9 +3229,9 @@ module Infrawrench
|
|
|
3037
3229
|
| "support"
|
|
3038
3230
|
| "other"
|
|
3039
3231
|
|
|
3040
|
-
#
|
|
3041
|
-
#
|
|
3042
|
-
#
|
|
3232
|
+
# A relative preset resolves against today every time the report runs, so a
|
|
3233
|
+
# saved report keeps meaning 'the last 30 days'; an absolute range pins it to
|
|
3234
|
+
# fixed dates.
|
|
3043
3235
|
#
|
|
3044
3236
|
# Spec schema: `CostDateRange`.
|
|
3045
3237
|
type cost_date_range = {
|
|
@@ -3079,18 +3271,17 @@ module Infrawrench
|
|
|
3079
3271
|
"unitCostWindowDays" => Integer,
|
|
3080
3272
|
"unitCostMinReportedDays" => Integer,
|
|
3081
3273
|
"unitCostMinSpendCents" => Integer,
|
|
3082
|
-
?"emailRecipients" => alert_email_recipients
|
|
3274
|
+
?"emailRecipients" => alert_email_recipients & untyped
|
|
3083
3275
|
}
|
|
3084
3276
|
|
|
3085
3277
|
# Spec schema: `CostEstimate`.
|
|
3086
3278
|
type cost_estimate = {
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
| nil
|
|
3279
|
+
"monthlyAmount" => Numeric,
|
|
3280
|
+
"currency" => String,
|
|
3281
|
+
"lineItems" => Array[cost_estimate_line_item],
|
|
3282
|
+
?"partial" => bool,
|
|
3283
|
+
?"notes" => Array[String]
|
|
3284
|
+
}
|
|
3094
3285
|
|
|
3095
3286
|
# Spec schema: `CostEstimateLineItem`.
|
|
3096
3287
|
type cost_estimate_line_item = {
|
|
@@ -3156,15 +3347,7 @@ module Infrawrench
|
|
|
3156
3347
|
|
|
3157
3348
|
# Spec schema: `CostExportFilter`.
|
|
3158
3349
|
type cost_export_filter = {
|
|
3159
|
-
"dimension" =>
|
|
3160
|
-
| "account"
|
|
3161
|
-
| "service"
|
|
3162
|
-
| "region"
|
|
3163
|
-
| "resource"
|
|
3164
|
-
| "tag"
|
|
3165
|
-
| "charge_type"
|
|
3166
|
-
| "commitment"
|
|
3167
|
-
| "virtual_tag",
|
|
3350
|
+
"dimension" => cost_dimension,
|
|
3168
3351
|
"op" => cost_filter_operator,
|
|
3169
3352
|
"values" => Array[String],
|
|
3170
3353
|
?"tagKey" => String
|
|
@@ -3223,7 +3406,7 @@ module Infrawrench
|
|
|
3223
3406
|
?"savedFilterId" => String,
|
|
3224
3407
|
?"chargeTypes" => Array[cost_charge_type],
|
|
3225
3408
|
?"costBasis" => cost_basis,
|
|
3226
|
-
?"dimensions" => Array[
|
|
3409
|
+
?"dimensions" => Array[String],
|
|
3227
3410
|
?"tagKeys" => Array[String],
|
|
3228
3411
|
?"virtualTagKeys" => Array[String]
|
|
3229
3412
|
},
|
|
@@ -3250,15 +3433,7 @@ module Infrawrench
|
|
|
3250
3433
|
# Spec schema: `CostExportQuery`.
|
|
3251
3434
|
type cost_export_query = {
|
|
3252
3435
|
"version" => Numeric,
|
|
3253
|
-
"dimensions" => Array[
|
|
3254
|
-
| "account"
|
|
3255
|
-
| "service"
|
|
3256
|
-
| "region"
|
|
3257
|
-
| "resource"
|
|
3258
|
-
| "tag"
|
|
3259
|
-
| "charge_type"
|
|
3260
|
-
| "commitment"
|
|
3261
|
-
| "virtual_tag"],
|
|
3436
|
+
"dimensions" => Array[cost_dimension],
|
|
3262
3437
|
"tagKeys" => Array[String],
|
|
3263
3438
|
?"virtualTagKeys" => Array[String],
|
|
3264
3439
|
"filters" => Array[cost_export_filter],
|
|
@@ -3369,13 +3544,13 @@ module Infrawrench
|
|
|
3369
3544
|
# badly a straight line fits the last 30 days.
|
|
3370
3545
|
#
|
|
3371
3546
|
# Spec schema: `CostForecastConfidenceLevel`.
|
|
3372
|
-
type cost_forecast_confidence_level = Numeric
|
|
3547
|
+
type cost_forecast_confidence_level = Numeric
|
|
3373
3548
|
|
|
3374
3549
|
# Spec schema: `CostForecastInput`.
|
|
3375
3550
|
type cost_forecast_input = {
|
|
3376
3551
|
"name" => String,
|
|
3377
3552
|
?"description" => String | nil,
|
|
3378
|
-
"scenarioModelIds" => Array[String],
|
|
3553
|
+
?"scenarioModelIds" => Array[String],
|
|
3379
3554
|
?"driverMetricId" => String | nil,
|
|
3380
3555
|
?"isDefault" => bool
|
|
3381
3556
|
}
|
|
@@ -3455,7 +3630,7 @@ module Infrawrench
|
|
|
3455
3630
|
"version" => Numeric,
|
|
3456
3631
|
"chartType" => "stacked_bar" | "multi_bar" | "line" | "area" | "pie" | "donut" | "table",
|
|
3457
3632
|
"binning" => cost_binning,
|
|
3458
|
-
"dateRange" => cost_date_range
|
|
3633
|
+
"dateRange" => cost_date_range,
|
|
3459
3634
|
"groupBy" => "none"
|
|
3460
3635
|
| "provider"
|
|
3461
3636
|
| "account"
|
|
@@ -3474,20 +3649,20 @@ module Infrawrench
|
|
|
3474
3649
|
?"showForecast" => bool,
|
|
3475
3650
|
?"scenarioModelId" => String,
|
|
3476
3651
|
?"costBasis" => "cash" | "amortized" | "blended",
|
|
3652
|
+
?"unitCostMetricId" => String,
|
|
3653
|
+
?"unitCostMode" => unit_cost_mode & untyped,
|
|
3654
|
+
?"unitCostScale" => Numeric,
|
|
3655
|
+
?"unitCostUsageUnit" => String,
|
|
3656
|
+
?"unitCostLabelFilters" => Array[unit_cost_label_filter],
|
|
3657
|
+
?"unitCostGroupByLabel" => String,
|
|
3658
|
+
?"adjusted" => bool,
|
|
3477
3659
|
?"measure" => cost_measure,
|
|
3478
3660
|
?"usageUnit" => String,
|
|
3479
3661
|
?"cumulative" => bool,
|
|
3480
|
-
?"xAxis" => cost_dimension
|
|
3662
|
+
?"xAxis" => cost_dimension,
|
|
3481
3663
|
?"xAxisTagKey" => String,
|
|
3482
3664
|
?"segmentByDate" => bool,
|
|
3483
|
-
?"comparisonStyle" => "line" | "bars"
|
|
3484
|
-
?"unitCostMetricId" => String,
|
|
3485
|
-
?"unitCostMode" => "unit_cost" | "margin" | "usage_unit_cost" | "raw_metric",
|
|
3486
|
-
?"unitCostScale" => Numeric | Numeric | Numeric | Numeric | Numeric,
|
|
3487
|
-
?"unitCostUsageUnit" => String,
|
|
3488
|
-
?"unitCostLabelFilters" => Array[{ "key" => String, "op" => "in" | "not_in", "values" => Array[String] }],
|
|
3489
|
-
?"unitCostGroupByLabel" => String,
|
|
3490
|
-
?"adjusted" => bool
|
|
3665
|
+
?"comparisonStyle" => "line" | "bars"
|
|
3491
3666
|
}
|
|
3492
3667
|
|
|
3493
3668
|
# What the Y axis sums. `cost` (the default) is money per currency. `usage`
|
|
@@ -3533,11 +3708,12 @@ module Infrawrench
|
|
|
3533
3708
|
?"scenarioModelId" => String,
|
|
3534
3709
|
?"costBasis" => cost_basis,
|
|
3535
3710
|
?"chargeTypes" => Array[cost_charge_type],
|
|
3711
|
+
?"displayCurrency" => String,
|
|
3536
3712
|
?"adjusted" => bool,
|
|
3537
3713
|
?"measure" => cost_measure,
|
|
3538
3714
|
?"usageUnit" => String,
|
|
3539
3715
|
?"cumulative" => bool,
|
|
3540
|
-
?"xAxis" => cost_dimension
|
|
3716
|
+
?"xAxis" => cost_dimension,
|
|
3541
3717
|
?"xAxisTagKey" => String,
|
|
3542
3718
|
?"segmentByDate" => bool
|
|
3543
3719
|
}
|
|
@@ -3592,17 +3768,20 @@ module Infrawrench
|
|
|
3592
3768
|
}
|
|
3593
3769
|
|
|
3594
3770
|
# Spec schema: `CostReportAnomalyAlert`.
|
|
3595
|
-
type cost_report_anomaly_alert =
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3771
|
+
type cost_report_anomaly_alert = {
|
|
3772
|
+
"enabled" => bool,
|
|
3773
|
+
"sigmas" => Numeric,
|
|
3774
|
+
"minDeltaCents" => Integer,
|
|
3775
|
+
"destinations" => Array[alert_destination],
|
|
3776
|
+
"id" => String,
|
|
3777
|
+
"reportId" => String,
|
|
3778
|
+
"reportName" => String,
|
|
3779
|
+
"createdAt" => String,
|
|
3780
|
+
"updatedAt" => String,
|
|
3781
|
+
"lastEvaluatedAt" => String | nil,
|
|
3782
|
+
"lastError" => String | nil,
|
|
3783
|
+
"recent" => Array[cost_report_anomaly]
|
|
3784
|
+
}
|
|
3606
3785
|
|
|
3607
3786
|
# Spec schema: `CostReportAnomalyAlertInput`.
|
|
3608
3787
|
type cost_report_anomaly_alert_input = {
|
|
@@ -3656,15 +3835,7 @@ module Infrawrench
|
|
|
3656
3835
|
|
|
3657
3836
|
# Spec schema: `CostReportFilter`.
|
|
3658
3837
|
type cost_report_filter = {
|
|
3659
|
-
"dimension" =>
|
|
3660
|
-
| "account"
|
|
3661
|
-
| "service"
|
|
3662
|
-
| "region"
|
|
3663
|
-
| "resource"
|
|
3664
|
-
| "tag"
|
|
3665
|
-
| "charge_type"
|
|
3666
|
-
| "commitment"
|
|
3667
|
-
| "virtual_tag",
|
|
3838
|
+
"dimension" => cost_dimension,
|
|
3668
3839
|
"op" => cost_filter_operator,
|
|
3669
3840
|
"values" => Array[String],
|
|
3670
3841
|
?"tagKey" => String
|
|
@@ -3727,14 +3898,17 @@ module Infrawrench
|
|
|
3727
3898
|
"label" => String,
|
|
3728
3899
|
"kind" => "one_off" | "recurring" | "rate_change",
|
|
3729
3900
|
"startDate" => String,
|
|
3730
|
-
"endDate" => String | nil,
|
|
3731
|
-
"amountCents" => Integer | nil,
|
|
3732
|
-
"currency" => String | nil,
|
|
3733
|
-
"period" => "daily" | "monthly" | nil,
|
|
3734
|
-
"percent" => Numeric | nil,
|
|
3735
|
-
"scope" => Array[cost_scenario_scope_term]
|
|
3901
|
+
?"endDate" => String | nil,
|
|
3902
|
+
?"amountCents" => Integer | nil,
|
|
3903
|
+
?"currency" => String | nil,
|
|
3904
|
+
?"period" => "daily" | "monthly" | nil,
|
|
3905
|
+
?"percent" => Numeric | nil,
|
|
3906
|
+
?"scope" => Array[cost_scenario_scope_term]
|
|
3736
3907
|
}
|
|
3737
3908
|
|
|
3909
|
+
# Spec schema: `CostScenarioInUse`.
|
|
3910
|
+
type cost_scenario_in_use = { "error" => String, "referents" => Array[cost_scenario_referent] }
|
|
3911
|
+
|
|
3738
3912
|
# Spec schema: `CostScenarioModel`.
|
|
3739
3913
|
type cost_scenario_model = {
|
|
3740
3914
|
"id" => String,
|
|
@@ -3752,9 +3926,12 @@ module Infrawrench
|
|
|
3752
3926
|
"name" => String,
|
|
3753
3927
|
?"description" => String,
|
|
3754
3928
|
"currency" => String,
|
|
3755
|
-
"adjustments" => Array[cost_scenario_adjustment]
|
|
3929
|
+
?"adjustments" => Array[cost_scenario_adjustment]
|
|
3756
3930
|
}
|
|
3757
3931
|
|
|
3932
|
+
# Spec schema: `CostScenarioNameConflict`.
|
|
3933
|
+
type cost_scenario_name_conflict = { "error" => String }
|
|
3934
|
+
|
|
3758
3935
|
# Spec schema: `CostScenarioReferent`.
|
|
3759
3936
|
type cost_scenario_referent = {
|
|
3760
3937
|
"kind" => "budget" | "cost_report" | "cost_graph_widget" | "cost_forecast",
|
|
@@ -3783,15 +3960,7 @@ module Infrawrench
|
|
|
3783
3960
|
|
|
3784
3961
|
# Spec schema: `CostScenarioScopeTerm`.
|
|
3785
3962
|
type cost_scenario_scope_term = {
|
|
3786
|
-
"dimension" =>
|
|
3787
|
-
| "account"
|
|
3788
|
-
| "service"
|
|
3789
|
-
| "region"
|
|
3790
|
-
| "resource"
|
|
3791
|
-
| "tag"
|
|
3792
|
-
| "charge_type"
|
|
3793
|
-
| "commitment"
|
|
3794
|
-
| "virtual_tag",
|
|
3963
|
+
"dimension" => cost_dimension,
|
|
3795
3964
|
"op" => cost_filter_operator,
|
|
3796
3965
|
"values" => Array[String],
|
|
3797
3966
|
?"tagKey" => String
|
|
@@ -3856,7 +4025,7 @@ module Infrawrench
|
|
|
3856
4025
|
|
|
3857
4026
|
# Spec schema: `CreateAccountRequest`.
|
|
3858
4027
|
type create_account_request = {
|
|
3859
|
-
"pluginId" =>
|
|
4028
|
+
"pluginId" => plugin_id,
|
|
3860
4029
|
"displayName" => String,
|
|
3861
4030
|
"credentials" => Hash[String, String],
|
|
3862
4031
|
?"bastionId" => String | nil
|
|
@@ -3870,7 +4039,7 @@ module Infrawrench
|
|
|
3870
4039
|
?"repo" => String,
|
|
3871
4040
|
?"projectName" => String,
|
|
3872
4041
|
?"workspaceName" => String,
|
|
3873
|
-
"settings" => agent_settings
|
|
4042
|
+
"settings" => agent_settings,
|
|
3874
4043
|
?"nibbletsLink" => { "scopes" => Array[String] }
|
|
3875
4044
|
}
|
|
3876
4045
|
|
|
@@ -3953,7 +4122,7 @@ module Infrawrench
|
|
|
3953
4122
|
}
|
|
3954
4123
|
|
|
3955
4124
|
# Spec schema: `CreateResourceResponse`.
|
|
3956
|
-
type create_resource_response = { "id" => resource_id, "displayName" => String, ?"warnings" => Array[
|
|
4125
|
+
type create_resource_response = { "id" => resource_id, "displayName" => String, ?"warnings" => Array[resource_warning] }
|
|
3957
4126
|
|
|
3958
4127
|
# Spec schema: `CreateSharedConsole`.
|
|
3959
4128
|
type create_shared_console = {
|
|
@@ -4086,11 +4255,7 @@ module Infrawrench
|
|
|
4086
4255
|
}
|
|
4087
4256
|
|
|
4088
4257
|
# Spec schema: `CurrencySettingsInput`.
|
|
4089
|
-
type currency_settings_input = {
|
|
4090
|
-
"displayCurrency" => String | nil,
|
|
4091
|
-
?"autoRates" => bool,
|
|
4092
|
-
?"rateBasis" => "daily" | "month_end"
|
|
4093
|
-
}
|
|
4258
|
+
type currency_settings_input = { "displayCurrency" => untyped, ?"autoRates" => untyped, ?"rateBasis" => untyped }
|
|
4094
4259
|
|
|
4095
4260
|
# Spec schema: `CustomCostDeleted`.
|
|
4096
4261
|
type custom_cost_deleted = { "ok" => bool, "zeroedRows" => Integer }
|
|
@@ -4215,7 +4380,7 @@ module Infrawrench
|
|
|
4215
4380
|
# Spec schema: `CustomGraphRenderResult`.
|
|
4216
4381
|
type custom_graph_render_result = {
|
|
4217
4382
|
"ok" => bool,
|
|
4218
|
-
"spec" => json_object
|
|
4383
|
+
"spec" => json_object | nil,
|
|
4219
4384
|
"error" => String | nil,
|
|
4220
4385
|
"logs" => Array[{ "level" => "info" | "warn" | "error", "message" => String }],
|
|
4221
4386
|
"renderedAt" => String,
|
|
@@ -4423,9 +4588,9 @@ module Infrawrench
|
|
|
4423
4588
|
|
|
4424
4589
|
# Spec schema: `DependencyGraphEdge`.
|
|
4425
4590
|
type dependency_graph_edge = {
|
|
4426
|
-
"consumerResourceId" => resource_id
|
|
4591
|
+
"consumerResourceId" => resource_id,
|
|
4427
4592
|
"consumerFieldKey" => String,
|
|
4428
|
-
"providerResourceId" => resource_id
|
|
4593
|
+
"providerResourceId" => resource_id,
|
|
4429
4594
|
"providerOutputKey" => String,
|
|
4430
4595
|
?"kind" => "output-ref" | "declared" | "containment" | "field-match",
|
|
4431
4596
|
?"label" => String
|
|
@@ -4529,7 +4694,7 @@ module Infrawrench
|
|
|
4529
4694
|
"env" => String,
|
|
4530
4695
|
"enabled" => bool,
|
|
4531
4696
|
"lastSha" => String | nil,
|
|
4532
|
-
"lastRunAt" => String | nil
|
|
4697
|
+
"lastRunAt" => String | nil
|
|
4533
4698
|
}
|
|
4534
4699
|
|
|
4535
4700
|
# Spec schema: `DeployTriggerInput`.
|
|
@@ -4566,10 +4731,10 @@ module Infrawrench
|
|
|
4566
4731
|
"image" => String | nil,
|
|
4567
4732
|
"status" => deploy_status,
|
|
4568
4733
|
"origin" => "web" | "cli" | "trigger",
|
|
4569
|
-
"stage" => deploy_stage | nil
|
|
4734
|
+
"stage" => deploy_stage | nil,
|
|
4570
4735
|
"durationMs" => Integer | nil,
|
|
4571
4736
|
"buildSeconds" => Integer | nil,
|
|
4572
|
-
"buildRunner" => "cloud-build" | "ssh" | nil
|
|
4737
|
+
"buildRunner" => "cloud-build" | "ssh" | nil,
|
|
4573
4738
|
"startedAt" => String
|
|
4574
4739
|
}
|
|
4575
4740
|
|
|
@@ -4645,10 +4810,6 @@ module Infrawrench
|
|
|
4645
4810
|
# Spec schema: `DigestTransportResult`.
|
|
4646
4811
|
type digest_transport_result = { "attempted" => Integer, "succeeded" => Integer }
|
|
4647
4812
|
|
|
4648
|
-
# Provider discounts: `commitment_discount` lines and negative
|
|
4649
|
-
# `other`/`adjustment` lines (enterprise agreements, private pricing, Savings
|
|
4650
|
-
# Plan negation).
|
|
4651
|
-
#
|
|
4652
4813
|
# Spec schema: `DiscountTreatment`.
|
|
4653
4814
|
type discount_treatment = { "mode" => "pass_through" | "partial" | "retain", ?"passThroughPercent" => Numeric | nil }
|
|
4654
4815
|
|
|
@@ -4729,7 +4890,7 @@ module Infrawrench
|
|
|
4729
4890
|
"fixedVersion" => String | nil,
|
|
4730
4891
|
"fixAvailable" => bool | nil,
|
|
4731
4892
|
"exploitAvailable" => bool | nil,
|
|
4732
|
-
"kev" => vulnerability_kev_entry,
|
|
4893
|
+
"kev" => vulnerability_kev_entry | nil,
|
|
4733
4894
|
"artifact" => {
|
|
4734
4895
|
"kind" => "image" | "function" | "host" | "repository" | "package",
|
|
4735
4896
|
"name" => String,
|
|
@@ -4744,12 +4905,7 @@ module Infrawrench
|
|
|
4744
4905
|
"url" => String | nil,
|
|
4745
4906
|
"collectedAt" => String,
|
|
4746
4907
|
"running" => Array[vulnerability_running_ref],
|
|
4747
|
-
"services" => Array[{
|
|
4748
|
-
"id" => String,
|
|
4749
|
-
"name" => String,
|
|
4750
|
-
"slug" => String,
|
|
4751
|
-
"tier" => Numeric | Numeric | Numeric | Numeric | nil
|
|
4752
|
-
}],
|
|
4908
|
+
"services" => Array[{ "id" => String, "name" => String, "slug" => String, "tier" => Numeric | nil }],
|
|
4753
4909
|
"dismissal" => vulnerability_dismissal
|
|
4754
4910
|
}
|
|
4755
4911
|
|
|
@@ -4798,40 +4954,34 @@ module Infrawrench
|
|
|
4798
4954
|
type dns_record_target = {
|
|
4799
4955
|
"value" => String,
|
|
4800
4956
|
"classification" => "owned" | "dangling" | "external" | "not-analysed",
|
|
4801
|
-
"resource" => dns_target_resource,
|
|
4802
|
-
"service" => dns_target_service
|
|
4957
|
+
"resource" => dns_target_resource | nil,
|
|
4958
|
+
"service" => dns_target_service | nil
|
|
4803
4959
|
}
|
|
4804
4960
|
|
|
4805
4961
|
# Spec schema: `DnsSkippedNamespace`.
|
|
4806
4962
|
type dns_skipped_namespace = { "pluginId" => plugin_id, "pluginName" => String, "label" => String, "reason" => String }
|
|
4807
4963
|
|
|
4808
|
-
# Set only when classification is "owned".
|
|
4809
|
-
#
|
|
4810
4964
|
# Spec schema: `DnsTargetResource`.
|
|
4811
4965
|
type dns_target_resource = {
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
| nil
|
|
4966
|
+
"resourceId" => String,
|
|
4967
|
+
"displayName" => String,
|
|
4968
|
+
"pluginId" => plugin_id,
|
|
4969
|
+
"resourceTypeId" => String,
|
|
4970
|
+
"resourceTypeName" => String,
|
|
4971
|
+
"accountId" => String
|
|
4972
|
+
}
|
|
4820
4973
|
|
|
4821
|
-
# Set only when classification is "dangling".
|
|
4822
|
-
#
|
|
4823
4974
|
# Spec schema: `DnsTargetService`.
|
|
4824
4975
|
type dns_target_service = {
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
| nil
|
|
4976
|
+
"pluginId" => plugin_id,
|
|
4977
|
+
"pluginName" => String,
|
|
4978
|
+
"resourceTypeId" => String,
|
|
4979
|
+
"ruleId" => String,
|
|
4980
|
+
"label" => String,
|
|
4981
|
+
"severity" => "critical" | "high" | "medium" | "low",
|
|
4982
|
+
"reason" => String,
|
|
4983
|
+
"claimLabel" => String
|
|
4984
|
+
}
|
|
4835
4985
|
|
|
4836
4986
|
# Spec schema: `DnsZone`.
|
|
4837
4987
|
type dns_zone = {
|
|
@@ -4862,7 +5012,7 @@ module Infrawrench
|
|
|
4862
5012
|
# was nothing to measure.
|
|
4863
5013
|
#
|
|
4864
5014
|
# Spec schema: `DoraBand`.
|
|
4865
|
-
type dora_band = "elite" | "high" | "medium" | "low"
|
|
5015
|
+
type dora_band = "elite" | "high" | "medium" | "low"
|
|
4866
5016
|
|
|
4867
5017
|
# Spec schema: `DoraChange`.
|
|
4868
5018
|
type dora_change = {
|
|
@@ -4879,8 +5029,8 @@ module Infrawrench
|
|
|
4879
5029
|
"url" => String | nil,
|
|
4880
5030
|
"isRollback" => bool,
|
|
4881
5031
|
"leadTimeHours" => Numeric | nil,
|
|
4882
|
-
"failure" => dora_failure,
|
|
4883
|
-
"scope" => Hash[String, dora_scope_value
|
|
5032
|
+
"failure" => dora_failure | nil,
|
|
5033
|
+
"scope" => Hash[String, dora_scope_value | nil]
|
|
4884
5034
|
}
|
|
4885
5035
|
|
|
4886
5036
|
# Spec schema: `DoraChangeList`.
|
|
@@ -4905,22 +5055,21 @@ module Infrawrench
|
|
|
4905
5055
|
|
|
4906
5056
|
# Spec schema: `DoraFailure`.
|
|
4907
5057
|
type dora_failure = {
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
| nil
|
|
5058
|
+
"kind" => "incident" | "rollback" | "failed_deploy" | "reverted",
|
|
5059
|
+
"refId" => String,
|
|
5060
|
+
"title" => String,
|
|
5061
|
+
"at" => String
|
|
5062
|
+
}
|
|
4914
5063
|
|
|
4915
5064
|
# Spec schema: `DoraReport`.
|
|
4916
5065
|
type dora_report = {
|
|
4917
5066
|
"from" => String,
|
|
4918
5067
|
"to" => String,
|
|
4919
5068
|
"bucket" => "day" | "week",
|
|
4920
|
-
"filter" => dora_scope_filter,
|
|
5069
|
+
"filter" => dora_scope_filter | nil,
|
|
4921
5070
|
"groupBy" => String,
|
|
4922
5071
|
"summary" => dora_summary,
|
|
4923
|
-
"previous" => dora_summary
|
|
5072
|
+
"previous" => dora_summary,
|
|
4924
5073
|
"trend" => Array[{
|
|
4925
5074
|
"start" => String,
|
|
4926
5075
|
"deploys" => Integer,
|
|
@@ -4953,7 +5102,7 @@ module Infrawrench
|
|
|
4953
5102
|
type dora_restore_list = { "restores" => Array[dora_restore] }
|
|
4954
5103
|
|
|
4955
5104
|
# Spec schema: `DoraScopeFilter`.
|
|
4956
|
-
type dora_scope_filter = { "dimension" => String, "value" => String | nil }
|
|
5105
|
+
type dora_scope_filter = { "dimension" => String, "value" => String | nil }
|
|
4957
5106
|
|
|
4958
5107
|
# Spec schema: `DoraScopeValue`.
|
|
4959
5108
|
type dora_scope_value = { "key" => String, "label" => String }
|
|
@@ -4990,27 +5139,27 @@ module Infrawrench
|
|
|
4990
5139
|
type dora_summary = {
|
|
4991
5140
|
"deploymentFrequency" => {
|
|
4992
5141
|
"value" => Numeric | nil,
|
|
4993
|
-
"band" => dora_band,
|
|
5142
|
+
"band" => dora_band | nil,
|
|
4994
5143
|
"sample" => Integer,
|
|
4995
5144
|
"deploys" => Integer,
|
|
4996
5145
|
"days" => Numeric
|
|
4997
5146
|
},
|
|
4998
5147
|
"leadTime" => {
|
|
4999
5148
|
"value" => Numeric | nil,
|
|
5000
|
-
"band" => dora_band,
|
|
5149
|
+
"band" => dora_band | nil,
|
|
5001
5150
|
"sample" => Integer,
|
|
5002
5151
|
"p90Hours" => Numeric | nil
|
|
5003
5152
|
},
|
|
5004
5153
|
"changeFailureRate" => {
|
|
5005
5154
|
"value" => Numeric | nil,
|
|
5006
|
-
"band" => dora_band,
|
|
5155
|
+
"band" => dora_band | nil,
|
|
5007
5156
|
"sample" => Integer,
|
|
5008
5157
|
"changes" => Integer,
|
|
5009
5158
|
"failures" => Integer
|
|
5010
5159
|
},
|
|
5011
5160
|
"timeToRestore" => {
|
|
5012
5161
|
"value" => Numeric | nil,
|
|
5013
|
-
"band" => dora_band,
|
|
5162
|
+
"band" => dora_band | nil,
|
|
5014
5163
|
"sample" => Integer,
|
|
5015
5164
|
"restores" => Integer
|
|
5016
5165
|
}
|
|
@@ -5091,7 +5240,7 @@ module Infrawrench
|
|
|
5091
5240
|
"accountName" => String | nil,
|
|
5092
5241
|
"currency" => String | nil,
|
|
5093
5242
|
"amount" => Numeric | nil,
|
|
5094
|
-
"detail" => Hash[String, String | Numeric | nil
|
|
5243
|
+
"detail" => Hash[String, String | Numeric | nil],
|
|
5095
5244
|
"firedAt" => String,
|
|
5096
5245
|
"notifiedAt" => String | nil,
|
|
5097
5246
|
?"remediation" => finding_remediation
|
|
@@ -5105,16 +5254,24 @@ module Infrawrench
|
|
|
5105
5254
|
}
|
|
5106
5255
|
|
|
5107
5256
|
# Spec schema: `EnvironmentCaptureDraftMember`.
|
|
5108
|
-
type environment_capture_draft_member =
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5257
|
+
type environment_capture_draft_member = {
|
|
5258
|
+
"key" => String,
|
|
5259
|
+
"pluginId" => plugin_id,
|
|
5260
|
+
"resourceTypeId" => String,
|
|
5261
|
+
"accountId" => String,
|
|
5262
|
+
"sourceName" => String,
|
|
5263
|
+
?"sourceResourceId" => String,
|
|
5264
|
+
?"nameFieldKey" => String,
|
|
5265
|
+
?"parentMember" => String,
|
|
5266
|
+
"fields" => Hash[String, environment_template_field_value],
|
|
5267
|
+
"fieldMeta" => Hash[String, {
|
|
5268
|
+
"label" => String,
|
|
5269
|
+
"kind" => String,
|
|
5270
|
+
"required" => bool,
|
|
5271
|
+
?"options" => Array[{ "id" => String, "label" => String }],
|
|
5272
|
+
"parameterisable" => bool
|
|
5273
|
+
}]
|
|
5274
|
+
}
|
|
5118
5275
|
|
|
5119
5276
|
# Spec schema: `EnvironmentCaptureRequest`.
|
|
5120
5277
|
type environment_capture_request = {
|
|
@@ -5147,8 +5304,8 @@ module Infrawrench
|
|
|
5147
5304
|
"resourceTypeId" => String,
|
|
5148
5305
|
"resourceTypeName" => String,
|
|
5149
5306
|
"status" => "only-in-a" | "only-in-b" | "changed",
|
|
5150
|
-
"a" => environment_diff_resource_ref,
|
|
5151
|
-
"b" => environment_diff_resource_ref
|
|
5307
|
+
"a" => environment_diff_resource_ref | nil,
|
|
5308
|
+
"b" => environment_diff_resource_ref | nil,
|
|
5152
5309
|
"changes" => Array[environment_diff_field_change],
|
|
5153
5310
|
"suppressedCount" => Integer
|
|
5154
5311
|
}
|
|
@@ -5156,16 +5313,13 @@ module Infrawrench
|
|
|
5156
5313
|
# Spec schema: `EnvironmentDiffFieldChange`.
|
|
5157
5314
|
type environment_diff_field_change = { "field" => String, ?"a" => untyped, ?"b" => untyped }
|
|
5158
5315
|
|
|
5159
|
-
# Null when the resource exists only on B.
|
|
5160
|
-
#
|
|
5161
5316
|
# Spec schema: `EnvironmentDiffResourceRef`.
|
|
5162
5317
|
type environment_diff_resource_ref = {
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
| nil
|
|
5318
|
+
"resourceId" => String,
|
|
5319
|
+
"accountId" => String,
|
|
5320
|
+
"displayName" => String,
|
|
5321
|
+
"externalId" => String | nil
|
|
5322
|
+
}
|
|
5169
5323
|
|
|
5170
5324
|
# Spec schema: `EnvironmentDiffResponse`.
|
|
5171
5325
|
type environment_diff_response = {
|
|
@@ -5339,7 +5493,7 @@ module Infrawrench
|
|
|
5339
5493
|
# routed only to Teams or push will always escalate.
|
|
5340
5494
|
#
|
|
5341
5495
|
# Spec schema: `EscalationPolicy`.
|
|
5342
|
-
type escalation_policy = { "afterMinutes" => Integer, "destinations" => Array[alert_destination] }
|
|
5496
|
+
type escalation_policy = { "afterMinutes" => Integer, "destinations" => Array[alert_destination] }
|
|
5343
5497
|
|
|
5344
5498
|
# `data` of a `account.sync.failing` event, version 1. An account's sync kept
|
|
5345
5499
|
# failing past the org's paging threshold.
|
|
@@ -5786,7 +5940,7 @@ module Infrawrench
|
|
|
5786
5940
|
"redeliveryOf" => String | nil,
|
|
5787
5941
|
"attempts" => Array[event_delivery_attempt],
|
|
5788
5942
|
"createdAt" => String,
|
|
5789
|
-
"payload" =>
|
|
5943
|
+
"payload" => untyped
|
|
5790
5944
|
}
|
|
5791
5945
|
|
|
5792
5946
|
# Spec schema: `EventDeliveryAttempt`.
|
|
@@ -5817,7 +5971,7 @@ module Infrawrench
|
|
|
5817
5971
|
"destination" => event_destination,
|
|
5818
5972
|
"destinationLabel" => String,
|
|
5819
5973
|
"eventTypes" => Array[String],
|
|
5820
|
-
"minSeverity" => event_severity
|
|
5974
|
+
"minSeverity" => event_severity | nil,
|
|
5821
5975
|
"accountIds" => Array[String],
|
|
5822
5976
|
"environments" => Array[String],
|
|
5823
5977
|
"secretHint" => String | nil,
|
|
@@ -5838,7 +5992,7 @@ module Infrawrench
|
|
|
5838
5992
|
?"enabled" => bool,
|
|
5839
5993
|
"destination" => event_destination,
|
|
5840
5994
|
?"eventTypes" => Array[String],
|
|
5841
|
-
?"minSeverity" => event_severity
|
|
5995
|
+
?"minSeverity" => event_severity | nil,
|
|
5842
5996
|
?"accountIds" => Array[String],
|
|
5843
5997
|
?"environments" => Array[String]
|
|
5844
5998
|
}
|
|
@@ -5872,7 +6026,7 @@ module Infrawrench
|
|
|
5872
6026
|
"category" => "cost" | "security" | "reliability" | "access" | "operations" | "system",
|
|
5873
6027
|
"defaultSeverity" => event_severity,
|
|
5874
6028
|
"carriesCost" => bool,
|
|
5875
|
-
"schema" =>
|
|
6029
|
+
"schema" => untyped
|
|
5876
6030
|
}
|
|
5877
6031
|
|
|
5878
6032
|
# An account's sync kept failing past the org's paging threshold.
|
|
@@ -6351,7 +6505,21 @@ module Infrawrench
|
|
|
6351
6505
|
}
|
|
6352
6506
|
|
|
6353
6507
|
# Spec schema: `ExchangeRateImportRefusal`.
|
|
6354
|
-
type exchange_rate_import_refusal =
|
|
6508
|
+
type exchange_rate_import_refusal = {
|
|
6509
|
+
"dryRun" => bool,
|
|
6510
|
+
"applied" => bool,
|
|
6511
|
+
"rows" => Array[{
|
|
6512
|
+
"line" => Integer,
|
|
6513
|
+
"action" => "create" | "update" | "unchanged" | "error",
|
|
6514
|
+
?"rate" => exchange_rate_input & untyped,
|
|
6515
|
+
?"previousRate" => String,
|
|
6516
|
+
?"previousEffectiveTo" => String | nil,
|
|
6517
|
+
?"error" => String
|
|
6518
|
+
}],
|
|
6519
|
+
"counts" => { "create" => Integer, "update" => Integer, "unchanged" => Integer, "error" => Integer },
|
|
6520
|
+
"fileError" => String | nil,
|
|
6521
|
+
"error" => String
|
|
6522
|
+
}
|
|
6355
6523
|
|
|
6356
6524
|
# Spec schema: `ExchangeRateImportRequest`.
|
|
6357
6525
|
type exchange_rate_import_request = { "csv" => String, ?"dryRun" => bool, ?"skipInvalid" => bool }
|
|
@@ -6438,8 +6606,6 @@ module Infrawrench
|
|
|
6438
6606
|
"generatedAt" => String
|
|
6439
6607
|
}
|
|
6440
6608
|
|
|
6441
|
-
# Item count per severity; every bucket present, zeros included.
|
|
6442
|
-
#
|
|
6443
6609
|
# Spec schema: `ExpirySeverityCounts`.
|
|
6444
6610
|
type expiry_severity_counts = {
|
|
6445
6611
|
"expired" => Integer,
|
|
@@ -6555,12 +6721,12 @@ module Infrawrench
|
|
|
6555
6721
|
"sourceKind" => github_issue_source_kind,
|
|
6556
6722
|
"sourceId" => String,
|
|
6557
6723
|
"title" => String,
|
|
6558
|
-
?"details" => Array[{ "label" => String, ?"value" => String | Numeric | nil
|
|
6724
|
+
?"details" => Array[{ "label" => String, ?"value" => String | Numeric | nil }],
|
|
6559
6725
|
?"note" => String,
|
|
6560
6726
|
?"resourceId" => String,
|
|
6561
6727
|
?"monthlyCost" => { "amount" => Numeric, "currency" => String },
|
|
6562
6728
|
?"remediation" => Array[String],
|
|
6563
|
-
?"repo" => github_repo_ref
|
|
6729
|
+
?"repo" => github_repo_ref,
|
|
6564
6730
|
?"labels" => Array[String],
|
|
6565
6731
|
?"assignees" => Array[String],
|
|
6566
6732
|
?"appUrl" => String
|
|
@@ -6597,15 +6763,22 @@ module Infrawrench
|
|
|
6597
6763
|
?"version" => "1.4" | "1.3"
|
|
6598
6764
|
}
|
|
6599
6765
|
|
|
6600
|
-
# Spec schema: `FxFeedRates`.
|
|
6601
|
-
type fx_feed_rates =
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6766
|
+
# Spec schema: `FxFeedRates`.
|
|
6767
|
+
type fx_feed_rates = {
|
|
6768
|
+
"source" => "ecb",
|
|
6769
|
+
"sourceName" => String,
|
|
6770
|
+
"sourceUrl" => String,
|
|
6771
|
+
"latestRateDate" => String | nil,
|
|
6772
|
+
"earliestRateDate" => String | nil,
|
|
6773
|
+
"currencies" => Array[String],
|
|
6774
|
+
"lastSuccessAt" => String | nil,
|
|
6775
|
+
"lastError" => String | nil,
|
|
6776
|
+
"date" => String,
|
|
6777
|
+
"base" => String,
|
|
6778
|
+
"rateDate" => String | nil,
|
|
6779
|
+
"rates" => Array[{ "currency" => String, "rate" => Numeric }]
|
|
6780
|
+
}
|
|
6781
|
+
|
|
6609
6782
|
# Spec schema: `FxFeedStatus`.
|
|
6610
6783
|
type fx_feed_status = {
|
|
6611
6784
|
"source" => "ecb",
|
|
@@ -6631,21 +6804,48 @@ module Infrawrench
|
|
|
6631
6804
|
"privateKey" => String
|
|
6632
6805
|
}
|
|
6633
6806
|
|
|
6807
|
+
# Spec schema: `GithubAppRepos`.
|
|
6808
|
+
type github_app_repos = {
|
|
6809
|
+
"repos" => Array[{
|
|
6810
|
+
"installationId" => Integer,
|
|
6811
|
+
"id" => Integer,
|
|
6812
|
+
"fullName" => String,
|
|
6813
|
+
"defaultBranch" => String,
|
|
6814
|
+
"private" => bool
|
|
6815
|
+
}]
|
|
6816
|
+
}
|
|
6817
|
+
|
|
6818
|
+
# Spec schema: `GithubAppStatus`.
|
|
6819
|
+
type github_app_status = {
|
|
6820
|
+
"configured" => bool,
|
|
6821
|
+
"appSlug" => String | nil,
|
|
6822
|
+
"installations" => Array[{ "installationId" => Integer, "accountLogin" => String | nil }]
|
|
6823
|
+
}
|
|
6824
|
+
|
|
6634
6825
|
# Spec schema: `GithubAssignee`.
|
|
6635
6826
|
type github_assignee = { "login" => String, "avatarUrl" => String | nil }
|
|
6636
6827
|
|
|
6637
6828
|
# Spec schema: `GithubIacSource`.
|
|
6638
|
-
type github_iac_source =
|
|
6829
|
+
type github_iac_source = {
|
|
6830
|
+
"id" => String,
|
|
6831
|
+
"iacAccountId" => String | nil,
|
|
6832
|
+
"repo" => github_repo_ref,
|
|
6833
|
+
"baseBranch" => String | nil,
|
|
6834
|
+
"directory" => String
|
|
6835
|
+
}
|
|
6639
6836
|
|
|
6640
6837
|
# Spec schema: `GithubIacSourceInput`.
|
|
6641
6838
|
type github_iac_source_input = {
|
|
6642
6839
|
?"id" => String,
|
|
6643
6840
|
"iacAccountId" => String | nil,
|
|
6644
|
-
"repo" => github_repo_ref
|
|
6841
|
+
"repo" => github_repo_ref,
|
|
6645
6842
|
"baseBranch" => String | nil,
|
|
6646
6843
|
"directory" => String
|
|
6647
6844
|
}
|
|
6648
6845
|
|
|
6846
|
+
# Spec schema: `GithubInstallUrl`.
|
|
6847
|
+
type github_install_url = { "url" => String }
|
|
6848
|
+
|
|
6649
6849
|
# What an installation has **accepted**. An installation made before issue
|
|
6650
6850
|
# filing existed shows `issues: none` until an owner of the GitHub account
|
|
6651
6851
|
# approves the app's updated permissions.
|
|
@@ -6677,7 +6877,7 @@ module Infrawrench
|
|
|
6677
6877
|
"pullRequestNumber" => Integer | nil,
|
|
6678
6878
|
"pullRequestUrl" => String | nil,
|
|
6679
6879
|
"status" => String | nil,
|
|
6680
|
-
"statusCategory" => issue_status_category,
|
|
6880
|
+
"statusCategory" => issue_status_category | nil,
|
|
6681
6881
|
"assignee" => String | nil,
|
|
6682
6882
|
"issueUpdatedAt" => String | nil,
|
|
6683
6883
|
"statusSyncedAt" => String | nil,
|
|
@@ -6687,13 +6887,19 @@ module Infrawrench
|
|
|
6687
6887
|
}
|
|
6688
6888
|
|
|
6689
6889
|
# Spec schema: `GithubIssueRoute`.
|
|
6690
|
-
type github_issue_route =
|
|
6890
|
+
type github_issue_route = {
|
|
6891
|
+
"id" => String,
|
|
6892
|
+
"match" => github_issue_route_match,
|
|
6893
|
+
"repo" => github_repo_ref,
|
|
6894
|
+
"labels" => Array[String],
|
|
6895
|
+
"assignees" => Array[String]
|
|
6896
|
+
}
|
|
6691
6897
|
|
|
6692
6898
|
# Spec schema: `GithubIssueRouteInput`.
|
|
6693
6899
|
type github_issue_route_input = {
|
|
6694
6900
|
?"id" => String,
|
|
6695
6901
|
"match" => github_issue_route_match,
|
|
6696
|
-
"repo" => github_repo_ref
|
|
6902
|
+
"repo" => github_repo_ref,
|
|
6697
6903
|
"labels" => Array[String],
|
|
6698
6904
|
"assignees" => Array[String]
|
|
6699
6905
|
}
|
|
@@ -6709,7 +6915,7 @@ module Infrawrench
|
|
|
6709
6915
|
|
|
6710
6916
|
# Spec schema: `GithubIssueRouteResolution`.
|
|
6711
6917
|
type github_issue_route_resolution = {
|
|
6712
|
-
"repo" => github_repo_ref,
|
|
6918
|
+
"repo" => github_repo_ref | nil,
|
|
6713
6919
|
"labels" => Array[String],
|
|
6714
6920
|
"assignees" => Array[String],
|
|
6715
6921
|
"routeId" => String | nil
|
|
@@ -6718,7 +6924,7 @@ module Infrawrench
|
|
|
6718
6924
|
# Spec schema: `GithubIssueSettings`.
|
|
6719
6925
|
type github_issue_settings = {
|
|
6720
6926
|
"enabled" => bool,
|
|
6721
|
-
"defaultRepo" => github_repo_ref,
|
|
6927
|
+
"defaultRepo" => github_repo_ref | nil,
|
|
6722
6928
|
"labels" => Array[String],
|
|
6723
6929
|
"assignees" => Array[String],
|
|
6724
6930
|
"routes" => Array[github_issue_route],
|
|
@@ -6732,7 +6938,7 @@ module Infrawrench
|
|
|
6732
6938
|
# Spec schema: `GithubIssueSettingsInput`.
|
|
6733
6939
|
type github_issue_settings_input = {
|
|
6734
6940
|
"enabled" => bool,
|
|
6735
|
-
"defaultRepo" => github_repo_ref,
|
|
6941
|
+
"defaultRepo" => github_repo_ref | nil,
|
|
6736
6942
|
"labels" => Array[String],
|
|
6737
6943
|
"assignees" => Array[String],
|
|
6738
6944
|
"routes" => Array[github_issue_route_input],
|
|
@@ -6767,9 +6973,6 @@ module Infrawrench
|
|
|
6767
6973
|
# Spec schema: `GithubLabel`.
|
|
6768
6974
|
type github_label = { "name" => String, "color" => String, "description" => String | nil }
|
|
6769
6975
|
|
|
6770
|
-
# The installation has not accepted the permission this needs. An owner of the
|
|
6771
|
-
# GitHub account approves it from `manageUrl`.
|
|
6772
|
-
#
|
|
6773
6976
|
# Spec schema: `GithubPermissionRequired`.
|
|
6774
6977
|
type github_permission_required = {
|
|
6775
6978
|
"error" => String,
|
|
@@ -6791,7 +6994,7 @@ module Infrawrench
|
|
|
6791
6994
|
# Spec schema: `GithubPullRequestPreview`.
|
|
6792
6995
|
type github_pull_request_preview = {
|
|
6793
6996
|
"eligible" => bool,
|
|
6794
|
-
"repo" => github_repo_ref
|
|
6997
|
+
"repo" => github_repo_ref,
|
|
6795
6998
|
"baseBranch" => String,
|
|
6796
6999
|
"path" => String,
|
|
6797
7000
|
"terraformAddress" => String,
|
|
@@ -6804,11 +7007,11 @@ module Infrawrench
|
|
|
6804
7007
|
# Spec schema: `GithubPullRequestResult`.
|
|
6805
7008
|
type github_pull_request_result = {
|
|
6806
7009
|
"pullRequest" => { "number" => Integer, "url" => String },
|
|
6807
|
-
"link" => github_issue_link
|
|
7010
|
+
"link" => github_issue_link | nil
|
|
6808
7011
|
}
|
|
6809
7012
|
|
|
6810
7013
|
# Spec schema: `GithubRepoRef`.
|
|
6811
|
-
type github_repo_ref = { "installationId" => Integer, "fullName" => String }
|
|
7014
|
+
type github_repo_ref = { "installationId" => Integer, "fullName" => String }
|
|
6812
7015
|
|
|
6813
7016
|
# What happens to an open issue when its finding goes away: close it with a
|
|
6814
7017
|
# comment, only comment, or leave it alone.
|
|
@@ -6834,7 +7037,7 @@ module Infrawrench
|
|
|
6834
7037
|
"entityType" => "api-key" | "ssh-key" | "member",
|
|
6835
7038
|
"entityId" => String,
|
|
6836
7039
|
"entityName" => String,
|
|
6837
|
-
"facts" => Hash[String, String | Numeric | bool | nil
|
|
7040
|
+
"facts" => Hash[String, String | Numeric | bool | nil]
|
|
6838
7041
|
}
|
|
6839
7042
|
|
|
6840
7043
|
# Spec schema: `HygieneReport`.
|
|
@@ -7011,18 +7214,13 @@ module Infrawrench
|
|
|
7011
7214
|
"thresholds" => Array[idle_rule_threshold_view]
|
|
7012
7215
|
}
|
|
7013
7216
|
|
|
7014
|
-
# Monthly figure at the provider's published list price, for idle rows a
|
|
7015
|
-
# plugin could price. An estimate: show it only when `cost` (billed spend) is
|
|
7016
|
-
# null.
|
|
7017
|
-
#
|
|
7018
7217
|
# Spec schema: `IdleSavingsEstimate`.
|
|
7019
7218
|
type idle_savings_estimate = {
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
| nil
|
|
7219
|
+
"monthlyAmount" => Numeric,
|
|
7220
|
+
"currency" => String,
|
|
7221
|
+
"basis" => "list-price",
|
|
7222
|
+
?"note" => String
|
|
7223
|
+
}
|
|
7026
7224
|
|
|
7027
7225
|
# Spec schema: `ImportSshKeyRequest`.
|
|
7028
7226
|
type import_ssh_key_request = { "name" => String, "publicKey" => String }
|
|
@@ -7080,7 +7278,7 @@ module Infrawrench
|
|
|
7080
7278
|
"refId" => String | String | nil,
|
|
7081
7279
|
"refSecondary" => String | nil,
|
|
7082
7280
|
"error" => String | nil,
|
|
7083
|
-
"request" => incident_artifact_request,
|
|
7281
|
+
"request" => incident_artifact_request | nil,
|
|
7084
7282
|
"createdAt" => String,
|
|
7085
7283
|
"updatedAt" => String
|
|
7086
7284
|
}
|
|
@@ -7091,7 +7289,7 @@ module Infrawrench
|
|
|
7091
7289
|
# page.
|
|
7092
7290
|
#
|
|
7093
7291
|
# Spec schema: `IncidentArtifactRequest`.
|
|
7094
|
-
type incident_artifact_request = { ?"statusPageId" => String | nil, ?"componentIds" => Array[String] }
|
|
7292
|
+
type incident_artifact_request = { ?"statusPageId" => String | nil, ?"componentIds" => Array[String] }
|
|
7095
7293
|
|
|
7096
7294
|
# Spec schema: `IncidentDeclare`.
|
|
7097
7295
|
type incident_declare = {
|
|
@@ -7108,12 +7306,7 @@ module Infrawrench
|
|
|
7108
7306
|
type incident_detail = {
|
|
7109
7307
|
"incident" => incident,
|
|
7110
7308
|
"notes" => Array[incident_note],
|
|
7111
|
-
"affectedServices" => Array[{
|
|
7112
|
-
"id" => String,
|
|
7113
|
-
"name" => String,
|
|
7114
|
-
"slug" => String,
|
|
7115
|
-
"tier" => Numeric | Numeric | Numeric | Numeric | nil
|
|
7116
|
-
}]
|
|
7309
|
+
"affectedServices" => Array[{ "id" => String, "name" => String, "slug" => String, "tier" => Numeric | nil }]
|
|
7117
7310
|
}
|
|
7118
7311
|
|
|
7119
7312
|
# Spec schema: `IncidentList`.
|
|
@@ -7221,63 +7414,81 @@ module Infrawrench
|
|
|
7221
7414
|
type invite_response = { "id" => String, "token" => String }
|
|
7222
7415
|
|
|
7223
7416
|
# Spec schema: `Invoice`.
|
|
7224
|
-
type invoice =
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7417
|
+
type invoice = {
|
|
7418
|
+
"id" => String,
|
|
7419
|
+
"managedAccountId" => String,
|
|
7420
|
+
"managedAccountName" => String,
|
|
7421
|
+
"number" => String | nil,
|
|
7422
|
+
"status" => invoice_status,
|
|
7423
|
+
"periodFrom" => String,
|
|
7424
|
+
"periodTo" => String,
|
|
7425
|
+
"currency" => String,
|
|
7426
|
+
"totals" => invoice_totals,
|
|
7427
|
+
"issuedAt" => String | nil,
|
|
7428
|
+
"sentAt" => String | nil,
|
|
7429
|
+
"delivery" => invoice_delivery | nil,
|
|
7430
|
+
"voidedAt" => String | nil,
|
|
7431
|
+
"voidReason" => String | nil,
|
|
7432
|
+
"supersedesInvoiceId" => String | nil,
|
|
7433
|
+
"supersededByInvoiceId" => String | nil,
|
|
7434
|
+
"createdAt" => String,
|
|
7435
|
+
"updatedAt" => String,
|
|
7436
|
+
"notes" => String | nil,
|
|
7437
|
+
"lines" => Array[invoice_line],
|
|
7438
|
+
"derivation" => invoice_derivation,
|
|
7439
|
+
"billing" => invoice_billing | nil,
|
|
7440
|
+
"live" => bool,
|
|
7441
|
+
"computedAt" => String,
|
|
7442
|
+
"approvedByUserId" => String | nil,
|
|
7443
|
+
"sentByUserId" => String | nil,
|
|
7444
|
+
"voidedByUserId" => String | nil,
|
|
7445
|
+
"createdByUserId" => String | nil
|
|
7446
|
+
}
|
|
7447
|
+
|
|
7448
|
+
# Who the invoice is addressed to and how to pay it: the customer and its
|
|
7449
|
+
# billing profile resolved together. Live on a draft; written once at approval
|
|
7450
|
+
# and read back verbatim after.
|
|
7241
7451
|
#
|
|
7242
7452
|
# Spec schema: `InvoiceBilling`.
|
|
7243
7453
|
type invoice_billing = {
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
| nil
|
|
7454
|
+
"profileId" => String | nil,
|
|
7455
|
+
"profileName" => String | nil,
|
|
7456
|
+
"legalName" => String,
|
|
7457
|
+
"attention" => String | nil,
|
|
7458
|
+
"address" => String | nil,
|
|
7459
|
+
"taxId" => String | nil,
|
|
7460
|
+
"poNumber" => String | nil,
|
|
7461
|
+
"to" => Array[String],
|
|
7462
|
+
"cc" => Array[String],
|
|
7463
|
+
"paymentTermsDays" => Integer | nil,
|
|
7464
|
+
"issueDate" => String,
|
|
7465
|
+
"dueDate" => String | nil,
|
|
7466
|
+
"taxRates" => Array[billing_profile_tax_rate],
|
|
7467
|
+
"bank" => billing_profile_bank | nil,
|
|
7468
|
+
"footer" => String | nil,
|
|
7469
|
+
"logoId" => String | nil,
|
|
7470
|
+
"numberPrefix" => String,
|
|
7471
|
+
"numberIncludesYear" => bool
|
|
7472
|
+
}
|
|
7264
7473
|
|
|
7265
|
-
#
|
|
7266
|
-
#
|
|
7267
|
-
#
|
|
7268
|
-
#
|
|
7474
|
+
# What became of the last attempt to email this invoice to its customer.
|
|
7475
|
+
# Separate from the figures in every sense: delivery records where a frozen
|
|
7476
|
+
# document went and cannot restate what it says.
|
|
7477
|
+
#
|
|
7478
|
+
# **A partial delivery is terminal.** The mail provider has no idempotency
|
|
7479
|
+
# key, so retrying after some addresses succeeded would put a second copy of
|
|
7480
|
+
# the same bill in inboxes that already have it.
|
|
7269
7481
|
#
|
|
7270
7482
|
# Spec schema: `InvoiceDelivery`.
|
|
7271
7483
|
type invoice_delivery = {
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
| nil
|
|
7484
|
+
"status" => "pending" | "succeeded" | "partial" | "failed" | "no_targets",
|
|
7485
|
+
"recipients" => Array[String],
|
|
7486
|
+
"delivered" => Integer,
|
|
7487
|
+
"attemptedAt" => String,
|
|
7488
|
+
"deliveredAt" => String | nil,
|
|
7489
|
+
"attempts" => Integer,
|
|
7490
|
+
"error" => String | nil
|
|
7491
|
+
}
|
|
7281
7492
|
|
|
7282
7493
|
# Everything needed to re-derive the invoice by hand. Not decoration: an
|
|
7283
7494
|
# invoice a customer cannot reconcile is an invoice a customer does not pay.
|
|
@@ -7300,9 +7511,9 @@ module Infrawrench
|
|
|
7300
7511
|
"accounts" => Array[{ "id" => String, "label" => String }]
|
|
7301
7512
|
},
|
|
7302
7513
|
"missingScope" => Array[String],
|
|
7303
|
-
?"pricing" => managed_account_pricing &
|
|
7514
|
+
?"pricing" => managed_account_pricing & untyped,
|
|
7304
7515
|
?"effects" => Array[pricing_effect],
|
|
7305
|
-
?"rerateCoverage" => rerate_coverage
|
|
7516
|
+
?"rerateCoverage" => rerate_coverage | nil,
|
|
7306
7517
|
?"warnings" => Array[String],
|
|
7307
7518
|
?"expressionFailures" => Array[pricing_expression_failure]
|
|
7308
7519
|
}
|
|
@@ -7367,10 +7578,10 @@ module Infrawrench
|
|
|
7367
7578
|
"periodFrom" => String,
|
|
7368
7579
|
"periodTo" => String,
|
|
7369
7580
|
"currency" => String,
|
|
7370
|
-
"totals" => invoice_totals,
|
|
7581
|
+
"totals" => invoice_totals | nil,
|
|
7371
7582
|
"issuedAt" => String | nil,
|
|
7372
7583
|
"sentAt" => String | nil,
|
|
7373
|
-
"delivery" => invoice_delivery,
|
|
7584
|
+
"delivery" => invoice_delivery | nil,
|
|
7374
7585
|
"voidedAt" => String | nil,
|
|
7375
7586
|
"voidReason" => String | nil,
|
|
7376
7587
|
"supersedesInvoiceId" => String | nil,
|
|
@@ -7379,18 +7590,17 @@ module Infrawrench
|
|
|
7379
7590
|
"updatedAt" => String
|
|
7380
7591
|
}
|
|
7381
7592
|
|
|
7382
|
-
#
|
|
7383
|
-
#
|
|
7384
|
-
#
|
|
7593
|
+
# `collected + adjustment === adjusted` holds for every currency. That
|
|
7594
|
+
# identity is what makes an invoice reconcilable back to the spend that
|
|
7595
|
+
# produced it, and it is checked before anything is frozen.
|
|
7385
7596
|
#
|
|
7386
7597
|
# Spec schema: `InvoiceTotals`.
|
|
7387
7598
|
type invoice_totals = {
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
| nil
|
|
7599
|
+
"collected" => Hash[String, Numeric],
|
|
7600
|
+
"adjustment" => Hash[String, Numeric],
|
|
7601
|
+
"adjusted" => Hash[String, Numeric],
|
|
7602
|
+
"billed" => Hash[String, Numeric]
|
|
7603
|
+
}
|
|
7394
7604
|
|
|
7395
7605
|
# Spec schema: `InvoiceUpdate`.
|
|
7396
7606
|
type invoice_update = { "periodFrom" => String, "periodTo" => String, ?"notes" => String | nil }
|
|
@@ -7399,25 +7609,7 @@ module Infrawrench
|
|
|
7399
7609
|
type invoice_void_request = { "reason" => String, ?"supersede" => bool }
|
|
7400
7610
|
|
|
7401
7611
|
# Spec schema: `InvoiceVoidResponse`.
|
|
7402
|
-
type invoice_void_response = {
|
|
7403
|
-
"invoice" => invoice,
|
|
7404
|
-
"replacement" => invoice
|
|
7405
|
-
& invoice_summary
|
|
7406
|
-
& ({
|
|
7407
|
-
?"totals" => invoice_totals & Hash[String, untyped],
|
|
7408
|
-
"notes" => String | nil,
|
|
7409
|
-
"lines" => Array[invoice_line],
|
|
7410
|
-
"derivation" => invoice_derivation,
|
|
7411
|
-
"billing" => invoice_billing,
|
|
7412
|
-
"live" => bool,
|
|
7413
|
-
"computedAt" => String,
|
|
7414
|
-
"approvedByUserId" => String | nil,
|
|
7415
|
-
"sentByUserId" => String | nil,
|
|
7416
|
-
"voidedByUserId" => String | nil,
|
|
7417
|
-
"createdByUserId" => String | nil
|
|
7418
|
-
}
|
|
7419
|
-
| nil)
|
|
7420
|
-
}
|
|
7612
|
+
type invoice_void_response = { "invoice" => invoice, "replacement" => invoice | nil }
|
|
7421
7613
|
|
|
7422
7614
|
# Spec schema: `InvokeActionRequest`.
|
|
7423
7615
|
type invoke_action_request = {
|
|
@@ -7433,7 +7625,7 @@ module Infrawrench
|
|
|
7433
7625
|
# type, and GitHub's state and close reason all map onto these four.
|
|
7434
7626
|
#
|
|
7435
7627
|
# Spec schema: `IssueStatusCategory`.
|
|
7436
|
-
type issue_status_category = "todo" | "in_progress" | "done" | "canceled"
|
|
7628
|
+
type issue_status_category = "todo" | "in_progress" | "done" | "canceled"
|
|
7437
7629
|
|
|
7438
7630
|
# Spec schema: `IssueStatusRefreshResult`.
|
|
7439
7631
|
type issue_status_refresh_result = { "checked" => Integer, "changed" => Integer }
|
|
@@ -7450,16 +7642,15 @@ module Infrawrench
|
|
|
7450
7642
|
|
|
7451
7643
|
# Spec schema: `JiraIntegration`.
|
|
7452
7644
|
type jira_integration = {
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
| nil
|
|
7645
|
+
"siteUrl" => String,
|
|
7646
|
+
"accountEmail" => String,
|
|
7647
|
+
"tokenHint" => String,
|
|
7648
|
+
"defaultProjectKey" => String | nil,
|
|
7649
|
+
"defaultIssueTypeId" => String | nil,
|
|
7650
|
+
"acknowledgeOnDone" => bool,
|
|
7651
|
+
"webhook" => issue_webhook_state,
|
|
7652
|
+
"updatedAt" => String
|
|
7653
|
+
}
|
|
7463
7654
|
|
|
7464
7655
|
# Spec schema: `JiraIntegrationInput`.
|
|
7465
7656
|
type jira_integration_input = {
|
|
@@ -7479,7 +7670,7 @@ module Infrawrench
|
|
|
7479
7670
|
"issueKey" => String,
|
|
7480
7671
|
"issueUrl" => String,
|
|
7481
7672
|
"status" => String | nil,
|
|
7482
|
-
"statusCategory" => issue_status_category,
|
|
7673
|
+
"statusCategory" => issue_status_category | nil,
|
|
7483
7674
|
"assignee" => String | nil,
|
|
7484
7675
|
"issueUpdatedAt" => String | nil,
|
|
7485
7676
|
"statusSyncedAt" => String | nil,
|
|
@@ -7631,7 +7822,7 @@ module Infrawrench
|
|
|
7631
7822
|
"requireTicket" => bool,
|
|
7632
7823
|
"createdAt" => String,
|
|
7633
7824
|
"updatedAt" => String,
|
|
7634
|
-
?"labels" => jit_provider_labels
|
|
7825
|
+
?"labels" => jit_provider_labels | nil,
|
|
7635
7826
|
?"canRequest" => bool
|
|
7636
7827
|
}
|
|
7637
7828
|
|
|
@@ -7660,10 +7851,13 @@ module Infrawrench
|
|
|
7660
7851
|
|
|
7661
7852
|
# Spec schema: `JitPrincipalOption`.
|
|
7662
7853
|
type jit_principal_option = { "id" => String, "name" => String, "kind" => "user" | "group", ?"email" => String | nil }
|
|
7663
|
-
| nil
|
|
7664
7854
|
|
|
7665
7855
|
# Spec schema: `JitPrincipalResolution`.
|
|
7666
|
-
type jit_principal_resolution = {
|
|
7856
|
+
type jit_principal_resolution = {
|
|
7857
|
+
"principal" => jit_principal_option | nil,
|
|
7858
|
+
"canPick" => bool,
|
|
7859
|
+
"labels" => jit_provider_labels
|
|
7860
|
+
}
|
|
7667
7861
|
|
|
7668
7862
|
# Spec schema: `JitProviderLabels`.
|
|
7669
7863
|
type jit_provider_labels = {
|
|
@@ -7701,7 +7895,7 @@ module Infrawrench
|
|
|
7701
7895
|
type kpi_widget_config = {
|
|
7702
7896
|
"version" => Numeric,
|
|
7703
7897
|
"source" => kpi_widget_source,
|
|
7704
|
-
?"dateRange" => cost_date_range,
|
|
7898
|
+
?"dateRange" => cost_date_range & untyped,
|
|
7705
7899
|
"comparePreviousPeriod" => bool,
|
|
7706
7900
|
?"upIsGood" => bool
|
|
7707
7901
|
}
|
|
@@ -7747,7 +7941,7 @@ module Infrawrench
|
|
|
7747
7941
|
# Spec schema: `KubernetesEfficiencyConfig`.
|
|
7748
7942
|
type kubernetes_efficiency_config = {
|
|
7749
7943
|
"version" => Numeric,
|
|
7750
|
-
"dateRange" => cost_date_range
|
|
7944
|
+
"dateRange" => cost_date_range,
|
|
7751
7945
|
"granularity" => "day" | "week" | "month",
|
|
7752
7946
|
"filters" => Array[kubernetes_efficiency_filter],
|
|
7753
7947
|
"groupBy" => "cluster" | "namespace" | "workload" | "label" | "node_pool" | "category",
|
|
@@ -7911,7 +8105,7 @@ module Infrawrench
|
|
|
7911
8105
|
"namespaces" => Array[kubernetes_network_row],
|
|
7912
8106
|
"workloads" => Array[kubernetes_network_row],
|
|
7913
8107
|
"topTalkers" => Array[network_flow_pair],
|
|
7914
|
-
"collection" => network_flow_account_status
|
|
8108
|
+
"collection" => network_flow_account_status | nil
|
|
7915
8109
|
}
|
|
7916
8110
|
|
|
7917
8111
|
# Spec schema: `KubernetesNetworkRow`.
|
|
@@ -8034,13 +8228,12 @@ module Infrawrench
|
|
|
8034
8228
|
|
|
8035
8229
|
# Spec schema: `LinearIntegration`.
|
|
8036
8230
|
type linear_integration = {
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
| nil
|
|
8231
|
+
"keyHint" => String,
|
|
8232
|
+
"defaultTeamId" => String | nil,
|
|
8233
|
+
"acknowledgeOnDone" => bool,
|
|
8234
|
+
"webhook" => issue_webhook_state,
|
|
8235
|
+
"updatedAt" => String
|
|
8236
|
+
}
|
|
8044
8237
|
|
|
8045
8238
|
# Spec schema: `LinearIntegrationInput`.
|
|
8046
8239
|
type linear_integration_input = { ?"apiKey" => String, ?"defaultTeamId" => String | nil, ?"acknowledgeOnDone" => bool }
|
|
@@ -8053,7 +8246,7 @@ module Infrawrench
|
|
|
8053
8246
|
"issueIdentifier" => String,
|
|
8054
8247
|
"issueUrl" => String,
|
|
8055
8248
|
"status" => String | nil,
|
|
8056
|
-
"statusCategory" => issue_status_category,
|
|
8249
|
+
"statusCategory" => issue_status_category | nil,
|
|
8057
8250
|
"assignee" => String | nil,
|
|
8058
8251
|
"issueUpdatedAt" => String | nil,
|
|
8059
8252
|
"statusSyncedAt" => String | nil,
|
|
@@ -8091,7 +8284,7 @@ module Infrawrench
|
|
|
8091
8284
|
type linear_webhook_input = { "mode" => "auto" } | { "mode" => "manual", "signingSecret" => String }
|
|
8092
8285
|
|
|
8093
8286
|
# Spec schema: `LinuxAppHostCheck`.
|
|
8094
|
-
type linux_app_host_check = { "preflight" => linux_app_host_preflight, "plan" => linux_app_install_plan }
|
|
8287
|
+
type linux_app_host_check = { "preflight" => linux_app_host_preflight, "plan" => linux_app_install_plan | nil }
|
|
8095
8288
|
|
|
8096
8289
|
# Spec schema: `LinuxAppHostPreflight`.
|
|
8097
8290
|
type linux_app_host_preflight = {
|
|
@@ -8121,15 +8314,14 @@ module Infrawrench
|
|
|
8121
8314
|
|
|
8122
8315
|
# Spec schema: `LinuxAppInstallPlan`.
|
|
8123
8316
|
type linux_app_install_plan = {
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
| nil
|
|
8317
|
+
"packageManager" => "apt-get" | "dnf" | "yum" | "apk" | "pacman" | "zypper",
|
|
8318
|
+
"privilege" => "root" | "sudo" | "sudo-password" | "none",
|
|
8319
|
+
"requirements" => Array[linux_app_requirement_id],
|
|
8320
|
+
"packages" => Array[String],
|
|
8321
|
+
"commands" => Array[String],
|
|
8322
|
+
"canInstall" => bool,
|
|
8323
|
+
?"blockedReason" => String
|
|
8324
|
+
}
|
|
8133
8325
|
|
|
8134
8326
|
# Spec schema: `LinuxAppRequirement`.
|
|
8135
8327
|
type linux_app_requirement = {
|
|
@@ -8148,10 +8340,18 @@ module Infrawrench
|
|
|
8148
8340
|
type linux_app_requirement_id = "gzip" | "xkb" | "dbus" | "fonts" | "mesa" | "icons"
|
|
8149
8341
|
|
|
8150
8342
|
# Spec schema: `LinuxAppSetupEvent`.
|
|
8151
|
-
type linux_app_setup_event =
|
|
8343
|
+
type linux_app_setup_event = Hash[String, untyped]
|
|
8152
8344
|
|
|
8153
8345
|
# Spec schema: `LinuxAppSetupRequest`.
|
|
8154
|
-
type linux_app_setup_request =
|
|
8346
|
+
type linux_app_setup_request = {
|
|
8347
|
+
"accountId" => String,
|
|
8348
|
+
"resourceId" => String,
|
|
8349
|
+
"sshKeyId" => String,
|
|
8350
|
+
"host" => String,
|
|
8351
|
+
"username" => String,
|
|
8352
|
+
?"port" => Integer,
|
|
8353
|
+
?"requirements" => Array[linux_app_requirement_id]
|
|
8354
|
+
}
|
|
8155
8355
|
|
|
8156
8356
|
# Spec schema: `LiteralAssociationRequest`.
|
|
8157
8357
|
type literal_association_request = { "resourceId" => resource_id, "fieldKey" => String, "plaintextValue" => String }
|
|
@@ -8249,7 +8449,7 @@ module Infrawrench
|
|
|
8249
8449
|
"billingCurrency" => String,
|
|
8250
8450
|
"costBasis" => "cash" | "amortized" | "blended",
|
|
8251
8451
|
"applyBillingRules" => bool,
|
|
8252
|
-
"pricing" => managed_account_pricing
|
|
8452
|
+
"pricing" => managed_account_pricing,
|
|
8253
8453
|
"notes" => String | nil,
|
|
8254
8454
|
"billingProfileId" => String | nil,
|
|
8255
8455
|
"costCentreIds" => Array[String],
|
|
@@ -8295,7 +8495,13 @@ module Infrawrench
|
|
|
8295
8495
|
# month.
|
|
8296
8496
|
#
|
|
8297
8497
|
# Spec schema: `ManagedAccountAssignmentPreviewRequest`.
|
|
8298
|
-
type managed_account_assignment_preview_request =
|
|
8498
|
+
type managed_account_assignment_preview_request = {
|
|
8499
|
+
"managedAccountId" => String | nil,
|
|
8500
|
+
?"costCentreIds" => Array[String],
|
|
8501
|
+
?"accountIds" => Array[String],
|
|
8502
|
+
?"periodFrom" => String,
|
|
8503
|
+
?"periodTo" => String
|
|
8504
|
+
}
|
|
8299
8505
|
|
|
8300
8506
|
# Spec schema: `ManagedAccountAssignmentResult`.
|
|
8301
8507
|
type managed_account_assignment_result = {
|
|
@@ -8317,28 +8523,28 @@ module Infrawrench
|
|
|
8317
8523
|
"billingCurrency" => String,
|
|
8318
8524
|
?"costBasis" => "cash" | "amortized" | "blended",
|
|
8319
8525
|
?"applyBillingRules" => bool,
|
|
8320
|
-
?"pricing" => managed_account_pricing &
|
|
8526
|
+
?"pricing" => managed_account_pricing & untyped,
|
|
8321
8527
|
?"notes" => String | nil,
|
|
8322
8528
|
?"billingProfileId" => String | nil,
|
|
8323
8529
|
?"costCentreIds" => Array[String],
|
|
8324
8530
|
?"accountIds" => Array[String]
|
|
8325
8531
|
}
|
|
8326
8532
|
|
|
8327
|
-
#
|
|
8533
|
+
# How a customer's invoice is priced beyond the billing rules. Applied when an
|
|
8534
|
+
# invoice is computed; collected spend is never rewritten.
|
|
8328
8535
|
#
|
|
8329
8536
|
# Spec schema: `ManagedAccountPricing`.
|
|
8330
8537
|
type managed_account_pricing = {
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
| nil
|
|
8538
|
+
"rerate" => {
|
|
8539
|
+
"enabled" => bool,
|
|
8540
|
+
"scope" => Array[{ "pluginId" => String, ?"service" => String | nil }],
|
|
8541
|
+
"fallbackUpliftPercent" => Numeric,
|
|
8542
|
+
"uplifts" => Array[{ "pluginId" => String, ?"service" => String | nil, "percent" => Numeric }]
|
|
8543
|
+
},
|
|
8544
|
+
"discounts" => discount_treatment & untyped,
|
|
8545
|
+
"credits" => discount_treatment & untyped,
|
|
8546
|
+
"commitmentBenefits" => discount_treatment & untyped
|
|
8547
|
+
}
|
|
8342
8548
|
|
|
8343
8549
|
# Spec schema: `Manifest`.
|
|
8344
8550
|
type manifest = { "manifest" => String }
|
|
@@ -8347,7 +8553,7 @@ module Infrawrench
|
|
|
8347
8553
|
type me_response = {
|
|
8348
8554
|
"userId" => String,
|
|
8349
8555
|
"email" => String,
|
|
8350
|
-
"role" => role_summary,
|
|
8556
|
+
"role" => role_summary | nil,
|
|
8351
8557
|
"permissions" => Array[permission],
|
|
8352
8558
|
?"costVisibility" => cost_visibility_summary
|
|
8353
8559
|
}
|
|
@@ -8367,11 +8573,11 @@ module Infrawrench
|
|
|
8367
8573
|
|
|
8368
8574
|
# Spec schema: `MetricAlertRule`.
|
|
8369
8575
|
type metric_alert_rule = {
|
|
8576
|
+
"pluginId" => untyped,
|
|
8577
|
+
"resourceTypeId" => untyped,
|
|
8578
|
+
"tagKey" => untyped,
|
|
8579
|
+
"tagValue" => untyped,
|
|
8370
8580
|
"name" => String,
|
|
8371
|
-
"pluginId" => String | nil,
|
|
8372
|
-
"resourceTypeId" => String | nil,
|
|
8373
|
-
"tagKey" => String | nil,
|
|
8374
|
-
"tagValue" => String | nil,
|
|
8375
8581
|
"metricKey" => String,
|
|
8376
8582
|
"comparator" => ">" | ">=" | "<" | "<=",
|
|
8377
8583
|
"threshold" => Numeric,
|
|
@@ -8386,11 +8592,11 @@ module Infrawrench
|
|
|
8386
8592
|
|
|
8387
8593
|
# Spec schema: `MetricAlertRuleInput`.
|
|
8388
8594
|
type metric_alert_rule_input = {
|
|
8595
|
+
"pluginId" => untyped,
|
|
8596
|
+
"resourceTypeId" => untyped,
|
|
8597
|
+
"tagKey" => untyped,
|
|
8598
|
+
"tagValue" => untyped,
|
|
8389
8599
|
"name" => String,
|
|
8390
|
-
"pluginId" => String | nil,
|
|
8391
|
-
"resourceTypeId" => String | nil,
|
|
8392
|
-
"tagKey" => String | nil,
|
|
8393
|
-
"tagValue" => String | nil,
|
|
8394
8600
|
"metricKey" => String,
|
|
8395
8601
|
"comparator" => ">" | ">=" | "<" | "<=",
|
|
8396
8602
|
"threshold" => Numeric,
|
|
@@ -8401,11 +8607,11 @@ module Infrawrench
|
|
|
8401
8607
|
|
|
8402
8608
|
# Spec schema: `MetricAlertRuleWithStatus`.
|
|
8403
8609
|
type metric_alert_rule_with_status = {
|
|
8610
|
+
"pluginId" => untyped,
|
|
8611
|
+
"resourceTypeId" => untyped,
|
|
8612
|
+
"tagKey" => untyped,
|
|
8613
|
+
"tagValue" => untyped,
|
|
8404
8614
|
"name" => String,
|
|
8405
|
-
"pluginId" => String | nil,
|
|
8406
|
-
"resourceTypeId" => String | nil,
|
|
8407
|
-
"tagKey" => String | nil,
|
|
8408
|
-
"tagValue" => String | nil,
|
|
8409
8615
|
"metricKey" => String,
|
|
8410
8616
|
"comparator" => ">" | ">=" | "<" | "<=",
|
|
8411
8617
|
"threshold" => Numeric,
|
|
@@ -8467,25 +8673,24 @@ module Infrawrench
|
|
|
8467
8673
|
?"resourceId" => String | nil,
|
|
8468
8674
|
?"resourceTypeId" => String | nil,
|
|
8469
8675
|
?"resourceName" => String | nil,
|
|
8470
|
-
?"link" => moment_event_link
|
|
8676
|
+
?"link" => moment_event_link | nil
|
|
8471
8677
|
}
|
|
8472
8678
|
|
|
8473
8679
|
# Spec schema: `MomentEventLink`.
|
|
8474
8680
|
type moment_event_link = {
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
| nil
|
|
8681
|
+
"kind" => "resource"
|
|
8682
|
+
| "changes"
|
|
8683
|
+
| "incident"
|
|
8684
|
+
| "costs"
|
|
8685
|
+
| "workflow-run"
|
|
8686
|
+
| "deployment"
|
|
8687
|
+
| "audit"
|
|
8688
|
+
| "freeze"
|
|
8689
|
+
| "expiring",
|
|
8690
|
+
?"id" => String | nil,
|
|
8691
|
+
?"parentId" => String | nil,
|
|
8692
|
+
?"url" => String | nil
|
|
8693
|
+
}
|
|
8489
8694
|
|
|
8490
8695
|
# One of the indexed feeds the moment union draws from.
|
|
8491
8696
|
#
|
|
@@ -8645,7 +8850,7 @@ module Infrawrench
|
|
|
8645
8850
|
# Spec schema: `NetworkFlowReportConfig`.
|
|
8646
8851
|
type network_flow_report_config = {
|
|
8647
8852
|
"version" => Numeric,
|
|
8648
|
-
"dateRange" => cost_date_range
|
|
8853
|
+
"dateRange" => cost_date_range,
|
|
8649
8854
|
"granularity" => network_flow_report_granularity,
|
|
8650
8855
|
"groupBy" => network_flow_report_group_by,
|
|
8651
8856
|
"filters" => network_flow_report_filters,
|
|
@@ -8874,6 +9079,9 @@ module Infrawrench
|
|
|
8874
9079
|
# Spec schema: `NetworkFlowSettings`.
|
|
8875
9080
|
type network_flow_settings = { "enabled" => bool, "initialLookbackDays" => Integer }
|
|
8876
9081
|
|
|
9082
|
+
# Spec schema: `NetworkFlowSettingsInput`.
|
|
9083
|
+
type network_flow_settings_input = { "enabled" => bool, ?"initialLookbackDays" => Integer }
|
|
9084
|
+
|
|
8877
9085
|
# Spec schema: `NetworkFlowSource`.
|
|
8878
9086
|
type network_flow_source = {
|
|
8879
9087
|
"id" => String,
|
|
@@ -8956,8 +9164,8 @@ module Infrawrench
|
|
|
8956
9164
|
"scheduleId" => String,
|
|
8957
9165
|
"scheduleName" => String,
|
|
8958
9166
|
"enabled" => bool,
|
|
8959
|
-
"shift" => on_call_shift,
|
|
8960
|
-
"next" => on_call_participant
|
|
9167
|
+
"shift" => on_call_shift | nil,
|
|
9168
|
+
"next" => on_call_participant | nil
|
|
8961
9169
|
}
|
|
8962
9170
|
|
|
8963
9171
|
# Spec schema: `OnCallNowResponse`.
|
|
@@ -8985,12 +9193,8 @@ module Infrawrench
|
|
|
8985
9193
|
?"reason" => String | nil
|
|
8986
9194
|
}
|
|
8987
9195
|
|
|
8988
|
-
# The next person in the rotation, where an escalation goes. Resolved from the
|
|
8989
|
-
# rotation and never from a cover: a cover is somebody standing in for one
|
|
8990
|
-
# shift.
|
|
8991
|
-
#
|
|
8992
9196
|
# Spec schema: `OnCallParticipant`.
|
|
8993
|
-
type on_call_participant = { "userId" => String, "name" => String | nil, "email" => String | nil }
|
|
9197
|
+
type on_call_participant = { "userId" => String, "name" => String | nil, "email" => String | nil }
|
|
8994
9198
|
|
|
8995
9199
|
# Spec schema: `OnCallSchedule`.
|
|
8996
9200
|
type on_call_schedule = {
|
|
@@ -9000,7 +9204,7 @@ module Infrawrench
|
|
|
9000
9204
|
"rotationDays" => Integer,
|
|
9001
9205
|
"handoffTime" => String,
|
|
9002
9206
|
"startDate" => String,
|
|
9003
|
-
"participants" => Array[on_call_participant
|
|
9207
|
+
"participants" => Array[on_call_participant],
|
|
9004
9208
|
"enabled" => bool,
|
|
9005
9209
|
"createdAt" => String,
|
|
9006
9210
|
"updatedAt" => String
|
|
@@ -9033,21 +9237,17 @@ module Infrawrench
|
|
|
9033
9237
|
|
|
9034
9238
|
# Spec schema: `OnCallShift`.
|
|
9035
9239
|
type on_call_shift = {
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
| nil
|
|
9240
|
+
"startsAt" => String,
|
|
9241
|
+
"endsAt" => String,
|
|
9242
|
+
"userId" => String,
|
|
9243
|
+
"name" => String | nil,
|
|
9244
|
+
"email" => String | nil,
|
|
9245
|
+
"source" => "rotation" | "override",
|
|
9246
|
+
"rotationIndex" => Integer | nil
|
|
9247
|
+
}
|
|
9045
9248
|
|
|
9046
9249
|
# Spec schema: `OnCallShiftsResponse`.
|
|
9047
|
-
type on_call_shifts_response = {
|
|
9048
|
-
"shifts" => Array[on_call_shift & Hash[String, untyped]],
|
|
9049
|
-
"overrides" => Array[on_call_override]
|
|
9050
|
-
}
|
|
9250
|
+
type on_call_shifts_response = { "shifts" => Array[on_call_shift], "overrides" => Array[on_call_override] }
|
|
9051
9251
|
|
|
9052
9252
|
# What everyone in the organization can do with the object. `editor` is the
|
|
9053
9253
|
# default for an object nobody has shared.
|
|
@@ -9094,7 +9294,13 @@ module Infrawrench
|
|
|
9094
9294
|
}
|
|
9095
9295
|
|
|
9096
9296
|
# Spec schema: `OrgConfigApplyResult`.
|
|
9097
|
-
type org_config_apply_result =
|
|
9297
|
+
type org_config_apply_result = {
|
|
9298
|
+
"mode" => "merge" | "replace",
|
|
9299
|
+
"changes" => Array[org_config_change],
|
|
9300
|
+
"unresolved" => Array[org_config_unresolved],
|
|
9301
|
+
"counts" => { "create" => Integer, "update" => Integer, "delete" => Integer, "unchanged" => Integer },
|
|
9302
|
+
"applied" => bool
|
|
9303
|
+
}
|
|
9098
9304
|
|
|
9099
9305
|
# Spec schema: `OrgConfigBudget`.
|
|
9100
9306
|
type org_config_budget = {
|
|
@@ -9304,7 +9510,7 @@ module Infrawrench
|
|
|
9304
9510
|
?"comparator" => "<" | "<=" | ">" | ">=",
|
|
9305
9511
|
?"threshold" => Numeric,
|
|
9306
9512
|
"targetPercent" => Numeric,
|
|
9307
|
-
?"windowDays" => Numeric
|
|
9513
|
+
?"windowDays" => Numeric,
|
|
9308
9514
|
?"alertsEnabled" => bool,
|
|
9309
9515
|
?"suggestFreeze" => bool,
|
|
9310
9516
|
?"enabled" => bool
|
|
@@ -9350,6 +9556,12 @@ module Infrawrench
|
|
|
9350
9556
|
?"metric" => "actual" | "forecast"
|
|
9351
9557
|
}
|
|
9352
9558
|
|
|
9559
|
+
# Spec schema: `OrgFeatureList`.
|
|
9560
|
+
type org_feature_list = { "features" => Array[org_feature_name] }
|
|
9561
|
+
|
|
9562
|
+
# Spec schema: `OrgFeatureName`.
|
|
9563
|
+
type org_feature_name = "ci"
|
|
9564
|
+
|
|
9353
9565
|
# Spec schema: `OrgMember`.
|
|
9354
9566
|
type org_member = {
|
|
9355
9567
|
"id" => String,
|
|
@@ -9368,7 +9580,7 @@ module Infrawrench
|
|
|
9368
9580
|
# Spec schema: `OrgScorecard`.
|
|
9369
9581
|
type org_scorecard = {
|
|
9370
9582
|
"score" => Integer | nil,
|
|
9371
|
-
"grade" => org_scorecard_grade,
|
|
9583
|
+
"grade" => org_scorecard_grade | nil,
|
|
9372
9584
|
"pillars" => Array[org_scorecard_pillar],
|
|
9373
9585
|
"failedPillars" => Array[org_scorecard_pillar_id],
|
|
9374
9586
|
"trend" => Array[org_scorecard_trend_point],
|
|
@@ -9379,7 +9591,7 @@ module Infrawrench
|
|
|
9379
9591
|
type org_scorecard_fact = { "label" => String, "value" => String, ?"bad" => bool }
|
|
9380
9592
|
|
|
9381
9593
|
# Spec schema: `OrgScorecardGrade`.
|
|
9382
|
-
type org_scorecard_grade = "A" | "B" | "C" | "D" | "F"
|
|
9594
|
+
type org_scorecard_grade = "A" | "B" | "C" | "D" | "F"
|
|
9383
9595
|
|
|
9384
9596
|
# Spec schema: `OrgScorecardHistory`.
|
|
9385
9597
|
type org_scorecard_history = { "trend" => Array[org_scorecard_trend_point] }
|
|
@@ -9412,7 +9624,7 @@ module Infrawrench
|
|
|
9412
9624
|
type org_scorecard_trend_point = {
|
|
9413
9625
|
"day" => String,
|
|
9414
9626
|
"score" => Integer,
|
|
9415
|
-
"grade" => org_scorecard_grade
|
|
9627
|
+
"grade" => org_scorecard_grade,
|
|
9416
9628
|
"pillars" => Hash[String, Integer]
|
|
9417
9629
|
}
|
|
9418
9630
|
|
|
@@ -9459,12 +9671,8 @@ module Infrawrench
|
|
|
9459
9671
|
"resources" => Array[orphaned_resource]
|
|
9460
9672
|
}
|
|
9461
9673
|
|
|
9462
|
-
# Best-effort trailing spend matched from collected per-resource cost rows;
|
|
9463
|
-
# null when the provider reports no per-resource cost. The flag itself never
|
|
9464
|
-
# depends on billing data.
|
|
9465
|
-
#
|
|
9466
9674
|
# Spec schema: `OrphanCostAnnotation`.
|
|
9467
|
-
type orphan_cost_annotation = { "amount" => Numeric, "currency" => String }
|
|
9675
|
+
type orphan_cost_annotation = { "amount" => Numeric, "currency" => String }
|
|
9468
9676
|
|
|
9469
9677
|
# Present when a metric-based idle rule flagged the row rather than the type's
|
|
9470
9678
|
# orphan rule: the rule, the metric evidence and the lookback window.
|
|
@@ -9500,12 +9708,12 @@ module Infrawrench
|
|
|
9500
9708
|
"displayName" => String,
|
|
9501
9709
|
"externalId" => String | nil,
|
|
9502
9710
|
"reason" => String,
|
|
9503
|
-
"cost" => orphan_cost_annotation,
|
|
9504
|
-
"owner" => resource_owner_annotation,
|
|
9711
|
+
"cost" => orphan_cost_annotation | nil,
|
|
9712
|
+
"owner" => resource_owner_annotation | nil,
|
|
9505
9713
|
"lastSyncedAt" => String | nil,
|
|
9506
|
-
?"remediation" => finding_remediation &
|
|
9714
|
+
?"remediation" => finding_remediation & untyped,
|
|
9507
9715
|
?"idle" => orphan_idle_detail,
|
|
9508
|
-
?"estimate" => idle_savings_estimate
|
|
9716
|
+
?"estimate" => idle_savings_estimate | nil
|
|
9509
9717
|
}
|
|
9510
9718
|
|
|
9511
9719
|
# Spec schema: `OversizedAccountGroup`.
|
|
@@ -9539,7 +9747,7 @@ module Infrawrench
|
|
|
9539
9747
|
"monthlyKgCo2eSaving" => Numeric | nil,
|
|
9540
9748
|
"resizeNote" => String | nil,
|
|
9541
9749
|
"lastSyncedAt" => String | nil,
|
|
9542
|
-
?"remediation" => finding_remediation &
|
|
9750
|
+
?"remediation" => finding_remediation & untyped
|
|
9543
9751
|
}
|
|
9544
9752
|
|
|
9545
9753
|
# Spec schema: `OversizedSizeSummary`.
|
|
@@ -9703,7 +9911,12 @@ module Infrawrench
|
|
|
9703
9911
|
type patch_platform_agent = { ?"label" => String, ?"scopes" => Array[String], ?"providers" => Array[String] }
|
|
9704
9912
|
|
|
9705
9913
|
# Spec schema: `PeerPane`.
|
|
9706
|
-
type peer_pane =
|
|
9914
|
+
type peer_pane = {
|
|
9915
|
+
"tabLabel" => String,
|
|
9916
|
+
"pluginLogoSvg" => String,
|
|
9917
|
+
"peerPluginId" => String,
|
|
9918
|
+
"schema" => json_object
|
|
9919
|
+
}
|
|
9707
9920
|
|
|
9708
9921
|
# Spec schema: `PeerPaneStub`.
|
|
9709
9922
|
type peer_pane_stub = { "tabLabel" => String, "pluginLogoSvg" => String, "peerPluginId" => String }
|
|
@@ -9743,6 +9956,9 @@ module Infrawrench
|
|
|
9743
9956
|
| "freezes:read"
|
|
9744
9957
|
| "freezes:write"
|
|
9745
9958
|
| "freezes:override"
|
|
9959
|
+
| "ci:read"
|
|
9960
|
+
| "ci:write"
|
|
9961
|
+
| "ci:approve"
|
|
9746
9962
|
| "incidents:read"
|
|
9747
9963
|
| "incidents:write"
|
|
9748
9964
|
| "tag-policy:override"
|
|
@@ -10019,10 +10235,6 @@ module Infrawrench
|
|
|
10019
10235
|
| "xai"
|
|
10020
10236
|
| "xata"
|
|
10021
10237
|
|
|
10022
|
-
# Present only when this server can connect the plugin through provider OAuth
|
|
10023
|
-
# (the plugin supports it and the server has a client configured). See `POST
|
|
10024
|
-
# /provider-oauth/{pluginId}/authorize`.
|
|
10025
|
-
#
|
|
10026
10238
|
# Spec schema: `PluginOAuthSummary`.
|
|
10027
10239
|
type plugin_oauth_summary = {
|
|
10028
10240
|
"access" => "read-only" | "read-write" | "full",
|
|
@@ -10038,8 +10250,8 @@ module Infrawrench
|
|
|
10038
10250
|
"displayName" => String,
|
|
10039
10251
|
"logoSvg" => String,
|
|
10040
10252
|
"credentialFields" => Array[credential_field],
|
|
10041
|
-
"preflight" =>
|
|
10042
|
-
?"oauth" => plugin_oauth_summary,
|
|
10253
|
+
"preflight" => untyped,
|
|
10254
|
+
?"oauth" => plugin_oauth_summary & untyped,
|
|
10043
10255
|
?"sshTunnel" => { "label" => String, "defaultPort" => Integer, "credentials" => Hash[String, String] },
|
|
10044
10256
|
?"jumpHost" => bool,
|
|
10045
10257
|
?"kvBrowser" => "keys" | "documents"
|
|
@@ -10104,8 +10316,6 @@ module Infrawrench
|
|
|
10104
10316
|
"generatedAt" => String
|
|
10105
10317
|
}
|
|
10106
10318
|
|
|
10107
|
-
# Live finding count per severity; every bucket present, zeros included.
|
|
10108
|
-
#
|
|
10109
10319
|
# Spec schema: `PostureSeverityCounts`.
|
|
10110
10320
|
type posture_severity_counts = { "critical" => Integer, "high" => Integer, "medium" => Integer, "low" => Integer }
|
|
10111
10321
|
|
|
@@ -10122,8 +10332,8 @@ module Infrawrench
|
|
|
10122
10332
|
"resourceTypeId" => String | nil,
|
|
10123
10333
|
"changedAttributes" => Array[String],
|
|
10124
10334
|
"count" => Integer | nil,
|
|
10125
|
-
"before" => pr_check_estimate_side,
|
|
10126
|
-
"after" => pr_check_estimate_side,
|
|
10335
|
+
"before" => pr_check_estimate_side | nil,
|
|
10336
|
+
"after" => pr_check_estimate_side | nil,
|
|
10127
10337
|
"monthlyDelta" => Numeric | nil,
|
|
10128
10338
|
"currency" => String | nil,
|
|
10129
10339
|
"unpricedReason" => String | nil,
|
|
@@ -10145,10 +10355,10 @@ module Infrawrench
|
|
|
10145
10355
|
}
|
|
10146
10356
|
|
|
10147
10357
|
# Spec schema: `PrCheckConclusion`.
|
|
10148
|
-
type pr_check_conclusion = "success" | "neutral" | "failure"
|
|
10358
|
+
type pr_check_conclusion = "success" | "neutral" | "failure"
|
|
10149
10359
|
|
|
10150
10360
|
# Spec schema: `PrCheckEstimateSide`.
|
|
10151
|
-
type pr_check_estimate_side = { "monthlyAmount" => Numeric, "currency" => String, "partial" => bool }
|
|
10361
|
+
type pr_check_estimate_side = { "monthlyAmount" => Numeric, "currency" => String, "partial" => bool }
|
|
10152
10362
|
|
|
10153
10363
|
# What an installation has **accepted** of the permissions checks need:
|
|
10154
10364
|
# `checks: write`, `pull_requests` (read, or write for the comment) and
|
|
@@ -10170,8 +10380,8 @@ module Infrawrench
|
|
|
10170
10380
|
|
|
10171
10381
|
# Spec schema: `PrCheckPreview`.
|
|
10172
10382
|
type pr_check_preview = {
|
|
10173
|
-
"report" => pr_check_report
|
|
10174
|
-
"conclusion" => pr_check_conclusion
|
|
10383
|
+
"report" => pr_check_report,
|
|
10384
|
+
"conclusion" => pr_check_conclusion,
|
|
10175
10385
|
"title" => String,
|
|
10176
10386
|
"markdown" => String
|
|
10177
10387
|
}
|
|
@@ -10189,36 +10399,45 @@ module Infrawrench
|
|
|
10189
10399
|
|
|
10190
10400
|
# Spec schema: `PrCheckReport`.
|
|
10191
10401
|
type pr_check_report = {
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
| nil
|
|
10402
|
+
"generatedAt" => String,
|
|
10403
|
+
"files" => Array[{
|
|
10404
|
+
"path" => String,
|
|
10405
|
+
"kind" => "terraform" | "infrafile" | "kubernetes",
|
|
10406
|
+
"status" => "added" | "modified" | "removed" | "renamed",
|
|
10407
|
+
"analysed" => bool,
|
|
10408
|
+
"note" => String | nil
|
|
10409
|
+
}],
|
|
10410
|
+
"changes" => Array[pr_check_change],
|
|
10411
|
+
"totals" => {
|
|
10412
|
+
"monthlyDelta" => Numeric | nil,
|
|
10413
|
+
"currency" => String | nil,
|
|
10414
|
+
"partial" => bool,
|
|
10415
|
+
"pricedChanges" => Integer,
|
|
10416
|
+
"unpricedChanges" => Integer,
|
|
10417
|
+
"otherCurrencyChanges" => Integer
|
|
10418
|
+
},
|
|
10419
|
+
"blast" => {
|
|
10420
|
+
"touchedResources" => Integer,
|
|
10421
|
+
"dependants" => Integer,
|
|
10422
|
+
"highestSeverity" => "none" | "low" | "medium" | "high" | "unknown" | nil
|
|
10423
|
+
},
|
|
10424
|
+
"notes" => Array[String],
|
|
10425
|
+
"truncated" => bool
|
|
10426
|
+
}
|
|
10218
10427
|
|
|
10219
10428
|
# Spec schema: `PrCheckRepository`.
|
|
10220
|
-
type pr_check_repository =
|
|
10221
|
-
|
|
10429
|
+
type pr_check_repository = {
|
|
10430
|
+
"installationId" => Integer,
|
|
10431
|
+
"repo" => String,
|
|
10432
|
+
"enabled" => bool,
|
|
10433
|
+
"commentEnabled" => bool,
|
|
10434
|
+
"costThreshold" => Numeric | nil,
|
|
10435
|
+
"thresholdConclusion" => pr_check_threshold_conclusion,
|
|
10436
|
+
"directories" => Array[String],
|
|
10437
|
+
"id" => String,
|
|
10438
|
+
"createdAt" => String,
|
|
10439
|
+
"updatedAt" => String
|
|
10440
|
+
}
|
|
10222
10441
|
|
|
10223
10442
|
# Spec schema: `PrCheckRepositoryInput`.
|
|
10224
10443
|
type pr_check_repository_input = {
|
|
@@ -10241,10 +10460,10 @@ module Infrawrench
|
|
|
10241
10460
|
"pullUrl" => String | nil,
|
|
10242
10461
|
"headSha" => String,
|
|
10243
10462
|
"status" => "running" | "completed" | "failed",
|
|
10244
|
-
"conclusion" => pr_check_conclusion,
|
|
10463
|
+
"conclusion" => pr_check_conclusion | nil,
|
|
10245
10464
|
"checkRunUrl" => String | nil,
|
|
10246
10465
|
"commentUrl" => String | nil,
|
|
10247
|
-
"report" => pr_check_report,
|
|
10466
|
+
"report" => pr_check_report | nil,
|
|
10248
10467
|
"error" => String | nil,
|
|
10249
10468
|
"createdAt" => String,
|
|
10250
10469
|
"completedAt" => String | nil
|
|
@@ -10282,15 +10501,11 @@ module Infrawrench
|
|
|
10282
10501
|
"helpLink" => { "label" => String, "url" => String } | nil
|
|
10283
10502
|
}
|
|
10284
10503
|
|
|
10285
|
-
# Declared when the plugin supports credential preflight (per-capability
|
|
10286
|
-
# permission checks). `null` for plugins without it.
|
|
10287
|
-
#
|
|
10288
10504
|
# Spec schema: `PreflightDeclaration`.
|
|
10289
10505
|
type preflight_declaration = {
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
| nil
|
|
10506
|
+
"capabilities" => Array[preflight_capability],
|
|
10507
|
+
?"templateFormat" => { "label" => String, "language" => "json" | "yaml" | "text" }
|
|
10508
|
+
}
|
|
10294
10509
|
|
|
10295
10510
|
# Spec schema: `PreflightPermission`.
|
|
10296
10511
|
type preflight_permission = { "id" => String, "label" => String }
|
|
@@ -10318,12 +10533,8 @@ module Infrawrench
|
|
|
10318
10533
|
| "africa"
|
|
10319
10534
|
| "oceania"
|
|
10320
10535
|
|
|
10321
|
-
# Monthly amount in the org's display currency (converted at the org's stated
|
|
10322
|
-
# rate), or in the native currency when no display currency is configured;
|
|
10323
|
-
# null when there is no rate. Sorting and `maxMonthlyPrice` use it.
|
|
10324
|
-
#
|
|
10325
10536
|
# Spec schema: `PriceCatalogComparable`.
|
|
10326
|
-
type price_catalog_comparable = { "amount" => Numeric, "currency" => String }
|
|
10537
|
+
type price_catalog_comparable = { "amount" => Numeric, "currency" => String }
|
|
10327
10538
|
|
|
10328
10539
|
# Spec schema: `PriceCatalogCompareProvider`.
|
|
10329
10540
|
type price_catalog_compare_provider = {
|
|
@@ -10333,14 +10544,14 @@ module Infrawrench
|
|
|
10333
10544
|
"regionLabel" => String | nil,
|
|
10334
10545
|
"state" => price_catalog_provider_state,
|
|
10335
10546
|
"error" => String | nil,
|
|
10336
|
-
"best" => price_catalog_row
|
|
10547
|
+
"best" => price_catalog_row | nil,
|
|
10337
10548
|
"alternatives" => Array[price_catalog_row]
|
|
10338
10549
|
}
|
|
10339
10550
|
|
|
10340
10551
|
# Spec schema: `PriceCatalogCompareResponse`.
|
|
10341
10552
|
type price_catalog_compare_response = {
|
|
10342
10553
|
"target" => price_catalog_compare_target,
|
|
10343
|
-
"reference" => price_catalog_row
|
|
10554
|
+
"reference" => price_catalog_row | nil,
|
|
10344
10555
|
"area" => price_catalog_area,
|
|
10345
10556
|
"rateType" => price_rate_type,
|
|
10346
10557
|
"providers" => Array[price_catalog_compare_provider],
|
|
@@ -10411,7 +10622,7 @@ module Infrawrench
|
|
|
10411
10622
|
"regionLabel" => String,
|
|
10412
10623
|
"price" => price_catalog_price,
|
|
10413
10624
|
"monthlyAmount" => Numeric | nil,
|
|
10414
|
-
"comparable" => price_catalog_comparable,
|
|
10625
|
+
"comparable" => price_catalog_comparable | nil,
|
|
10415
10626
|
"otherPrices" => Array[price_catalog_price],
|
|
10416
10627
|
"estimate" => { "resourceTypeId" => String, "fields" => Hash[String, String] } | nil
|
|
10417
10628
|
}
|
|
@@ -10477,10 +10688,10 @@ module Infrawrench
|
|
|
10477
10688
|
|
|
10478
10689
|
# Spec schema: `PricingPreviewRequest`.
|
|
10479
10690
|
type pricing_preview_request = {
|
|
10480
|
-
?"rule" =>
|
|
10691
|
+
?"rule" => untyped,
|
|
10481
10692
|
?"ruleId" => String | nil,
|
|
10482
10693
|
?"managedAccountId" => String | nil,
|
|
10483
|
-
?"pricing" =>
|
|
10694
|
+
?"pricing" => untyped,
|
|
10484
10695
|
?"month" => String | nil
|
|
10485
10696
|
}
|
|
10486
10697
|
|
|
@@ -10494,7 +10705,7 @@ module Infrawrench
|
|
|
10494
10705
|
"before" => Hash[String, Numeric],
|
|
10495
10706
|
"after" => Hash[String, Numeric],
|
|
10496
10707
|
"effects" => Array[pricing_effect],
|
|
10497
|
-
"coverage" => rerate_coverage,
|
|
10708
|
+
"coverage" => rerate_coverage | nil,
|
|
10498
10709
|
"warnings" => Array[String],
|
|
10499
10710
|
"expressionFailures" => Array[pricing_expression_failure],
|
|
10500
10711
|
"changes" => Array[{
|
|
@@ -10732,13 +10943,12 @@ module Infrawrench
|
|
|
10732
10943
|
#
|
|
10733
10944
|
# Spec schema: `QuietHours`.
|
|
10734
10945
|
type quiet_hours = {
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
| nil
|
|
10946
|
+
"timezone" => String,
|
|
10947
|
+
"startMinute" => Integer,
|
|
10948
|
+
"endMinute" => Integer,
|
|
10949
|
+
"days" => Array[Integer],
|
|
10950
|
+
"urgentOverride" => alert_severity | nil
|
|
10951
|
+
}
|
|
10742
10952
|
|
|
10743
10953
|
# Spec schema: `QuotaAccountStatus`.
|
|
10744
10954
|
type quota_account_status = {
|
|
@@ -10930,16 +11140,15 @@ module Infrawrench
|
|
|
10930
11140
|
|
|
10931
11141
|
# Spec schema: `RerateCoverage`.
|
|
10932
11142
|
type rerate_coverage = {
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
| nil
|
|
11143
|
+
"byCurrency" => Hash[String, { "listPriced" => Numeric, "listTotal" => Numeric, "fallback" => Numeric }],
|
|
11144
|
+
"services" => Array[{
|
|
11145
|
+
"pluginId" => String,
|
|
11146
|
+
"service" => String,
|
|
11147
|
+
"currency" => String,
|
|
11148
|
+
"listPriced" => Numeric,
|
|
11149
|
+
"fallback" => Numeric
|
|
11150
|
+
}]
|
|
11151
|
+
}
|
|
10943
11152
|
|
|
10944
11153
|
# Spec schema: `Resource`.
|
|
10945
11154
|
type resource = {
|
|
@@ -10951,26 +11160,22 @@ module Infrawrench
|
|
|
10951
11160
|
"externalId" => String | nil,
|
|
10952
11161
|
"fieldsJson" => json_object,
|
|
10953
11162
|
"outputsJson" => json_object,
|
|
10954
|
-
"parentResourceId" => resource_id
|
|
11163
|
+
"parentResourceId" => resource_id | nil
|
|
10955
11164
|
}
|
|
10956
11165
|
|
|
10957
|
-
# Estimated monthly CO2e of the same configuration, beside its price. Null for
|
|
10958
|
-
# a peer resource or when the size catalogue could not be read.
|
|
10959
|
-
#
|
|
10960
11166
|
# Spec schema: `ResourceCarbonEstimate`.
|
|
10961
11167
|
type resource_carbon_estimate = {
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
}
|
|
11168
|
+
"estimate" => carbon_footprint | nil,
|
|
11169
|
+
"reason" => "unsupported-provider" | "unknown-region" | "unknown-size" | nil,
|
|
11170
|
+
"inScope" => bool,
|
|
11171
|
+
"role" => "instance" | "aggregate",
|
|
11172
|
+
"assumptions" => {
|
|
11173
|
+
"cpuUtilization" => Numeric,
|
|
11174
|
+
"coefficientSource" => String,
|
|
11175
|
+
"coefficientVintage" => String,
|
|
11176
|
+
"scope" => String
|
|
10972
11177
|
}
|
|
10973
|
-
|
|
11178
|
+
}
|
|
10974
11179
|
|
|
10975
11180
|
# Spec schema: `ResourceChangeEntry`.
|
|
10976
11181
|
type resource_change_entry = {
|
|
@@ -10988,7 +11193,20 @@ module Infrawrench
|
|
|
10988
11193
|
}
|
|
10989
11194
|
|
|
10990
11195
|
# Spec schema: `ResourceChangeFeedEntry`.
|
|
10991
|
-
type resource_change_feed_entry =
|
|
11196
|
+
type resource_change_feed_entry = {
|
|
11197
|
+
"id" => String,
|
|
11198
|
+
"resourceId" => resource_id,
|
|
11199
|
+
"accountId" => String,
|
|
11200
|
+
"pluginId" => String,
|
|
11201
|
+
"resourceTypeId" => String,
|
|
11202
|
+
"displayName" => String,
|
|
11203
|
+
"changeKind" => resource_change_kind,
|
|
11204
|
+
"diff" => Array[resource_field_change],
|
|
11205
|
+
?"origin" => "schedule" | nil,
|
|
11206
|
+
"createdAt" => String,
|
|
11207
|
+
?"revertedAt" => String | nil,
|
|
11208
|
+
"accountName" => String | nil
|
|
11209
|
+
}
|
|
10992
11210
|
|
|
10993
11211
|
# Spec schema: `ResourceChangeFeedResponse`.
|
|
10994
11212
|
type resource_change_feed_response = { "entries" => Array[resource_change_feed_entry], "total" => Integer }
|
|
@@ -11088,24 +11306,19 @@ module Infrawrench
|
|
|
11088
11306
|
type resource_lease_list = { "leases" => Array[resource_lease] }
|
|
11089
11307
|
|
|
11090
11308
|
# Spec schema: `ResourceLeaseLookup`.
|
|
11091
|
-
type resource_lease_lookup = { "lease" => resource_lease
|
|
11309
|
+
type resource_lease_lookup = { "lease" => resource_lease | nil }
|
|
11092
11310
|
|
|
11093
11311
|
# Spec schema: `ResourceLeaseUpdate`.
|
|
11094
11312
|
type resource_lease_update = { ?"expiresAt" => String, ?"autoDelete" => bool, ?"note" => String | nil }
|
|
11095
11313
|
|
|
11096
|
-
# Who owns this resource, or null when nobody has claimed it. Present only
|
|
11097
|
-
# when the owner can be named: a resource carrying a purpose but no owner
|
|
11098
|
-
# reads as null, because the question this answers is who to tell.
|
|
11099
|
-
#
|
|
11100
11314
|
# Spec schema: `ResourceOwnerAnnotation`.
|
|
11101
11315
|
type resource_owner_annotation = {
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
| nil
|
|
11316
|
+
"userId" => String | nil,
|
|
11317
|
+
"displayName" => String,
|
|
11318
|
+
"isLabel" => bool,
|
|
11319
|
+
"ticketUrl" => String | nil,
|
|
11320
|
+
"purpose" => String | nil
|
|
11321
|
+
}
|
|
11109
11322
|
|
|
11110
11323
|
# Spec schema: `ResourceOwnership`.
|
|
11111
11324
|
type resource_ownership = {
|
|
@@ -11126,7 +11339,7 @@ module Infrawrench
|
|
|
11126
11339
|
}
|
|
11127
11340
|
|
|
11128
11341
|
# Spec schema: `ResourceOwnershipEnvelope`.
|
|
11129
|
-
type resource_ownership_envelope = { "ownership" => resource_ownership
|
|
11342
|
+
type resource_ownership_envelope = { "ownership" => resource_ownership | nil }
|
|
11130
11343
|
|
|
11131
11344
|
# Spec schema: `ResourceOwnershipListResponse`.
|
|
11132
11345
|
type resource_ownership_list_response = { "ownership" => Array[resource_ownership] }
|
|
@@ -11165,8 +11378,8 @@ module Infrawrench
|
|
|
11165
11378
|
"version" => Numeric,
|
|
11166
11379
|
"filters" => resource_report_filters,
|
|
11167
11380
|
"columns" => Array[String],
|
|
11168
|
-
"sort" =>
|
|
11169
|
-
"costRange" => cost_date_range
|
|
11381
|
+
"sort" => untyped,
|
|
11382
|
+
"costRange" => cost_date_range,
|
|
11170
11383
|
"costBasis" => cost_basis,
|
|
11171
11384
|
"pageSize" => Integer
|
|
11172
11385
|
}
|
|
@@ -11230,7 +11443,7 @@ module Infrawrench
|
|
|
11230
11443
|
"offset" => Integer,
|
|
11231
11444
|
"limit" => Integer,
|
|
11232
11445
|
"truncated" => bool,
|
|
11233
|
-
"sort" => resource_report_sort
|
|
11446
|
+
"sort" => resource_report_sort,
|
|
11234
11447
|
"cost" => {
|
|
11235
11448
|
"available" => bool,
|
|
11236
11449
|
"reason" => String | nil,
|
|
@@ -11240,10 +11453,8 @@ module Infrawrench
|
|
|
11240
11453
|
| nil
|
|
11241
11454
|
}
|
|
11242
11455
|
|
|
11243
|
-
# Null sorts by name, ascending.
|
|
11244
|
-
#
|
|
11245
11456
|
# Spec schema: `ResourceReportSort`.
|
|
11246
|
-
type resource_report_sort = { "column" => String, "direction" => "asc" | "desc" }
|
|
11457
|
+
type resource_report_sort = { "column" => String, "direction" => "asc" | "desc" }
|
|
11247
11458
|
|
|
11248
11459
|
# Spec schema: `ResourceReportTagFilter`.
|
|
11249
11460
|
type resource_report_tag_filter = {
|
|
@@ -12500,7 +12711,7 @@ module Infrawrench
|
|
|
12500
12711
|
type resource_type_summary = {
|
|
12501
12712
|
"id" => String,
|
|
12502
12713
|
"displayName" => String,
|
|
12503
|
-
|
|
12714
|
+
"pluralDisplayName" => String,
|
|
12504
12715
|
?"iconKey" => String,
|
|
12505
12716
|
?"showcase" => Array[{ "key" => String, "label" => String }],
|
|
12506
12717
|
?"parentTypeId" => String,
|
|
@@ -12518,6 +12729,9 @@ module Infrawrench
|
|
|
12518
12729
|
?"schedulable" => bool
|
|
12519
12730
|
}
|
|
12520
12731
|
|
|
12732
|
+
# Spec schema: `ResourceWarning`.
|
|
12733
|
+
type resource_warning = { "code" => String, "message" => String }
|
|
12734
|
+
|
|
12521
12735
|
# Spec schema: `RestoreDrill`.
|
|
12522
12736
|
type restore_drill = {
|
|
12523
12737
|
"id" => String,
|
|
@@ -12612,7 +12826,14 @@ module Infrawrench
|
|
|
12612
12826
|
}
|
|
12613
12827
|
|
|
12614
12828
|
# Spec schema: `Role`.
|
|
12615
|
-
type role =
|
|
12829
|
+
type role = {
|
|
12830
|
+
"id" => String,
|
|
12831
|
+
"name" => String,
|
|
12832
|
+
"description" => String | nil,
|
|
12833
|
+
"isSystem" => bool,
|
|
12834
|
+
"systemKey" => String | nil,
|
|
12835
|
+
"permissions" => Array[permission]
|
|
12836
|
+
}
|
|
12616
12837
|
|
|
12617
12838
|
# Spec schema: `RoleChangeRequest`.
|
|
12618
12839
|
type role_change_request = { ?"role" => organization_role, ?"roleId" => String }
|
|
@@ -12630,14 +12851,13 @@ module Infrawrench
|
|
|
12630
12851
|
}
|
|
12631
12852
|
|
|
12632
12853
|
# Spec schema: `RoleSummary`.
|
|
12633
|
-
type role_summary = {
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
| nil
|
|
12854
|
+
type role_summary = {
|
|
12855
|
+
"id" => String,
|
|
12856
|
+
"name" => String,
|
|
12857
|
+
"description" => String | nil,
|
|
12858
|
+
"isSystem" => bool,
|
|
12859
|
+
"systemKey" => String | nil
|
|
12860
|
+
}
|
|
12641
12861
|
|
|
12642
12862
|
# Spec schema: `RoleUpdateRequest`.
|
|
12643
12863
|
type role_update_request = { ?"name" => String, ?"description" => String | nil, ?"permissions" => Array[permission] }
|
|
@@ -12761,6 +12981,9 @@ module Infrawrench
|
|
|
12761
12981
|
"updatedAt" => String
|
|
12762
12982
|
}
|
|
12763
12983
|
|
|
12984
|
+
# Spec schema: `SavedCostFilterInUse`.
|
|
12985
|
+
type saved_cost_filter_in_use = { "error" => String, "referents" => Array[saved_cost_filter_referent] }
|
|
12986
|
+
|
|
12764
12987
|
# Spec schema: `SavedCostFilterInput`.
|
|
12765
12988
|
type saved_cost_filter_input = {
|
|
12766
12989
|
"name" => String,
|
|
@@ -12769,6 +12992,9 @@ module Infrawrench
|
|
|
12769
12992
|
?"query" => String
|
|
12770
12993
|
}
|
|
12771
12994
|
|
|
12995
|
+
# Spec schema: `SavedCostFilterNameConflict`.
|
|
12996
|
+
type saved_cost_filter_name_conflict = { "error" => String }
|
|
12997
|
+
|
|
12772
12998
|
# Spec schema: `SavedCostFilterReferent`.
|
|
12773
12999
|
type saved_cost_filter_referent = {
|
|
12774
13000
|
"kind" => "budget" | "cost_report" | "cost_graph_widget" | "cost_visibility_scope",
|
|
@@ -12780,15 +13006,7 @@ module Infrawrench
|
|
|
12780
13006
|
|
|
12781
13007
|
# Spec schema: `SavedCostFilterTerm`.
|
|
12782
13008
|
type saved_cost_filter_term = {
|
|
12783
|
-
"dimension" =>
|
|
12784
|
-
| "account"
|
|
12785
|
-
| "service"
|
|
12786
|
-
| "region"
|
|
12787
|
-
| "resource"
|
|
12788
|
-
| "tag"
|
|
12789
|
-
| "charge_type"
|
|
12790
|
-
| "commitment"
|
|
12791
|
-
| "virtual_tag",
|
|
13009
|
+
"dimension" => cost_dimension,
|
|
12792
13010
|
"op" => cost_filter_operator,
|
|
12793
13011
|
"values" => Array[String],
|
|
12794
13012
|
?"tagKey" => String
|
|
@@ -12889,7 +13107,7 @@ module Infrawrench
|
|
|
12889
13107
|
"horizonEndsOn" => String | nil,
|
|
12890
13108
|
"attributedCostCentreId" => String | nil,
|
|
12891
13109
|
"attributedCostCentreName" => String | nil,
|
|
12892
|
-
"shortfall" => savings_shortfall,
|
|
13110
|
+
"shortfall" => savings_shortfall | nil,
|
|
12893
13111
|
"editable" => "full" | "annotate" | "none"
|
|
12894
13112
|
}
|
|
12895
13113
|
|
|
@@ -12918,10 +13136,10 @@ module Infrawrench
|
|
|
12918
13136
|
"resourceTypeId" => String | nil,
|
|
12919
13137
|
"resourceTypeName" => String | nil,
|
|
12920
13138
|
"tags" => Hash[String, String],
|
|
12921
|
-
"monthlySavings" => savings_finding_money,
|
|
13139
|
+
"monthlySavings" => savings_finding_money | nil,
|
|
12922
13140
|
"status" => savings_finding_status,
|
|
12923
13141
|
"statusChangedAt" => String | nil,
|
|
12924
|
-
"statusChangedBy" => savings_finding_actor,
|
|
13142
|
+
"statusChangedBy" => savings_finding_actor | nil,
|
|
12925
13143
|
"statusNote" => String | nil,
|
|
12926
13144
|
"resolution" => "manual" | "resolved" | nil,
|
|
12927
13145
|
"detectedAt" => String,
|
|
@@ -12930,10 +13148,8 @@ module Infrawrench
|
|
|
12930
13148
|
"realizedSavings" => { "eventId" => String, "title" => String } | nil
|
|
12931
13149
|
}
|
|
12932
13150
|
|
|
12933
|
-
# Null for the initial Ready and automatic changes.
|
|
12934
|
-
#
|
|
12935
13151
|
# Spec schema: `SavingsFindingActor`.
|
|
12936
|
-
type savings_finding_actor = { "userId" => String, "name" => String | nil }
|
|
13152
|
+
type savings_finding_actor = { "userId" => String, "name" => String | nil }
|
|
12937
13153
|
|
|
12938
13154
|
# Empty lists and blank fields are dropped on write.
|
|
12939
13155
|
#
|
|
@@ -12957,11 +13173,8 @@ module Infrawrench
|
|
|
12957
13173
|
# Spec schema: `SavingsFindingKind`.
|
|
12958
13174
|
type savings_finding_kind = "orphan" | "oversized" | "extended_support" | "seat"
|
|
12959
13175
|
|
|
12960
|
-
# What acting on it saves per month; null when the finder has no price (and,
|
|
12961
|
-
# for orphans, when the caller lacks `costs:read`, as on `/orphans`).
|
|
12962
|
-
#
|
|
12963
13176
|
# Spec schema: `SavingsFindingMoney`.
|
|
12964
|
-
type savings_finding_money = { "amount" => Numeric, "currency" => String }
|
|
13177
|
+
type savings_finding_money = { "amount" => Numeric, "currency" => String }
|
|
12965
13178
|
|
|
12966
13179
|
# Spec schema: `SavingsFindingSort`.
|
|
12967
13180
|
type savings_finding_sort = {
|
|
@@ -12980,12 +13193,12 @@ module Infrawrench
|
|
|
12980
13193
|
"key" => String,
|
|
12981
13194
|
"status" => savings_finding_status,
|
|
12982
13195
|
"statusChangedAt" => String,
|
|
12983
|
-
"statusChangedBy" => savings_finding_actor,
|
|
13196
|
+
"statusChangedBy" => savings_finding_actor | nil,
|
|
12984
13197
|
"statusNote" => String | nil,
|
|
12985
13198
|
"resolution" => "manual" | "resolved" | nil
|
|
12986
13199
|
}
|
|
12987
13200
|
|
|
12988
|
-
#
|
|
13201
|
+
# A status, `open` (Ready or In progress), or `all`.
|
|
12989
13202
|
#
|
|
12990
13203
|
# Spec schema: `SavingsFindingStatusFilter`.
|
|
12991
13204
|
type savings_finding_status_filter = "open" | "ready" | "in_progress" | "completed" | "archived" | "all"
|
|
@@ -13011,27 +13224,26 @@ module Infrawrench
|
|
|
13011
13224
|
"completed" => Integer,
|
|
13012
13225
|
"archived" => Integer
|
|
13013
13226
|
},
|
|
13014
|
-
"potentialMonthly" => Array[savings_finding_money
|
|
13227
|
+
"potentialMonthly" => Array[savings_finding_money],
|
|
13015
13228
|
"unpricedOpenCount" => Integer,
|
|
13016
|
-
"realized" => Array[savings_finding_money
|
|
13229
|
+
"realized" => Array[savings_finding_money] | nil,
|
|
13017
13230
|
"realizedWindowDays" => Integer,
|
|
13018
13231
|
"savingsRate" => Array[{ "currency" => String, "rate" => Numeric }] | nil
|
|
13019
13232
|
}
|
|
13020
13233
|
|
|
13021
13234
|
# Spec schema: `SavingsShortfall`.
|
|
13022
13235
|
type savings_shortfall = {
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
| nil
|
|
13236
|
+
"kind" => "below_projection" | "grew_back",
|
|
13237
|
+
"realizedPerDay" => Numeric,
|
|
13238
|
+
"projectedPerDay" => Numeric | nil
|
|
13239
|
+
}
|
|
13028
13240
|
|
|
13029
13241
|
# Spec schema: `SavingsView`.
|
|
13030
13242
|
type savings_view = {
|
|
13031
13243
|
"id" => String,
|
|
13032
13244
|
"name" => String,
|
|
13033
13245
|
"description" => String | nil,
|
|
13034
|
-
"status" => savings_finding_status_filter
|
|
13246
|
+
"status" => savings_finding_status_filter,
|
|
13035
13247
|
"filter" => savings_finding_filter,
|
|
13036
13248
|
"sort" => savings_finding_sort,
|
|
13037
13249
|
"createdByUserId" => String | nil,
|
|
@@ -13061,7 +13273,7 @@ module Infrawrench
|
|
|
13061
13273
|
"description" => String | nil,
|
|
13062
13274
|
"checks" => Array[scorecard_check],
|
|
13063
13275
|
"levels" => Array[scorecard_level],
|
|
13064
|
-
"applicableTiers" => Array[Numeric
|
|
13276
|
+
"applicableTiers" => Array[Numeric],
|
|
13065
13277
|
"alertOnLevelDrop" => bool,
|
|
13066
13278
|
"enabled" => bool,
|
|
13067
13279
|
"isDefault" => bool,
|
|
@@ -13110,7 +13322,7 @@ module Infrawrench
|
|
|
13110
13322
|
?"description" => String | nil,
|
|
13111
13323
|
?"checks" => Array[scorecard_check],
|
|
13112
13324
|
?"levels" => Array[scorecard_level],
|
|
13113
|
-
?"applicableTiers" => Array[Numeric
|
|
13325
|
+
?"applicableTiers" => Array[Numeric],
|
|
13114
13326
|
?"alertOnLevelDrop" => bool,
|
|
13115
13327
|
?"enabled" => bool
|
|
13116
13328
|
}
|
|
@@ -13131,7 +13343,7 @@ module Infrawrench
|
|
|
13131
13343
|
"id" => String,
|
|
13132
13344
|
"name" => String,
|
|
13133
13345
|
"slug" => String,
|
|
13134
|
-
"tier" => Numeric |
|
|
13346
|
+
"tier" => Numeric | nil,
|
|
13135
13347
|
"ownerTeam" => String | nil
|
|
13136
13348
|
}],
|
|
13137
13349
|
"results" => Array[scorecard_result]
|
|
@@ -13155,7 +13367,7 @@ module Infrawrench
|
|
|
13155
13367
|
?"description" => String | nil,
|
|
13156
13368
|
?"checks" => Array[scorecard_check],
|
|
13157
13369
|
?"levels" => Array[scorecard_level],
|
|
13158
|
-
?"applicableTiers" => Array[Numeric
|
|
13370
|
+
?"applicableTiers" => Array[Numeric],
|
|
13159
13371
|
?"alertOnLevelDrop" => bool,
|
|
13160
13372
|
?"enabled" => bool
|
|
13161
13373
|
}
|
|
@@ -13163,7 +13375,6 @@ module Infrawrench
|
|
|
13163
13375
|
# Spec schema: `SearchHit`.
|
|
13164
13376
|
type search_hit = {
|
|
13165
13377
|
"id" => resource_id,
|
|
13166
|
-
?"kind" => search_result_kind,
|
|
13167
13378
|
"pluginId" => String,
|
|
13168
13379
|
"pluginDisplayName" => String,
|
|
13169
13380
|
"pluginLogoSvg" => String,
|
|
@@ -13172,7 +13383,8 @@ module Infrawrench
|
|
|
13172
13383
|
"accountId" => String,
|
|
13173
13384
|
"accountName" => String,
|
|
13174
13385
|
"displayName" => String,
|
|
13175
|
-
?"subtitle" => String
|
|
13386
|
+
?"subtitle" => String,
|
|
13387
|
+
?"kind" => search_result_kind
|
|
13176
13388
|
}
|
|
13177
13389
|
|
|
13178
13390
|
# What a search hit is. `resource` and `workflow` are the original kinds; the
|
|
@@ -13251,7 +13463,7 @@ module Infrawrench
|
|
|
13251
13463
|
},
|
|
13252
13464
|
?"targetSeatType" => String,
|
|
13253
13465
|
?"reason" => String,
|
|
13254
|
-
?"remediation" => finding_remediation
|
|
13466
|
+
?"remediation" => finding_remediation
|
|
13255
13467
|
}
|
|
13256
13468
|
|
|
13257
13469
|
# Spec schema: `SeatLimitResponse`.
|
|
@@ -13363,7 +13575,7 @@ module Infrawrench
|
|
|
13363
13575
|
"name" => String,
|
|
13364
13576
|
"slug" => String,
|
|
13365
13577
|
"description" => String | nil,
|
|
13366
|
-
"tier" => Numeric |
|
|
13578
|
+
"tier" => Numeric | nil,
|
|
13367
13579
|
"ownerTeam" => String | nil,
|
|
13368
13580
|
"ownerUserIds" => Array[String],
|
|
13369
13581
|
"links" => Array[service_link],
|
|
@@ -13386,7 +13598,7 @@ module Infrawrench
|
|
|
13386
13598
|
"name" => String,
|
|
13387
13599
|
?"slug" => String,
|
|
13388
13600
|
?"description" => String | nil,
|
|
13389
|
-
?"tier" => Numeric |
|
|
13601
|
+
?"tier" => Numeric | nil,
|
|
13390
13602
|
?"ownerTeam" => String | nil,
|
|
13391
13603
|
?"ownerUserIds" => Array[String],
|
|
13392
13604
|
?"links" => Array[service_link],
|
|
@@ -13422,19 +13634,18 @@ module Infrawrench
|
|
|
13422
13634
|
"externalId" => String | nil,
|
|
13423
13635
|
"source" => "manual" | "rule",
|
|
13424
13636
|
"ruleIndex" => Integer | nil,
|
|
13425
|
-
"owner" => service_member_owner,
|
|
13637
|
+
"owner" => service_member_owner | nil,
|
|
13426
13638
|
"missing" => bool
|
|
13427
13639
|
}
|
|
13428
13640
|
|
|
13429
13641
|
# Spec schema: `ServiceMemberOwner`.
|
|
13430
13642
|
type service_member_owner = {
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
| nil
|
|
13643
|
+
"userId" => String | nil,
|
|
13644
|
+
"displayName" => String,
|
|
13645
|
+
"isLabel" => bool,
|
|
13646
|
+
"ticketUrl" => String | nil,
|
|
13647
|
+
"purpose" => String | nil
|
|
13648
|
+
}
|
|
13438
13649
|
|
|
13439
13650
|
# Spec schema: `ServiceMembersRequest`.
|
|
13440
13651
|
type service_members_request = { "resourceIds" => Array[String] }
|
|
@@ -13449,31 +13660,8 @@ module Infrawrench
|
|
|
13449
13660
|
"accountId" => String | nil
|
|
13450
13661
|
}
|
|
13451
13662
|
|
|
13452
|
-
# Spec schema: `ServicePostureFinding`.
|
|
13453
|
-
type service_posture_finding = {
|
|
13454
|
-
"resourceId" => String,
|
|
13455
|
-
"pluginId" => String,
|
|
13456
|
-
"pluginName" => String,
|
|
13457
|
-
"resourceTypeId" => String,
|
|
13458
|
-
"resourceTypeName" => String,
|
|
13459
|
-
"accountId" => String,
|
|
13460
|
-
"accountName" => String,
|
|
13461
|
-
"displayName" => String,
|
|
13462
|
-
"externalId" => String | nil,
|
|
13463
|
-
"ruleId" => String,
|
|
13464
|
-
"title" => String,
|
|
13465
|
-
"severity" => "critical" | "high" | "medium" | "low",
|
|
13466
|
-
"category" => String,
|
|
13467
|
-
"reason" => String
|
|
13468
|
-
}
|
|
13469
|
-
|
|
13470
13663
|
# Spec schema: `ServiceRef`.
|
|
13471
|
-
type service_ref = {
|
|
13472
|
-
"id" => String,
|
|
13473
|
-
"name" => String,
|
|
13474
|
-
"slug" => String,
|
|
13475
|
-
"tier" => Numeric | Numeric | Numeric | Numeric | nil
|
|
13476
|
-
}
|
|
13664
|
+
type service_ref = { "id" => String, "name" => String, "slug" => String, "tier" => Numeric | nil }
|
|
13477
13665
|
|
|
13478
13666
|
# Spec schema: `ServiceScoreBadge`.
|
|
13479
13667
|
type service_score_badge = {
|
|
@@ -13526,7 +13714,7 @@ module Infrawrench
|
|
|
13526
13714
|
"findings" => {
|
|
13527
13715
|
"posture" => {
|
|
13528
13716
|
"counts" => { "critical" => Integer, "high" => Integer, "medium" => Integer, "low" => Integer },
|
|
13529
|
-
"items" => Array[
|
|
13717
|
+
"items" => Array[posture_finding]
|
|
13530
13718
|
},
|
|
13531
13719
|
"orphans" => Array[{ "resourceId" => String, "resourceName" => String, "reason" => String }],
|
|
13532
13720
|
"backups" => Array[{ "resourceId" => String, "resourceName" => String, "kind" => String, "detail" => String }],
|
|
@@ -13550,7 +13738,7 @@ module Infrawrench
|
|
|
13550
13738
|
?"name" => String,
|
|
13551
13739
|
?"slug" => String,
|
|
13552
13740
|
?"description" => String | nil,
|
|
13553
|
-
?"tier" => Numeric |
|
|
13741
|
+
?"tier" => Numeric | nil,
|
|
13554
13742
|
?"ownerTeam" => String | nil,
|
|
13555
13743
|
?"ownerUserIds" => Array[String],
|
|
13556
13744
|
?"links" => Array[service_link],
|
|
@@ -13622,7 +13810,14 @@ module Infrawrench
|
|
|
13622
13810
|
type set_default_dashboard_request = { "dashboardId" => String }
|
|
13623
13811
|
|
|
13624
13812
|
# Spec schema: `SftpDeleteRequest`.
|
|
13625
|
-
type sftp_delete_request =
|
|
13813
|
+
type sftp_delete_request = {
|
|
13814
|
+
"accountId" => String,
|
|
13815
|
+
"path" => String,
|
|
13816
|
+
?"sshKeyId" => String,
|
|
13817
|
+
?"sshHost" => String,
|
|
13818
|
+
?"sshUsername" => String,
|
|
13819
|
+
"isDir" => bool
|
|
13820
|
+
}
|
|
13626
13821
|
|
|
13627
13822
|
# Spec schema: `SftpEntry`.
|
|
13628
13823
|
type sftp_entry = {
|
|
@@ -13733,7 +13928,27 @@ module Infrawrench
|
|
|
13733
13928
|
type shared_console_state = { "share" => shared_console, "participants" => Array[shared_console_participant] }
|
|
13734
13929
|
|
|
13735
13930
|
# Spec schema: `SharedConsoleSummary`.
|
|
13736
|
-
type shared_console_summary =
|
|
13931
|
+
type shared_console_summary = {
|
|
13932
|
+
"id" => String,
|
|
13933
|
+
"routingKey" => String,
|
|
13934
|
+
"ownerUserId" => String | nil,
|
|
13935
|
+
"ownerName" => String | nil,
|
|
13936
|
+
"accountId" => String | nil,
|
|
13937
|
+
"resourceId" => String | nil,
|
|
13938
|
+
"host" => String,
|
|
13939
|
+
"port" => Integer,
|
|
13940
|
+
"username" => String,
|
|
13941
|
+
"allowHandover" => bool,
|
|
13942
|
+
"status" => "active" | "revoked" | "ended",
|
|
13943
|
+
"inviteTokenPrefix" => String | nil,
|
|
13944
|
+
"inviteExpiresAt" => String | nil,
|
|
13945
|
+
"inviteConsumedAt" => String | nil,
|
|
13946
|
+
"recordingId" => String | nil,
|
|
13947
|
+
"ptyCols" => Integer,
|
|
13948
|
+
"ptyRows" => Integer,
|
|
13949
|
+
"createdAt" => String,
|
|
13950
|
+
"participants" => Array[shared_console_participant]
|
|
13951
|
+
}
|
|
13737
13952
|
|
|
13738
13953
|
# Spec schema: `ShowbackReport`.
|
|
13739
13954
|
type showback_report = {
|
|
@@ -13818,7 +14033,7 @@ module Infrawrench
|
|
|
13818
14033
|
"currency" => String | nil,
|
|
13819
14034
|
"createdAt" => String,
|
|
13820
14035
|
"updatedAt" => String,
|
|
13821
|
-
?"remediation" => finding_remediation &
|
|
14036
|
+
?"remediation" => finding_remediation & untyped
|
|
13822
14037
|
}
|
|
13823
14038
|
|
|
13824
14039
|
# Spec schema: `SleepScheduleCreate`.
|
|
@@ -13869,7 +14084,7 @@ module Infrawrench
|
|
|
13869
14084
|
"name" => String,
|
|
13870
14085
|
"description" => String | nil,
|
|
13871
14086
|
"targetPercent" => Numeric,
|
|
13872
|
-
"windowDays" => Numeric
|
|
14087
|
+
"windowDays" => Numeric,
|
|
13873
14088
|
"alertsEnabled" => bool,
|
|
13874
14089
|
"suggestFreeze" => bool,
|
|
13875
14090
|
"enabled" => bool,
|
|
@@ -13883,7 +14098,7 @@ module Infrawrench
|
|
|
13883
14098
|
"probeName" => String | nil,
|
|
13884
14099
|
"resourceName" => String | nil,
|
|
13885
14100
|
"accountId" => String | nil,
|
|
13886
|
-
"pluginId" => plugin_id
|
|
14101
|
+
"pluginId" => plugin_id | nil,
|
|
13887
14102
|
"resourceTypeId" => String | nil,
|
|
13888
14103
|
"status" => "exhausted" | "fast_burn" | "slow_burn" | "ok" | "unknown",
|
|
13889
14104
|
"sli" => Numeric | nil,
|
|
@@ -13901,10 +14116,8 @@ module Infrawrench
|
|
|
13901
14116
|
"updatedAt" => String
|
|
13902
14117
|
}
|
|
13903
14118
|
|
|
13904
|
-
# The change freeze in effect, if any.
|
|
13905
|
-
#
|
|
13906
14119
|
# Spec schema: `SloActiveFreeze`.
|
|
13907
|
-
type slo_active_freeze = { "id" => String, "name" => String, "endsAt" => String | nil }
|
|
14120
|
+
type slo_active_freeze = { "id" => String, "name" => String, "endsAt" => String | nil }
|
|
13908
14121
|
|
|
13909
14122
|
# Spec schema: `SloBucket`.
|
|
13910
14123
|
type slo_bucket = { "startMs" => Numeric, "good" => Numeric, "total" => Numeric }
|
|
@@ -13912,8 +14125,8 @@ module Infrawrench
|
|
|
13912
14125
|
# Spec schema: `SloCreate`.
|
|
13913
14126
|
type slo_create = {
|
|
13914
14127
|
"name" => String,
|
|
13915
|
-
?"description" => String | nil,
|
|
13916
14128
|
"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
14129
|
+
?"description" => String | nil,
|
|
13917
14130
|
?"probeId" => String | nil,
|
|
13918
14131
|
?"latencyThresholdMs" => Integer | nil,
|
|
13919
14132
|
?"resourceId" => String | nil,
|
|
@@ -13921,17 +14134,17 @@ module Infrawrench
|
|
|
13921
14134
|
?"comparator" => "<" | "<=" | ">" | ">=" | nil,
|
|
13922
14135
|
?"threshold" => Numeric | nil,
|
|
13923
14136
|
?"targetPercent" => Numeric,
|
|
13924
|
-
?"windowDays" => Numeric
|
|
14137
|
+
?"windowDays" => Numeric,
|
|
13925
14138
|
?"alertsEnabled" => bool,
|
|
13926
14139
|
?"suggestFreeze" => bool,
|
|
13927
14140
|
?"enabled" => bool
|
|
13928
14141
|
}
|
|
13929
14142
|
|
|
13930
14143
|
# Spec schema: `SloDetail`.
|
|
13931
|
-
type slo_detail = { "slo" => slo, "buckets" => Array[slo_bucket], "activeFreeze" => slo_active_freeze }
|
|
14144
|
+
type slo_detail = { "slo" => slo, "buckets" => Array[slo_bucket], "activeFreeze" => slo_active_freeze | nil }
|
|
13932
14145
|
|
|
13933
14146
|
# Spec schema: `SloFreezeRequest`.
|
|
13934
|
-
type slo_freeze_request = { ?"durationHours" => Numeric |
|
|
14147
|
+
type slo_freeze_request = { ?"durationHours" => Numeric | nil, ?"reason" => String }
|
|
13935
14148
|
|
|
13936
14149
|
# Spec schema: `SloList`.
|
|
13937
14150
|
type slo_list = { "slos" => Array[slo] }
|
|
@@ -13952,8 +14165,8 @@ module Infrawrench
|
|
|
13952
14165
|
# Spec schema: `SloUpdate`.
|
|
13953
14166
|
type slo_update = {
|
|
13954
14167
|
?"name" => String,
|
|
13955
|
-
?"description" => String | nil,
|
|
13956
14168
|
?"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
14169
|
+
?"description" => String | nil,
|
|
13957
14170
|
?"probeId" => String | nil,
|
|
13958
14171
|
?"latencyThresholdMs" => Integer | nil,
|
|
13959
14172
|
?"resourceId" => String | nil,
|
|
@@ -13961,7 +14174,7 @@ module Infrawrench
|
|
|
13961
14174
|
?"comparator" => "<" | "<=" | ">" | ">=" | nil,
|
|
13962
14175
|
?"threshold" => Numeric | nil,
|
|
13963
14176
|
?"targetPercent" => Numeric,
|
|
13964
|
-
?"windowDays" => Numeric
|
|
14177
|
+
?"windowDays" => Numeric,
|
|
13965
14178
|
?"alertsEnabled" => bool,
|
|
13966
14179
|
?"suggestFreeze" => bool,
|
|
13967
14180
|
?"enabled" => bool
|
|
@@ -13971,7 +14184,13 @@ module Infrawrench
|
|
|
13971
14184
|
type sql_estimate_request = { "accountId" => String, "resourceId" => resource_id, "sql" => String }
|
|
13972
14185
|
|
|
13973
14186
|
# Spec schema: `SqlExecuteRequest`.
|
|
13974
|
-
type sql_execute_request =
|
|
14187
|
+
type sql_execute_request = {
|
|
14188
|
+
"accountId" => String,
|
|
14189
|
+
?"resourceId" => resource_id,
|
|
14190
|
+
?"resourceTypeId" => String,
|
|
14191
|
+
"sql" => String,
|
|
14192
|
+
?"params" => untyped
|
|
14193
|
+
}
|
|
13975
14194
|
|
|
13976
14195
|
# Spec schema: `SqlExecuteResponse`.
|
|
13977
14196
|
type sql_execute_response = { "affectedRows" => Integer }
|
|
@@ -14049,6 +14268,17 @@ module Infrawrench
|
|
|
14049
14268
|
# Spec schema: `SshFanoutTargetsResponse`.
|
|
14050
14269
|
type ssh_fanout_targets_response = { "targets" => Array[ssh_fanout_target] }
|
|
14051
14270
|
|
|
14271
|
+
# Spec schema: `SshHostKeyTrustRequired`.
|
|
14272
|
+
type ssh_host_key_trust_required = {
|
|
14273
|
+
"error" => "ssh_host_key_trust_required",
|
|
14274
|
+
"message" => String,
|
|
14275
|
+
"kind" => "unknown" | "mismatch",
|
|
14276
|
+
"host" => String,
|
|
14277
|
+
"port" => Integer,
|
|
14278
|
+
"presentedFingerprint" => String,
|
|
14279
|
+
"storedFingerprint" => String | nil
|
|
14280
|
+
}
|
|
14281
|
+
|
|
14052
14282
|
# Spec schema: `SshInstallAccount`.
|
|
14053
14283
|
type ssh_install_account = {
|
|
14054
14284
|
"accountId" => String,
|
|
@@ -14147,7 +14377,6 @@ module Infrawrench
|
|
|
14147
14377
|
# Spec schema: `StarredItem`.
|
|
14148
14378
|
type starred_item = {
|
|
14149
14379
|
"id" => resource_id,
|
|
14150
|
-
"kind" => search_result_kind,
|
|
14151
14380
|
"pluginId" => String,
|
|
14152
14381
|
"pluginDisplayName" => String,
|
|
14153
14382
|
"pluginLogoSvg" => String,
|
|
@@ -14157,6 +14386,7 @@ module Infrawrench
|
|
|
14157
14386
|
"accountName" => String,
|
|
14158
14387
|
"displayName" => String,
|
|
14159
14388
|
?"subtitle" => String,
|
|
14389
|
+
"kind" => search_result_kind,
|
|
14160
14390
|
"starredAt" => String
|
|
14161
14391
|
}
|
|
14162
14392
|
|
|
@@ -14250,12 +14480,11 @@ module Infrawrench
|
|
|
14250
14480
|
|
|
14251
14481
|
# Spec schema: `Subscription`.
|
|
14252
14482
|
type subscription = {
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
| nil
|
|
14483
|
+
"status" => "trialing" | "active" | "past_due" | "canceled" | "unpaid",
|
|
14484
|
+
"seatCount" => Integer,
|
|
14485
|
+
"currentPeriodEnd" => String | nil,
|
|
14486
|
+
"stripeCustomerId" => String
|
|
14487
|
+
}
|
|
14259
14488
|
|
|
14260
14489
|
# Spec schema: `SubscriptionCheckoutRequest`.
|
|
14261
14490
|
type subscription_checkout_request = { ?"measurement" => revnu_checkout_measurement }
|
|
@@ -14263,7 +14492,7 @@ module Infrawrench
|
|
|
14263
14492
|
# Two allocation rule ids in the same org whose priorities should be swapped.
|
|
14264
14493
|
#
|
|
14265
14494
|
# Spec schema: `SwapAllocationRulesBody`.
|
|
14266
|
-
type swap_allocation_rules_body = { "aId" =>
|
|
14495
|
+
type swap_allocation_rules_body = { "aId" => untyped, "bId" => untyped }
|
|
14267
14496
|
|
|
14268
14497
|
# Spec schema: `SyncResponse`.
|
|
14269
14498
|
type sync_response = {
|
|
@@ -14280,7 +14509,7 @@ module Infrawrench
|
|
|
14280
14509
|
"externalId" => String | nil,
|
|
14281
14510
|
"fieldsJson" => json_object,
|
|
14282
14511
|
"outputsJson" => json_object,
|
|
14283
|
-
"parentResourceId" => resource_id
|
|
14512
|
+
"parentResourceId" => resource_id | nil
|
|
14284
14513
|
}
|
|
14285
14514
|
|
|
14286
14515
|
# Spec schema: `SyntheticProbe`.
|
|
@@ -14295,7 +14524,7 @@ module Infrawrench
|
|
|
14295
14524
|
"enabled" => bool,
|
|
14296
14525
|
"accountId" => String | nil,
|
|
14297
14526
|
"resourceId" => String | nil,
|
|
14298
|
-
"pluginId" => plugin_id
|
|
14527
|
+
"pluginId" => plugin_id | nil,
|
|
14299
14528
|
"resourceTypeId" => String | nil,
|
|
14300
14529
|
"outputKey" => String | nil,
|
|
14301
14530
|
"status" => "up" | "down" | "unknown",
|
|
@@ -14337,32 +14566,26 @@ module Infrawrench
|
|
|
14337
14566
|
?"enabled" => bool
|
|
14338
14567
|
}
|
|
14339
14568
|
|
|
14340
|
-
# The organization's T3 Code managed policy, installed on every T3 Code server
|
|
14341
|
-
# (`/etc/t3code/policy.json`). On save: omit to keep the stored policy, `null`
|
|
14342
|
-
# to remove it. A new T3 Code session is refused when the policy does not
|
|
14343
|
-
# allow its tool or turns off the T3 Connect it is reached through.
|
|
14344
|
-
#
|
|
14345
14569
|
# Spec schema: `T3CodePolicy`.
|
|
14346
14570
|
type t3_code_policy = {
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
}
|
|
14571
|
+
"schemaVersion" => Numeric,
|
|
14572
|
+
"organization" => String,
|
|
14573
|
+
?"supportUrl" => String,
|
|
14574
|
+
?"settings" => Hash[String, { ?"value" => untyped, "locked" => bool }],
|
|
14575
|
+
?"limits" => {
|
|
14576
|
+
?"maxRuntimeMode" => "approval-required" | "auto-accept-edits" | "auto" | "full-access",
|
|
14577
|
+
?"clients" => Array["desktop" | "local-browser" | "remote"],
|
|
14578
|
+
?"connect" => bool,
|
|
14579
|
+
?"webhookTasks" => bool,
|
|
14580
|
+
?"telemetry" => bool,
|
|
14581
|
+
?"browserCookieImport" => bool,
|
|
14582
|
+
?"providers" => {
|
|
14583
|
+
?"allowedDrivers" => Array[String],
|
|
14584
|
+
?"instances" => Hash[String, t3_code_policy_provider_instance]
|
|
14585
|
+
},
|
|
14586
|
+
?"updates" => { "mode" => "auto" | "off", ?"feedUrl" => String, ?"allowNightly" => bool }
|
|
14364
14587
|
}
|
|
14365
|
-
|
|
14588
|
+
}
|
|
14366
14589
|
|
|
14367
14590
|
# Spec schema: `T3CodePolicyProviderInstance`.
|
|
14368
14591
|
type t3_code_policy_provider_instance = {
|
|
@@ -14413,6 +14636,7 @@ module Infrawrench
|
|
|
14413
14636
|
| "slos"
|
|
14414
14637
|
| "services"
|
|
14415
14638
|
| "delivery"
|
|
14639
|
+
| "ci"
|
|
14416
14640
|
| "workflows"
|
|
14417
14641
|
| "deployments"
|
|
14418
14642
|
| "settings"
|
|
@@ -14426,6 +14650,7 @@ module Infrawrench
|
|
|
14426
14650
|
?"invoiceId" => String,
|
|
14427
14651
|
?"canvasId" => String,
|
|
14428
14652
|
?"sloId" => String,
|
|
14653
|
+
?"runId" => String,
|
|
14429
14654
|
?"serviceId" => String,
|
|
14430
14655
|
?"view" => "details" | "ssh" | "sftp" | "apps" | "scorecards",
|
|
14431
14656
|
?"framework" => String,
|
|
@@ -14488,6 +14713,29 @@ module Infrawrench
|
|
|
14488
14713
|
"uri" => String | nil
|
|
14489
14714
|
}
|
|
14490
14715
|
|
|
14716
|
+
# Spec schema: `TunnelSshAttachRequest`.
|
|
14717
|
+
type tunnel_ssh_attach_request = {
|
|
14718
|
+
"tunnel" => { "accountId" => String, "pluginId" => String, "resourceId" => String },
|
|
14719
|
+
"host" => {
|
|
14720
|
+
"accountId" => String,
|
|
14721
|
+
"pluginId" => String,
|
|
14722
|
+
"resourceTypeId" => String,
|
|
14723
|
+
"resourceId" => String
|
|
14724
|
+
},
|
|
14725
|
+
"hostname" => String,
|
|
14726
|
+
"zoneId" => String,
|
|
14727
|
+
?"serviceType" => "http" | "https" | "ssh" | "tcp",
|
|
14728
|
+
?"port" => String,
|
|
14729
|
+
"sshUsername" => String,
|
|
14730
|
+
?"sshKeyId" => String
|
|
14731
|
+
}
|
|
14732
|
+
|
|
14733
|
+
# Spec schema: `TunnelSshAttachResult`.
|
|
14734
|
+
type tunnel_ssh_attach_result = {
|
|
14735
|
+
"steps" => Array[{ "label" => String, "ok" => bool, ?"detail" => String }],
|
|
14736
|
+
?"connectCommand" => String
|
|
14737
|
+
}
|
|
14738
|
+
|
|
14491
14739
|
# Spend in the period no customer is billed for. Resolved exactly the way an
|
|
14492
14740
|
# invoice resolves it: allocation rules claim spend for cost centres first,
|
|
14493
14741
|
# and each account claims only what no rule did. A cost centre is assigned
|
|
@@ -14528,7 +14776,32 @@ module Infrawrench
|
|
|
14528
14776
|
}
|
|
14529
14777
|
|
|
14530
14778
|
# Spec schema: `UnitCostExportRequest`.
|
|
14531
|
-
type unit_cost_export_request =
|
|
14779
|
+
type unit_cost_export_request = {
|
|
14780
|
+
"from" => String,
|
|
14781
|
+
"to" => String,
|
|
14782
|
+
"binning" => "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "cumulative",
|
|
14783
|
+
?"mode" => unit_cost_mode & untyped,
|
|
14784
|
+
?"scale" => unit_cost_scale,
|
|
14785
|
+
?"labelFilters" => Array[unit_cost_label_filter],
|
|
14786
|
+
?"groupByLabel" => String,
|
|
14787
|
+
?"usageUnit" => String,
|
|
14788
|
+
?"filters" => Array[business_metric_scope_term],
|
|
14789
|
+
?"query" => String,
|
|
14790
|
+
?"savedFilterId" => String,
|
|
14791
|
+
?"costBasis" => "cash" | "amortized" | "blended",
|
|
14792
|
+
?"chargeTypes" => Array["usage"
|
|
14793
|
+
| "commitment_covered_usage"
|
|
14794
|
+
| "commitment_fee"
|
|
14795
|
+
| "commitment_discount"
|
|
14796
|
+
| "credit"
|
|
14797
|
+
| "tax"
|
|
14798
|
+
| "refund"
|
|
14799
|
+
| "adjustment"
|
|
14800
|
+
| "support"
|
|
14801
|
+
| "other"],
|
|
14802
|
+
?"displayCurrency" => String,
|
|
14803
|
+
?"format" => "csv" | "ndjson"
|
|
14804
|
+
}
|
|
14532
14805
|
|
|
14533
14806
|
# Spec schema: `UnitCostLabelFilter`.
|
|
14534
14807
|
type unit_cost_label_filter = { "key" => String, "op" => "in" | "not_in", "values" => Array[String] }
|
|
@@ -14560,7 +14833,7 @@ module Infrawrench
|
|
|
14560
14833
|
"from" => String,
|
|
14561
14834
|
"to" => String,
|
|
14562
14835
|
"binning" => "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "cumulative",
|
|
14563
|
-
?"mode" => unit_cost_mode,
|
|
14836
|
+
?"mode" => unit_cost_mode & untyped,
|
|
14564
14837
|
?"scale" => unit_cost_scale,
|
|
14565
14838
|
?"labelFilters" => Array[unit_cost_label_filter],
|
|
14566
14839
|
?"groupByLabel" => String,
|
|
@@ -14569,7 +14842,16 @@ module Infrawrench
|
|
|
14569
14842
|
?"query" => String,
|
|
14570
14843
|
?"savedFilterId" => String,
|
|
14571
14844
|
?"costBasis" => "cash" | "amortized" | "blended",
|
|
14572
|
-
?"chargeTypes" => Array[
|
|
14845
|
+
?"chargeTypes" => Array["usage"
|
|
14846
|
+
| "commitment_covered_usage"
|
|
14847
|
+
| "commitment_fee"
|
|
14848
|
+
| "commitment_discount"
|
|
14849
|
+
| "credit"
|
|
14850
|
+
| "tax"
|
|
14851
|
+
| "refund"
|
|
14852
|
+
| "adjustment"
|
|
14853
|
+
| "support"
|
|
14854
|
+
| "other"],
|
|
14573
14855
|
?"displayCurrency" => String
|
|
14574
14856
|
}
|
|
14575
14857
|
|
|
@@ -14607,7 +14889,7 @@ module Infrawrench
|
|
|
14607
14889
|
# raw metric. Margin ignores it. Absent is 1.
|
|
14608
14890
|
#
|
|
14609
14891
|
# Spec schema: `UnitCostScale`.
|
|
14610
|
-
type unit_cost_scale = Numeric
|
|
14892
|
+
type unit_cost_scale = Numeric
|
|
14611
14893
|
|
|
14612
14894
|
# Spec schema: `UnitCostSeries`.
|
|
14613
14895
|
type unit_cost_series = {
|
|
@@ -14715,7 +14997,7 @@ module Infrawrench
|
|
|
14715
14997
|
"state" => "pending" | "processing" | "ready" | "failed",
|
|
14716
14998
|
"processedAt" => String | nil,
|
|
14717
14999
|
"error" => String | nil,
|
|
14718
|
-
"stats" => virtual_tag_stats
|
|
15000
|
+
"stats" => virtual_tag_stats | nil
|
|
14719
15001
|
},
|
|
14720
15002
|
"createdByUserId" => String | nil,
|
|
14721
15003
|
"createdAt" => String,
|
|
@@ -14761,13 +15043,12 @@ module Infrawrench
|
|
|
14761
15043
|
|
|
14762
15044
|
# Spec schema: `VirtualTagStats`.
|
|
14763
15045
|
type virtual_tag_stats = {
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
|
|
14769
|
-
|
|
14770
|
-
| nil
|
|
15046
|
+
"from" => String | nil,
|
|
15047
|
+
"to" => String | nil,
|
|
15048
|
+
"currencies" => Array[virtual_tag_currency_stats],
|
|
15049
|
+
"metricFallbackDays" => Integer,
|
|
15050
|
+
"distinctValues" => Integer
|
|
15051
|
+
}
|
|
14771
15052
|
|
|
14772
15053
|
# Spec schema: `VulnerabilityDismissal`.
|
|
14773
15054
|
type vulnerability_dismissal = {
|
|
@@ -14802,7 +15083,7 @@ module Infrawrench
|
|
|
14802
15083
|
"fixedVersion" => String | nil,
|
|
14803
15084
|
"fixAvailable" => bool | nil,
|
|
14804
15085
|
"exploitAvailable" => bool | nil,
|
|
14805
|
-
"kev" => vulnerability_kev_entry,
|
|
15086
|
+
"kev" => vulnerability_kev_entry | nil,
|
|
14806
15087
|
"artifact" => {
|
|
14807
15088
|
"kind" => "image" | "function" | "host" | "repository" | "package",
|
|
14808
15089
|
"name" => String,
|
|
@@ -14817,25 +15098,18 @@ module Infrawrench
|
|
|
14817
15098
|
"url" => String | nil,
|
|
14818
15099
|
"collectedAt" => String,
|
|
14819
15100
|
"running" => Array[vulnerability_running_ref],
|
|
14820
|
-
"services" => Array[{
|
|
14821
|
-
"id" => String,
|
|
14822
|
-
"name" => String,
|
|
14823
|
-
"slug" => String,
|
|
14824
|
-
"tier" => Numeric | Numeric | Numeric | Numeric | nil
|
|
14825
|
-
}]
|
|
15101
|
+
"services" => Array[{ "id" => String, "name" => String, "slug" => String, "tier" => Numeric | nil }]
|
|
14826
15102
|
}
|
|
14827
15103
|
|
|
14828
|
-
# CISA Known Exploited Vulnerabilities entry, when listed.
|
|
14829
|
-
#
|
|
14830
15104
|
# Spec schema: `VulnerabilityKevEntry`.
|
|
14831
|
-
type vulnerability_kev_entry = { "dateAdded" => String, "dueDate" => String | nil, "knownRansomware" => bool }
|
|
15105
|
+
type vulnerability_kev_entry = { "dateAdded" => String, "dueDate" => String | nil, "knownRansomware" => bool }
|
|
14832
15106
|
|
|
14833
15107
|
# Spec schema: `VulnerabilityListResponse`.
|
|
14834
15108
|
type vulnerability_list_response = {
|
|
14835
15109
|
"findings" => Array[vulnerability_finding],
|
|
14836
15110
|
"totalCount" => Integer,
|
|
14837
15111
|
"counts" => vulnerability_severity_counts,
|
|
14838
|
-
"runningCounts" => vulnerability_severity_counts
|
|
15112
|
+
"runningCounts" => vulnerability_severity_counts,
|
|
14839
15113
|
"dismissed" => Array[dismissed_vulnerability_finding],
|
|
14840
15114
|
"dismissedCount" => Integer,
|
|
14841
15115
|
"sources" => Array[vulnerability_source],
|
|
@@ -14930,6 +15204,30 @@ module Infrawrench
|
|
|
14930
15204
|
"principal" => "user" | "api_key" | "agent"
|
|
14931
15205
|
}
|
|
14932
15206
|
|
|
15207
|
+
# Spec schema: `Workflow`.
|
|
15208
|
+
type workflow = {
|
|
15209
|
+
"id" => String,
|
|
15210
|
+
"organizationId" => String,
|
|
15211
|
+
"name" => String,
|
|
15212
|
+
"description" => String | nil,
|
|
15213
|
+
"source" => String,
|
|
15214
|
+
"trigger" => workflow_trigger,
|
|
15215
|
+
"metricDefs" => Array[workflow_metric_def],
|
|
15216
|
+
"enabled" => bool,
|
|
15217
|
+
"webhookToken" => String | nil,
|
|
15218
|
+
"hasWebhookSecret" => bool,
|
|
15219
|
+
"gitLastSha" => String | nil,
|
|
15220
|
+
"budgetLastFiredKey" => String | nil,
|
|
15221
|
+
"nextRunAt" => String | nil,
|
|
15222
|
+
"lastRunAt" => String | nil,
|
|
15223
|
+
"createdByUserId" => String | nil,
|
|
15224
|
+
"sourceAuthorUserId" => String | nil,
|
|
15225
|
+
"syncVersion" => Integer,
|
|
15226
|
+
"deletedAt" => String | nil,
|
|
15227
|
+
"createdAt" => String,
|
|
15228
|
+
"updatedAt" => String
|
|
15229
|
+
}
|
|
15230
|
+
|
|
14933
15231
|
# Spec schema: `WorkflowApproval`.
|
|
14934
15232
|
type workflow_approval = {
|
|
14935
15233
|
"id" => String,
|
|
@@ -14948,9 +15246,94 @@ module Infrawrench
|
|
|
14948
15246
|
# Spec schema: `WorkflowApprovalStatus`.
|
|
14949
15247
|
type workflow_approval_status = "pending" | "approved" | "denied" | "expired"
|
|
14950
15248
|
|
|
15249
|
+
# Spec schema: `WorkflowCheckInput`.
|
|
15250
|
+
type workflow_check_input = { ?"source" => String }
|
|
15251
|
+
|
|
15252
|
+
# Spec schema: `WorkflowDiagnostic`.
|
|
15253
|
+
type workflow_diagnostic = {
|
|
15254
|
+
"line" => Integer,
|
|
15255
|
+
"column" => Integer,
|
|
15256
|
+
"code" => Integer,
|
|
15257
|
+
"category" => "error" | "warning" | "suggestion" | "message",
|
|
15258
|
+
"message" => String
|
|
15259
|
+
}
|
|
15260
|
+
|
|
15261
|
+
# Spec schema: `WorkflowInput`.
|
|
15262
|
+
type workflow_input = {
|
|
15263
|
+
?"name" => String,
|
|
15264
|
+
?"description" => String | nil,
|
|
15265
|
+
?"source" => String,
|
|
15266
|
+
?"trigger" => workflow_trigger,
|
|
15267
|
+
?"metrics" => Array[workflow_metric_def],
|
|
15268
|
+
?"enabled" => bool,
|
|
15269
|
+
?"secretIds" => Array[String],
|
|
15270
|
+
?"webhookSecret" => String | nil
|
|
15271
|
+
}
|
|
15272
|
+
|
|
15273
|
+
# Spec schema: `WorkflowMetric`.
|
|
15274
|
+
type workflow_metric = {
|
|
15275
|
+
"id" => String,
|
|
15276
|
+
"organizationId" => String,
|
|
15277
|
+
"workflowId" => String,
|
|
15278
|
+
"key" => String,
|
|
15279
|
+
"label" => String,
|
|
15280
|
+
"type" => String,
|
|
15281
|
+
"unit" => String | nil,
|
|
15282
|
+
"value" => untyped,
|
|
15283
|
+
"syncVersion" => Integer,
|
|
15284
|
+
"deletedAt" => String | nil,
|
|
15285
|
+
"updatedAt" => String
|
|
15286
|
+
}
|
|
15287
|
+
|
|
15288
|
+
# Spec schema: `WorkflowMetricDef`.
|
|
15289
|
+
type workflow_metric_def = {
|
|
15290
|
+
"key" => String,
|
|
15291
|
+
"label" => String,
|
|
15292
|
+
"type" => "number" | "string" | "boolean",
|
|
15293
|
+
?"unit" => String,
|
|
15294
|
+
?"description" => String
|
|
15295
|
+
}
|
|
15296
|
+
|
|
14951
15297
|
# Spec schema: `WorkflowPinRequest`.
|
|
14952
15298
|
type workflow_pin_request = { "dashboardId" => String, "workflowId" => String }
|
|
14953
15299
|
|
|
15300
|
+
# Spec schema: `WorkflowRun`.
|
|
15301
|
+
type workflow_run = {
|
|
15302
|
+
"id" => String,
|
|
15303
|
+
"organizationId" => String,
|
|
15304
|
+
"workflowId" => String,
|
|
15305
|
+
"status" => "pending" | "running" | "success" | "failure" | "canceled",
|
|
15306
|
+
"triggerSource" => String,
|
|
15307
|
+
"logs" => Array[workflow_run_log],
|
|
15308
|
+
"output" => untyped,
|
|
15309
|
+
"error" => workflow_run_error | nil,
|
|
15310
|
+
"startedAt" => String | nil,
|
|
15311
|
+
"finishedAt" => String | nil,
|
|
15312
|
+
"durationMs" => Integer | nil,
|
|
15313
|
+
"syncVersion" => Integer,
|
|
15314
|
+
"createdAt" => String
|
|
15315
|
+
}
|
|
15316
|
+
|
|
15317
|
+
# Spec schema: `WorkflowRunError`.
|
|
15318
|
+
type workflow_run_error = { "message" => String, ?"stack" => String }
|
|
15319
|
+
|
|
15320
|
+
# Spec schema: `WorkflowRunLog`.
|
|
15321
|
+
type workflow_run_log = { "at" => Numeric, "level" => "debug" | "info" | "warn" | "error", "message" => String }
|
|
15322
|
+
|
|
15323
|
+
# Spec schema: `WorkflowRunOutcome`.
|
|
15324
|
+
type workflow_run_outcome = { "runId" => String, "result" => workflow_run_result }
|
|
15325
|
+
|
|
15326
|
+
# Spec schema: `WorkflowRunResult`.
|
|
15327
|
+
type workflow_run_result = {
|
|
15328
|
+
"status" => "pending" | "running" | "success" | "failure" | "canceled",
|
|
15329
|
+
"logs" => Array[workflow_run_log],
|
|
15330
|
+
?"output" => untyped,
|
|
15331
|
+
?"error" => workflow_run_error,
|
|
15332
|
+
"startedAt" => Numeric,
|
|
15333
|
+
"finishedAt" => Numeric,
|
|
15334
|
+
"durationMs" => Numeric
|
|
15335
|
+
}
|
|
15336
|
+
|
|
14954
15337
|
# Spec schema: `WorkflowSchedule`.
|
|
14955
15338
|
type workflow_schedule = {
|
|
14956
15339
|
"expression" => String,
|
|
@@ -14965,7 +15348,7 @@ module Infrawrench
|
|
|
14965
15348
|
type workflow_schedule_input = { "expression" => String, ?"timezone" => String | nil, ?"enabled" => bool }
|
|
14966
15349
|
|
|
14967
15350
|
# Spec schema: `WorkflowScheduleResponse`.
|
|
14968
|
-
type workflow_schedule_response = { "schedule" => workflow_schedule | nil
|
|
15351
|
+
type workflow_schedule_response = { "schedule" => workflow_schedule | nil }
|
|
14969
15352
|
|
|
14970
15353
|
# Spec schema: `WorkflowSecret`.
|
|
14971
15354
|
type workflow_secret = {
|
|
@@ -14992,6 +15375,27 @@ module Infrawrench
|
|
|
14992
15375
|
# Spec schema: `WorkflowSecretValueWrite`.
|
|
14993
15376
|
type workflow_secret_value_write = { "value" => String }
|
|
14994
15377
|
|
|
15378
|
+
# Spec schema: `WorkflowTrigger`.
|
|
15379
|
+
type workflow_trigger = { "kind" => "manual" }
|
|
15380
|
+
| { "kind" => "cron", "expression" => String, ?"timezone" => String }
|
|
15381
|
+
| {
|
|
15382
|
+
"kind" => "git",
|
|
15383
|
+
?"provider" => String,
|
|
15384
|
+
?"repo" => String,
|
|
15385
|
+
?"branch" => String,
|
|
15386
|
+
?"events" => Array[String],
|
|
15387
|
+
?"installationId" => Integer
|
|
15388
|
+
}
|
|
15389
|
+
| {
|
|
15390
|
+
"kind" => "budget",
|
|
15391
|
+
"budgetId" => String,
|
|
15392
|
+
?"percent" => Numeric,
|
|
15393
|
+
?"metric" => "actual" | "forecast"
|
|
15394
|
+
}
|
|
15395
|
+
|
|
15396
|
+
# Spec schema: `WorkflowTypecheckResult`.
|
|
15397
|
+
type workflow_typecheck_result = { "diagnostics" => Array[workflow_diagnostic], "hasErrors" => bool, "degraded" => bool }
|
|
15398
|
+
|
|
14995
15399
|
# Spec schema: `WorkflowTypingsResponse`.
|
|
14996
15400
|
type workflow_typings_response = { "dts" => String }
|
|
14997
15401
|
|
|
@@ -15048,7 +15452,7 @@ module Infrawrench
|
|
|
15048
15452
|
attr_reader preflight: AccountsPreflightNamespace
|
|
15049
15453
|
attr_reader sync_type: AccountsSyncTypeNamespace
|
|
15050
15454
|
def initialize: (Transport) -> void
|
|
15051
|
-
def create: (body:
|
|
15455
|
+
def create: (body: create_account_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_account_response
|
|
15052
15456
|
def credential_options: (body: credential_options_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> credential_options_response
|
|
15053
15457
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15054
15458
|
def detail: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> account_detail
|
|
@@ -15128,8 +15532,8 @@ module Infrawrench
|
|
|
15128
15532
|
|
|
15129
15533
|
class AgentsSettingsNamespace
|
|
15130
15534
|
def initialize: (Transport) -> void
|
|
15131
|
-
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_settings
|
|
15132
|
-
def update: (body:
|
|
15535
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> (agent_settings | nil)
|
|
15536
|
+
def update: (body: agent_settings, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_settings
|
|
15133
15537
|
end
|
|
15134
15538
|
|
|
15135
15539
|
class AgentsT3PolicyNamespace
|
|
@@ -15316,7 +15720,7 @@ module Infrawrench
|
|
|
15316
15720
|
|
|
15317
15721
|
class BlastRadiusNamespace
|
|
15318
15722
|
def initialize: (Transport) -> void
|
|
15319
|
-
def get: (resource_id:
|
|
15723
|
+
def get: (resource_id: resource_id, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> blast_radius_report
|
|
15320
15724
|
end
|
|
15321
15725
|
|
|
15322
15726
|
class BudgetsEventsNamespace
|
|
@@ -15351,10 +15755,10 @@ module Infrawrench
|
|
|
15351
15755
|
class BusinessMetricsImporterNamespace
|
|
15352
15756
|
def initialize: (Transport) -> void
|
|
15353
15757
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15354
|
-
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "importer" => business_metric_importer }
|
|
15758
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "importer" => business_metric_importer | nil }
|
|
15355
15759
|
def run: (id: String, ?org_id: String?, ?body: { ?"from" => String, ?"to" => String }?, ?request_options: Hash[Symbol, untyped]?) -> business_metric_import_run
|
|
15356
15760
|
def runs: (id: String, ?org_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "runs" => Array[business_metric_import_run] }
|
|
15357
|
-
def update: (id: String, body: business_metric_importer_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
15761
|
+
def update: (id: String, body: business_metric_importer_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> business_metric_importer
|
|
15358
15762
|
end
|
|
15359
15763
|
|
|
15360
15764
|
class BusinessMetricsUnitCostsNamespace
|
|
@@ -15445,6 +15849,7 @@ module Infrawrench
|
|
|
15445
15849
|
class ChatConversationsPendingNamespace
|
|
15446
15850
|
def initialize: (Transport) -> void
|
|
15447
15851
|
def answer: (conversation_id: String, pending_id: String, body: chat_ask_question_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_ask_question_result
|
|
15852
|
+
def create: (conversation_id: String, pending_id: String, body: chat_pending_decision_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_pending_decision_result
|
|
15448
15853
|
end
|
|
15449
15854
|
|
|
15450
15855
|
class ChatConversationsSecretRequestsNamespace
|
|
@@ -15456,11 +15861,46 @@ module Infrawrench
|
|
|
15456
15861
|
attr_reader pending: ChatConversationsPendingNamespace
|
|
15457
15862
|
attr_reader secret_requests: ChatConversationsSecretRequestsNamespace
|
|
15458
15863
|
def initialize: (Transport) -> void
|
|
15864
|
+
def create: (body: chat_conversation_create_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_conversation_created
|
|
15865
|
+
def delete: (conversation_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15866
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_conversation_list
|
|
15867
|
+
def get_org_org_id_chat_conversations_conversation_id: (conversation_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_conversation_detail
|
|
15868
|
+
def update: (conversation_id: String, body: chat_conversation_model_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15459
15869
|
end
|
|
15460
15870
|
|
|
15461
15871
|
class ChatNamespace
|
|
15462
15872
|
attr_reader conversations: ChatConversationsNamespace
|
|
15463
15873
|
def initialize: (Transport) -> void
|
|
15874
|
+
def spend: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_spend_status
|
|
15875
|
+
end
|
|
15876
|
+
|
|
15877
|
+
class CiAccountsNamespace
|
|
15878
|
+
def initialize: (Transport) -> void
|
|
15879
|
+
def update: (installation_id: String, body: { "enabled" => bool }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_account
|
|
15880
|
+
end
|
|
15881
|
+
|
|
15882
|
+
class CiRunsNamespace
|
|
15883
|
+
def initialize: (Transport) -> void
|
|
15884
|
+
def approve: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15885
|
+
def get: (?org_id: String?, ?status: ci_run_status?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "runs" => Array[ci_run] }
|
|
15886
|
+
def get_org_org_id_ci_runs_run_id: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run_detail
|
|
15887
|
+
def reject: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15888
|
+
end
|
|
15889
|
+
|
|
15890
|
+
class CiValuesNamespace
|
|
15891
|
+
def initialize: (Transport) -> void
|
|
15892
|
+
def delete: (kind: "secrets" | "variables", name: String, installation_id: Integer, ?org_id: String?, ?repo: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15893
|
+
def get: (installation_id: Integer, ?org_id: String?, ?repo: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_values
|
|
15894
|
+
def update: (kind: "secrets" | "variables", name: String, installation_id: Integer, body: { "value" => String }, ?org_id: String?, ?repo: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15895
|
+
end
|
|
15896
|
+
|
|
15897
|
+
class CiNamespace
|
|
15898
|
+
attr_reader accounts: CiAccountsNamespace
|
|
15899
|
+
attr_reader runs: CiRunsNamespace
|
|
15900
|
+
attr_reader values: CiValuesNamespace
|
|
15901
|
+
def initialize: (Transport) -> void
|
|
15902
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_status
|
|
15903
|
+
def usage: (?org_id: String?, ?month: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_usage
|
|
15464
15904
|
end
|
|
15465
15905
|
|
|
15466
15906
|
class CommitmentsNamespace
|
|
@@ -15492,8 +15932,8 @@ module Infrawrench
|
|
|
15492
15932
|
attr_reader schedules: ComplianceSchedulesNamespace
|
|
15493
15933
|
def initialize: (Transport) -> void
|
|
15494
15934
|
def frameworks: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "frameworks" => Array[compliance_framework_summary] }
|
|
15495
|
-
def get: (framework: String, ?org_id: String?, ?from:
|
|
15496
|
-
def pack: (framework: String, ?org_id: String?, ?from:
|
|
15935
|
+
def get: (framework: String, ?org_id: String?, ?from: untyped?, ?to: untyped?, ?request_options: Hash[Symbol, untyped]?) -> compliance_status
|
|
15936
|
+
def pack: (framework: String, ?org_id: String?, ?from: untyped?, ?to: untyped?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
15497
15937
|
end
|
|
15498
15938
|
|
|
15499
15939
|
class ConfigNamespace
|
|
@@ -15693,11 +16133,11 @@ module Infrawrench
|
|
|
15693
16133
|
|
|
15694
16134
|
class CostsAnomalySuppressionsNamespace
|
|
15695
16135
|
def initialize: (Transport) -> void
|
|
15696
|
-
def create: (body: cost_anomaly_suppression_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
16136
|
+
def create: (body: cost_anomaly_suppression_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_anomaly_suppression
|
|
15697
16137
|
def delete: (suppression_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
15698
|
-
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "suppressions" => Array[cost_anomaly_suppression
|
|
15699
|
-
def get_org_org_id_costs_anomaly_suppressions_suppression_id: (suppression_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
15700
|
-
def update: (suppression_id: String, body: cost_anomaly_suppression_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
16138
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "suppressions" => Array[cost_anomaly_suppression] }
|
|
16139
|
+
def get_org_org_id_costs_anomaly_suppressions_suppression_id: (suppression_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_anomaly_suppression
|
|
16140
|
+
def update: (suppression_id: String, body: cost_anomaly_suppression_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_anomaly_suppression
|
|
15701
16141
|
end
|
|
15702
16142
|
|
|
15703
16143
|
class CostsEfficiencyAlertSettingsNamespace
|
|
@@ -15829,7 +16269,7 @@ module Infrawrench
|
|
|
15829
16269
|
def initialize: (Transport) -> void
|
|
15830
16270
|
def create: (body: pin_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
15831
16271
|
def get: (pin_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pin_full
|
|
15832
|
-
def range: (pin_id: String, ?org_id: String?, ?from_ms:
|
|
16272
|
+
def range: (pin_id: String, ?org_id: String?, ?from_ms: Integer?, ?to_ms: Integer?, ?request_options: Hash[Symbol, untyped]?) -> pin_range_response
|
|
15833
16273
|
end
|
|
15834
16274
|
|
|
15835
16275
|
class DashboardsRoleDefaultsNamespace
|
|
@@ -15871,7 +16311,7 @@ module Infrawrench
|
|
|
15871
16311
|
|
|
15872
16312
|
class DependencyGraphNamespace
|
|
15873
16313
|
def initialize: (Transport) -> void
|
|
15874
|
-
def get: (?org_id: String?, ?resource_id:
|
|
16314
|
+
def get: (?org_id: String?, ?resource_id: resource_id?, ?request_options: Hash[Symbol, untyped]?) -> dependency_graph_response
|
|
15875
16315
|
end
|
|
15876
16316
|
|
|
15877
16317
|
class DeploymentsRunsNamespace
|
|
@@ -15956,7 +16396,7 @@ module Infrawrench
|
|
|
15956
16396
|
class EnvironmentsSettingsNamespace
|
|
15957
16397
|
def initialize: (Transport) -> void
|
|
15958
16398
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> environment_settings
|
|
15959
|
-
def update: (?org_id: String?, ?body:
|
|
16399
|
+
def update: (?org_id: String?, ?body: { ?"maxTtlHours" => Integer, ?"defaultTtlHours" => Integer }?, ?request_options: Hash[Symbol, untyped]?) -> environment_settings
|
|
15960
16400
|
end
|
|
15961
16401
|
|
|
15962
16402
|
class EnvironmentsTemplatesNamespace
|
|
@@ -16027,6 +16467,24 @@ module Infrawrench
|
|
|
16027
16467
|
def get: (?org_id: String?, ?refresh: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> extended_support_list_response
|
|
16028
16468
|
end
|
|
16029
16469
|
|
|
16470
|
+
class FeaturesNamespace
|
|
16471
|
+
def initialize: (Transport) -> void
|
|
16472
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_feature_list
|
|
16473
|
+
end
|
|
16474
|
+
|
|
16475
|
+
class GithubInstallationsNamespace
|
|
16476
|
+
def initialize: (Transport) -> void
|
|
16477
|
+
def delete: (installation_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16478
|
+
end
|
|
16479
|
+
|
|
16480
|
+
class GithubNamespace
|
|
16481
|
+
attr_reader installations: GithubInstallationsNamespace
|
|
16482
|
+
def initialize: (Transport) -> void
|
|
16483
|
+
def install_url: (?org_id: String?, ?return_param: "agents" | "workflows" | "settings/github-issues" | "settings/pr-checks" | "ci"?, ?request_options: Hash[Symbol, untyped]?) -> github_install_url
|
|
16484
|
+
def repos: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> github_app_repos
|
|
16485
|
+
def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> github_app_status
|
|
16486
|
+
end
|
|
16487
|
+
|
|
16030
16488
|
class GithubIssuesLinksNamespace
|
|
16031
16489
|
def initialize: (Transport) -> void
|
|
16032
16490
|
def list: (?org_id: String?, ?source_kind: github_issue_source_kind?, ?state: "open" | "closed"?, ?source_id: Array[String]?, ?request_options: Hash[Symbol, untyped]?) -> Array[github_issue_link]
|
|
@@ -16088,7 +16546,7 @@ module Infrawrench
|
|
|
16088
16546
|
|
|
16089
16547
|
class IncidentsNotesNamespace
|
|
16090
16548
|
def initialize: (Transport) -> void
|
|
16091
|
-
def create: (incident_id: String,
|
|
16549
|
+
def create: (incident_id: String, body: incident_note_create, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident_note
|
|
16092
16550
|
def delete: (incident_id: String, note_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16093
16551
|
end
|
|
16094
16552
|
|
|
@@ -16096,12 +16554,12 @@ module Infrawrench
|
|
|
16096
16554
|
attr_reader get: IncidentsGetNamespace
|
|
16097
16555
|
attr_reader notes: IncidentsNotesNamespace
|
|
16098
16556
|
def initialize: (Transport) -> void
|
|
16099
|
-
def create: (
|
|
16557
|
+
def create: (body: incident_declare, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident
|
|
16100
16558
|
def delete: (incident_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16101
16559
|
def postmortem: (incident_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident_postmortem
|
|
16102
16560
|
def retry_artifacts: (incident_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident
|
|
16103
16561
|
def timeline: (incident_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident_timeline
|
|
16104
|
-
def update: (incident_id: String,
|
|
16562
|
+
def update: (incident_id: String, body: incident_patch, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> incident
|
|
16105
16563
|
end
|
|
16106
16564
|
|
|
16107
16565
|
class InstancePricingNamespace
|
|
@@ -16128,7 +16586,7 @@ module Infrawrench
|
|
|
16128
16586
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16129
16587
|
def export: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
16130
16588
|
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> invoice
|
|
16131
|
-
def list: (?org_id: String?, ?managed_account_id:
|
|
16589
|
+
def list: (?org_id: String?, ?managed_account_id: untyped?, ?status: invoice_status?, ?request_options: Hash[Symbol, untyped]?) -> Array[invoice_summary]
|
|
16132
16590
|
def pdf: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
16133
16591
|
def post_org_org_id_invoices_id_send: (id: String, ?org_id: String?, ?body: invoice_send_request?, ?request_options: Hash[Symbol, untyped]?) -> invoice
|
|
16134
16592
|
def update: (id: String, body: invoice_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> invoice
|
|
@@ -16149,7 +16607,7 @@ module Infrawrench
|
|
|
16149
16607
|
attr_reader jira: IssueWebhooksJiraNamespace
|
|
16150
16608
|
attr_reader linear: IssueWebhooksLinearNamespace
|
|
16151
16609
|
def initialize: (Transport) -> void
|
|
16152
|
-
def github: (?request_options: Hash[Symbol, untyped]?) ->
|
|
16610
|
+
def github: (?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool }
|
|
16153
16611
|
end
|
|
16154
16612
|
|
|
16155
16613
|
class JiraLinksNamespace
|
|
@@ -16176,9 +16634,9 @@ module Infrawrench
|
|
|
16176
16634
|
attr_reader webhook: JiraWebhookNamespace
|
|
16177
16635
|
def initialize: (Transport) -> void
|
|
16178
16636
|
def delete: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16179
|
-
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "integration" => jira_integration }
|
|
16637
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "integration" => jira_integration | nil }
|
|
16180
16638
|
def issues: (body: create_jira_issue_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_jira_issue_result
|
|
16181
|
-
def update: (body: jira_integration_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
16639
|
+
def update: (body: jira_integration_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jira_integration
|
|
16182
16640
|
def verify: (?org_id: String?, ?body: jira_verify_input?, ?request_options: Hash[Symbol, untyped]?) -> jira_verify_result
|
|
16183
16641
|
end
|
|
16184
16642
|
|
|
@@ -16196,7 +16654,7 @@ module Infrawrench
|
|
|
16196
16654
|
def get: (policy_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jit_policy
|
|
16197
16655
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_policy]
|
|
16198
16656
|
def principal: (policy_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jit_principal_resolution
|
|
16199
|
-
def principals: (policy_id: String, ?org_id: String?, ?q: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_principal_option
|
|
16657
|
+
def principals: (policy_id: String, ?org_id: String?, ?q: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_principal_option]
|
|
16200
16658
|
def update: (policy_id: String, ?org_id: String?, ?body: jit_policy_input?, ?request_options: Hash[Symbol, untyped]?) -> jit_policy
|
|
16201
16659
|
end
|
|
16202
16660
|
|
|
@@ -16276,10 +16734,10 @@ module Infrawrench
|
|
|
16276
16734
|
attr_reader webhook: LinearWebhookNamespace
|
|
16277
16735
|
def initialize: (Transport) -> void
|
|
16278
16736
|
def delete: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16279
|
-
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "integration" => linear_integration }
|
|
16737
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "integration" => linear_integration | nil }
|
|
16280
16738
|
def issues: (body: create_linear_issue_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_linear_issue_result
|
|
16281
16739
|
def teams: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[linear_team]
|
|
16282
|
-
def update: (body: linear_integration_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
16740
|
+
def update: (body: linear_integration_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> linear_integration
|
|
16283
16741
|
def verify: (?org_id: String?, ?body: linear_verify_input?, ?request_options: Hash[Symbol, untyped]?) -> linear_verify_result
|
|
16284
16742
|
end
|
|
16285
16743
|
|
|
@@ -16366,7 +16824,7 @@ module Infrawrench
|
|
|
16366
16824
|
class NetworkFlowsSettingsNamespace
|
|
16367
16825
|
def initialize: (Transport) -> void
|
|
16368
16826
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> network_flow_settings
|
|
16369
|
-
def update: (body:
|
|
16827
|
+
def update: (body: network_flow_settings_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> network_flow_settings
|
|
16370
16828
|
end
|
|
16371
16829
|
|
|
16372
16830
|
class NetworkFlowsNamespace
|
|
@@ -16381,18 +16839,18 @@ module Infrawrench
|
|
|
16381
16839
|
|
|
16382
16840
|
class OnCallOverridesNamespace
|
|
16383
16841
|
def initialize: (Transport) -> void
|
|
16384
|
-
def create: (
|
|
16842
|
+
def create: (body: on_call_override_create, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> on_call_override
|
|
16385
16843
|
def delete: (override_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16386
16844
|
def get: (?org_id: String?, ?schedule_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "overrides" => Array[on_call_override] }
|
|
16387
16845
|
end
|
|
16388
16846
|
|
|
16389
16847
|
class OnCallSchedulesNamespace
|
|
16390
16848
|
def initialize: (Transport) -> void
|
|
16391
|
-
def create: (
|
|
16849
|
+
def create: (body: on_call_schedule_create, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> on_call_schedule
|
|
16392
16850
|
def delete: (schedule_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16393
16851
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> on_call_schedule_list
|
|
16394
16852
|
def shifts: (schedule_id: String, ?org_id: String?, ?count: Integer?, ?request_options: Hash[Symbol, untyped]?) -> on_call_shifts_response
|
|
16395
|
-
def update: (schedule_id: String,
|
|
16853
|
+
def update: (schedule_id: String, body: on_call_schedule_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> on_call_schedule
|
|
16396
16854
|
end
|
|
16397
16855
|
|
|
16398
16856
|
class OnCallNamespace
|
|
@@ -16418,7 +16876,7 @@ module Infrawrench
|
|
|
16418
16876
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> resource_ownership_list_response
|
|
16419
16877
|
def members: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> owner_candidate_list_response
|
|
16420
16878
|
def resource: (resource_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> resource_ownership_envelope
|
|
16421
|
-
def update: (?org_id: String?, ?body: resource_ownership_patch?, ?request_options: Hash[Symbol, untyped]?) -> (resource_ownership
|
|
16879
|
+
def update: (?org_id: String?, ?body: resource_ownership_patch?, ?request_options: Hash[Symbol, untyped]?) -> (resource_ownership | nil)
|
|
16422
16880
|
end
|
|
16423
16881
|
|
|
16424
16882
|
class PagesNamespace
|
|
@@ -16445,7 +16903,7 @@ module Infrawrench
|
|
|
16445
16903
|
def destinations: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> paging_destinations_response
|
|
16446
16904
|
def events: (?org_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> paging_events_response
|
|
16447
16905
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> paging_providers_response
|
|
16448
|
-
def settings: (account_id: String,
|
|
16906
|
+
def settings: (account_id: String, body: paging_provider_settings_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> paging_provider_settings_result
|
|
16449
16907
|
def sync: (account_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> paging_sync_result
|
|
16450
16908
|
end
|
|
16451
16909
|
|
|
@@ -16556,11 +17014,11 @@ module Infrawrench
|
|
|
16556
17014
|
class QueryMonitorsNamespace
|
|
16557
17015
|
attr_reader get: QueryMonitorsGetNamespace
|
|
16558
17016
|
def initialize: (Transport) -> void
|
|
16559
|
-
def create: (
|
|
17017
|
+
def create: (body: query_monitor_create, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
|
|
16560
17018
|
def delete: (monitor_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16561
17019
|
def targets: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_targets
|
|
16562
|
-
def test: (
|
|
16563
|
-
def update: (monitor_id: String,
|
|
17020
|
+
def test: (body: { ?"name" => String, ?"description" => String | nil, ?"accountId" => String, ?"resourceId" => String | nil, ?"resourceTypeId" => String | nil, ?"sql" => String, ?"mode" => "scalar" | "rowCount", ?"operator" => "gt" | "gte" | "lt" | "lte" | "eq" | "neq", ?"threshold" => Numeric, ?"intervalMinutes" => Integer, ?"consecutiveBreaches" => Integer, ?"enabled" => bool }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_test_result
|
|
17021
|
+
def update: (monitor_id: String, body: query_monitor_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
|
|
16564
17022
|
end
|
|
16565
17023
|
|
|
16566
17024
|
class QuotasSettingsNamespace
|
|
@@ -16591,7 +17049,7 @@ module Infrawrench
|
|
|
16591
17049
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[resource_report]
|
|
16592
17050
|
def options: (?org_id: String?, ?types: String?, ?request_options: Hash[Symbol, untyped]?) -> resource_report_options
|
|
16593
17051
|
def query: (?org_id: String?, ?body: resource_report_query_request?, ?request_options: Hash[Symbol, untyped]?) -> resource_report_rows
|
|
16594
|
-
def rows: (id: String, ?org_id: String?, ?offset:
|
|
17052
|
+
def rows: (id: String, ?org_id: String?, ?offset: Integer?, ?limit: Integer?, ?sort: String?, ?direction: "asc" | "desc"?, ?request_options: Hash[Symbol, untyped]?) -> resource_report_rows
|
|
16595
17053
|
def tag_values: (key: String, ?org_id: String?, ?source: "tag" | "virtual_tag"?, ?request_options: Hash[Symbol, untyped]?) -> { "values" => Array[String] }
|
|
16596
17054
|
def update: (id: String, ?org_id: String?, ?body: resource_report_input?, ?request_options: Hash[Symbol, untyped]?) -> resource_report
|
|
16597
17055
|
end
|
|
@@ -16622,7 +17080,7 @@ module Infrawrench
|
|
|
16622
17080
|
attr_reader ssh_install: ResourcesSshInstallNamespace
|
|
16623
17081
|
def initialize: (Transport) -> void
|
|
16624
17082
|
def attach: (body: attach_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16625
|
-
def cost_estimate: (body: cost_estimate_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "estimate" => cost_estimate, "carbon" => resource_carbon_estimate }
|
|
17083
|
+
def cost_estimate: (body: cost_estimate_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "estimate" => cost_estimate | nil, "carbon" => resource_carbon_estimate | nil }
|
|
16626
17084
|
def create: (body: create_resource_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_resource_response
|
|
16627
17085
|
def create_config: (body: create_config_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> json_object
|
|
16628
17086
|
def create_pricing: (body: create_pricing_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Hash[String, json_object]
|
|
@@ -16639,6 +17097,7 @@ module Infrawrench
|
|
|
16639
17097
|
def nosql_command: (body: no_sql_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "result" => json_object }
|
|
16640
17098
|
def peer_panes: (plugin_id: plugin_id, type_id: resource_type_id, body: peer_panes_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[peer_pane]
|
|
16641
17099
|
def picker_resources: (body: picker_resources_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[picker_resource]
|
|
17100
|
+
def tunnel_ssh_attach: (body: tunnel_ssh_attach_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> tunnel_ssh_attach_result
|
|
16642
17101
|
def update: (body: update_resource_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> update_resource_response
|
|
16643
17102
|
end
|
|
16644
17103
|
|
|
@@ -16655,13 +17114,13 @@ module Infrawrench
|
|
|
16655
17114
|
|
|
16656
17115
|
class RunbooksRunsStepsNamespace
|
|
16657
17116
|
def initialize: (Transport) -> void
|
|
16658
|
-
def update: (run_id: String, step_id: String,
|
|
17117
|
+
def update: (run_id: String, step_id: String, body: runbook_step_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> runbook_run
|
|
16659
17118
|
end
|
|
16660
17119
|
|
|
16661
17120
|
class RunbooksRunsNamespace
|
|
16662
17121
|
attr_reader steps: RunbooksRunsStepsNamespace
|
|
16663
17122
|
def initialize: (Transport) -> void
|
|
16664
|
-
def close: (run_id: String,
|
|
17123
|
+
def close: (run_id: String, body: runbook_run_close, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> runbook_run
|
|
16665
17124
|
def create: (runbook_id: String, ?org_id: String?, ?body: runbook_run_start?, ?request_options: Hash[Symbol, untyped]?) -> runbook_run
|
|
16666
17125
|
def get: (?org_id: String?, ?runbook_id: String?, ?incident_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> runbook_run_list
|
|
16667
17126
|
def get_org_org_id_runbooks_runs_run_id: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> runbook_run
|
|
@@ -16671,9 +17130,9 @@ module Infrawrench
|
|
|
16671
17130
|
attr_reader get: RunbooksGetNamespace
|
|
16672
17131
|
attr_reader runs: RunbooksRunsNamespace
|
|
16673
17132
|
def initialize: (Transport) -> void
|
|
16674
|
-
def create: (
|
|
17133
|
+
def create: (body: runbook_create, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> runbook
|
|
16675
17134
|
def delete: (runbook_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16676
|
-
def update: (runbook_id: String,
|
|
17135
|
+
def update: (runbook_id: String, body: runbook_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> runbook
|
|
16677
17136
|
end
|
|
16678
17137
|
|
|
16679
17138
|
class SavedCostFiltersNamespace
|
|
@@ -16701,7 +17160,7 @@ module Infrawrench
|
|
|
16701
17160
|
|
|
16702
17161
|
class SavingsFindingsNamespace
|
|
16703
17162
|
def initialize: (Transport) -> void
|
|
16704
|
-
def get: (?org_id: String?, ?view: String?, ?status: savings_finding_status_filter?, ?kind: String?, ?provider: String?, ?account: String?, ?region: String?, ?tag: String?, ?min_savings: String?, ?detected_from: String?, ?detected_to: String?, ?q: String?, ?sort: String?, ?refresh: String?, ?request_options: Hash[Symbol, untyped]?) -> savings_findings_response
|
|
17163
|
+
def get: (?org_id: String?, ?view: String?, ?status: savings_finding_status_filter?, ?kind: String?, ?provider: String?, ?account: String?, ?region: String?, ?tag: Array[String]?, ?min_savings: String?, ?detected_from: String?, ?detected_to: String?, ?q: String?, ?sort: String?, ?refresh: String?, ?request_options: Hash[Symbol, untyped]?) -> savings_findings_response
|
|
16705
17164
|
def status: (body: savings_finding_status_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "updated" => Array[savings_finding_status_change], "missing" => Array[String] }
|
|
16706
17165
|
end
|
|
16707
17166
|
|
|
@@ -16893,7 +17352,7 @@ module Infrawrench
|
|
|
16893
17352
|
def initialize: (Transport) -> void
|
|
16894
17353
|
def create: (?org_id: String?, ?body: slo_create?, ?request_options: Hash[Symbol, untyped]?) -> slo
|
|
16895
17354
|
def delete: (slo_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
16896
|
-
def post_org_org_id_slos_slo_id_freeze: (slo_id: String, ?org_id: String?, ?body: slo_freeze_request?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
17355
|
+
def post_org_org_id_slos_slo_id_freeze: (slo_id: String, ?org_id: String?, ?body: slo_freeze_request?, ?request_options: Hash[Symbol, untyped]?) -> slo_active_freeze
|
|
16897
17356
|
def sources: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> slo_sources
|
|
16898
17357
|
def update: (slo_id: String, ?org_id: String?, ?body: slo_update?, ?request_options: Hash[Symbol, untyped]?) -> slo
|
|
16899
17358
|
end
|
|
@@ -17029,7 +17488,7 @@ module Infrawrench
|
|
|
17029
17488
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
17030
17489
|
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> virtual_tag
|
|
17031
17490
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[virtual_tag]
|
|
17032
|
-
def preview: (body: virtual_tag_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
17491
|
+
def preview: (body: virtual_tag_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> virtual_tag_stats
|
|
17033
17492
|
def reprocess: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> virtual_tag
|
|
17034
17493
|
def update: (id: String, body: virtual_tag_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> virtual_tag
|
|
17035
17494
|
end
|
|
@@ -17096,7 +17555,16 @@ module Infrawrench
|
|
|
17096
17555
|
attr_reader schedule: WorkflowsScheduleNamespace
|
|
17097
17556
|
attr_reader secrets: WorkflowsSecretsNamespace
|
|
17098
17557
|
def initialize: (Transport) -> void
|
|
17558
|
+
def check: (id: String, body: workflow_check_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_typecheck_result
|
|
17559
|
+
def create: (body: workflow_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow
|
|
17560
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
17561
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow
|
|
17562
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow]
|
|
17563
|
+
def metrics: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow_metric]
|
|
17564
|
+
def run: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_run_outcome
|
|
17565
|
+
def runs: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow_run]
|
|
17099
17566
|
def typings: (id: String, ?org_id: String?, ?enrich: "1" | "true"?, ?request_options: Hash[Symbol, untyped]?) -> workflow_typings_response
|
|
17567
|
+
def update: (id: String, body: workflow_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow
|
|
17100
17568
|
end
|
|
17101
17569
|
|
|
17102
17570
|
class APIV1Client
|
|
@@ -17132,6 +17600,7 @@ module Infrawrench
|
|
|
17132
17600
|
attr_reader change_freezes: ChangeFreezesNamespace
|
|
17133
17601
|
attr_reader changes: ChangesNamespace
|
|
17134
17602
|
attr_reader chat: ChatNamespace
|
|
17603
|
+
attr_reader ci: CiNamespace
|
|
17135
17604
|
attr_reader commitments: CommitmentsNamespace
|
|
17136
17605
|
attr_reader compliance: ComplianceNamespace
|
|
17137
17606
|
attr_reader config: ConfigNamespace
|
|
@@ -17166,6 +17635,8 @@ module Infrawrench
|
|
|
17166
17635
|
attr_reader event_subscriptions: EventSubscriptionsNamespace
|
|
17167
17636
|
attr_reader expiring: ExpiringNamespace
|
|
17168
17637
|
attr_reader extended_support: ExtendedSupportNamespace
|
|
17638
|
+
attr_reader features: FeaturesNamespace
|
|
17639
|
+
attr_reader github: GithubNamespace
|
|
17169
17640
|
attr_reader github_issues: GithubIssuesNamespace
|
|
17170
17641
|
attr_reader iac: IacNamespace
|
|
17171
17642
|
attr_reader idle_findings: IdleFindingsNamespace
|