@devhelm/sdk 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/api.d.ts +782 -4
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/schemas.d.ts +360 -2
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +115 -1
- package/dist/generated/schemas.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/forensics.d.ts +39 -0
- package/dist/resources/forensics.d.ts.map +1 -0
- package/dist/resources/forensics.js +86 -0
- package/dist/resources/forensics.js.map +1 -0
- package/dist/schemas.d.ts +150 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +6 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1393,6 +1393,14 @@ const AssertionTestResultDto = z
|
|
|
1393
1393
|
actual: z.string().nullish(),
|
|
1394
1394
|
})
|
|
1395
1395
|
.strict();
|
|
1396
|
+
const MemberRoleChangedMetadata = z
|
|
1397
|
+
.object({
|
|
1398
|
+
kind: z.literal("member_role_changed"),
|
|
1399
|
+
oldRole: z.enum(["OWNER", "ADMIN", "MEMBER"]),
|
|
1400
|
+
newRole: z.enum(["OWNER", "ADMIN", "MEMBER"]),
|
|
1401
|
+
})
|
|
1402
|
+
.strict();
|
|
1403
|
+
const AuditMetadata = MemberRoleChangedMetadata;
|
|
1396
1404
|
const AuditEventDto = z
|
|
1397
1405
|
.object({
|
|
1398
1406
|
id: z.number().int(),
|
|
@@ -1402,7 +1410,7 @@ const AuditEventDto = z
|
|
|
1402
1410
|
resourceType: z.string().nullish(),
|
|
1403
1411
|
resourceId: z.string().nullish(),
|
|
1404
1412
|
resourceName: z.string().nullish(),
|
|
1405
|
-
metadata:
|
|
1413
|
+
metadata: AuditMetadata.nullish(),
|
|
1406
1414
|
createdAt: z.string().datetime({ offset: true }),
|
|
1407
1415
|
})
|
|
1408
1416
|
.strict();
|
|
@@ -1604,6 +1612,61 @@ const CheckResultDto = z
|
|
|
1604
1612
|
checkId: z.string().uuid().nullish(),
|
|
1605
1613
|
})
|
|
1606
1614
|
.strict();
|
|
1615
|
+
const RuleEvaluationDto = z
|
|
1616
|
+
.object({
|
|
1617
|
+
id: z.string().uuid(),
|
|
1618
|
+
occurredAt: z.string().datetime({ offset: true }),
|
|
1619
|
+
monitorId: z.string().uuid(),
|
|
1620
|
+
region: z.string().min(1),
|
|
1621
|
+
policySnapshotHashHex: z.string().min(1),
|
|
1622
|
+
ruleIndex: z.number().int(),
|
|
1623
|
+
ruleType: z.string().min(1),
|
|
1624
|
+
ruleScope: z.string().min(1),
|
|
1625
|
+
inputResultIds: z.array(z.string().uuid()).min(1),
|
|
1626
|
+
outputMatched: z.boolean(),
|
|
1627
|
+
evaluationDetails: z.record(z.string(), z.object({}).partial().strict()),
|
|
1628
|
+
engineVersion: z.string().min(1),
|
|
1629
|
+
checkId: z.string().uuid(),
|
|
1630
|
+
triggeringTransitionId: z.string().uuid().nullish(),
|
|
1631
|
+
})
|
|
1632
|
+
.strict();
|
|
1633
|
+
const StateTransitionDetails = z
|
|
1634
|
+
.object({ source: z.enum(["pipeline", "public-api"]) })
|
|
1635
|
+
.strict();
|
|
1636
|
+
const IncidentStateTransitionDto = z
|
|
1637
|
+
.object({
|
|
1638
|
+
id: z.string().uuid(),
|
|
1639
|
+
occurredAt: z.string().datetime({ offset: true }),
|
|
1640
|
+
monitorId: z.string().uuid(),
|
|
1641
|
+
incidentId: z.string().uuid().nullish(),
|
|
1642
|
+
fromStatus: z.string().min(1),
|
|
1643
|
+
toStatus: z.string().min(1),
|
|
1644
|
+
reason: z.string().min(1),
|
|
1645
|
+
triggeringEvaluationIds: z.array(z.string().uuid()),
|
|
1646
|
+
affectedRegions: z.array(z.string()),
|
|
1647
|
+
policySnapshotHashHex: z.string().min(1),
|
|
1648
|
+
engineVersion: z.string().min(1),
|
|
1649
|
+
checkId: z.string().uuid(),
|
|
1650
|
+
details: StateTransitionDetails,
|
|
1651
|
+
})
|
|
1652
|
+
.strict();
|
|
1653
|
+
const PolicySnapshotDto = z
|
|
1654
|
+
.object({
|
|
1655
|
+
hashHex: z.string().min(1),
|
|
1656
|
+
policy: z.record(z.string(), z.object({}).partial().strict()),
|
|
1657
|
+
engineVersion: z.string().min(1),
|
|
1658
|
+
firstSeenAt: z.string().datetime({ offset: true }),
|
|
1659
|
+
lastSeenAt: z.string().datetime({ offset: true }),
|
|
1660
|
+
})
|
|
1661
|
+
.strict();
|
|
1662
|
+
const CheckTraceDto = z
|
|
1663
|
+
.object({
|
|
1664
|
+
checkId: z.string().uuid(),
|
|
1665
|
+
evaluations: z.array(RuleEvaluationDto),
|
|
1666
|
+
transitions: z.array(IncidentStateTransitionDto),
|
|
1667
|
+
policySnapshot: PolicySnapshotDto.nullish(),
|
|
1668
|
+
})
|
|
1669
|
+
.strict();
|
|
1607
1670
|
const ComponentImpact = z
|
|
1608
1671
|
.object({
|
|
1609
1672
|
componentId: z.string().uuid(),
|
|
@@ -1827,6 +1890,10 @@ const IncidentDto = z
|
|
|
1827
1890
|
monitorType: z.string().nullish(),
|
|
1828
1891
|
resourceGroupId: z.string().uuid().nullish(),
|
|
1829
1892
|
resourceGroupName: z.string().nullish(),
|
|
1893
|
+
triggeringCheckId: z.string().uuid().nullish(),
|
|
1894
|
+
triggeredByRuleSnapshotHashHex: z.string().nullish(),
|
|
1895
|
+
triggeredByRuleIndex: z.number().int().nullish(),
|
|
1896
|
+
engineVersion: z.string().nullish(),
|
|
1830
1897
|
})
|
|
1831
1898
|
.strict();
|
|
1832
1899
|
const IncidentUpdateDto = z
|
|
@@ -1904,6 +1971,13 @@ const IncidentPolicyDto = z
|
|
|
1904
1971
|
checkFrequencySeconds: z.number().int().nullish(),
|
|
1905
1972
|
})
|
|
1906
1973
|
.strict();
|
|
1974
|
+
const IncidentTimelineDto = z
|
|
1975
|
+
.object({
|
|
1976
|
+
transitions: z.array(IncidentStateTransitionDto),
|
|
1977
|
+
triggeringEvaluations: z.array(RuleEvaluationDto),
|
|
1978
|
+
policySnapshot: PolicySnapshotDto.nullish(),
|
|
1979
|
+
})
|
|
1980
|
+
.strict();
|
|
1907
1981
|
const IntegrationFieldDto = z
|
|
1908
1982
|
.object({
|
|
1909
1983
|
key: z.string(),
|
|
@@ -2540,6 +2614,9 @@ const SingleValueResponseBatchComponentUptimeDto = z
|
|
|
2540
2614
|
const SingleValueResponseBulkMonitorActionResult = z
|
|
2541
2615
|
.object({ data: BulkMonitorActionResult })
|
|
2542
2616
|
.strict();
|
|
2617
|
+
const SingleValueResponseCheckTraceDto = z
|
|
2618
|
+
.object({ data: CheckTraceDto })
|
|
2619
|
+
.strict();
|
|
2543
2620
|
const SingleValueResponseDashboardOverviewDto = z
|
|
2544
2621
|
.object({ data: DashboardOverviewDto })
|
|
2545
2622
|
.strict();
|
|
@@ -2561,6 +2638,9 @@ const SingleValueResponseIncidentDetailDto = z
|
|
|
2561
2638
|
const SingleValueResponseIncidentPolicyDto = z
|
|
2562
2639
|
.object({ data: IncidentPolicyDto })
|
|
2563
2640
|
.strict();
|
|
2641
|
+
const SingleValueResponseIncidentTimelineDto = z
|
|
2642
|
+
.object({ data: IncidentTimelineDto })
|
|
2643
|
+
.strict();
|
|
2564
2644
|
const SingleValueResponseInviteDto = z.object({ data: InviteDto }).strict();
|
|
2565
2645
|
const SingleValueResponseListUUID = z
|
|
2566
2646
|
.object({ data: z.array(z.string().uuid()) })
|
|
@@ -2591,6 +2671,9 @@ const SingleValueResponseNotificationPolicyDto = z
|
|
|
2591
2671
|
const SingleValueResponseOrganizationDto = z
|
|
2592
2672
|
.object({ data: OrganizationDto })
|
|
2593
2673
|
.strict();
|
|
2674
|
+
const SingleValueResponsePolicySnapshotDto = z
|
|
2675
|
+
.object({ data: PolicySnapshotDto.nullable() })
|
|
2676
|
+
.strict();
|
|
2594
2677
|
const SingleValueResponseResourceGroupDto = z
|
|
2595
2678
|
.object({ data: ResourceGroupDto })
|
|
2596
2679
|
.strict();
|
|
@@ -2947,6 +3030,15 @@ const TableValueResultIncidentDto = z
|
|
|
2947
3030
|
totalPages: z.number().int().nullish(),
|
|
2948
3031
|
})
|
|
2949
3032
|
.strict();
|
|
3033
|
+
const TableValueResultIncidentStateTransitionDto = z
|
|
3034
|
+
.object({
|
|
3035
|
+
data: z.array(IncidentStateTransitionDto),
|
|
3036
|
+
hasNext: z.boolean(),
|
|
3037
|
+
hasPrev: z.boolean(),
|
|
3038
|
+
totalElements: z.number().int().nullish(),
|
|
3039
|
+
totalPages: z.number().int().nullish(),
|
|
3040
|
+
})
|
|
3041
|
+
.strict();
|
|
2950
3042
|
const TableValueResultIntegrationDto = z
|
|
2951
3043
|
.object({
|
|
2952
3044
|
data: z.array(IntegrationDto),
|
|
@@ -3037,6 +3129,15 @@ const TableValueResultResourceGroupDto = z
|
|
|
3037
3129
|
totalPages: z.number().int().nullish(),
|
|
3038
3130
|
})
|
|
3039
3131
|
.strict();
|
|
3132
|
+
const TableValueResultRuleEvaluationDto = z
|
|
3133
|
+
.object({
|
|
3134
|
+
data: z.array(RuleEvaluationDto),
|
|
3135
|
+
hasNext: z.boolean(),
|
|
3136
|
+
hasPrev: z.boolean(),
|
|
3137
|
+
totalElements: z.number().int().nullish(),
|
|
3138
|
+
totalPages: z.number().int().nullish(),
|
|
3139
|
+
})
|
|
3140
|
+
.strict();
|
|
3040
3141
|
const TableValueResultScheduledMaintenanceDto = z
|
|
3041
3142
|
.object({
|
|
3042
3143
|
data: z.array(ScheduledMaintenanceDto),
|
|
@@ -3340,6 +3441,8 @@ export const schemas = {
|
|
|
3340
3441
|
ApiKeyDto,
|
|
3341
3442
|
AssertionResultDto,
|
|
3342
3443
|
AssertionTestResultDto,
|
|
3444
|
+
MemberRoleChangedMetadata,
|
|
3445
|
+
AuditMetadata,
|
|
3343
3446
|
AuditEventDto,
|
|
3344
3447
|
KeyInfo,
|
|
3345
3448
|
OrgInfo,
|
|
@@ -3364,6 +3467,11 @@ export const schemas = {
|
|
|
3364
3467
|
CheckTypeDetailsDto,
|
|
3365
3468
|
CheckResultDetailsDto,
|
|
3366
3469
|
CheckResultDto,
|
|
3470
|
+
RuleEvaluationDto,
|
|
3471
|
+
StateTransitionDetails,
|
|
3472
|
+
IncidentStateTransitionDto,
|
|
3473
|
+
PolicySnapshotDto,
|
|
3474
|
+
CheckTraceDto,
|
|
3367
3475
|
ComponentImpact,
|
|
3368
3476
|
ComponentsSummaryDto,
|
|
3369
3477
|
ComponentStatusDto,
|
|
@@ -3390,6 +3498,7 @@ export const schemas = {
|
|
|
3390
3498
|
IncidentDetailDto,
|
|
3391
3499
|
IncidentFilterParams,
|
|
3392
3500
|
IncidentPolicyDto,
|
|
3501
|
+
IncidentTimelineDto,
|
|
3393
3502
|
IntegrationFieldDto,
|
|
3394
3503
|
IntegrationConfigSchemaDto,
|
|
3395
3504
|
IntegrationDto,
|
|
@@ -3439,6 +3548,7 @@ export const schemas = {
|
|
|
3439
3548
|
SingleValueResponseAuthMeResponse,
|
|
3440
3549
|
SingleValueResponseBatchComponentUptimeDto,
|
|
3441
3550
|
SingleValueResponseBulkMonitorActionResult,
|
|
3551
|
+
SingleValueResponseCheckTraceDto,
|
|
3442
3552
|
SingleValueResponseDashboardOverviewDto,
|
|
3443
3553
|
SingleValueResponseDekRotationResultDto,
|
|
3444
3554
|
SingleValueResponseDeployLockDto,
|
|
@@ -3446,6 +3556,7 @@ export const schemas = {
|
|
|
3446
3556
|
SingleValueResponseGlobalStatusSummaryDto,
|
|
3447
3557
|
SingleValueResponseIncidentDetailDto,
|
|
3448
3558
|
SingleValueResponseIncidentPolicyDto,
|
|
3559
|
+
SingleValueResponseIncidentTimelineDto,
|
|
3449
3560
|
SingleValueResponseInviteDto,
|
|
3450
3561
|
SingleValueResponseListUUID,
|
|
3451
3562
|
SingleValueResponseLong,
|
|
@@ -3458,6 +3569,7 @@ export const schemas = {
|
|
|
3458
3569
|
SingleValueResponseNotificationDispatchDto,
|
|
3459
3570
|
SingleValueResponseNotificationPolicyDto,
|
|
3460
3571
|
SingleValueResponseOrganizationDto,
|
|
3572
|
+
SingleValueResponsePolicySnapshotDto,
|
|
3461
3573
|
SingleValueResponseResourceGroupDto,
|
|
3462
3574
|
SingleValueResponseResourceGroupHealthDto,
|
|
3463
3575
|
SingleValueResponseResourceGroupMemberDto,
|
|
@@ -3509,6 +3621,7 @@ export const schemas = {
|
|
|
3509
3621
|
TableValueResultDeliveryAttemptDto,
|
|
3510
3622
|
TableValueResultEnvironmentDto,
|
|
3511
3623
|
TableValueResultIncidentDto,
|
|
3624
|
+
TableValueResultIncidentStateTransitionDto,
|
|
3512
3625
|
TableValueResultIntegrationDto,
|
|
3513
3626
|
TableValueResultInviteDto,
|
|
3514
3627
|
TableValueResultMaintenanceWindowDto,
|
|
@@ -3519,6 +3632,7 @@ export const schemas = {
|
|
|
3519
3632
|
TableValueResultNotificationDto,
|
|
3520
3633
|
TableValueResultNotificationPolicyDto,
|
|
3521
3634
|
TableValueResultResourceGroupDto,
|
|
3635
|
+
TableValueResultRuleEvaluationDto,
|
|
3522
3636
|
TableValueResultScheduledMaintenanceDto,
|
|
3523
3637
|
TableValueResultSecretDto,
|
|
3524
3638
|
TableValueResultServiceComponentDto,
|