diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 273e92c4..f09ffd9c 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 6a2d7b70-1321-499a-8677-a99a42c2e4b6 management: - docChecksum: 32d87b7cda3f8c3fc8eddd7ce59bcb55 + docChecksum: a9892ed153266c5a7f383514fa86cec1 docVersion: 0.0.1 - speakeasyVersion: 1.565.0 - generationVersion: 2.630.9 - releaseVersion: 1.0.1 - configChecksum: e1eb5feac873722c04eafe5d428b16e8 + speakeasyVersion: 1.575.5 + generationVersion: 2.648.7 + releaseVersion: 1.0.2 + configChecksum: 1311a802b7cc58d2bdd0e7bb2489d3b7 repoURL: https://github.com/firehydrant/firehydrant-typescript-sdk.git installationURL: https://github.com/firehydrant/firehydrant-typescript-sdk published: true @@ -14,7 +14,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.21.11 + core: 3.21.13 defaultEnabledRetries: 0.1.0 devContainers: 2.90.0 enumUnions: 0.1.0 @@ -23,7 +23,7 @@ features: globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.5 - mcpServer: 0.9.2 + mcpServer: 0.9.3 nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 @@ -47,6 +47,7 @@ generatedFiles: - docs/models/components/alertsalertentitypaginated.md - docs/models/components/alertsprocessinglogentryentity.md - docs/models/components/alertsprocessinglogentryentitypaginated.md + - docs/models/components/alertssignalalertentity.md - docs/models/components/alertssirenalertentity.md - docs/models/components/alertssirenalertentitylabels.md - docs/models/components/alertssirenevententity.md @@ -375,8 +376,6 @@ generatedFiles: - docs/models/components/nullableintegrationentity.md - docs/models/components/nullableintegrationsawsconnectionentity.md - docs/models/components/nullableintegrationsawsconnectionentityconnectionstatus.md - - docs/models/components/nullableintegrationsconnectionentity.md - - docs/models/components/nullableintegrationsconnectionentitydetails.md - docs/models/components/nullableintegrationsintegrationentity.md - docs/models/components/nullableintegrationsintegrationentitylogoentity.md - docs/models/components/nullableintegrationsmicrosoftteamsv2channelentity.md @@ -398,10 +397,9 @@ generatedFiles: - docs/models/components/nullablerunbooksactionsentity.md - docs/models/components/nullablerunbooksactionsentitydefaultlogic.md - docs/models/components/nullablerunbooksactionsentitydefaultruledata.md - - docs/models/components/nullablerunbooksactionsentityprerequisites.md + - docs/models/components/nullablerunbooksactionsentityprerequisite.md - docs/models/components/nullablerunbookselementdynamicselectentity.md - docs/models/components/nullablerunbookselementdynamicselectentityselectoptionentity.md - - docs/models/components/nullablerunbookselemententity.md - docs/models/components/nullablerunbookselementinputentity.md - docs/models/components/nullablerunbookselementmarkdownentity.md - docs/models/components/nullablerunbookselementtextareaentity.md @@ -412,9 +410,6 @@ generatedFiles: - docs/models/components/nullablerunbooksexecutionstepexecutionentity.md - docs/models/components/nullablerunbooksexecutionstepexecutionentitydata.md - docs/models/components/nullablerunbooksexecutionstepexecutionentitystate.md - - docs/models/components/nullablerunbookstepentity.md - - docs/models/components/nullablerunbookstepentityconfig.md - - docs/models/components/nullablerunbookstepentitystepelement.md - docs/models/components/nullablerunbookswebhookdeliveryentity.md - docs/models/components/nullablescheduleentity.md - docs/models/components/nullableserviceentity.md @@ -424,6 +419,7 @@ generatedFiles: - docs/models/components/nullableseveritymatriximpactentity.md - docs/models/components/nullablesignalsapianalyticsgroupedmetricsentitymetricentity.md - docs/models/components/nullablesignalsapianalyticsmttxmetricsentitymetricentity.md + - docs/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.md - docs/models/components/nullablesignalsapianalyticstimeseriespointentitymetricentity.md - docs/models/components/nullablesignalsapicallroutestepentity.md - docs/models/components/nullablesignalsapiescalationpolicyhandoffstepentity.md @@ -441,7 +437,6 @@ generatedFiles: - docs/models/components/nullablesignalsapitransposerentityexamplepayload.md - docs/models/components/nullableslimrunbookentity.md - docs/models/components/nullablesuccinctentity.md - - docs/models/components/nullabletasklistitementity.md - docs/models/components/nullableteamentitylite.md - docs/models/components/nullableticketingpriorityentity.md - docs/models/components/nullableticketingprojectconfigentity.md @@ -497,10 +492,14 @@ generatedFiles: - docs/models/components/runbooksactionsentitydefaultlogic.md - docs/models/components/runbooksactionsentitydefaultruledata.md - docs/models/components/runbooksactionsentitypaginated.md - - docs/models/components/runbooksactionsentityprerequisites.md + - docs/models/components/runbooksactionsentityprerequisite.md - docs/models/components/runbookselementdynamicselectentityselectoptionentity.md + - docs/models/components/runbookselemententity.md - docs/models/components/runbooksexecutionentity.md - docs/models/components/runbooksexecutionentitypaginated.md + - docs/models/components/runbookstepentity.md + - docs/models/components/runbookstepentityconfig.md + - docs/models/components/runbookstepentitystepelement.md - docs/models/components/savedsearchentity.md - docs/models/components/scheduledmaintenanceentity.md - docs/models/components/scheduledmaintenanceentitylabels.md @@ -532,6 +531,7 @@ generatedFiles: - docs/models/components/signal.md - docs/models/components/signalsapianalyticsgroupedmetricsentity.md - docs/models/components/signalsapianalyticsmttxmetricsentity.md + - docs/models/components/signalsapianalyticsnoisemetricsentity.md - docs/models/components/signalsapianalyticstimeseriespointentity.md - docs/models/components/signalsapicallrouteentity.md - docs/models/components/signalsapicallrouteentityconnectmode.md @@ -545,7 +545,9 @@ generatedFiles: - docs/models/components/signalsapiescalationpolicystepentitydistributiontype.md - docs/models/components/signalsapigroupingentity.md - docs/models/components/signalsapigroupingentitypaginated.md + - docs/models/components/signalsapihackermodeentity.md - docs/models/components/signalsapiingestkeyentity.md + - docs/models/components/signalsapinotificationpolicyitemcomplianceentity.md - docs/models/components/signalsapinotificationprioritypolicyentity.md - docs/models/components/signalsapioncallrestrictionentity.md - docs/models/components/signalsapioncallrotationentity.md @@ -576,6 +578,7 @@ generatedFiles: - docs/models/components/taskentity.md - docs/models/components/taskentitypaginated.md - docs/models/components/tasklistentity.md + - docs/models/components/tasklistitementity.md - docs/models/components/teamentity.md - docs/models/components/teamentitylite.md - docs/models/components/teamentitypaginated.md @@ -684,6 +687,7 @@ generatedFiles: - docs/models/components/updateseveritymatrixcondition.md - docs/models/components/updateseveritymatrixdata.md - docs/models/components/updateseveritymatriximpact.md + - docs/models/components/updatesignalsalert.md - docs/models/components/updatesignalsalertgroupingconfiguration.md - docs/models/components/updatesignalsalertgroupingconfigurationaction.md - docs/models/components/updatesignalsalertgroupingconfigurationfieldname.md @@ -751,7 +755,6 @@ generatedFiles: - docs/models/operations/appendformdataonselectedvaluegetrequest.md - docs/models/operations/archiveaudiencerequest.md - docs/models/operations/auditabletype.md - - docs/models/operations/bucket.md - docs/models/operations/bucketsize.md - docs/models/operations/bulkupdateincidentmilestonesrequest.md - docs/models/operations/by.md @@ -946,6 +949,12 @@ generatedFiles: - docs/models/operations/getsignalsmttxanalyticsrequest.md - docs/models/operations/getsignalsmttxanalyticssortby.md - docs/models/operations/getsignalsmttxanalyticssortdirection.md + - docs/models/operations/getsignalsnoiseanalyticsbucket.md + - docs/models/operations/getsignalsnoiseanalyticsgroupby.md + - docs/models/operations/getsignalsnoiseanalyticsrequest.md + - docs/models/operations/getsignalsnoiseanalyticssortby.md + - docs/models/operations/getsignalsnoiseanalyticssortdirection.md + - docs/models/operations/getsignalstimeseriesanalyticsbucket.md - docs/models/operations/getsignalstimeseriesanalyticsgroupby.md - docs/models/operations/getsignalstimeseriesanalyticsrequest.md - docs/models/operations/getsignalstimeseriesanalyticssortby.md @@ -1174,6 +1183,7 @@ generatedFiles: - docs/models/operations/updateseveritymatriximpactrequest.md - docs/models/operations/updateseverityrequest.md - docs/models/operations/updatesignalsalertgroupingconfigurationrequest.md + - docs/models/operations/updatesignalsalertrequest.md - docs/models/operations/updatesignalsemailtargetrequest.md - docs/models/operations/updatesignalswebhooktargetrequest.md - docs/models/operations/updateslackemojiactionrequest.md @@ -1238,6 +1248,7 @@ generatedFiles: - src/funcs/alertsListIncidentAlerts.ts - src/funcs/alertsListProcessingLogEntries.ts - src/funcs/alertsUpdateIncidentAlertPrimary.ts + - src/funcs/alertsUpdateSignalsAlert.ts - src/funcs/audiencesArchiveAudience.ts - src/funcs/audiencesCreateAudience.ts - src/funcs/audiencesGenerateAudienceSummary.ts @@ -1462,6 +1473,7 @@ generatedFiles: - src/funcs/metricsReportingGetSavedSearch.ts - src/funcs/metricsReportingGetSignalsGroupedMetrics.ts - src/funcs/metricsReportingGetSignalsMttxAnalytics.ts + - src/funcs/metricsReportingGetSignalsNoiseAnalytics.ts - src/funcs/metricsReportingGetSignalsTimeseriesAnalytics.ts - src/funcs/metricsReportingListIncidentMetrics.ts - src/funcs/metricsReportingListInfrastructureMetrics.ts @@ -1547,6 +1559,7 @@ generatedFiles: - src/funcs/signalsGetSignalsAlertGroupingConfiguration.ts - src/funcs/signalsGetSignalsEmailTarget.ts - src/funcs/signalsGetSignalsEventSource.ts + - src/funcs/signalsGetSignalsHackerMode.ts - src/funcs/signalsGetSignalsIngestUrl.ts - src/funcs/signalsGetSignalsWebhookTarget.ts - src/funcs/signalsGetTeamEscalationPolicy.ts @@ -1695,6 +1708,7 @@ generatedFiles: - src/mcp-server/tools/alertsListIncidentAlerts.ts - src/mcp-server/tools/alertsListProcessingLogEntries.ts - src/mcp-server/tools/alertsUpdateIncidentAlertPrimary.ts + - src/mcp-server/tools/alertsUpdateSignalsAlert.ts - src/mcp-server/tools/audiencesArchiveAudience.ts - src/mcp-server/tools/audiencesCreateAudience.ts - src/mcp-server/tools/audiencesGenerateAudienceSummary.ts @@ -1919,6 +1933,7 @@ generatedFiles: - src/mcp-server/tools/metricsReportingGetSavedSearch.ts - src/mcp-server/tools/metricsReportingGetSignalsGroupedMetrics.ts - src/mcp-server/tools/metricsReportingGetSignalsMttxAnalytics.ts + - src/mcp-server/tools/metricsReportingGetSignalsNoiseAnalytics.ts - src/mcp-server/tools/metricsReportingGetSignalsTimeseriesAnalytics.ts - src/mcp-server/tools/metricsReportingListIncidentMetrics.ts - src/mcp-server/tools/metricsReportingListInfrastructureMetrics.ts @@ -2004,6 +2019,7 @@ generatedFiles: - src/mcp-server/tools/signalsGetSignalsAlertGroupingConfiguration.ts - src/mcp-server/tools/signalsGetSignalsEmailTarget.ts - src/mcp-server/tools/signalsGetSignalsEventSource.ts + - src/mcp-server/tools/signalsGetSignalsHackerMode.ts - src/mcp-server/tools/signalsGetSignalsIngestUrl.ts - src/mcp-server/tools/signalsGetSignalsWebhookTarget.ts - src/mcp-server/tools/signalsGetTeamEscalationPolicy.ts @@ -2112,6 +2128,7 @@ generatedFiles: - src/models/components/alertsalertentitypaginated.ts - src/models/components/alertsprocessinglogentryentity.ts - src/models/components/alertsprocessinglogentryentitypaginated.ts + - src/models/components/alertssignalalertentity.ts - src/models/components/alertssirenalertentity.ts - src/models/components/alertssirenevententity.ts - src/models/components/attachmentslinkentity.ts @@ -2301,7 +2318,6 @@ generatedFiles: - src/models/components/nullableincidenttypeentitytemplatevaluesentity.ts - src/models/components/nullableintegrationentity.ts - src/models/components/nullableintegrationsawsconnectionentity.ts - - src/models/components/nullableintegrationsconnectionentity.ts - src/models/components/nullableintegrationsintegrationentity.ts - src/models/components/nullableintegrationsintegrationentitylogoentity.ts - src/models/components/nullableintegrationsmicrosoftteamsv2channelentity.ts @@ -2322,14 +2338,12 @@ generatedFiles: - src/models/components/nullablerunbooksactionsentity.ts - src/models/components/nullablerunbookselementdynamicselectentity.ts - src/models/components/nullablerunbookselementdynamicselectentityselectoptionentity.ts - - src/models/components/nullablerunbookselemententity.ts - src/models/components/nullablerunbookselementinputentity.ts - src/models/components/nullablerunbookselementmarkdownentity.ts - src/models/components/nullablerunbookselementtextareaentity.ts - src/models/components/nullablerunbooksexecutionentityexecutedforentity.ts - src/models/components/nullablerunbooksexecutionstepentity.ts - src/models/components/nullablerunbooksexecutionstepexecutionentity.ts - - src/models/components/nullablerunbookstepentity.ts - src/models/components/nullablerunbookswebhookdeliveryentity.ts - src/models/components/nullablescheduleentity.ts - src/models/components/nullableserviceentity.ts @@ -2337,6 +2351,7 @@ generatedFiles: - src/models/components/nullableseveritymatriximpactentity.ts - src/models/components/nullablesignalsapianalyticsgroupedmetricsentitymetricentity.ts - src/models/components/nullablesignalsapianalyticsmttxmetricsentitymetricentity.ts + - src/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.ts - src/models/components/nullablesignalsapianalyticstimeseriespointentitymetricentity.ts - src/models/components/nullablesignalsapicallroutestepentity.ts - src/models/components/nullablesignalsapiescalationpolicyhandoffstepentity.ts @@ -2351,7 +2366,6 @@ generatedFiles: - src/models/components/nullablesignalsapitransposerentity.ts - src/models/components/nullableslimrunbookentity.ts - src/models/components/nullablesuccinctentity.ts - - src/models/components/nullabletasklistitementity.ts - src/models/components/nullableteamentitylite.ts - src/models/components/nullableticketingpriorityentity.ts - src/models/components/nullableticketingprojectconfigentity.ts @@ -2396,8 +2410,10 @@ generatedFiles: - src/models/components/runbooksactionsentity.ts - src/models/components/runbooksactionsentitypaginated.ts - src/models/components/runbookselementdynamicselectentityselectoptionentity.ts + - src/models/components/runbookselemententity.ts - src/models/components/runbooksexecutionentity.ts - src/models/components/runbooksexecutionentitypaginated.ts + - src/models/components/runbookstepentity.ts - src/models/components/savedsearchentity.ts - src/models/components/scheduledmaintenanceentity.ts - src/models/components/scheduledmaintenancesimpactentity.ts @@ -2422,6 +2438,7 @@ generatedFiles: - src/models/components/severitymatrixseveritymatrixentity.ts - src/models/components/signalsapianalyticsgroupedmetricsentity.ts - src/models/components/signalsapianalyticsmttxmetricsentity.ts + - src/models/components/signalsapianalyticsnoisemetricsentity.ts - src/models/components/signalsapianalyticstimeseriespointentity.ts - src/models/components/signalsapicallrouteentity.ts - src/models/components/signalsapicallrouteentitypaginated.ts @@ -2432,7 +2449,9 @@ generatedFiles: - src/models/components/signalsapiescalationpolicystepentity.ts - src/models/components/signalsapigroupingentity.ts - src/models/components/signalsapigroupingentitypaginated.ts + - src/models/components/signalsapihackermodeentity.ts - src/models/components/signalsapiingestkeyentity.ts + - src/models/components/signalsapinotificationpolicyitemcomplianceentity.ts - src/models/components/signalsapinotificationprioritypolicyentity.ts - src/models/components/signalsapioncallrestrictionentity.ts - src/models/components/signalsapioncallrotationentity.ts @@ -2458,6 +2477,7 @@ generatedFiles: - src/models/components/taskentity.ts - src/models/components/taskentitypaginated.ts - src/models/components/tasklistentity.ts + - src/models/components/tasklistitementity.ts - src/models/components/teamentity.ts - src/models/components/teamentitylite.ts - src/models/components/teamentitypaginated.ts @@ -2514,6 +2534,7 @@ generatedFiles: - src/models/components/updateseveritymatrix.ts - src/models/components/updateseveritymatrixcondition.ts - src/models/components/updateseveritymatriximpact.ts + - src/models/components/updatesignalsalert.ts - src/models/components/updatesignalsalertgroupingconfiguration.ts - src/models/components/updatesignalsemailtarget.ts - src/models/components/updatesignalswebhooktarget.ts @@ -2707,6 +2728,7 @@ generatedFiles: - src/models/operations/getsignalsgroupedmetrics.ts - src/models/operations/getsignalsingesturl.ts - src/models/operations/getsignalsmttxanalytics.ts + - src/models/operations/getsignalsnoiseanalytics.ts - src/models/operations/getsignalstimeseriesanalytics.ts - src/models/operations/getsignalswebhooktarget.ts - src/models/operations/getslackemojiaction.ts @@ -2893,6 +2915,7 @@ generatedFiles: - src/models/operations/updateseverity.ts - src/models/operations/updateseveritymatrixcondition.ts - src/models/operations/updateseveritymatriximpact.ts + - src/models/operations/updatesignalsalert.ts - src/models/operations/updatesignalsalertgroupingconfiguration.ts - src/models/operations/updatesignalsemailtarget.ts - src/models/operations/updatesignalswebhooktarget.ts @@ -6198,5 +6221,25 @@ examples: responses: "200": application/json: {} + get_signals_hacker_mode: + speakeasy-default-get-signals-hacker-mode: + responses: + "200": + application/json: {} + update_signals_alert: + speakeasy-default-update-signals-alert: + parameters: + path: + id: "" + requestBody: + application/json: {"noise": true} + responses: + "200": + application/json: {} + get_signals_noise_analytics: + speakeasy-default-get-signals-noise-analytics: + responses: + "200": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index efbda886..68fbf037 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -19,8 +19,12 @@ generation: auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true + tests: + generateTests: true + generateNewTests: false + skipResponseBodyAssertions: false typescript: - version: 1.0.1 + version: 1.0.2 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d328cb4a..68f546e3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.565.0 +speakeasyVersion: 1.575.5 sources: firehydrant-oas: sourceNamespace: firehydrant-oas - sourceRevisionDigest: sha256:de794f367ad72564e82c28e4ba1c83835f376ee27605f83a3d5b2185b909b6d7 - sourceBlobDigest: sha256:08f55232121ca4b5516b9d22e2cf01e212068d2bfbcfa8831a7e55bc451aed3d + sourceRevisionDigest: sha256:1930022d1001e7b270efa9dce8b7bc859e306882f52d8c2eba0a56222f09dd0f + sourceBlobDigest: sha256:7aaa15ecb3153e53b850e939566c7231edf2660b2fc2971cd7fe79cde1f7763f tags: - latest - - speakeasy-sdk-regen-1750256181 + - speakeasy-sdk-regen-1750291683 - 0.0.1 firehydrant-typescript-sdk-OAS: sourceNamespace: firehydrant-typescript-sdk-oas @@ -19,10 +19,10 @@ targets: firehydrant-typescript-sdk: source: firehydrant-oas sourceNamespace: firehydrant-oas - sourceRevisionDigest: sha256:de794f367ad72564e82c28e4ba1c83835f376ee27605f83a3d5b2185b909b6d7 - sourceBlobDigest: sha256:08f55232121ca4b5516b9d22e2cf01e212068d2bfbcfa8831a7e55bc451aed3d + sourceRevisionDigest: sha256:1930022d1001e7b270efa9dce8b7bc859e306882f52d8c2eba0a56222f09dd0f + sourceBlobDigest: sha256:7aaa15ecb3153e53b850e939566c7231edf2660b2fc2971cd7fe79cde1f7763f codeSamplesNamespace: firehydrant-typescript-sdk-oas-code-samples - codeSamplesRevisionDigest: sha256:bc94a911fff1d909ff7d71ab714030c5a0180387316bb7028ae2ff813d0a8f1a + codeSamplesRevisionDigest: sha256:bb4a64eeb709b29c15b0fa0bbd920cda00bb4e0c76a1acf22928b412e4251055 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index c83656b5..8cc019f1 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,7 @@ run(); * [listAlerts](docs/sdks/alerts/README.md#listalerts) - List alerts * [getAlert](docs/sdks/alerts/README.md#getalert) - Get an alert * [listProcessingLogEntries](docs/sdks/alerts/README.md#listprocessinglogentries) - List alert processing log entries +* [updateSignalsAlert](docs/sdks/alerts/README.md#updatesignalsalert) - Update a Signal alert ### [audiences](docs/sdks/audiences/README.md) @@ -607,6 +608,7 @@ run(); * [getSignalsTimeseriesAnalytics](docs/sdks/metricsreporting/README.md#getsignalstimeseriesanalytics) - Generate timeseries alert metrics * [getSignalsGroupedMetrics](docs/sdks/metricsreporting/README.md#getsignalsgroupedmetrics) - Generate grouped alert metrics * [getSignalsMttxAnalytics](docs/sdks/metricsreporting/README.md#getsignalsmttxanalytics) - Get MTTX analytics for signals +* [getSignalsNoiseAnalytics](docs/sdks/metricsreporting/README.md#getsignalsnoiseanalytics) - Get noise analytics for signals ### [retrospectives](docs/sdks/retrospectives/README.md) @@ -698,6 +700,7 @@ run(); * [createSignalsEventSource](docs/sdks/signals/README.md#createsignalseventsource) - Create an event source for Signals * [getSignalsEventSource](docs/sdks/signals/README.md#getsignalseventsource) - Get an event source for Signals * [deleteSignalsEventSource](docs/sdks/signals/README.md#deletesignalseventsource) - Delete an event source for Signals +* [getSignalsHackerMode](docs/sdks/signals/README.md#getsignalshackermode) - Get hacker mode status * [listSignalsAlertGroupingConfigurations](docs/sdks/signals/README.md#listsignalsalertgroupingconfigurations) - List alert grouping configurations. * [createSignalsAlertGroupingConfiguration](docs/sdks/signals/README.md#createsignalsalertgroupingconfiguration) - Create an alert grouping configuration. * [getSignalsAlertGroupingConfiguration](docs/sdks/signals/README.md#getsignalsalertgroupingconfiguration) - Get an alert grouping configuration. @@ -848,6 +851,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`alertsListIncidentAlerts`](docs/sdks/alerts/README.md#listincidentalerts) - List alerts for an incident - [`alertsListProcessingLogEntries`](docs/sdks/alerts/README.md#listprocessinglogentries) - List alert processing log entries - [`alertsUpdateIncidentAlertPrimary`](docs/sdks/alerts/README.md#updateincidentalertprimary) - Set an alert as primary for an incident +- [`alertsUpdateSignalsAlert`](docs/sdks/alerts/README.md#updatesignalsalert) - Update a Signal alert - [`audiencesArchiveAudience`](docs/sdks/audiences/README.md#archiveaudience) - Archive audience - [`audiencesCreateAudience`](docs/sdks/audiences/README.md#createaudience) - Create audience - [`audiencesGenerateAudienceSummary`](docs/sdks/audiences/README.md#generateaudiencesummary) - Generate summary @@ -1072,6 +1076,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`metricsReportingGetSavedSearch`](docs/sdks/metricsreporting/README.md#getsavedsearch) - Get a saved search - [`metricsReportingGetSignalsGroupedMetrics`](docs/sdks/metricsreporting/README.md#getsignalsgroupedmetrics) - Generate grouped alert metrics - [`metricsReportingGetSignalsMttxAnalytics`](docs/sdks/metricsreporting/README.md#getsignalsmttxanalytics) - Get MTTX analytics for signals +- [`metricsReportingGetSignalsNoiseAnalytics`](docs/sdks/metricsreporting/README.md#getsignalsnoiseanalytics) - Get noise analytics for signals - [`metricsReportingGetSignalsTimeseriesAnalytics`](docs/sdks/metricsreporting/README.md#getsignalstimeseriesanalytics) - Generate timeseries alert metrics - [`metricsReportingListIncidentMetrics`](docs/sdks/metricsreporting/README.md#listincidentmetrics) - List incident metrics and analytics - [`metricsReportingListInfrastructureMetrics`](docs/sdks/metricsreporting/README.md#listinfrastructuremetrics) - Get metrics for a component @@ -1157,6 +1162,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`signalsGetSignalsAlertGroupingConfiguration`](docs/sdks/signals/README.md#getsignalsalertgroupingconfiguration) - Get an alert grouping configuration. - [`signalsGetSignalsEmailTarget`](docs/sdks/signals/README.md#getsignalsemailtarget) - Get a signal email target - [`signalsGetSignalsEventSource`](docs/sdks/signals/README.md#getsignalseventsource) - Get an event source for Signals +- [`signalsGetSignalsHackerMode`](docs/sdks/signals/README.md#getsignalshackermode) - Get hacker mode status - [`signalsGetSignalsIngestUrl`](docs/sdks/signals/README.md#getsignalsingesturl) - Get the signals ingestion URL - [`signalsGetSignalsWebhookTarget`](docs/sdks/signals/README.md#getsignalswebhooktarget) - Get a webhook target - [`signalsGetTeamEscalationPolicy`](docs/sdks/signals/README.md#getteamescalationpolicy) - Get an escalation policy for a team @@ -1434,7 +1440,7 @@ run(); **Inherit from [`FirehydrantError`](./src/models/errors/firehydranterror.ts)**: -* [`ErrorEntity`](docs/models/errors/errorentity.md): ErrorEntity model. Applicable to 12 of 424 methods.* +* [`ErrorEntity`](./src/models/errors/errorentity.ts): ErrorEntity model. Applicable to 12 of 427 methods.* * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. diff --git a/RELEASES.md b/RELEASES.md index c9e1fd01..1efe6d7f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -106,4 +106,14 @@ Based on: ### Generated - [typescript v1.0.1] . ### Releases -- [NPM v1.0.1] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.0.1 - . \ No newline at end of file +- [NPM v1.0.1] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.0.1 - . + +## 2025-07-07 00:08:12 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.575.5 (2.648.7) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.0.2] . +### Releases +- [NPM v1.0.2] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.0.2 - . \ No newline at end of file diff --git a/docs/models/components/alertsalertentity.md b/docs/models/components/alertsalertentity.md index bd2e47e8..f954a757 100644 --- a/docs/models/components/alertsalertentity.md +++ b/docs/models/components/alertsalertentity.md @@ -54,6 +54,7 @@ let value: AlertsAlertEntity = { | `incidents` | [components.PublicApiv1IncidentsSuccinctEntity](../../models/components/publicapiv1incidentssuccinctentity.md)[] | :heavy_minus_sign: | N/A | | `events` | [components.AlertsSirenEventEntity](../../models/components/alertssirenevententity.md)[] | :heavy_minus_sign: | N/A | | `isExpired` | *boolean* | :heavy_minus_sign: | N/A | +| `isNoise` | *boolean* | :heavy_minus_sign: | N/A | | `parentAlerts` | [components.AlertsSirenAlertEntity](../../models/components/alertssirenalertentity.md)[] | :heavy_minus_sign: | N/A | | `childAlerts` | [components.AlertsSirenAlertEntity](../../models/components/alertssirenalertentity.md)[] | :heavy_minus_sign: | N/A | | `conversations` | [components.ConversationsAPIEntitiesReference](../../models/components/conversationsapientitiesreference.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/alertssignalalertentity.md b/docs/models/components/alertssignalalertentity.md new file mode 100644 index 00000000..b470211d --- /dev/null +++ b/docs/models/components/alertssignalalertentity.md @@ -0,0 +1,19 @@ +# AlertsSignalAlertEntity + +Alerts_SignalAlertEntity model + +## Example Usage + +```typescript +import { AlertsSignalAlertEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: AlertsSignalAlertEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `summary` | *string* | :heavy_minus_sign: | N/A | +| `isNoise` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/createincidenttype.md b/docs/models/components/createincidenttype.md index 0f8eee98..1df0a96d 100644 --- a/docs/models/components/createincidenttype.md +++ b/docs/models/components/createincidenttype.md @@ -18,4 +18,5 @@ let value: CreateIncidentType = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `name` | *string* | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | A description of the incident type | | `template` | [components.CreateIncidentTypeTemplate](../../models/components/createincidenttypetemplate.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/incidenttypeentity.md b/docs/models/components/incidenttypeentity.md index cd182ea1..003c75ed 100644 --- a/docs/models/components/incidenttypeentity.md +++ b/docs/models/components/incidenttypeentity.md @@ -16,6 +16,7 @@ let value: IncidentTypeEntity = {}; | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_minus_sign: | N/A | | `name` | *string* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | | `template` | [components.NullableIncidentTypeEntityTemplateEntity](../../models/components/nullableincidenttypeentitytemplateentity.md) | :heavy_minus_sign: | N/A | | `templateValues` | [components.NullableIncidentTypeEntityTemplateValuesEntity](../../models/components/nullableincidenttypeentitytemplatevaluesentity.md) | :heavy_minus_sign: | N/A | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/integrationsintegrationentity.md b/docs/models/components/integrationsintegrationentity.md index 72fa57c0..4dc63b27 100644 --- a/docs/models/components/integrationsintegrationentity.md +++ b/docs/models/components/integrationsintegrationentity.md @@ -20,7 +20,7 @@ let value: IntegrationsIntegrationEntity = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `setupUrl` | *string* | :heavy_minus_sign: | N/A | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `connections` | [components.NullableIntegrationsConnectionEntity](../../models/components/nullableintegrationsconnectionentity.md) | :heavy_minus_sign: | N/A | +| `connections` | [components.IntegrationsConnectionEntity](../../models/components/integrationsconnectionentity.md)[] | :heavy_minus_sign: | N/A | | `enabled` | *boolean* | :heavy_minus_sign: | N/A | | `installed` | *boolean* | :heavy_minus_sign: | N/A | | `deprecated` | *boolean* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/nullablealertsalertentity.md b/docs/models/components/nullablealertsalertentity.md index 9fff72c6..129742e5 100644 --- a/docs/models/components/nullablealertsalertentity.md +++ b/docs/models/components/nullablealertsalertentity.md @@ -54,6 +54,7 @@ let value: NullableAlertsAlertEntity = { | `incidents` | [components.PublicApiv1IncidentsSuccinctEntity](../../models/components/publicapiv1incidentssuccinctentity.md)[] | :heavy_minus_sign: | N/A | | `events` | [components.AlertsSirenEventEntity](../../models/components/alertssirenevententity.md)[] | :heavy_minus_sign: | N/A | | `isExpired` | *boolean* | :heavy_minus_sign: | N/A | +| `isNoise` | *boolean* | :heavy_minus_sign: | N/A | | `parentAlerts` | [components.AlertsSirenAlertEntity](../../models/components/alertssirenalertentity.md)[] | :heavy_minus_sign: | N/A | | `childAlerts` | [components.AlertsSirenAlertEntity](../../models/components/alertssirenalertentity.md)[] | :heavy_minus_sign: | N/A | | `conversations` | [components.ConversationsAPIEntitiesReference](../../models/components/conversationsapientitiesreference.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullableintegrationsconnectionentity.md b/docs/models/components/nullableintegrationsconnectionentity.md deleted file mode 100644 index 3c048db3..00000000 --- a/docs/models/components/nullableintegrationsconnectionentity.md +++ /dev/null @@ -1,27 +0,0 @@ -# NullableIntegrationsConnectionEntity - -Integrations_ConnectionEntity model - -## Example Usage - -```typescript -import { NullableIntegrationsConnectionEntity } from "firehydrant-typescript-sdk/models/components"; - -let value: NullableIntegrationsConnectionEntity = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `integrationSlug` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_minus_sign: | N/A | -| `displayName` | *string* | :heavy_minus_sign: | N/A | -| `configurationUrl` | *string* | :heavy_minus_sign: | N/A | -| `authorizedBy` | *string* | :heavy_minus_sign: | N/A | -| `authorizedById` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `details` | [components.NullableIntegrationsConnectionEntityDetails](../../models/components/nullableintegrationsconnectionentitydetails.md) | :heavy_minus_sign: | Integration-specific details of this connection. As identified by the integration_slug, this object will be represented by that integration's ConnectionEntity. | -| `defaultAuthorizedActor` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullableintegrationsconnectionentitydetails.md b/docs/models/components/nullableintegrationsconnectionentitydetails.md deleted file mode 100644 index 6db4b19a..00000000 --- a/docs/models/components/nullableintegrationsconnectionentitydetails.md +++ /dev/null @@ -1,16 +0,0 @@ -# NullableIntegrationsConnectionEntityDetails - -Integration-specific details of this connection. As identified by the integration_slug, this object will be represented by that integration's ConnectionEntity. - -## Example Usage - -```typescript -import { NullableIntegrationsConnectionEntityDetails } from "firehydrant-typescript-sdk/models/components"; - -let value: NullableIntegrationsConnectionEntityDetails = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/nullableintegrationsintegrationentity.md b/docs/models/components/nullableintegrationsintegrationentity.md index ac2a5473..6eb11887 100644 --- a/docs/models/components/nullableintegrationsintegrationentity.md +++ b/docs/models/components/nullableintegrationsintegrationentity.md @@ -20,7 +20,7 @@ let value: NullableIntegrationsIntegrationEntity = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `setupUrl` | *string* | :heavy_minus_sign: | N/A | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `connections` | [components.NullableIntegrationsConnectionEntity](../../models/components/nullableintegrationsconnectionentity.md) | :heavy_minus_sign: | N/A | +| `connections` | [components.IntegrationsConnectionEntity](../../models/components/integrationsconnectionentity.md)[] | :heavy_minus_sign: | N/A | | `enabled` | *boolean* | :heavy_minus_sign: | N/A | | `installed` | *boolean* | :heavy_minus_sign: | N/A | | `deprecated` | *boolean* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/nullablerunbooksactionconfigentity.md b/docs/models/components/nullablerunbooksactionconfigentity.md index 6df1f4f9..5ca97144 100644 --- a/docs/models/components/nullablerunbooksactionconfigentity.md +++ b/docs/models/components/nullablerunbooksactionconfigentity.md @@ -10,7 +10,7 @@ let value: NullableRunbooksActionConfigEntity = {}; ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `elements` | [components.NullableRunbooksElementEntity](../../models/components/nullablerunbookselemententity.md) | :heavy_minus_sign: | N/A | -| `documentationUrl` | *string* | :heavy_minus_sign: | Location of documentation for this action | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `elements` | [components.RunbooksElementEntity](../../models/components/runbookselemententity.md)[] | :heavy_minus_sign: | A list of elements that can be used in this action configuration | +| `documentationUrl` | *string* | :heavy_minus_sign: | Location of documentation for this action | \ No newline at end of file diff --git a/docs/models/components/nullablerunbooksactionsentity.md b/docs/models/components/nullablerunbooksactionsentity.md index 86fcc90d..7504f6e8 100644 --- a/docs/models/components/nullablerunbooksactionsentity.md +++ b/docs/models/components/nullablerunbooksactionsentity.md @@ -18,7 +18,7 @@ let value: NullableRunbooksActionsEntity = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `config` | [components.NullableRunbooksActionConfigEntity](../../models/components/nullablerunbooksactionconfigentity.md) | :heavy_minus_sign: | N/A | | `category` | *string* | :heavy_minus_sign: | N/A | -| `prerequisites` | [components.NullableRunbooksActionsEntityPrerequisites](../../models/components/nullablerunbooksactionsentityprerequisites.md) | :heavy_minus_sign: | N/A | +| `prerequisites` | [components.NullableRunbooksActionsEntityPrerequisite](../../models/components/nullablerunbooksactionsentityprerequisite.md)[] | :heavy_minus_sign: | N/A | | `integration` | [components.NullableIntegrationsIntegrationEntity](../../models/components/nullableintegrationsintegrationentity.md) | :heavy_minus_sign: | N/A | | `supportedRunbookTypes` | *string*[] | :heavy_minus_sign: | N/A | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/nullablerunbooksactionsentityprerequisite.md b/docs/models/components/nullablerunbooksactionsentityprerequisite.md new file mode 100644 index 00000000..287605a7 --- /dev/null +++ b/docs/models/components/nullablerunbooksactionsentityprerequisite.md @@ -0,0 +1,14 @@ +# NullableRunbooksActionsEntityPrerequisite + +## Example Usage + +```typescript +import { NullableRunbooksActionsEntityPrerequisite } from "firehydrant-typescript-sdk/models/components"; + +let value: NullableRunbooksActionsEntityPrerequisite = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/nullablerunbooksactionsentityprerequisites.md b/docs/models/components/nullablerunbooksactionsentityprerequisites.md deleted file mode 100644 index 9fe8f524..00000000 --- a/docs/models/components/nullablerunbooksactionsentityprerequisites.md +++ /dev/null @@ -1,14 +0,0 @@ -# NullableRunbooksActionsEntityPrerequisites - -## Example Usage - -```typescript -import { NullableRunbooksActionsEntityPrerequisites } from "firehydrant-typescript-sdk/models/components"; - -let value: NullableRunbooksActionsEntityPrerequisites = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/nullablerunbookstepentity.md b/docs/models/components/nullablerunbookstepentity.md deleted file mode 100644 index 5bdb9a51..00000000 --- a/docs/models/components/nullablerunbookstepentity.md +++ /dev/null @@ -1,28 +0,0 @@ -# NullableRunbookStepEntity - -## Example Usage - -```typescript -import { NullableRunbookStepEntity } from "firehydrant-typescript-sdk/models/components"; - -let value: NullableRunbookStepEntity = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `actionId` | *string* | :heavy_minus_sign: | N/A | -| `stepId` | *string* | :heavy_minus_sign: | N/A | -| `config` | [components.NullableRunbookStepEntityConfig](../../models/components/nullablerunbookstepentityconfig.md) | :heavy_minus_sign: | An unstructured object of key/value pairs describing the config settings for the step. | -| `actionElements` | [components.ActionElement](../../models/components/actionelement.md)[] | :heavy_minus_sign: | A list of action elements | -| `stepElements` | [components.NullableRunbookStepEntityStepElement](../../models/components/nullablerunbookstepentitystepelement.md)[] | :heavy_minus_sign: | A list of step elements | -| `automatic` | *boolean* | :heavy_minus_sign: | N/A | -| `delayDuration` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `action` | [components.NullableRunbooksActionsEntity](../../models/components/nullablerunbooksactionsentity.md) | :heavy_minus_sign: | N/A | -| `reruns` | *boolean* | :heavy_minus_sign: | N/A | -| `repeats` | *boolean* | :heavy_minus_sign: | N/A | -| `repeatsDuration` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `votes` | [components.NullableVotesEntity](../../models/components/nullablevotesentity.md) | :heavy_minus_sign: | N/A | -| `rule` | [components.NullableRulesRuleEntity](../../models/components/nullablerulesruleentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullablerunbookstepentitystepelement.md b/docs/models/components/nullablerunbookstepentitystepelement.md deleted file mode 100644 index cc237371..00000000 --- a/docs/models/components/nullablerunbookstepentitystepelement.md +++ /dev/null @@ -1,14 +0,0 @@ -# NullableRunbookStepEntityStepElement - -## Example Usage - -```typescript -import { NullableRunbookStepEntityStepElement } from "firehydrant-typescript-sdk/models/components"; - -let value: NullableRunbookStepEntityStepElement = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.md b/docs/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.md new file mode 100644 index 00000000..43cecda4 --- /dev/null +++ b/docs/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.md @@ -0,0 +1,18 @@ +# NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity + +## Example Usage + +```typescript +import { NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `bucket` | *string* | :heavy_minus_sign: | The time bucket | +| `totalAlerts` | *number* | :heavy_minus_sign: | The total number of alerts | +| `noisyAlerts` | *number* | :heavy_minus_sign: | The number of alerts marked as noise | +| `percentage` | *number* | :heavy_minus_sign: | The percentage of alerts that are noise | \ No newline at end of file diff --git a/docs/models/components/nullableuserentity.md b/docs/models/components/nullableuserentity.md index 8ad75497..c1f19bd7 100644 --- a/docs/models/components/nullableuserentity.md +++ b/docs/models/components/nullableuserentity.md @@ -12,13 +12,14 @@ let value: NullableUserEntity = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `email` | *string* | :heavy_minus_sign: | N/A | -| `slackUserId` | *string* | :heavy_minus_sign: | N/A | -| `slackLinked` | *boolean* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `signalsEnabledNotificationTypes` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `email` | *string* | :heavy_minus_sign: | N/A | +| `slackUserId` | *string* | :heavy_minus_sign: | N/A | +| `slackLinked` | *boolean* | :heavy_minus_sign: | N/A | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `signalsEnabledNotificationTypes` | *string*[] | :heavy_minus_sign: | N/A | +| `signalsNotificationPolicyCompliance` | [components.SignalsAPINotificationPolicyItemComplianceEntity](../../models/components/signalsapinotificationpolicyitemcomplianceentity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/runbookentity.md b/docs/models/components/runbookentity.md index a2f99fc8..fb409c50 100644 --- a/docs/models/components/runbookentity.md +++ b/docs/models/components/runbookentity.md @@ -24,7 +24,7 @@ let value: RunbookEntity = {}; | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | | `createdBy` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | | `updatedBy` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | -| `steps` | [components.NullableRunbookStepEntity](../../models/components/nullablerunbookstepentity.md) | :heavy_minus_sign: | N/A | +| `steps` | [components.RunbookStepEntity](../../models/components/runbookstepentity.md)[] | :heavy_minus_sign: | N/A | | `attachmentRule` | [components.NullableRulesRuleEntity](../../models/components/nullablerulesruleentity.md) | :heavy_minus_sign: | N/A | | `votes` | [components.NullableVotesEntity](../../models/components/nullablevotesentity.md) | :heavy_minus_sign: | N/A | | `isEditable` | *boolean* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/runbooksactionsentity.md b/docs/models/components/runbooksactionsentity.md index f8972118..1d054d1a 100644 --- a/docs/models/components/runbooksactionsentity.md +++ b/docs/models/components/runbooksactionsentity.md @@ -18,7 +18,7 @@ let value: RunbooksActionsEntity = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `config` | [components.NullableRunbooksActionConfigEntity](../../models/components/nullablerunbooksactionconfigentity.md) | :heavy_minus_sign: | N/A | | `category` | *string* | :heavy_minus_sign: | N/A | -| `prerequisites` | [components.RunbooksActionsEntityPrerequisites](../../models/components/runbooksactionsentityprerequisites.md) | :heavy_minus_sign: | N/A | +| `prerequisites` | [components.RunbooksActionsEntityPrerequisite](../../models/components/runbooksactionsentityprerequisite.md)[] | :heavy_minus_sign: | N/A | | `integration` | [components.NullableIntegrationsIntegrationEntity](../../models/components/nullableintegrationsintegrationentity.md) | :heavy_minus_sign: | N/A | | `supportedRunbookTypes` | *string*[] | :heavy_minus_sign: | N/A | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/runbooksactionsentityprerequisite.md b/docs/models/components/runbooksactionsentityprerequisite.md new file mode 100644 index 00000000..08565a4a --- /dev/null +++ b/docs/models/components/runbooksactionsentityprerequisite.md @@ -0,0 +1,14 @@ +# RunbooksActionsEntityPrerequisite + +## Example Usage + +```typescript +import { RunbooksActionsEntityPrerequisite } from "firehydrant-typescript-sdk/models/components"; + +let value: RunbooksActionsEntityPrerequisite = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/runbooksactionsentityprerequisites.md b/docs/models/components/runbooksactionsentityprerequisites.md deleted file mode 100644 index 2a1d4a74..00000000 --- a/docs/models/components/runbooksactionsentityprerequisites.md +++ /dev/null @@ -1,14 +0,0 @@ -# RunbooksActionsEntityPrerequisites - -## Example Usage - -```typescript -import { RunbooksActionsEntityPrerequisites } from "firehydrant-typescript-sdk/models/components"; - -let value: RunbooksActionsEntityPrerequisites = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/nullablerunbookselemententity.md b/docs/models/components/runbookselemententity.md similarity index 96% rename from docs/models/components/nullablerunbookselemententity.md rename to docs/models/components/runbookselemententity.md index 57876e67..9912d0a7 100644 --- a/docs/models/components/nullablerunbookselemententity.md +++ b/docs/models/components/runbookselemententity.md @@ -1,11 +1,11 @@ -# NullableRunbooksElementEntity +# RunbooksElementEntity ## Example Usage ```typescript -import { NullableRunbooksElementEntity } from "firehydrant-typescript-sdk/models/components"; +import { RunbooksElementEntity } from "firehydrant-typescript-sdk/models/components"; -let value: NullableRunbooksElementEntity = {}; +let value: RunbooksElementEntity = {}; ``` ## Fields diff --git a/docs/models/components/runbookstepentity.md b/docs/models/components/runbookstepentity.md new file mode 100644 index 00000000..ce93d896 --- /dev/null +++ b/docs/models/components/runbookstepentity.md @@ -0,0 +1,28 @@ +# RunbookStepEntity + +## Example Usage + +```typescript +import { RunbookStepEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: RunbookStepEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `actionId` | *string* | :heavy_minus_sign: | N/A | +| `stepId` | *string* | :heavy_minus_sign: | N/A | +| `config` | [components.RunbookStepEntityConfig](../../models/components/runbookstepentityconfig.md) | :heavy_minus_sign: | An unstructured object of key/value pairs describing the config settings for the step. | +| `actionElements` | [components.ActionElement](../../models/components/actionelement.md)[] | :heavy_minus_sign: | A list of action elements | +| `stepElements` | [components.RunbookStepEntityStepElement](../../models/components/runbookstepentitystepelement.md)[] | :heavy_minus_sign: | A list of step elements | +| `automatic` | *boolean* | :heavy_minus_sign: | N/A | +| `delayDuration` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `action` | [components.NullableRunbooksActionsEntity](../../models/components/nullablerunbooksactionsentity.md) | :heavy_minus_sign: | N/A | +| `reruns` | *boolean* | :heavy_minus_sign: | N/A | +| `repeats` | *boolean* | :heavy_minus_sign: | N/A | +| `repeatsDuration` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `votes` | [components.NullableVotesEntity](../../models/components/nullablevotesentity.md) | :heavy_minus_sign: | N/A | +| `rule` | [components.NullableRulesRuleEntity](../../models/components/nullablerulesruleentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullablerunbookstepentityconfig.md b/docs/models/components/runbookstepentityconfig.md similarity index 58% rename from docs/models/components/nullablerunbookstepentityconfig.md rename to docs/models/components/runbookstepentityconfig.md index 3c85922e..aa26fa50 100644 --- a/docs/models/components/nullablerunbookstepentityconfig.md +++ b/docs/models/components/runbookstepentityconfig.md @@ -1,13 +1,13 @@ -# NullableRunbookStepEntityConfig +# RunbookStepEntityConfig An unstructured object of key/value pairs describing the config settings for the step. ## Example Usage ```typescript -import { NullableRunbookStepEntityConfig } from "firehydrant-typescript-sdk/models/components"; +import { RunbookStepEntityConfig } from "firehydrant-typescript-sdk/models/components"; -let value: NullableRunbookStepEntityConfig = {}; +let value: RunbookStepEntityConfig = {}; ``` ## Fields diff --git a/docs/models/components/runbookstepentitystepelement.md b/docs/models/components/runbookstepentitystepelement.md new file mode 100644 index 00000000..4b03d6d7 --- /dev/null +++ b/docs/models/components/runbookstepentitystepelement.md @@ -0,0 +1,14 @@ +# RunbookStepEntityStepElement + +## Example Usage + +```typescript +import { RunbookStepEntityStepElement } from "firehydrant-typescript-sdk/models/components"; + +let value: RunbookStepEntityStepElement = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/signalsapianalyticsnoisemetricsentity.md b/docs/models/components/signalsapianalyticsnoisemetricsentity.md new file mode 100644 index 00000000..19c0263e --- /dev/null +++ b/docs/models/components/signalsapianalyticsnoisemetricsentity.md @@ -0,0 +1,17 @@ +# SignalsAPIAnalyticsNoiseMetricsEntity + +Signals_API_Analytics_NoiseMetricsEntity model + +## Example Usage + +```typescript +import { SignalsAPIAnalyticsNoiseMetricsEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: SignalsAPIAnalyticsNoiseMetricsEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `data` | [components.NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity](../../models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/signalsapihackermodeentity.md b/docs/models/components/signalsapihackermodeentity.md new file mode 100644 index 00000000..ea7635f2 --- /dev/null +++ b/docs/models/components/signalsapihackermodeentity.md @@ -0,0 +1,19 @@ +# SignalsAPIHackerModeEntity + +Signals_API_HackerModeEntity model + +## Example Usage + +```typescript +import { SignalsAPIHackerModeEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: SignalsAPIHackerModeEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `enabled` | *boolean* | :heavy_minus_sign: | N/A | +| `urlKey` | *string* | :heavy_minus_sign: | N/A | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/signalsapinotificationpolicyitemcomplianceentity.md b/docs/models/components/signalsapinotificationpolicyitemcomplianceentity.md new file mode 100644 index 00000000..39f6870c --- /dev/null +++ b/docs/models/components/signalsapinotificationpolicyitemcomplianceentity.md @@ -0,0 +1,16 @@ +# SignalsAPINotificationPolicyItemComplianceEntity + +## Example Usage + +```typescript +import { SignalsAPINotificationPolicyItemComplianceEntity } from "firehydrant-typescript-sdk/models/components"; + +let value: SignalsAPINotificationPolicyItemComplianceEntity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `notificationPolicyItemId` | *string* | :heavy_minus_sign: | N/A | +| `isCompliant` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/tasklistentity.md b/docs/models/components/tasklistentity.md index 9f144874..8fdb5bba 100644 --- a/docs/models/components/tasklistentity.md +++ b/docs/models/components/tasklistentity.md @@ -12,12 +12,12 @@ let value: TaskListEntity = {}; ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `createdBy` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | -| `taskListItems` | [components.NullableTaskListItemEntity](../../models/components/nullabletasklistitementity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `createdBy` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | +| `taskListItems` | [components.TaskListItemEntity](../../models/components/tasklistitementity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullabletasklistitementity.md b/docs/models/components/tasklistitementity.md similarity index 70% rename from docs/models/components/nullabletasklistitementity.md rename to docs/models/components/tasklistitementity.md index 247300ec..6413112a 100644 --- a/docs/models/components/nullabletasklistitementity.md +++ b/docs/models/components/tasklistitementity.md @@ -1,11 +1,11 @@ -# NullableTaskListItemEntity +# TaskListItemEntity ## Example Usage ```typescript -import { NullableTaskListItemEntity } from "firehydrant-typescript-sdk/models/components"; +import { TaskListItemEntity } from "firehydrant-typescript-sdk/models/components"; -let value: NullableTaskListItemEntity = {}; +let value: TaskListItemEntity = {}; ``` ## Fields diff --git a/docs/models/components/updateincidenttype.md b/docs/models/components/updateincidenttype.md index 1bea770a..6bcc74ad 100644 --- a/docs/models/components/updateincidenttype.md +++ b/docs/models/components/updateincidenttype.md @@ -18,4 +18,5 @@ let value: UpdateIncidentType = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `name` | *string* | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | A description of the incident type | | `template` | [components.UpdateIncidentTypeTemplate](../../models/components/updateincidenttypetemplate.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/updatesignalsalert.md b/docs/models/components/updatesignalsalert.md new file mode 100644 index 00000000..4150ebdf --- /dev/null +++ b/docs/models/components/updatesignalsalert.md @@ -0,0 +1,19 @@ +# UpdateSignalsAlert + +Update a Signal alert + +## Example Usage + +```typescript +import { UpdateSignalsAlert } from "firehydrant-typescript-sdk/models/components"; + +let value: UpdateSignalsAlert = { + noise: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `noise` | *boolean* | :heavy_check_mark: | Whether the alert is noisy | \ No newline at end of file diff --git a/docs/models/components/userentity.md b/docs/models/components/userentity.md index e3b4480f..b8caf64a 100644 --- a/docs/models/components/userentity.md +++ b/docs/models/components/userentity.md @@ -12,13 +12,14 @@ let value: UserEntity = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `email` | *string* | :heavy_minus_sign: | N/A | -| `slackUserId` | *string* | :heavy_minus_sign: | N/A | -| `slackLinked` | *boolean* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `signalsEnabledNotificationTypes` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `email` | *string* | :heavy_minus_sign: | N/A | +| `slackUserId` | *string* | :heavy_minus_sign: | N/A | +| `slackLinked` | *boolean* | :heavy_minus_sign: | N/A | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `signalsEnabledNotificationTypes` | *string*[] | :heavy_minus_sign: | N/A | +| `signalsNotificationPolicyCompliance` | [components.SignalsAPINotificationPolicyItemComplianceEntity](../../models/components/signalsapinotificationpolicyitemcomplianceentity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/bucket.md b/docs/models/operations/bucket.md deleted file mode 100644 index 52cebee0..00000000 --- a/docs/models/operations/bucket.md +++ /dev/null @@ -1,17 +0,0 @@ -# Bucket - -String that determines how records are grouped - -## Example Usage - -```typescript -import { Bucket } from "firehydrant-typescript-sdk/models/operations"; - -let value: Bucket = "day"; -``` - -## Values - -```typescript -"month" | "week" | "day" -``` \ No newline at end of file diff --git a/docs/models/operations/getsignalsnoiseanalyticsbucket.md b/docs/models/operations/getsignalsnoiseanalyticsbucket.md new file mode 100644 index 00000000..f4a8856d --- /dev/null +++ b/docs/models/operations/getsignalsnoiseanalyticsbucket.md @@ -0,0 +1,17 @@ +# GetSignalsNoiseAnalyticsBucket + +String that determines how records are grouped + +## Example Usage + +```typescript +import { GetSignalsNoiseAnalyticsBucket } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsNoiseAnalyticsBucket = "month"; +``` + +## Values + +```typescript +"month" | "week" | "day" +``` \ No newline at end of file diff --git a/docs/models/operations/getsignalsnoiseanalyticsgroupby.md b/docs/models/operations/getsignalsnoiseanalyticsgroupby.md new file mode 100644 index 00000000..8067fd6e --- /dev/null +++ b/docs/models/operations/getsignalsnoiseanalyticsgroupby.md @@ -0,0 +1,17 @@ +# GetSignalsNoiseAnalyticsGroupBy + +String that determines how records are grouped + +## Example Usage + +```typescript +import { GetSignalsNoiseAnalyticsGroupBy } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsNoiseAnalyticsGroupBy = "teams"; +``` + +## Values + +```typescript +"signal_rules" | "teams" | "services" | "environments" | "tags" +``` \ No newline at end of file diff --git a/docs/models/operations/getsignalsnoiseanalyticsrequest.md b/docs/models/operations/getsignalsnoiseanalyticsrequest.md new file mode 100644 index 00000000..3b8b88e0 --- /dev/null +++ b/docs/models/operations/getsignalsnoiseanalyticsrequest.md @@ -0,0 +1,26 @@ +# GetSignalsNoiseAnalyticsRequest + +## Example Usage + +```typescript +import { GetSignalsNoiseAnalyticsRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsNoiseAnalyticsRequest = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `bucket` | [operations.GetSignalsNoiseAnalyticsBucket](../../models/operations/getsignalsnoiseanalyticsbucket.md) | :heavy_minus_sign: | String that determines how records are grouped | +| `signalRules` | *string* | :heavy_minus_sign: | A comma separated list of signal rule IDs | +| `teams` | *string* | :heavy_minus_sign: | A comma separated list of team IDs | +| `environments` | *string* | :heavy_minus_sign: | A comma separated list of environment IDs | +| `services` | *string* | :heavy_minus_sign: | A comma separated list of service IDs | +| `tags` | *string* | :heavy_minus_sign: | A comma separated list of tags | +| `users` | *string* | :heavy_minus_sign: | A comma separated list of user IDs | +| `groupBy` | [operations.GetSignalsNoiseAnalyticsGroupBy](../../models/operations/getsignalsnoiseanalyticsgroupby.md) | :heavy_minus_sign: | String that determines how records are grouped | +| `sortBy` | [operations.GetSignalsNoiseAnalyticsSortBy](../../models/operations/getsignalsnoiseanalyticssortby.md) | :heavy_minus_sign: | String that determines how records are sorted | +| `sortDirection` | [operations.GetSignalsNoiseAnalyticsSortDirection](../../models/operations/getsignalsnoiseanalyticssortdirection.md) | :heavy_minus_sign: | String that determines how records are sorted | +| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date to return metrics from | +| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date to return metrics from | \ No newline at end of file diff --git a/docs/models/operations/getsignalsnoiseanalyticssortby.md b/docs/models/operations/getsignalsnoiseanalyticssortby.md new file mode 100644 index 00000000..cb946423 --- /dev/null +++ b/docs/models/operations/getsignalsnoiseanalyticssortby.md @@ -0,0 +1,17 @@ +# GetSignalsNoiseAnalyticsSortBy + +String that determines how records are sorted + +## Example Usage + +```typescript +import { GetSignalsNoiseAnalyticsSortBy } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsNoiseAnalyticsSortBy = "incidents_percentage"; +``` + +## Values + +```typescript +"total_opened_alerts" | "total_acked_alerts" | "total_incidents" | "acked_percentage" | "incidents_percentage" +``` \ No newline at end of file diff --git a/docs/models/operations/getsignalsnoiseanalyticssortdirection.md b/docs/models/operations/getsignalsnoiseanalyticssortdirection.md new file mode 100644 index 00000000..34f21da6 --- /dev/null +++ b/docs/models/operations/getsignalsnoiseanalyticssortdirection.md @@ -0,0 +1,17 @@ +# GetSignalsNoiseAnalyticsSortDirection + +String that determines how records are sorted + +## Example Usage + +```typescript +import { GetSignalsNoiseAnalyticsSortDirection } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsNoiseAnalyticsSortDirection = "asc"; +``` + +## Values + +```typescript +"asc" | "desc" +``` \ No newline at end of file diff --git a/docs/models/operations/getsignalstimeseriesanalyticsbucket.md b/docs/models/operations/getsignalstimeseriesanalyticsbucket.md new file mode 100644 index 00000000..2d640237 --- /dev/null +++ b/docs/models/operations/getsignalstimeseriesanalyticsbucket.md @@ -0,0 +1,17 @@ +# GetSignalsTimeseriesAnalyticsBucket + +String that determines how records are grouped + +## Example Usage + +```typescript +import { GetSignalsTimeseriesAnalyticsBucket } from "firehydrant-typescript-sdk/models/operations"; + +let value: GetSignalsTimeseriesAnalyticsBucket = "day"; +``` + +## Values + +```typescript +"month" | "week" | "day" +``` \ No newline at end of file diff --git a/docs/models/operations/getsignalstimeseriesanalyticsrequest.md b/docs/models/operations/getsignalstimeseriesanalyticsrequest.md index 45efa695..7976f4e2 100644 --- a/docs/models/operations/getsignalstimeseriesanalyticsrequest.md +++ b/docs/models/operations/getsignalstimeseriesanalyticsrequest.md @@ -12,7 +12,7 @@ let value: GetSignalsTimeseriesAnalyticsRequest = {}; | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `bucket` | [operations.Bucket](../../models/operations/bucket.md) | :heavy_minus_sign: | String that determines how records are grouped | +| `bucket` | [operations.GetSignalsTimeseriesAnalyticsBucket](../../models/operations/getsignalstimeseriesanalyticsbucket.md) | :heavy_minus_sign: | String that determines how records are grouped | | `signalRules` | *string* | :heavy_minus_sign: | A comma separated list of signal rule IDs | | `teams` | *string* | :heavy_minus_sign: | A comma separated list of team IDs | | `environments` | *string* | :heavy_minus_sign: | A comma separated list of environment IDs | diff --git a/docs/models/operations/updatesignalsalertrequest.md b/docs/models/operations/updatesignalsalertrequest.md new file mode 100644 index 00000000..a9108dc6 --- /dev/null +++ b/docs/models/operations/updatesignalsalertrequest.md @@ -0,0 +1,18 @@ +# UpdateSignalsAlertRequest + +## Example Usage + +```typescript +import { UpdateSignalsAlertRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: UpdateSignalsAlertRequest = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `updateSignalsAlert` | [components.UpdateSignalsAlert](../../models/components/updatesignalsalert.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/alerts/README.md b/docs/sdks/alerts/README.md index f3055bab..66729177 100644 --- a/docs/sdks/alerts/README.md +++ b/docs/sdks/alerts/README.md @@ -14,6 +14,7 @@ Operations related to Alerts * [listAlerts](#listalerts) - List alerts * [getAlert](#getalert) - Get an alert * [listProcessingLogEntries](#listprocessinglogentries) - List alert processing log entries +* [updateSignalsAlert](#updatesignalsalert) - Update a Signal alert ## listIncidentAlerts @@ -523,6 +524,84 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## updateSignalsAlert + +Update a Signal alert + +### Example Usage + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.alerts.updateSignalsAlert({ + id: "", + updateSignalsAlert: { + noise: true, + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { alertsUpdateSignalsAlert } from "firehydrant-typescript-sdk/funcs/alertsUpdateSignalsAlert.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await alertsUpdateSignalsAlert(firehydrant, { + id: "", + updateSignalsAlert: { + noise: true, + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("alertsUpdateSignalsAlert failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.UpdateSignalsAlertRequest](../../models/operations/updatesignalsalertrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.AlertsSignalAlertEntity](../../models/components/alertssignalalertentity.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/metricsreporting/README.md b/docs/sdks/metricsreporting/README.md index fcd9836a..1694083c 100644 --- a/docs/sdks/metricsreporting/README.md +++ b/docs/sdks/metricsreporting/README.md @@ -21,6 +21,7 @@ Operations related to Metrics & Reporting * [getSignalsTimeseriesAnalytics](#getsignalstimeseriesanalytics) - Generate timeseries alert metrics * [getSignalsGroupedMetrics](#getsignalsgroupedmetrics) - Generate grouped alert metrics * [getSignalsMttxAnalytics](#getsignalsmttxanalytics) - Get MTTX analytics for signals +* [getSignalsNoiseAnalytics](#getsignalsnoiseanalytics) - Get noise analytics for signals ## getMeanTimeReport @@ -1020,6 +1021,74 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getSignalsNoiseAnalytics + +Get noise metrics for Signals alerts + +### Example Usage + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.metricsReporting.getSignalsNoiseAnalytics({}); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { metricsReportingGetSignalsNoiseAnalytics } from "firehydrant-typescript-sdk/funcs/metricsReportingGetSignalsNoiseAnalytics.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await metricsReportingGetSignalsNoiseAnalytics(firehydrant, {}); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("metricsReportingGetSignalsNoiseAnalytics failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetSignalsNoiseAnalyticsRequest](../../models/operations/getsignalsnoiseanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.SignalsAPIAnalyticsNoiseMetricsEntity](../../models/components/signalsapianalyticsnoisemetricsentity.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/signals/README.md b/docs/sdks/signals/README.md index 8f58f656..7279eaeb 100644 --- a/docs/sdks/signals/README.md +++ b/docs/sdks/signals/README.md @@ -30,6 +30,7 @@ Operations related to Signals * [createSignalsEventSource](#createsignalseventsource) - Create an event source for Signals * [getSignalsEventSource](#getsignalseventsource) - Get an event source for Signals * [deleteSignalsEventSource](#deletesignalseventsource) - Delete an event source for Signals +* [getSignalsHackerMode](#getsignalshackermode) - Get hacker mode status * [listSignalsAlertGroupingConfigurations](#listsignalsalertgroupingconfigurations) - List alert grouping configurations. * [createSignalsAlertGroupingConfiguration](#createsignalsalertgroupingconfiguration) - Create an alert grouping configuration. * [getSignalsAlertGroupingConfiguration](#getsignalsalertgroupingconfiguration) - Get an alert grouping configuration. @@ -1785,6 +1786,73 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## getSignalsHackerMode + +Get the status of the hacker mode for the current user + +### Example Usage + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.signals.getSignalsHackerMode(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { signalsGetSignalsHackerMode } from "firehydrant-typescript-sdk/funcs/signalsGetSignalsHackerMode.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await signalsGetSignalsHackerMode(firehydrant); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("signalsGetSignalsHackerMode failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.SignalsAPIHackerModeEntity](../../models/components/signalsapihackermodeentity.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## listSignalsAlertGroupingConfigurations List all Signals alert grouping rules for the organization. diff --git a/jsr.json b/jsr.json index 028f1275..bddb3c10 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.0.1", + "version": "1.0.2", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 1fb19f3e..2fd3989a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "firehydrant-typescript-sdk", - "version": "1.0.1", + "version": "1.0.2", "bin": { "mcp": "bin/mcp-server.js" }, @@ -15,8 +15,8 @@ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", - "bun": "^1.2.2", - "bun-types": "^1.2.2", + "bun": "1.2.17", + "bun-types": "1.2.17", "eslint": "^9.19.0", "express": "^4.21.2", "globals": "^15.14.0", @@ -634,9 +634,9 @@ } }, "node_modules/@oven/bun-darwin-aarch64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.13.tgz", - "integrity": "sha512-AOU4O9jxRp2TXeqoEfOjEaUNZb3+SUPBN8TIEnUjpnyLWPoYJGCeNdQuCDcUkmF3MJEmEuJdyF1IeOITozpC6A==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", + "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", "cpu": [ "arm64" ], @@ -648,9 +648,9 @@ ] }, "node_modules/@oven/bun-darwin-x64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.13.tgz", - "integrity": "sha512-kJ2iOvxY8uz5/nu+8zIjKf4LmRIHBH9pJJM2q+tA47U04Tod6k6rtntDOI8SdmRe2M5c87RfbadWdxhpYHFIWQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", + "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", "cpu": [ "x64" ], @@ -662,9 +662,9 @@ ] }, "node_modules/@oven/bun-darwin-x64-baseline": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.13.tgz", - "integrity": "sha512-bZpIUOvx9np07AmH5MVXGYHWZ40m2vCpNV74fma6sCzBlssJclS2V3BZgO+lLvtUKSqnW3HAyJBGsRF34wPbNw==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", + "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", "cpu": [ "x64" ], @@ -676,9 +676,9 @@ ] }, "node_modules/@oven/bun-linux-aarch64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.13.tgz", - "integrity": "sha512-hocSJmblX4CCjP1HpaM64I65erB+CONUCCwKzGGOfLGLobVi+vn/G56UaYWsje1y/Z7WlVaUSgKYVWl7EJ6T9g==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", + "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", "cpu": [ "arm64" ], @@ -690,9 +690,9 @@ ] }, "node_modules/@oven/bun-linux-aarch64-musl": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.13.tgz", - "integrity": "sha512-P56m718KXeyu4Vq5fsESFktfu+0Us1jhu/ZzgHYFRYJcm/hjs6AUA/RJtUAifFy5PNAM5IJdrYl3xPsE8Wa+pg==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", + "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", "cpu": [ "aarch64" ], @@ -704,9 +704,9 @@ ] }, "node_modules/@oven/bun-linux-x64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.13.tgz", - "integrity": "sha512-pf8+Kn2GLrFKLcb8JSLM6Z147Af6L9GQODpnOHM4gvXQv6E/GwQg47/o+7f1XCfzib3fdzOTJlDPvvO1rnXOTA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", + "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", "cpu": [ "x64" ], @@ -718,9 +718,9 @@ ] }, "node_modules/@oven/bun-linux-x64-baseline": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.13.tgz", - "integrity": "sha512-9n1ai2ejEpxEMqpbHQMWFyvacq3MYsB7gh5mxRlFwhNFPCWu/Sv6gyrO+q2vkOYgcEIGhJb6dqJ6L9vBNaL61A==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", + "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", "cpu": [ "x64" ], @@ -732,9 +732,9 @@ ] }, "node_modules/@oven/bun-linux-x64-musl": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.13.tgz", - "integrity": "sha512-w5Ob+GM3Ww4yRA6f1N845o6wEvuwHSmipFUGaRaVp4UELrFnIV9G3pmrlBbYHFnWhk13o8Q7H1/4ZphOkCRJmQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", + "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", "cpu": [ "x64" ], @@ -746,9 +746,9 @@ ] }, "node_modules/@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.13.tgz", - "integrity": "sha512-VI8hVdfqk0QmbAbyrsIdo2O95n3fkbt72E0h3Wu69cHD1iKJqRXG28R8QoHdehoLSJnKVzRTwsUzHp764nefWQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", + "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", "cpu": [ "x64" ], @@ -760,9 +760,9 @@ ] }, "node_modules/@oven/bun-windows-x64": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.13.tgz", - "integrity": "sha512-sArgbRmT7V3mUdNFaAdUcuJsuS+oeMDZLPWFSg0gtQZpRrURs9nPzEnZMmVCFo4+kPF9Tb5ujQT9uDySh6/qVg==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", + "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", "cpu": [ "x64" ], @@ -774,9 +774,9 @@ ] }, "node_modules/@oven/bun-windows-x64-baseline": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.13.tgz", - "integrity": "sha512-Aiezu99fOUJJpzGuylOJryd6w9Syg2TBigHeXV2+RJsouBzvAnIEYIBA94ZspRq1ulD26Wmkk8Ae+jZ4edk9GA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", + "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", "cpu": [ "x64" ], @@ -1376,9 +1376,9 @@ } }, "node_modules/bun": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.13.tgz", - "integrity": "sha512-EhP1MhFbicqtaRSFCbEZdkcFco8Ov47cNJcB9QmKS8U4cojKHfLU+dQR14lCvLYmtBvGgwv/Lp+9SSver2OPzQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", + "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", "cpu": [ "arm64", "x64", @@ -1394,26 +1394,26 @@ ], "bin": { "bun": "bin/bun.exe", - "bunx": "bin/bun.exe" + "bunx": "bin/bunx.exe" }, "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.2.13", - "@oven/bun-darwin-x64": "1.2.13", - "@oven/bun-darwin-x64-baseline": "1.2.13", - "@oven/bun-linux-aarch64": "1.2.13", - "@oven/bun-linux-aarch64-musl": "1.2.13", - "@oven/bun-linux-x64": "1.2.13", - "@oven/bun-linux-x64-baseline": "1.2.13", - "@oven/bun-linux-x64-musl": "1.2.13", - "@oven/bun-linux-x64-musl-baseline": "1.2.13", - "@oven/bun-windows-x64": "1.2.13", - "@oven/bun-windows-x64-baseline": "1.2.13" + "@oven/bun-darwin-aarch64": "1.2.17", + "@oven/bun-darwin-x64": "1.2.17", + "@oven/bun-darwin-x64-baseline": "1.2.17", + "@oven/bun-linux-aarch64": "1.2.17", + "@oven/bun-linux-aarch64-musl": "1.2.17", + "@oven/bun-linux-x64": "1.2.17", + "@oven/bun-linux-x64-baseline": "1.2.17", + "@oven/bun-linux-x64-musl": "1.2.17", + "@oven/bun-linux-x64-musl-baseline": "1.2.17", + "@oven/bun-windows-x64": "1.2.17", + "@oven/bun-windows-x64-baseline": "1.2.17" } }, "node_modules/bun-types": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.13.tgz", - "integrity": "sha512-rRjA1T6n7wto4gxhAO/ErZEtOXyEZEmnIHQfl0Dt1QQSB4QV0iP6BZ9/YB5fZaHFQ2dwHFrmPaRQ9GGMX01k9Q==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", + "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index e9577796..e6f59b2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.0.1", + "version": "1.0.2", "author": "Firehydrant", "type": "module", "bin": { @@ -46,8 +46,8 @@ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", - "bun": "^1.2.2", - "bun-types": "^1.2.2", + "bun": "1.2.17", + "bun-types": "1.2.17", "eslint": "^9.19.0", "express": "^4.21.2", "globals": "^15.14.0", diff --git a/src/funcs/alertsUpdateSignalsAlert.ts b/src/funcs/alertsUpdateSignalsAlert.ts new file mode 100644 index 00000000..dc0db9b8 --- /dev/null +++ b/src/funcs/alertsUpdateSignalsAlert.ts @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Update a Signal alert + * + * @remarks + * Update a Signal alert + */ +export function alertsUpdateSignalsAlert( + client: FirehydrantCore, + request: operations.UpdateSignalsAlertRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.AlertsSignalAlertEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: FirehydrantCore, + request: operations.UpdateSignalsAlertRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.AlertsSignalAlertEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.UpdateSignalsAlertRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.update_signals_alert, { + explode: true, + }); + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/v1/signals/alerts/{id}")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "update_signals_alert", + oAuth2Scopes: [], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "PATCH", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.AlertsSignalAlertEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.AlertsSignalAlertEntity$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/metricsReportingGetSignalsNoiseAnalytics.ts b/src/funcs/metricsReportingGetSignalsNoiseAnalytics.ts new file mode 100644 index 00000000..515125b4 --- /dev/null +++ b/src/funcs/metricsReportingGetSignalsNoiseAnalytics.ts @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get noise analytics for signals + * + * @remarks + * Get noise metrics for Signals alerts + */ +export function metricsReportingGetSignalsNoiseAnalytics( + client: FirehydrantCore, + request: operations.GetSignalsNoiseAnalyticsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.SignalsAPIAnalyticsNoiseMetricsEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: FirehydrantCore, + request: operations.GetSignalsNoiseAnalyticsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.SignalsAPIAnalyticsNoiseMetricsEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.GetSignalsNoiseAnalyticsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/v1/signals/analytics/noise/metrics")(); + + const query = encodeFormQuery({ + "bucket": payload.bucket, + "end_date": payload.end_date, + "environments": payload.environments, + "group_by": payload.group_by, + "services": payload.services, + "signal_rules": payload.signal_rules, + "sort_by": payload.sort_by, + "sort_direction": payload.sort_direction, + "start_date": payload.start_date, + "tags": payload.tags, + "teams": payload.teams, + "users": payload.users, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_signals_noise_analytics", + oAuth2Scopes: [], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.SignalsAPIAnalyticsNoiseMetricsEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.SignalsAPIAnalyticsNoiseMetricsEntity$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/signalsGetSignalsHackerMode.ts b/src/funcs/signalsGetSignalsHackerMode.ts new file mode 100644 index 00000000..a33b133d --- /dev/null +++ b/src/funcs/signalsGetSignalsHackerMode.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get hacker mode status + * + * @remarks + * Get the status of the hacker mode for the current user + */ +export function signalsGetSignalsHackerMode( + client: FirehydrantCore, + options?: RequestOptions, +): APIPromise< + Result< + components.SignalsAPIHackerModeEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: FirehydrantCore, + options?: RequestOptions, +): Promise< + [ + Result< + components.SignalsAPIHackerModeEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/signals/hacker_mode")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_signals_hacker_mode", + oAuth2Scopes: [], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.SignalsAPIHackerModeEntity, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.SignalsAPIHackerModeEntity$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/lib/config.ts b/src/lib/config.ts index 6b9c42c5..2066cf3b 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "1.0.1", - genVersion: "2.630.9", + sdkVersion: "1.0.2", + genVersion: "2.648.7", userAgent: - "speakeasy-sdk/typescript 1.0.1 2.630.9 0.0.1 firehydrant-typescript-sdk", + "speakeasy-sdk/typescript 1.0.2 2.648.7 0.0.1 firehydrant-typescript-sdk", } as const; diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index 854c7a17..501fece8 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -6,7 +6,6 @@ import { buildCommand } from "@stricli/core"; import { numberParser } from "@stricli/core"; import * as z from "zod"; import { consoleLoggerLevels } from "../../console-logger.js"; -import { mcpScopes } from "../../scopes.js"; export const startCommand = buildCommand({ loader: async () => { @@ -37,18 +36,6 @@ export const startCommand = buildCommand({ return z.string().parse(value); }, }, - ...(mcpScopes.length - ? { - scope: { - kind: "enum", - brief: - "Mount tools/resources that match given scope (repeatable flag)", - values: mcpScopes, - variadic: true, - optional: true, - }, - } - : {}), "api-key": { kind: "parsed", brief: "Sets the apiKey auth field for the API", diff --git a/src/mcp-server/cli/start/impl.ts b/src/mcp-server/cli/start/impl.ts index 231ca0da..a7f843d2 100644 --- a/src/mcp-server/cli/start/impl.ts +++ b/src/mcp-server/cli/start/impl.ts @@ -11,14 +11,12 @@ import { ConsoleLoggerLevel, createConsoleLogger, } from "../../console-logger.js"; -import { MCPScope } from "../../scopes.js"; import { createMCPServer } from "../../server.js"; interface StartCommandFlags { readonly transport: "stdio" | "sse"; readonly port: number; readonly tool?: string[]; - readonly scope?: MCPScope[]; readonly "api-key"?: string | undefined; readonly "server-url"?: string; readonly "server-index"?: SDKOptions["serverIdx"]; @@ -49,7 +47,6 @@ async function startStdio(flags: StartCommandFlags) { const server = createMCPServer({ logger, allowedTools: flags.tool, - scopes: flags.scope, ...{ apiKey: flags["api-key"] ?? "" }, serverURL: flags["server-url"], serverIdx: flags["server-index"], @@ -70,7 +67,6 @@ async function startSSE(flags: StartCommandFlags) { const mcpServer = createMCPServer({ logger, allowedTools: flags.tool, - scopes: flags.scope, ...{ apiKey: flags["api-key"] ?? "" }, serverURL: flags["server-url"], serverIdx: flags["server-index"], diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 5b8ba829..231cb5ef 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "1.0.1", + currentVersion: "1.0.2", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 59c2f4d8..bbac0776 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -26,6 +26,7 @@ import { tool$alertsListAlerts } from "./tools/alertsListAlerts.js"; import { tool$alertsListIncidentAlerts } from "./tools/alertsListIncidentAlerts.js"; import { tool$alertsListProcessingLogEntries } from "./tools/alertsListProcessingLogEntries.js"; import { tool$alertsUpdateIncidentAlertPrimary } from "./tools/alertsUpdateIncidentAlertPrimary.js"; +import { tool$alertsUpdateSignalsAlert } from "./tools/alertsUpdateSignalsAlert.js"; import { tool$audiencesArchiveAudience } from "./tools/audiencesArchiveAudience.js"; import { tool$audiencesCreateAudience } from "./tools/audiencesCreateAudience.js"; import { tool$audiencesGenerateAudienceSummary } from "./tools/audiencesGenerateAudienceSummary.js"; @@ -250,6 +251,7 @@ import { tool$metricsReportingGetMeanTimeReport } from "./tools/metricsReporting import { tool$metricsReportingGetSavedSearch } from "./tools/metricsReportingGetSavedSearch.js"; import { tool$metricsReportingGetSignalsGroupedMetrics } from "./tools/metricsReportingGetSignalsGroupedMetrics.js"; import { tool$metricsReportingGetSignalsMttxAnalytics } from "./tools/metricsReportingGetSignalsMttxAnalytics.js"; +import { tool$metricsReportingGetSignalsNoiseAnalytics } from "./tools/metricsReportingGetSignalsNoiseAnalytics.js"; import { tool$metricsReportingGetSignalsTimeseriesAnalytics } from "./tools/metricsReportingGetSignalsTimeseriesAnalytics.js"; import { tool$metricsReportingListIncidentMetrics } from "./tools/metricsReportingListIncidentMetrics.js"; import { tool$metricsReportingListInfrastructureMetrics } from "./tools/metricsReportingListInfrastructureMetrics.js"; @@ -335,6 +337,7 @@ import { tool$signalsGetOnCallShift } from "./tools/signalsGetOnCallShift.js"; import { tool$signalsGetSignalsAlertGroupingConfiguration } from "./tools/signalsGetSignalsAlertGroupingConfiguration.js"; import { tool$signalsGetSignalsEmailTarget } from "./tools/signalsGetSignalsEmailTarget.js"; import { tool$signalsGetSignalsEventSource } from "./tools/signalsGetSignalsEventSource.js"; +import { tool$signalsGetSignalsHackerMode } from "./tools/signalsGetSignalsHackerMode.js"; import { tool$signalsGetSignalsIngestUrl } from "./tools/signalsGetSignalsIngestUrl.js"; import { tool$signalsGetSignalsWebhookTarget } from "./tools/signalsGetSignalsWebhookTarget.js"; import { tool$signalsGetTeamEscalationPolicy } from "./tools/signalsGetTeamEscalationPolicy.js"; @@ -448,7 +451,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Firehydrant", - version: "1.0.1", + version: "1.0.2", }); const client = new FirehydrantCore({ @@ -549,6 +552,7 @@ export function createMCPServer(deps: { tool(tool$signalsCreateSignalsEventSource); tool(tool$signalsGetSignalsEventSource); tool(tool$signalsDeleteSignalsEventSource); + tool(tool$signalsGetSignalsHackerMode); tool(tool$signalsListSignalsAlertGroupingConfigurations); tool(tool$signalsCreateSignalsAlertGroupingConfiguration); tool(tool$signalsGetSignalsAlertGroupingConfiguration); @@ -645,6 +649,7 @@ export function createMCPServer(deps: { tool(tool$alertsListAlerts); tool(tool$alertsGetAlert); tool(tool$alertsListProcessingLogEntries); + tool(tool$alertsUpdateSignalsAlert); tool(tool$statusPagesDeleteIncidentStatusPage); tool(tool$statusPagesListNuncConnections); tool(tool$statusPagesCreateNuncConnection); @@ -822,6 +827,7 @@ export function createMCPServer(deps: { tool(tool$metricsReportingGetSignalsTimeseriesAnalytics); tool(tool$metricsReportingGetSignalsGroupedMetrics); tool(tool$metricsReportingGetSignalsMttxAnalytics); + tool(tool$metricsReportingGetSignalsNoiseAnalytics); tool(tool$runbooksListRunbookActions); tool(tool$runbooksListRunbookExecutions); tool(tool$runbooksCreateRunbookExecution); diff --git a/src/mcp-server/tools/alertsUpdateSignalsAlert.ts b/src/mcp-server/tools/alertsUpdateSignalsAlert.ts new file mode 100644 index 00000000..c2fc4152 --- /dev/null +++ b/src/mcp-server/tools/alertsUpdateSignalsAlert.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { alertsUpdateSignalsAlert } from "../../funcs/alertsUpdateSignalsAlert.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.UpdateSignalsAlertRequest$inboundSchema, +}; + +export const tool$alertsUpdateSignalsAlert: ToolDefinition = { + name: "alerts-update-signals-alert", + description: `Update a Signal alert + +Update a Signal alert`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await alertsUpdateSignalsAlert( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/metricsReportingGetSignalsNoiseAnalytics.ts b/src/mcp-server/tools/metricsReportingGetSignalsNoiseAnalytics.ts new file mode 100644 index 00000000..ad0b885a --- /dev/null +++ b/src/mcp-server/tools/metricsReportingGetSignalsNoiseAnalytics.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { metricsReportingGetSignalsNoiseAnalytics } from "../../funcs/metricsReportingGetSignalsNoiseAnalytics.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetSignalsNoiseAnalyticsRequest$inboundSchema, +}; + +export const tool$metricsReportingGetSignalsNoiseAnalytics: ToolDefinition< + typeof args +> = { + name: "metrics/reporting-get-signals-noise-analytics", + description: `Get noise analytics for signals + +Get noise metrics for Signals alerts`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await metricsReportingGetSignalsNoiseAnalytics( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/signalsGetSignalsHackerMode.ts b/src/mcp-server/tools/signalsGetSignalsHackerMode.ts new file mode 100644 index 00000000..2c950a4a --- /dev/null +++ b/src/mcp-server/tools/signalsGetSignalsHackerMode.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { signalsGetSignalsHackerMode } from "../../funcs/signalsGetSignalsHackerMode.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$signalsGetSignalsHackerMode: ToolDefinition = { + name: "signals-get-signals-hacker-mode", + description: `Get hacker mode status + +Get the status of the hacker mode for the current user`, + tool: async (client, ctx) => { + const [result, apiCall] = await signalsGetSignalsHackerMode( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/models/components/alertsalertentity.ts b/src/models/components/alertsalertentity.ts index f35ab22a..a2698bcf 100644 --- a/src/models/components/alertsalertentity.ts +++ b/src/models/components/alertsalertentity.ts @@ -88,6 +88,7 @@ export type AlertsAlertEntity = { incidents?: Array | null | undefined; events?: Array | null | undefined; isExpired?: boolean | null | undefined; + isNoise?: boolean | null | undefined; parentAlerts?: Array | null | undefined; childAlerts?: Array | null | undefined; conversations?: Array | null | undefined; @@ -182,6 +183,7 @@ export const AlertsAlertEntity$inboundSchema: z.ZodType< ).optional(), events: z.nullable(z.array(AlertsSirenEventEntity$inboundSchema)).optional(), is_expired: z.nullable(z.boolean()).optional(), + is_noise: z.nullable(z.boolean()).optional(), parent_alerts: z.nullable(z.array(AlertsSirenAlertEntity$inboundSchema)) .optional(), child_alerts: z.nullable(z.array(AlertsSirenAlertEntity$inboundSchema)) @@ -205,6 +207,7 @@ export const AlertsAlertEntity$inboundSchema: z.ZodType< "team_name": "teamName", "team_id": "teamId", "is_expired": "isExpired", + "is_noise": "isNoise", "parent_alerts": "parentAlerts", "child_alerts": "childAlerts", }); @@ -241,6 +244,7 @@ export type AlertsAlertEntity$Outbound = { | undefined; events?: Array | null | undefined; is_expired?: boolean | null | undefined; + is_noise?: boolean | null | undefined; parent_alerts?: Array | null | undefined; child_alerts?: Array | null | undefined; conversations?: @@ -286,6 +290,7 @@ export const AlertsAlertEntity$outboundSchema: z.ZodType< ).optional(), events: z.nullable(z.array(AlertsSirenEventEntity$outboundSchema)).optional(), isExpired: z.nullable(z.boolean()).optional(), + isNoise: z.nullable(z.boolean()).optional(), parentAlerts: z.nullable(z.array(AlertsSirenAlertEntity$outboundSchema)) .optional(), childAlerts: z.nullable(z.array(AlertsSirenAlertEntity$outboundSchema)) @@ -309,6 +314,7 @@ export const AlertsAlertEntity$outboundSchema: z.ZodType< teamName: "team_name", teamId: "team_id", isExpired: "is_expired", + isNoise: "is_noise", parentAlerts: "parent_alerts", childAlerts: "child_alerts", }); diff --git a/src/models/components/alertssignalalertentity.ts b/src/models/components/alertssignalalertentity.ts new file mode 100644 index 00000000..49ebd1b8 --- /dev/null +++ b/src/models/components/alertssignalalertentity.ts @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Alerts_SignalAlertEntity model + */ +export type AlertsSignalAlertEntity = { + id?: string | null | undefined; + summary?: string | null | undefined; + isNoise?: boolean | null | undefined; +}; + +/** @internal */ +export const AlertsSignalAlertEntity$inboundSchema: z.ZodType< + AlertsSignalAlertEntity, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.nullable(z.string()).optional(), + summary: z.nullable(z.string()).optional(), + is_noise: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + "is_noise": "isNoise", + }); +}); + +/** @internal */ +export type AlertsSignalAlertEntity$Outbound = { + id?: string | null | undefined; + summary?: string | null | undefined; + is_noise?: boolean | null | undefined; +}; + +/** @internal */ +export const AlertsSignalAlertEntity$outboundSchema: z.ZodType< + AlertsSignalAlertEntity$Outbound, + z.ZodTypeDef, + AlertsSignalAlertEntity +> = z.object({ + id: z.nullable(z.string()).optional(), + summary: z.nullable(z.string()).optional(), + isNoise: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + isNoise: "is_noise", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AlertsSignalAlertEntity$ { + /** @deprecated use `AlertsSignalAlertEntity$inboundSchema` instead. */ + export const inboundSchema = AlertsSignalAlertEntity$inboundSchema; + /** @deprecated use `AlertsSignalAlertEntity$outboundSchema` instead. */ + export const outboundSchema = AlertsSignalAlertEntity$outboundSchema; + /** @deprecated use `AlertsSignalAlertEntity$Outbound` instead. */ + export type Outbound = AlertsSignalAlertEntity$Outbound; +} + +export function alertsSignalAlertEntityToJSON( + alertsSignalAlertEntity: AlertsSignalAlertEntity, +): string { + return JSON.stringify( + AlertsSignalAlertEntity$outboundSchema.parse(alertsSignalAlertEntity), + ); +} + +export function alertsSignalAlertEntityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AlertsSignalAlertEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AlertsSignalAlertEntity' from JSON`, + ); +} diff --git a/src/models/components/createincidenttype.ts b/src/models/components/createincidenttype.ts index d0b5237a..1841b146 100644 --- a/src/models/components/createincidenttype.ts +++ b/src/models/components/createincidenttype.ts @@ -52,6 +52,10 @@ export type CreateIncidentTypeTemplate = { */ export type CreateIncidentType = { name: string; + /** + * A description of the incident type + */ + description?: string | null | undefined; template: CreateIncidentTypeTemplate; }; @@ -228,12 +232,14 @@ export const CreateIncidentType$inboundSchema: z.ZodType< unknown > = z.object({ name: z.string(), + description: z.nullable(z.string()).optional(), template: z.lazy(() => CreateIncidentTypeTemplate$inboundSchema), }); /** @internal */ export type CreateIncidentType$Outbound = { name: string; + description?: string | null | undefined; template: CreateIncidentTypeTemplate$Outbound; }; @@ -244,6 +250,7 @@ export const CreateIncidentType$outboundSchema: z.ZodType< CreateIncidentType > = z.object({ name: z.string(), + description: z.nullable(z.string()).optional(), template: z.lazy(() => CreateIncidentTypeTemplate$outboundSchema), }); diff --git a/src/models/components/incidenttypeentity.ts b/src/models/components/incidenttypeentity.ts index 138e3b06..bbf2bc04 100644 --- a/src/models/components/incidenttypeentity.ts +++ b/src/models/components/incidenttypeentity.ts @@ -26,6 +26,7 @@ import { export type IncidentTypeEntity = { id?: string | null | undefined; name?: string | null | undefined; + description?: string | null | undefined; template?: NullableIncidentTypeEntityTemplateEntity | null | undefined; templateValues?: | NullableIncidentTypeEntityTemplateValuesEntity @@ -43,6 +44,7 @@ export const IncidentTypeEntity$inboundSchema: z.ZodType< > = z.object({ id: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), template: z.nullable(NullableIncidentTypeEntityTemplateEntity$inboundSchema) .optional(), template_values: z.nullable( @@ -66,6 +68,7 @@ export const IncidentTypeEntity$inboundSchema: z.ZodType< export type IncidentTypeEntity$Outbound = { id?: string | null | undefined; name?: string | null | undefined; + description?: string | null | undefined; template?: | NullableIncidentTypeEntityTemplateEntity$Outbound | null @@ -86,6 +89,7 @@ export const IncidentTypeEntity$outboundSchema: z.ZodType< > = z.object({ id: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), template: z.nullable(NullableIncidentTypeEntityTemplateEntity$outboundSchema) .optional(), templateValues: z.nullable( diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 70c1e30e..23f87353 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -8,6 +8,7 @@ export * from "./alertsalertentity.js"; export * from "./alertsalertentitypaginated.js"; export * from "./alertsprocessinglogentryentity.js"; export * from "./alertsprocessinglogentryentitypaginated.js"; +export * from "./alertssignalalertentity.js"; export * from "./alertssirenalertentity.js"; export * from "./alertssirenevententity.js"; export * from "./attachmentslinkentity.js"; @@ -196,7 +197,6 @@ export * from "./nullableincidenttypeentitytemplateentity.js"; export * from "./nullableincidenttypeentitytemplatevaluesentity.js"; export * from "./nullableintegrationentity.js"; export * from "./nullableintegrationsawsconnectionentity.js"; -export * from "./nullableintegrationsconnectionentity.js"; export * from "./nullableintegrationsintegrationentity.js"; export * from "./nullableintegrationsintegrationentitylogoentity.js"; export * from "./nullableintegrationsmicrosoftteamsv2channelentity.js"; @@ -217,14 +217,12 @@ export * from "./nullablerunbooksactionconfigentity.js"; export * from "./nullablerunbooksactionsentity.js"; export * from "./nullablerunbookselementdynamicselectentity.js"; export * from "./nullablerunbookselementdynamicselectentityselectoptionentity.js"; -export * from "./nullablerunbookselemententity.js"; export * from "./nullablerunbookselementinputentity.js"; export * from "./nullablerunbookselementmarkdownentity.js"; export * from "./nullablerunbookselementtextareaentity.js"; export * from "./nullablerunbooksexecutionentityexecutedforentity.js"; export * from "./nullablerunbooksexecutionstepentity.js"; export * from "./nullablerunbooksexecutionstepexecutionentity.js"; -export * from "./nullablerunbookstepentity.js"; export * from "./nullablerunbookswebhookdeliveryentity.js"; export * from "./nullablescheduleentity.js"; export * from "./nullableserviceentity.js"; @@ -232,6 +230,7 @@ export * from "./nullableseveritymatrixconditionentity.js"; export * from "./nullableseveritymatriximpactentity.js"; export * from "./nullablesignalsapianalyticsgroupedmetricsentitymetricentity.js"; export * from "./nullablesignalsapianalyticsmttxmetricsentitymetricentity.js"; +export * from "./nullablesignalsapianalyticsnoisemetricsentitymetricentity.js"; export * from "./nullablesignalsapianalyticstimeseriespointentitymetricentity.js"; export * from "./nullablesignalsapicallroutestepentity.js"; export * from "./nullablesignalsapiescalationpolicyhandoffstepentity.js"; @@ -246,7 +245,6 @@ export * from "./nullablesignalsapitargetentity.js"; export * from "./nullablesignalsapitransposerentity.js"; export * from "./nullableslimrunbookentity.js"; export * from "./nullablesuccinctentity.js"; -export * from "./nullabletasklistitementity.js"; export * from "./nullableteamentitylite.js"; export * from "./nullableticketingpriorityentity.js"; export * from "./nullableticketingprojectconfigentity.js"; @@ -291,8 +289,10 @@ export * from "./runbookentity.js"; export * from "./runbooksactionsentity.js"; export * from "./runbooksactionsentitypaginated.js"; export * from "./runbookselementdynamicselectentityselectoptionentity.js"; +export * from "./runbookselemententity.js"; export * from "./runbooksexecutionentity.js"; export * from "./runbooksexecutionentitypaginated.js"; +export * from "./runbookstepentity.js"; export * from "./savedsearchentity.js"; export * from "./scheduledmaintenanceentity.js"; export * from "./scheduledmaintenancesimpactentity.js"; @@ -317,6 +317,7 @@ export * from "./severitymatrixitementity.js"; export * from "./severitymatrixseveritymatrixentity.js"; export * from "./signalsapianalyticsgroupedmetricsentity.js"; export * from "./signalsapianalyticsmttxmetricsentity.js"; +export * from "./signalsapianalyticsnoisemetricsentity.js"; export * from "./signalsapianalyticstimeseriespointentity.js"; export * from "./signalsapicallrouteentity.js"; export * from "./signalsapicallrouteentitypaginated.js"; @@ -327,7 +328,9 @@ export * from "./signalsapiescalationpolicyentitypaginated.js"; export * from "./signalsapiescalationpolicystepentity.js"; export * from "./signalsapigroupingentity.js"; export * from "./signalsapigroupingentitypaginated.js"; +export * from "./signalsapihackermodeentity.js"; export * from "./signalsapiingestkeyentity.js"; +export * from "./signalsapinotificationpolicyitemcomplianceentity.js"; export * from "./signalsapinotificationprioritypolicyentity.js"; export * from "./signalsapioncallrestrictionentity.js"; export * from "./signalsapioncallrotationentity.js"; @@ -353,6 +356,7 @@ export * from "./tagentitypaginated.js"; export * from "./taskentity.js"; export * from "./taskentitypaginated.js"; export * from "./tasklistentity.js"; +export * from "./tasklistitementity.js"; export * from "./teamentity.js"; export * from "./teamentitylite.js"; export * from "./teamentitypaginated.js"; @@ -409,6 +413,7 @@ export * from "./updateseverity.js"; export * from "./updateseveritymatrix.js"; export * from "./updateseveritymatrixcondition.js"; export * from "./updateseveritymatriximpact.js"; +export * from "./updatesignalsalert.js"; export * from "./updatesignalsalertgroupingconfiguration.js"; export * from "./updatesignalsemailtarget.js"; export * from "./updatesignalswebhooktarget.js"; diff --git a/src/models/components/integrationsintegrationentity.ts b/src/models/components/integrationsintegrationentity.ts index a6d60e74..ecff0b72 100644 --- a/src/models/components/integrationsintegrationentity.ts +++ b/src/models/components/integrationsintegrationentity.ts @@ -8,11 +8,11 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { - NullableIntegrationsConnectionEntity, - NullableIntegrationsConnectionEntity$inboundSchema, - NullableIntegrationsConnectionEntity$Outbound, - NullableIntegrationsConnectionEntity$outboundSchema, -} from "./nullableintegrationsconnectionentity.js"; + IntegrationsConnectionEntity, + IntegrationsConnectionEntity$inboundSchema, + IntegrationsConnectionEntity$Outbound, + IntegrationsConnectionEntity$outboundSchema, +} from "./integrationsconnectionentity.js"; import { NullableIntegrationsIntegrationEntityLogoEntity, NullableIntegrationsIntegrationEntityLogoEntity$inboundSchema, @@ -30,7 +30,7 @@ export type IntegrationsIntegrationEntity = { description?: string | null | undefined; setupUrl?: string | null | undefined; createdAt?: Date | null | undefined; - connections?: NullableIntegrationsConnectionEntity | null | undefined; + connections?: Array | null | undefined; enabled?: boolean | null | undefined; installed?: boolean | null | undefined; deprecated?: boolean | null | undefined; @@ -52,7 +52,7 @@ export const IntegrationsIntegrationEntity$inboundSchema: z.ZodType< created_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), - connections: z.nullable(NullableIntegrationsConnectionEntity$inboundSchema) + connections: z.nullable(z.array(IntegrationsConnectionEntity$inboundSchema)) .optional(), enabled: z.nullable(z.boolean()).optional(), installed: z.nullable(z.boolean()).optional(), @@ -77,10 +77,7 @@ export type IntegrationsIntegrationEntity$Outbound = { description?: string | null | undefined; setup_url?: string | null | undefined; created_at?: string | null | undefined; - connections?: - | NullableIntegrationsConnectionEntity$Outbound - | null - | undefined; + connections?: Array | null | undefined; enabled?: boolean | null | undefined; installed?: boolean | null | undefined; deprecated?: boolean | null | undefined; @@ -103,7 +100,7 @@ export const IntegrationsIntegrationEntity$outboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), setupUrl: z.nullable(z.string()).optional(), createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - connections: z.nullable(NullableIntegrationsConnectionEntity$outboundSchema) + connections: z.nullable(z.array(IntegrationsConnectionEntity$outboundSchema)) .optional(), enabled: z.nullable(z.boolean()).optional(), installed: z.nullable(z.boolean()).optional(), diff --git a/src/models/components/nullablealertsalertentity.ts b/src/models/components/nullablealertsalertentity.ts index 84e47ca4..bd2649bc 100644 --- a/src/models/components/nullablealertsalertentity.ts +++ b/src/models/components/nullablealertsalertentity.ts @@ -88,6 +88,7 @@ export type NullableAlertsAlertEntity = { incidents?: Array | null | undefined; events?: Array | null | undefined; isExpired?: boolean | null | undefined; + isNoise?: boolean | null | undefined; parentAlerts?: Array | null | undefined; childAlerts?: Array | null | undefined; conversations?: Array | null | undefined; @@ -185,6 +186,7 @@ export const NullableAlertsAlertEntity$inboundSchema: z.ZodType< ).optional(), events: z.nullable(z.array(AlertsSirenEventEntity$inboundSchema)).optional(), is_expired: z.nullable(z.boolean()).optional(), + is_noise: z.nullable(z.boolean()).optional(), parent_alerts: z.nullable(z.array(AlertsSirenAlertEntity$inboundSchema)) .optional(), child_alerts: z.nullable(z.array(AlertsSirenAlertEntity$inboundSchema)) @@ -208,6 +210,7 @@ export const NullableAlertsAlertEntity$inboundSchema: z.ZodType< "team_name": "teamName", "team_id": "teamId", "is_expired": "isExpired", + "is_noise": "isNoise", "parent_alerts": "parentAlerts", "child_alerts": "childAlerts", }); @@ -244,6 +247,7 @@ export type NullableAlertsAlertEntity$Outbound = { | undefined; events?: Array | null | undefined; is_expired?: boolean | null | undefined; + is_noise?: boolean | null | undefined; parent_alerts?: Array | null | undefined; child_alerts?: Array | null | undefined; conversations?: @@ -290,6 +294,7 @@ export const NullableAlertsAlertEntity$outboundSchema: z.ZodType< ).optional(), events: z.nullable(z.array(AlertsSirenEventEntity$outboundSchema)).optional(), isExpired: z.nullable(z.boolean()).optional(), + isNoise: z.nullable(z.boolean()).optional(), parentAlerts: z.nullable(z.array(AlertsSirenAlertEntity$outboundSchema)) .optional(), childAlerts: z.nullable(z.array(AlertsSirenAlertEntity$outboundSchema)) @@ -313,6 +318,7 @@ export const NullableAlertsAlertEntity$outboundSchema: z.ZodType< teamName: "team_name", teamId: "team_id", isExpired: "is_expired", + isNoise: "is_noise", parentAlerts: "parent_alerts", childAlerts: "child_alerts", }); diff --git a/src/models/components/nullableintegrationsconnectionentity.ts b/src/models/components/nullableintegrationsconnectionentity.ts deleted file mode 100644 index 15737017..00000000 --- a/src/models/components/nullableintegrationsconnectionentity.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NullableAuthorEntity, - NullableAuthorEntity$inboundSchema, - NullableAuthorEntity$Outbound, - NullableAuthorEntity$outboundSchema, -} from "./nullableauthorentity.js"; - -/** - * Integration-specific details of this connection. As identified by the integration_slug, this object will be represented by that integration's ConnectionEntity. - */ -export type NullableIntegrationsConnectionEntityDetails = {}; - -/** - * Integrations_ConnectionEntity model - */ -export type NullableIntegrationsConnectionEntity = { - id?: string | null | undefined; - integrationSlug?: string | null | undefined; - integrationId?: string | null | undefined; - displayName?: string | null | undefined; - configurationUrl?: string | null | undefined; - authorizedBy?: string | null | undefined; - authorizedById?: string | null | undefined; - createdAt?: Date | null | undefined; - updatedAt?: Date | null | undefined; - /** - * Integration-specific details of this connection. As identified by the integration_slug, this object will be represented by that integration's ConnectionEntity. - */ - details?: NullableIntegrationsConnectionEntityDetails | null | undefined; - defaultAuthorizedActor?: NullableAuthorEntity | null | undefined; -}; - -/** @internal */ -export const NullableIntegrationsConnectionEntityDetails$inboundSchema: - z.ZodType< - NullableIntegrationsConnectionEntityDetails, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type NullableIntegrationsConnectionEntityDetails$Outbound = {}; - -/** @internal */ -export const NullableIntegrationsConnectionEntityDetails$outboundSchema: - z.ZodType< - NullableIntegrationsConnectionEntityDetails$Outbound, - z.ZodTypeDef, - NullableIntegrationsConnectionEntityDetails - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NullableIntegrationsConnectionEntityDetails$ { - /** @deprecated use `NullableIntegrationsConnectionEntityDetails$inboundSchema` instead. */ - export const inboundSchema = - NullableIntegrationsConnectionEntityDetails$inboundSchema; - /** @deprecated use `NullableIntegrationsConnectionEntityDetails$outboundSchema` instead. */ - export const outboundSchema = - NullableIntegrationsConnectionEntityDetails$outboundSchema; - /** @deprecated use `NullableIntegrationsConnectionEntityDetails$Outbound` instead. */ - export type Outbound = NullableIntegrationsConnectionEntityDetails$Outbound; -} - -export function nullableIntegrationsConnectionEntityDetailsToJSON( - nullableIntegrationsConnectionEntityDetails: - NullableIntegrationsConnectionEntityDetails, -): string { - return JSON.stringify( - NullableIntegrationsConnectionEntityDetails$outboundSchema.parse( - nullableIntegrationsConnectionEntityDetails, - ), - ); -} - -export function nullableIntegrationsConnectionEntityDetailsFromJSON( - jsonString: string, -): SafeParseResult< - NullableIntegrationsConnectionEntityDetails, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - NullableIntegrationsConnectionEntityDetails$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'NullableIntegrationsConnectionEntityDetails' from JSON`, - ); -} - -/** @internal */ -export const NullableIntegrationsConnectionEntity$inboundSchema: z.ZodType< - NullableIntegrationsConnectionEntity, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - integration_slug: z.nullable(z.string()).optional(), - integration_id: z.nullable(z.string()).optional(), - display_name: z.nullable(z.string()).optional(), - configuration_url: z.nullable(z.string()).optional(), - authorized_by: z.nullable(z.string()).optional(), - authorized_by_id: z.nullable(z.string()).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - details: z.nullable( - z.lazy(() => NullableIntegrationsConnectionEntityDetails$inboundSchema), - ).optional(), - default_authorized_actor: z.nullable(NullableAuthorEntity$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "integration_slug": "integrationSlug", - "integration_id": "integrationId", - "display_name": "displayName", - "configuration_url": "configurationUrl", - "authorized_by": "authorizedBy", - "authorized_by_id": "authorizedById", - "created_at": "createdAt", - "updated_at": "updatedAt", - "default_authorized_actor": "defaultAuthorizedActor", - }); -}); - -/** @internal */ -export type NullableIntegrationsConnectionEntity$Outbound = { - id?: string | null | undefined; - integration_slug?: string | null | undefined; - integration_id?: string | null | undefined; - display_name?: string | null | undefined; - configuration_url?: string | null | undefined; - authorized_by?: string | null | undefined; - authorized_by_id?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - details?: - | NullableIntegrationsConnectionEntityDetails$Outbound - | null - | undefined; - default_authorized_actor?: NullableAuthorEntity$Outbound | null | undefined; -}; - -/** @internal */ -export const NullableIntegrationsConnectionEntity$outboundSchema: z.ZodType< - NullableIntegrationsConnectionEntity$Outbound, - z.ZodTypeDef, - NullableIntegrationsConnectionEntity -> = z.object({ - id: z.nullable(z.string()).optional(), - integrationSlug: z.nullable(z.string()).optional(), - integrationId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - configurationUrl: z.nullable(z.string()).optional(), - authorizedBy: z.nullable(z.string()).optional(), - authorizedById: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - details: z.nullable( - z.lazy(() => NullableIntegrationsConnectionEntityDetails$outboundSchema), - ).optional(), - defaultAuthorizedActor: z.nullable(NullableAuthorEntity$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - integrationSlug: "integration_slug", - integrationId: "integration_id", - displayName: "display_name", - configurationUrl: "configuration_url", - authorizedBy: "authorized_by", - authorizedById: "authorized_by_id", - createdAt: "created_at", - updatedAt: "updated_at", - defaultAuthorizedActor: "default_authorized_actor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NullableIntegrationsConnectionEntity$ { - /** @deprecated use `NullableIntegrationsConnectionEntity$inboundSchema` instead. */ - export const inboundSchema = - NullableIntegrationsConnectionEntity$inboundSchema; - /** @deprecated use `NullableIntegrationsConnectionEntity$outboundSchema` instead. */ - export const outboundSchema = - NullableIntegrationsConnectionEntity$outboundSchema; - /** @deprecated use `NullableIntegrationsConnectionEntity$Outbound` instead. */ - export type Outbound = NullableIntegrationsConnectionEntity$Outbound; -} - -export function nullableIntegrationsConnectionEntityToJSON( - nullableIntegrationsConnectionEntity: NullableIntegrationsConnectionEntity, -): string { - return JSON.stringify( - NullableIntegrationsConnectionEntity$outboundSchema.parse( - nullableIntegrationsConnectionEntity, - ), - ); -} - -export function nullableIntegrationsConnectionEntityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - NullableIntegrationsConnectionEntity$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableIntegrationsConnectionEntity' from JSON`, - ); -} diff --git a/src/models/components/nullableintegrationsintegrationentity.ts b/src/models/components/nullableintegrationsintegrationentity.ts index 89f1eb1c..89d3c366 100644 --- a/src/models/components/nullableintegrationsintegrationentity.ts +++ b/src/models/components/nullableintegrationsintegrationentity.ts @@ -8,11 +8,11 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { - NullableIntegrationsConnectionEntity, - NullableIntegrationsConnectionEntity$inboundSchema, - NullableIntegrationsConnectionEntity$Outbound, - NullableIntegrationsConnectionEntity$outboundSchema, -} from "./nullableintegrationsconnectionentity.js"; + IntegrationsConnectionEntity, + IntegrationsConnectionEntity$inboundSchema, + IntegrationsConnectionEntity$Outbound, + IntegrationsConnectionEntity$outboundSchema, +} from "./integrationsconnectionentity.js"; import { NullableIntegrationsIntegrationEntityLogoEntity, NullableIntegrationsIntegrationEntityLogoEntity$inboundSchema, @@ -30,7 +30,7 @@ export type NullableIntegrationsIntegrationEntity = { description?: string | null | undefined; setupUrl?: string | null | undefined; createdAt?: Date | null | undefined; - connections?: NullableIntegrationsConnectionEntity | null | undefined; + connections?: Array | null | undefined; enabled?: boolean | null | undefined; installed?: boolean | null | undefined; deprecated?: boolean | null | undefined; @@ -52,7 +52,7 @@ export const NullableIntegrationsIntegrationEntity$inboundSchema: z.ZodType< created_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), - connections: z.nullable(NullableIntegrationsConnectionEntity$inboundSchema) + connections: z.nullable(z.array(IntegrationsConnectionEntity$inboundSchema)) .optional(), enabled: z.nullable(z.boolean()).optional(), installed: z.nullable(z.boolean()).optional(), @@ -77,10 +77,7 @@ export type NullableIntegrationsIntegrationEntity$Outbound = { description?: string | null | undefined; setup_url?: string | null | undefined; created_at?: string | null | undefined; - connections?: - | NullableIntegrationsConnectionEntity$Outbound - | null - | undefined; + connections?: Array | null | undefined; enabled?: boolean | null | undefined; installed?: boolean | null | undefined; deprecated?: boolean | null | undefined; @@ -103,7 +100,7 @@ export const NullableIntegrationsIntegrationEntity$outboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), setupUrl: z.nullable(z.string()).optional(), createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - connections: z.nullable(NullableIntegrationsConnectionEntity$outboundSchema) + connections: z.nullable(z.array(IntegrationsConnectionEntity$outboundSchema)) .optional(), enabled: z.nullable(z.boolean()).optional(), installed: z.nullable(z.boolean()).optional(), diff --git a/src/models/components/nullablerunbooksactionconfigentity.ts b/src/models/components/nullablerunbooksactionconfigentity.ts index dcad4181..f067681b 100644 --- a/src/models/components/nullablerunbooksactionconfigentity.ts +++ b/src/models/components/nullablerunbooksactionconfigentity.ts @@ -8,14 +8,17 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { - NullableRunbooksElementEntity, - NullableRunbooksElementEntity$inboundSchema, - NullableRunbooksElementEntity$Outbound, - NullableRunbooksElementEntity$outboundSchema, -} from "./nullablerunbookselemententity.js"; + RunbooksElementEntity, + RunbooksElementEntity$inboundSchema, + RunbooksElementEntity$Outbound, + RunbooksElementEntity$outboundSchema, +} from "./runbookselemententity.js"; export type NullableRunbooksActionConfigEntity = { - elements?: NullableRunbooksElementEntity | null | undefined; + /** + * A list of elements that can be used in this action configuration + */ + elements?: Array | null | undefined; /** * Location of documentation for this action */ @@ -28,7 +31,7 @@ export const NullableRunbooksActionConfigEntity$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - elements: z.nullable(NullableRunbooksElementEntity$inboundSchema).optional(), + elements: z.nullable(z.array(RunbooksElementEntity$inboundSchema)).optional(), documentation_url: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { @@ -38,7 +41,7 @@ export const NullableRunbooksActionConfigEntity$inboundSchema: z.ZodType< /** @internal */ export type NullableRunbooksActionConfigEntity$Outbound = { - elements?: NullableRunbooksElementEntity$Outbound | null | undefined; + elements?: Array | null | undefined; documentation_url?: string | null | undefined; }; @@ -48,7 +51,8 @@ export const NullableRunbooksActionConfigEntity$outboundSchema: z.ZodType< z.ZodTypeDef, NullableRunbooksActionConfigEntity > = z.object({ - elements: z.nullable(NullableRunbooksElementEntity$outboundSchema).optional(), + elements: z.nullable(z.array(RunbooksElementEntity$outboundSchema)) + .optional(), documentationUrl: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/components/nullablerunbooksactionsentity.ts b/src/models/components/nullablerunbooksactionsentity.ts index 54c8bc4a..a2472829 100644 --- a/src/models/components/nullablerunbooksactionsentity.ts +++ b/src/models/components/nullablerunbooksactionsentity.ts @@ -20,7 +20,7 @@ import { NullableRunbooksActionConfigEntity$outboundSchema, } from "./nullablerunbooksactionconfigentity.js"; -export type NullableRunbooksActionsEntityPrerequisites = {}; +export type NullableRunbooksActionsEntityPrerequisite = {}; export type NullableRunbooksActionsEntityDefaultLogic = {}; @@ -33,7 +33,10 @@ export type NullableRunbooksActionsEntity = { description?: string | null | undefined; config?: NullableRunbooksActionConfigEntity | null | undefined; category?: string | null | undefined; - prerequisites?: NullableRunbooksActionsEntityPrerequisites | null | undefined; + prerequisites?: + | Array + | null + | undefined; integration?: NullableIntegrationsIntegrationEntity | null | undefined; supportedRunbookTypes?: Array | null | undefined; createdAt?: Date | null | undefined; @@ -49,60 +52,62 @@ export type NullableRunbooksActionsEntity = { }; /** @internal */ -export const NullableRunbooksActionsEntityPrerequisites$inboundSchema: - z.ZodType = - z.object({}); +export const NullableRunbooksActionsEntityPrerequisite$inboundSchema: z.ZodType< + NullableRunbooksActionsEntityPrerequisite, + z.ZodTypeDef, + unknown +> = z.object({}); /** @internal */ -export type NullableRunbooksActionsEntityPrerequisites$Outbound = {}; +export type NullableRunbooksActionsEntityPrerequisite$Outbound = {}; /** @internal */ -export const NullableRunbooksActionsEntityPrerequisites$outboundSchema: +export const NullableRunbooksActionsEntityPrerequisite$outboundSchema: z.ZodType< - NullableRunbooksActionsEntityPrerequisites$Outbound, + NullableRunbooksActionsEntityPrerequisite$Outbound, z.ZodTypeDef, - NullableRunbooksActionsEntityPrerequisites + NullableRunbooksActionsEntityPrerequisite > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace NullableRunbooksActionsEntityPrerequisites$ { - /** @deprecated use `NullableRunbooksActionsEntityPrerequisites$inboundSchema` instead. */ +export namespace NullableRunbooksActionsEntityPrerequisite$ { + /** @deprecated use `NullableRunbooksActionsEntityPrerequisite$inboundSchema` instead. */ export const inboundSchema = - NullableRunbooksActionsEntityPrerequisites$inboundSchema; - /** @deprecated use `NullableRunbooksActionsEntityPrerequisites$outboundSchema` instead. */ + NullableRunbooksActionsEntityPrerequisite$inboundSchema; + /** @deprecated use `NullableRunbooksActionsEntityPrerequisite$outboundSchema` instead. */ export const outboundSchema = - NullableRunbooksActionsEntityPrerequisites$outboundSchema; - /** @deprecated use `NullableRunbooksActionsEntityPrerequisites$Outbound` instead. */ - export type Outbound = NullableRunbooksActionsEntityPrerequisites$Outbound; + NullableRunbooksActionsEntityPrerequisite$outboundSchema; + /** @deprecated use `NullableRunbooksActionsEntityPrerequisite$Outbound` instead. */ + export type Outbound = NullableRunbooksActionsEntityPrerequisite$Outbound; } -export function nullableRunbooksActionsEntityPrerequisitesToJSON( - nullableRunbooksActionsEntityPrerequisites: - NullableRunbooksActionsEntityPrerequisites, +export function nullableRunbooksActionsEntityPrerequisiteToJSON( + nullableRunbooksActionsEntityPrerequisite: + NullableRunbooksActionsEntityPrerequisite, ): string { return JSON.stringify( - NullableRunbooksActionsEntityPrerequisites$outboundSchema.parse( - nullableRunbooksActionsEntityPrerequisites, + NullableRunbooksActionsEntityPrerequisite$outboundSchema.parse( + nullableRunbooksActionsEntityPrerequisite, ), ); } -export function nullableRunbooksActionsEntityPrerequisitesFromJSON( +export function nullableRunbooksActionsEntityPrerequisiteFromJSON( jsonString: string, ): SafeParseResult< - NullableRunbooksActionsEntityPrerequisites, + NullableRunbooksActionsEntityPrerequisite, SDKValidationError > { return safeParse( jsonString, (x) => - NullableRunbooksActionsEntityPrerequisites$inboundSchema.parse( + NullableRunbooksActionsEntityPrerequisite$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'NullableRunbooksActionsEntityPrerequisites' from JSON`, + `Failed to parse 'NullableRunbooksActionsEntityPrerequisite' from JSON`, ); } @@ -241,7 +246,9 @@ export const NullableRunbooksActionsEntity$inboundSchema: z.ZodType< .optional(), category: z.nullable(z.string()).optional(), prerequisites: z.nullable( - z.lazy(() => NullableRunbooksActionsEntityPrerequisites$inboundSchema), + z.array( + z.lazy(() => NullableRunbooksActionsEntityPrerequisite$inboundSchema), + ), ).optional(), integration: z.nullable(NullableIntegrationsIntegrationEntity$inboundSchema) .optional(), @@ -280,7 +287,7 @@ export type NullableRunbooksActionsEntity$Outbound = { config?: NullableRunbooksActionConfigEntity$Outbound | null | undefined; category?: string | null | undefined; prerequisites?: - | NullableRunbooksActionsEntityPrerequisites$Outbound + | Array | null | undefined; integration?: @@ -317,7 +324,9 @@ export const NullableRunbooksActionsEntity$outboundSchema: z.ZodType< .optional(), category: z.nullable(z.string()).optional(), prerequisites: z.nullable( - z.lazy(() => NullableRunbooksActionsEntityPrerequisites$outboundSchema), + z.array(z.lazy(() => + NullableRunbooksActionsEntityPrerequisite$outboundSchema + )), ).optional(), integration: z.nullable(NullableIntegrationsIntegrationEntity$outboundSchema) .optional(), diff --git a/src/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.ts b/src/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.ts new file mode 100644 index 00000000..535524e1 --- /dev/null +++ b/src/models/components/nullablesignalsapianalyticsnoisemetricsentitymetricentity.ts @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity = { + /** + * The time bucket + */ + bucket?: string | null | undefined; + /** + * The total number of alerts + */ + totalAlerts?: number | null | undefined; + /** + * The number of alerts marked as noise + */ + noisyAlerts?: number | null | undefined; + /** + * The percentage of alerts that are noise + */ + percentage?: number | null | undefined; +}; + +/** @internal */ +export const NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema: + z.ZodType< + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity, + z.ZodTypeDef, + unknown + > = z.object({ + bucket: z.nullable(z.string()).optional(), + total_alerts: z.nullable(z.number().int()).optional(), + noisy_alerts: z.nullable(z.number().int()).optional(), + percentage: z.nullable(z.number()).optional(), + }).transform((v) => { + return remap$(v, { + "total_alerts": "totalAlerts", + "noisy_alerts": "noisyAlerts", + }); + }); + +/** @internal */ +export type NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound = + { + bucket?: string | null | undefined; + total_alerts?: number | null | undefined; + noisy_alerts?: number | null | undefined; + percentage?: number | null | undefined; + }; + +/** @internal */ +export const NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema: + z.ZodType< + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound, + z.ZodTypeDef, + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity + > = z.object({ + bucket: z.nullable(z.string()).optional(), + totalAlerts: z.nullable(z.number().int()).optional(), + noisyAlerts: z.nullable(z.number().int()).optional(), + percentage: z.nullable(z.number()).optional(), + }).transform((v) => { + return remap$(v, { + totalAlerts: "total_alerts", + noisyAlerts: "noisy_alerts", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$ { + /** @deprecated use `NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema` instead. */ + export const inboundSchema = + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema; + /** @deprecated use `NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema` instead. */ + export const outboundSchema = + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema; + /** @deprecated use `NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound` instead. */ + export type Outbound = + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound; +} + +export function nullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntityToJSON( + nullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity: + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity, +): string { + return JSON.stringify( + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema + .parse(nullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity), + ); +} + +export function nullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntityFromJSON( + jsonString: string, +): SafeParseResult< + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity' from JSON`, + ); +} diff --git a/src/models/components/nullabletasklistitementity.ts b/src/models/components/nullabletasklistitementity.ts deleted file mode 100644 index 53ea7151..00000000 --- a/src/models/components/nullabletasklistitementity.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type NullableTaskListItemEntity = { - summary?: string | null | undefined; - description?: string | null | undefined; -}; - -/** @internal */ -export const NullableTaskListItemEntity$inboundSchema: z.ZodType< - NullableTaskListItemEntity, - z.ZodTypeDef, - unknown -> = z.object({ - summary: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), -}); - -/** @internal */ -export type NullableTaskListItemEntity$Outbound = { - summary?: string | null | undefined; - description?: string | null | undefined; -}; - -/** @internal */ -export const NullableTaskListItemEntity$outboundSchema: z.ZodType< - NullableTaskListItemEntity$Outbound, - z.ZodTypeDef, - NullableTaskListItemEntity -> = z.object({ - summary: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NullableTaskListItemEntity$ { - /** @deprecated use `NullableTaskListItemEntity$inboundSchema` instead. */ - export const inboundSchema = NullableTaskListItemEntity$inboundSchema; - /** @deprecated use `NullableTaskListItemEntity$outboundSchema` instead. */ - export const outboundSchema = NullableTaskListItemEntity$outboundSchema; - /** @deprecated use `NullableTaskListItemEntity$Outbound` instead. */ - export type Outbound = NullableTaskListItemEntity$Outbound; -} - -export function nullableTaskListItemEntityToJSON( - nullableTaskListItemEntity: NullableTaskListItemEntity, -): string { - return JSON.stringify( - NullableTaskListItemEntity$outboundSchema.parse(nullableTaskListItemEntity), - ); -} - -export function nullableTaskListItemEntityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NullableTaskListItemEntity$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableTaskListItemEntity' from JSON`, - ); -} diff --git a/src/models/components/nullableuserentity.ts b/src/models/components/nullableuserentity.ts index 94378aac..a12cffe3 100644 --- a/src/models/components/nullableuserentity.ts +++ b/src/models/components/nullableuserentity.ts @@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + SignalsAPINotificationPolicyItemComplianceEntity, + SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema, + SignalsAPINotificationPolicyItemComplianceEntity$Outbound, + SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema, +} from "./signalsapinotificationpolicyitemcomplianceentity.js"; /** * UserEntity model @@ -20,6 +26,10 @@ export type NullableUserEntity = { createdAt?: Date | null | undefined; updatedAt?: Date | null | undefined; signalsEnabledNotificationTypes?: Array | null | undefined; + signalsNotificationPolicyCompliance?: + | Array + | null + | undefined; }; /** @internal */ @@ -41,6 +51,9 @@ export const NullableUserEntity$inboundSchema: z.ZodType< ).optional(), signals_enabled_notification_types: z.nullable(z.array(z.string())) .optional(), + signals_notification_policy_compliance: z.nullable( + z.array(SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema), + ).optional(), }).transform((v) => { return remap$(v, { "slack_user_id": "slackUserId", @@ -48,6 +61,8 @@ export const NullableUserEntity$inboundSchema: z.ZodType< "created_at": "createdAt", "updated_at": "updatedAt", "signals_enabled_notification_types": "signalsEnabledNotificationTypes", + "signals_notification_policy_compliance": + "signalsNotificationPolicyCompliance", }); }); @@ -61,6 +76,10 @@ export type NullableUserEntity$Outbound = { created_at?: string | null | undefined; updated_at?: string | null | undefined; signals_enabled_notification_types?: Array | null | undefined; + signals_notification_policy_compliance?: + | Array + | null + | undefined; }; /** @internal */ @@ -77,6 +96,9 @@ export const NullableUserEntity$outboundSchema: z.ZodType< createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), signalsEnabledNotificationTypes: z.nullable(z.array(z.string())).optional(), + signalsNotificationPolicyCompliance: z.nullable( + z.array(SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema), + ).optional(), }).transform((v) => { return remap$(v, { slackUserId: "slack_user_id", @@ -84,6 +106,8 @@ export const NullableUserEntity$outboundSchema: z.ZodType< createdAt: "created_at", updatedAt: "updated_at", signalsEnabledNotificationTypes: "signals_enabled_notification_types", + signalsNotificationPolicyCompliance: + "signals_notification_policy_compliance", }); }); diff --git a/src/models/components/runbookentity.ts b/src/models/components/runbookentity.ts index bacbde98..d0a8bfea 100644 --- a/src/models/components/runbookentity.ts +++ b/src/models/components/runbookentity.ts @@ -19,12 +19,6 @@ import { NullableRulesRuleEntity$Outbound, NullableRulesRuleEntity$outboundSchema, } from "./nullablerulesruleentity.js"; -import { - NullableRunbookStepEntity, - NullableRunbookStepEntity$inboundSchema, - NullableRunbookStepEntity$Outbound, - NullableRunbookStepEntity$outboundSchema, -} from "./nullablerunbookstepentity.js"; import { NullableTeamEntityLite, NullableTeamEntityLite$inboundSchema, @@ -37,6 +31,12 @@ import { NullableVotesEntity$Outbound, NullableVotesEntity$outboundSchema, } from "./nullablevotesentity.js"; +import { + RunbookStepEntity, + RunbookStepEntity$inboundSchema, + RunbookStepEntity$Outbound, + RunbookStepEntity$outboundSchema, +} from "./runbookstepentity.js"; /** * RunbookEntity model @@ -52,7 +52,7 @@ export type RunbookEntity = { updatedAt?: Date | null | undefined; createdBy?: NullableAuthorEntity | null | undefined; updatedBy?: NullableAuthorEntity | null | undefined; - steps?: NullableRunbookStepEntity | null | undefined; + steps?: Array | null | undefined; attachmentRule?: NullableRulesRuleEntity | null | undefined; votes?: NullableVotesEntity | null | undefined; isEditable?: boolean | null | undefined; @@ -85,7 +85,7 @@ export const RunbookEntity$inboundSchema: z.ZodType< ).optional(), created_by: z.nullable(NullableAuthorEntity$inboundSchema).optional(), updated_by: z.nullable(NullableAuthorEntity$inboundSchema).optional(), - steps: z.nullable(NullableRunbookStepEntity$inboundSchema).optional(), + steps: z.nullable(z.array(RunbookStepEntity$inboundSchema)).optional(), attachment_rule: z.nullable(NullableRulesRuleEntity$inboundSchema).optional(), votes: z.nullable(NullableVotesEntity$inboundSchema).optional(), is_editable: z.nullable(z.boolean()).optional(), @@ -118,7 +118,7 @@ export type RunbookEntity$Outbound = { updated_at?: string | null | undefined; created_by?: NullableAuthorEntity$Outbound | null | undefined; updated_by?: NullableAuthorEntity$Outbound | null | undefined; - steps?: NullableRunbookStepEntity$Outbound | null | undefined; + steps?: Array | null | undefined; attachment_rule?: NullableRulesRuleEntity$Outbound | null | undefined; votes?: NullableVotesEntity$Outbound | null | undefined; is_editable?: boolean | null | undefined; @@ -144,7 +144,7 @@ export const RunbookEntity$outboundSchema: z.ZodType< updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), createdBy: z.nullable(NullableAuthorEntity$outboundSchema).optional(), updatedBy: z.nullable(NullableAuthorEntity$outboundSchema).optional(), - steps: z.nullable(NullableRunbookStepEntity$outboundSchema).optional(), + steps: z.nullable(z.array(RunbookStepEntity$outboundSchema)).optional(), attachmentRule: z.nullable(NullableRulesRuleEntity$outboundSchema).optional(), votes: z.nullable(NullableVotesEntity$outboundSchema).optional(), isEditable: z.nullable(z.boolean()).optional(), diff --git a/src/models/components/runbooksactionsentity.ts b/src/models/components/runbooksactionsentity.ts index 59988df9..06c0f2f5 100644 --- a/src/models/components/runbooksactionsentity.ts +++ b/src/models/components/runbooksactionsentity.ts @@ -20,7 +20,7 @@ import { NullableRunbooksActionConfigEntity$outboundSchema, } from "./nullablerunbooksactionconfigentity.js"; -export type RunbooksActionsEntityPrerequisites = {}; +export type RunbooksActionsEntityPrerequisite = {}; export type RunbooksActionsEntityDefaultLogic = {}; @@ -33,7 +33,7 @@ export type RunbooksActionsEntity = { description?: string | null | undefined; config?: NullableRunbooksActionConfigEntity | null | undefined; category?: string | null | undefined; - prerequisites?: RunbooksActionsEntityPrerequisites | null | undefined; + prerequisites?: Array | null | undefined; integration?: NullableIntegrationsIntegrationEntity | null | undefined; supportedRunbookTypes?: Array | null | undefined; createdAt?: Date | null | undefined; @@ -46,54 +46,53 @@ export type RunbooksActionsEntity = { }; /** @internal */ -export const RunbooksActionsEntityPrerequisites$inboundSchema: z.ZodType< - RunbooksActionsEntityPrerequisites, +export const RunbooksActionsEntityPrerequisite$inboundSchema: z.ZodType< + RunbooksActionsEntityPrerequisite, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type RunbooksActionsEntityPrerequisites$Outbound = {}; +export type RunbooksActionsEntityPrerequisite$Outbound = {}; /** @internal */ -export const RunbooksActionsEntityPrerequisites$outboundSchema: z.ZodType< - RunbooksActionsEntityPrerequisites$Outbound, +export const RunbooksActionsEntityPrerequisite$outboundSchema: z.ZodType< + RunbooksActionsEntityPrerequisite$Outbound, z.ZodTypeDef, - RunbooksActionsEntityPrerequisites + RunbooksActionsEntityPrerequisite > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace RunbooksActionsEntityPrerequisites$ { - /** @deprecated use `RunbooksActionsEntityPrerequisites$inboundSchema` instead. */ - export const inboundSchema = RunbooksActionsEntityPrerequisites$inboundSchema; - /** @deprecated use `RunbooksActionsEntityPrerequisites$outboundSchema` instead. */ +export namespace RunbooksActionsEntityPrerequisite$ { + /** @deprecated use `RunbooksActionsEntityPrerequisite$inboundSchema` instead. */ + export const inboundSchema = RunbooksActionsEntityPrerequisite$inboundSchema; + /** @deprecated use `RunbooksActionsEntityPrerequisite$outboundSchema` instead. */ export const outboundSchema = - RunbooksActionsEntityPrerequisites$outboundSchema; - /** @deprecated use `RunbooksActionsEntityPrerequisites$Outbound` instead. */ - export type Outbound = RunbooksActionsEntityPrerequisites$Outbound; + RunbooksActionsEntityPrerequisite$outboundSchema; + /** @deprecated use `RunbooksActionsEntityPrerequisite$Outbound` instead. */ + export type Outbound = RunbooksActionsEntityPrerequisite$Outbound; } -export function runbooksActionsEntityPrerequisitesToJSON( - runbooksActionsEntityPrerequisites: RunbooksActionsEntityPrerequisites, +export function runbooksActionsEntityPrerequisiteToJSON( + runbooksActionsEntityPrerequisite: RunbooksActionsEntityPrerequisite, ): string { return JSON.stringify( - RunbooksActionsEntityPrerequisites$outboundSchema.parse( - runbooksActionsEntityPrerequisites, + RunbooksActionsEntityPrerequisite$outboundSchema.parse( + runbooksActionsEntityPrerequisite, ), ); } -export function runbooksActionsEntityPrerequisitesFromJSON( +export function runbooksActionsEntityPrerequisiteFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => - RunbooksActionsEntityPrerequisites$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RunbooksActionsEntityPrerequisites' from JSON`, + (x) => RunbooksActionsEntityPrerequisite$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RunbooksActionsEntityPrerequisite' from JSON`, ); } @@ -215,7 +214,7 @@ export const RunbooksActionsEntity$inboundSchema: z.ZodType< .optional(), category: z.nullable(z.string()).optional(), prerequisites: z.nullable( - z.lazy(() => RunbooksActionsEntityPrerequisites$inboundSchema), + z.array(z.lazy(() => RunbooksActionsEntityPrerequisite$inboundSchema)), ).optional(), integration: z.nullable(NullableIntegrationsIntegrationEntity$inboundSchema) .optional(), @@ -254,7 +253,7 @@ export type RunbooksActionsEntity$Outbound = { config?: NullableRunbooksActionConfigEntity$Outbound | null | undefined; category?: string | null | undefined; prerequisites?: - | RunbooksActionsEntityPrerequisites$Outbound + | Array | null | undefined; integration?: @@ -288,7 +287,7 @@ export const RunbooksActionsEntity$outboundSchema: z.ZodType< .optional(), category: z.nullable(z.string()).optional(), prerequisites: z.nullable( - z.lazy(() => RunbooksActionsEntityPrerequisites$outboundSchema), + z.array(z.lazy(() => RunbooksActionsEntityPrerequisite$outboundSchema)), ).optional(), integration: z.nullable(NullableIntegrationsIntegrationEntity$outboundSchema) .optional(), diff --git a/src/models/components/nullablerunbookselemententity.ts b/src/models/components/runbookselemententity.ts similarity index 75% rename from src/models/components/nullablerunbookselemententity.ts rename to src/models/components/runbookselemententity.ts index 7e4687f3..3935de99 100644 --- a/src/models/components/nullablerunbookselemententity.ts +++ b/src/models/components/runbookselemententity.ts @@ -32,7 +32,7 @@ import { NullableRunbooksElementTextareaEntity$outboundSchema, } from "./nullablerunbookselementtextareaentity.js"; -export type NullableRunbooksElementEntity = { +export type RunbooksElementEntity = { id?: string | null | undefined; type?: string | null | undefined; markdown?: NullableRunbooksElementMarkdownEntity | null | undefined; @@ -43,8 +43,8 @@ export type NullableRunbooksElementEntity = { }; /** @internal */ -export const NullableRunbooksElementEntity$inboundSchema: z.ZodType< - NullableRunbooksElementEntity, +export const RunbooksElementEntity$inboundSchema: z.ZodType< + RunbooksElementEntity, z.ZodTypeDef, unknown > = z.object({ @@ -69,7 +69,7 @@ export const NullableRunbooksElementEntity$inboundSchema: z.ZodType< }); /** @internal */ -export type NullableRunbooksElementEntity$Outbound = { +export type RunbooksElementEntity$Outbound = { id?: string | null | undefined; type?: string | null | undefined; markdown?: NullableRunbooksElementMarkdownEntity$Outbound | null | undefined; @@ -86,10 +86,10 @@ export type NullableRunbooksElementEntity$Outbound = { }; /** @internal */ -export const NullableRunbooksElementEntity$outboundSchema: z.ZodType< - NullableRunbooksElementEntity$Outbound, +export const RunbooksElementEntity$outboundSchema: z.ZodType< + RunbooksElementEntity$Outbound, z.ZodTypeDef, - NullableRunbooksElementEntity + RunbooksElementEntity > = z.object({ id: z.nullable(z.string()).optional(), type: z.nullable(z.string()).optional(), @@ -115,31 +115,29 @@ export const NullableRunbooksElementEntity$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace NullableRunbooksElementEntity$ { - /** @deprecated use `NullableRunbooksElementEntity$inboundSchema` instead. */ - export const inboundSchema = NullableRunbooksElementEntity$inboundSchema; - /** @deprecated use `NullableRunbooksElementEntity$outboundSchema` instead. */ - export const outboundSchema = NullableRunbooksElementEntity$outboundSchema; - /** @deprecated use `NullableRunbooksElementEntity$Outbound` instead. */ - export type Outbound = NullableRunbooksElementEntity$Outbound; +export namespace RunbooksElementEntity$ { + /** @deprecated use `RunbooksElementEntity$inboundSchema` instead. */ + export const inboundSchema = RunbooksElementEntity$inboundSchema; + /** @deprecated use `RunbooksElementEntity$outboundSchema` instead. */ + export const outboundSchema = RunbooksElementEntity$outboundSchema; + /** @deprecated use `RunbooksElementEntity$Outbound` instead. */ + export type Outbound = RunbooksElementEntity$Outbound; } -export function nullableRunbooksElementEntityToJSON( - nullableRunbooksElementEntity: NullableRunbooksElementEntity, +export function runbooksElementEntityToJSON( + runbooksElementEntity: RunbooksElementEntity, ): string { return JSON.stringify( - NullableRunbooksElementEntity$outboundSchema.parse( - nullableRunbooksElementEntity, - ), + RunbooksElementEntity$outboundSchema.parse(runbooksElementEntity), ); } -export function nullableRunbooksElementEntityFromJSON( +export function runbooksElementEntityFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => NullableRunbooksElementEntity$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableRunbooksElementEntity' from JSON`, + (x) => RunbooksElementEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RunbooksElementEntity' from JSON`, ); } diff --git a/src/models/components/nullablerunbookstepentity.ts b/src/models/components/runbookstepentity.ts similarity index 60% rename from src/models/components/nullablerunbookstepentity.ts rename to src/models/components/runbookstepentity.ts index e16743db..8a554a8a 100644 --- a/src/models/components/nullablerunbookstepentity.ts +++ b/src/models/components/runbookstepentity.ts @@ -29,20 +29,20 @@ import { /** * An unstructured object of key/value pairs describing the config settings for the step. */ -export type NullableRunbookStepEntityConfig = {}; +export type RunbookStepEntityConfig = {}; export type ActionElement = {}; -export type NullableRunbookStepEntityStepElement = {}; +export type RunbookStepEntityStepElement = {}; -export type NullableRunbookStepEntity = { +export type RunbookStepEntity = { name?: string | null | undefined; actionId?: string | null | undefined; stepId?: string | null | undefined; /** * An unstructured object of key/value pairs describing the config settings for the step. */ - config?: NullableRunbookStepEntityConfig | null | undefined; + config?: RunbookStepEntityConfig | null | undefined; /** * A list of action elements */ @@ -50,7 +50,7 @@ export type NullableRunbookStepEntity = { /** * A list of step elements */ - stepElements?: Array | null | undefined; + stepElements?: Array | null | undefined; automatic?: boolean | null | undefined; delayDuration?: Date | null | undefined; action?: NullableRunbooksActionsEntity | null | undefined; @@ -62,52 +62,50 @@ export type NullableRunbookStepEntity = { }; /** @internal */ -export const NullableRunbookStepEntityConfig$inboundSchema: z.ZodType< - NullableRunbookStepEntityConfig, +export const RunbookStepEntityConfig$inboundSchema: z.ZodType< + RunbookStepEntityConfig, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type NullableRunbookStepEntityConfig$Outbound = {}; +export type RunbookStepEntityConfig$Outbound = {}; /** @internal */ -export const NullableRunbookStepEntityConfig$outboundSchema: z.ZodType< - NullableRunbookStepEntityConfig$Outbound, +export const RunbookStepEntityConfig$outboundSchema: z.ZodType< + RunbookStepEntityConfig$Outbound, z.ZodTypeDef, - NullableRunbookStepEntityConfig + RunbookStepEntityConfig > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace NullableRunbookStepEntityConfig$ { - /** @deprecated use `NullableRunbookStepEntityConfig$inboundSchema` instead. */ - export const inboundSchema = NullableRunbookStepEntityConfig$inboundSchema; - /** @deprecated use `NullableRunbookStepEntityConfig$outboundSchema` instead. */ - export const outboundSchema = NullableRunbookStepEntityConfig$outboundSchema; - /** @deprecated use `NullableRunbookStepEntityConfig$Outbound` instead. */ - export type Outbound = NullableRunbookStepEntityConfig$Outbound; +export namespace RunbookStepEntityConfig$ { + /** @deprecated use `RunbookStepEntityConfig$inboundSchema` instead. */ + export const inboundSchema = RunbookStepEntityConfig$inboundSchema; + /** @deprecated use `RunbookStepEntityConfig$outboundSchema` instead. */ + export const outboundSchema = RunbookStepEntityConfig$outboundSchema; + /** @deprecated use `RunbookStepEntityConfig$Outbound` instead. */ + export type Outbound = RunbookStepEntityConfig$Outbound; } -export function nullableRunbookStepEntityConfigToJSON( - nullableRunbookStepEntityConfig: NullableRunbookStepEntityConfig, +export function runbookStepEntityConfigToJSON( + runbookStepEntityConfig: RunbookStepEntityConfig, ): string { return JSON.stringify( - NullableRunbookStepEntityConfig$outboundSchema.parse( - nullableRunbookStepEntityConfig, - ), + RunbookStepEntityConfig$outboundSchema.parse(runbookStepEntityConfig), ); } -export function nullableRunbookStepEntityConfigFromJSON( +export function runbookStepEntityConfigFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => NullableRunbookStepEntityConfig$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableRunbookStepEntityConfig' from JSON`, + (x) => RunbookStepEntityConfig$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RunbookStepEntityConfig' from JSON`, ); } @@ -156,75 +154,71 @@ export function actionElementFromJSON( } /** @internal */ -export const NullableRunbookStepEntityStepElement$inboundSchema: z.ZodType< - NullableRunbookStepEntityStepElement, +export const RunbookStepEntityStepElement$inboundSchema: z.ZodType< + RunbookStepEntityStepElement, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type NullableRunbookStepEntityStepElement$Outbound = {}; +export type RunbookStepEntityStepElement$Outbound = {}; /** @internal */ -export const NullableRunbookStepEntityStepElement$outboundSchema: z.ZodType< - NullableRunbookStepEntityStepElement$Outbound, +export const RunbookStepEntityStepElement$outboundSchema: z.ZodType< + RunbookStepEntityStepElement$Outbound, z.ZodTypeDef, - NullableRunbookStepEntityStepElement + RunbookStepEntityStepElement > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace NullableRunbookStepEntityStepElement$ { - /** @deprecated use `NullableRunbookStepEntityStepElement$inboundSchema` instead. */ - export const inboundSchema = - NullableRunbookStepEntityStepElement$inboundSchema; - /** @deprecated use `NullableRunbookStepEntityStepElement$outboundSchema` instead. */ - export const outboundSchema = - NullableRunbookStepEntityStepElement$outboundSchema; - /** @deprecated use `NullableRunbookStepEntityStepElement$Outbound` instead. */ - export type Outbound = NullableRunbookStepEntityStepElement$Outbound; +export namespace RunbookStepEntityStepElement$ { + /** @deprecated use `RunbookStepEntityStepElement$inboundSchema` instead. */ + export const inboundSchema = RunbookStepEntityStepElement$inboundSchema; + /** @deprecated use `RunbookStepEntityStepElement$outboundSchema` instead. */ + export const outboundSchema = RunbookStepEntityStepElement$outboundSchema; + /** @deprecated use `RunbookStepEntityStepElement$Outbound` instead. */ + export type Outbound = RunbookStepEntityStepElement$Outbound; } -export function nullableRunbookStepEntityStepElementToJSON( - nullableRunbookStepEntityStepElement: NullableRunbookStepEntityStepElement, +export function runbookStepEntityStepElementToJSON( + runbookStepEntityStepElement: RunbookStepEntityStepElement, ): string { return JSON.stringify( - NullableRunbookStepEntityStepElement$outboundSchema.parse( - nullableRunbookStepEntityStepElement, + RunbookStepEntityStepElement$outboundSchema.parse( + runbookStepEntityStepElement, ), ); } -export function nullableRunbookStepEntityStepElementFromJSON( +export function runbookStepEntityStepElementFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => - NullableRunbookStepEntityStepElement$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableRunbookStepEntityStepElement' from JSON`, + (x) => RunbookStepEntityStepElement$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RunbookStepEntityStepElement' from JSON`, ); } /** @internal */ -export const NullableRunbookStepEntity$inboundSchema: z.ZodType< - NullableRunbookStepEntity, +export const RunbookStepEntity$inboundSchema: z.ZodType< + RunbookStepEntity, z.ZodTypeDef, unknown > = z.object({ name: z.nullable(z.string()).optional(), action_id: z.nullable(z.string()).optional(), step_id: z.nullable(z.string()).optional(), - config: z.nullable( - z.lazy(() => NullableRunbookStepEntityConfig$inboundSchema), - ).optional(), + config: z.nullable(z.lazy(() => RunbookStepEntityConfig$inboundSchema)) + .optional(), action_elements: z.nullable( z.array(z.lazy(() => ActionElement$inboundSchema)), ).optional(), step_elements: z.nullable( - z.array(z.lazy(() => NullableRunbookStepEntityStepElement$inboundSchema)), + z.array(z.lazy(() => RunbookStepEntityStepElement$inboundSchema)), ).optional(), automatic: z.nullable(z.boolean()).optional(), delay_duration: z.nullable( @@ -250,14 +244,14 @@ export const NullableRunbookStepEntity$inboundSchema: z.ZodType< }); /** @internal */ -export type NullableRunbookStepEntity$Outbound = { +export type RunbookStepEntity$Outbound = { name?: string | null | undefined; action_id?: string | null | undefined; step_id?: string | null | undefined; - config?: NullableRunbookStepEntityConfig$Outbound | null | undefined; + config?: RunbookStepEntityConfig$Outbound | null | undefined; action_elements?: Array | null | undefined; step_elements?: - | Array + | Array | null | undefined; automatic?: boolean | null | undefined; @@ -271,22 +265,21 @@ export type NullableRunbookStepEntity$Outbound = { }; /** @internal */ -export const NullableRunbookStepEntity$outboundSchema: z.ZodType< - NullableRunbookStepEntity$Outbound, +export const RunbookStepEntity$outboundSchema: z.ZodType< + RunbookStepEntity$Outbound, z.ZodTypeDef, - NullableRunbookStepEntity + RunbookStepEntity > = z.object({ name: z.nullable(z.string()).optional(), actionId: z.nullable(z.string()).optional(), stepId: z.nullable(z.string()).optional(), - config: z.nullable( - z.lazy(() => NullableRunbookStepEntityConfig$outboundSchema), - ).optional(), + config: z.nullable(z.lazy(() => RunbookStepEntityConfig$outboundSchema)) + .optional(), actionElements: z.nullable( z.array(z.lazy(() => ActionElement$outboundSchema)), ).optional(), stepElements: z.nullable( - z.array(z.lazy(() => NullableRunbookStepEntityStepElement$outboundSchema)), + z.array(z.lazy(() => RunbookStepEntityStepElement$outboundSchema)), ).optional(), automatic: z.nullable(z.boolean()).optional(), delayDuration: z.nullable(z.date().transform(v => v.toISOString())) @@ -313,29 +306,29 @@ export const NullableRunbookStepEntity$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace NullableRunbookStepEntity$ { - /** @deprecated use `NullableRunbookStepEntity$inboundSchema` instead. */ - export const inboundSchema = NullableRunbookStepEntity$inboundSchema; - /** @deprecated use `NullableRunbookStepEntity$outboundSchema` instead. */ - export const outboundSchema = NullableRunbookStepEntity$outboundSchema; - /** @deprecated use `NullableRunbookStepEntity$Outbound` instead. */ - export type Outbound = NullableRunbookStepEntity$Outbound; +export namespace RunbookStepEntity$ { + /** @deprecated use `RunbookStepEntity$inboundSchema` instead. */ + export const inboundSchema = RunbookStepEntity$inboundSchema; + /** @deprecated use `RunbookStepEntity$outboundSchema` instead. */ + export const outboundSchema = RunbookStepEntity$outboundSchema; + /** @deprecated use `RunbookStepEntity$Outbound` instead. */ + export type Outbound = RunbookStepEntity$Outbound; } -export function nullableRunbookStepEntityToJSON( - nullableRunbookStepEntity: NullableRunbookStepEntity, +export function runbookStepEntityToJSON( + runbookStepEntity: RunbookStepEntity, ): string { return JSON.stringify( - NullableRunbookStepEntity$outboundSchema.parse(nullableRunbookStepEntity), + RunbookStepEntity$outboundSchema.parse(runbookStepEntity), ); } -export function nullableRunbookStepEntityFromJSON( +export function runbookStepEntityFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => NullableRunbookStepEntity$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NullableRunbookStepEntity' from JSON`, + (x) => RunbookStepEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RunbookStepEntity' from JSON`, ); } diff --git a/src/models/components/signalsapianalyticsnoisemetricsentity.ts b/src/models/components/signalsapianalyticsnoisemetricsentity.ts new file mode 100644 index 00000000..9c587a68 --- /dev/null +++ b/src/models/components/signalsapianalyticsnoisemetricsentity.ts @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity, + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema, + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound, + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema, +} from "./nullablesignalsapianalyticsnoisemetricsentitymetricentity.js"; + +/** + * Signals_API_Analytics_NoiseMetricsEntity model + */ +export type SignalsAPIAnalyticsNoiseMetricsEntity = { + data?: + | NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity + | null + | undefined; +}; + +/** @internal */ +export const SignalsAPIAnalyticsNoiseMetricsEntity$inboundSchema: z.ZodType< + SignalsAPIAnalyticsNoiseMetricsEntity, + z.ZodTypeDef, + unknown +> = z.object({ + data: z.nullable( + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$inboundSchema, + ).optional(), +}); + +/** @internal */ +export type SignalsAPIAnalyticsNoiseMetricsEntity$Outbound = { + data?: + | NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$Outbound + | null + | undefined; +}; + +/** @internal */ +export const SignalsAPIAnalyticsNoiseMetricsEntity$outboundSchema: z.ZodType< + SignalsAPIAnalyticsNoiseMetricsEntity$Outbound, + z.ZodTypeDef, + SignalsAPIAnalyticsNoiseMetricsEntity +> = z.object({ + data: z.nullable( + NullableSignalsAPIAnalyticsNoiseMetricsEntityMetricEntity$outboundSchema, + ).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace SignalsAPIAnalyticsNoiseMetricsEntity$ { + /** @deprecated use `SignalsAPIAnalyticsNoiseMetricsEntity$inboundSchema` instead. */ + export const inboundSchema = + SignalsAPIAnalyticsNoiseMetricsEntity$inboundSchema; + /** @deprecated use `SignalsAPIAnalyticsNoiseMetricsEntity$outboundSchema` instead. */ + export const outboundSchema = + SignalsAPIAnalyticsNoiseMetricsEntity$outboundSchema; + /** @deprecated use `SignalsAPIAnalyticsNoiseMetricsEntity$Outbound` instead. */ + export type Outbound = SignalsAPIAnalyticsNoiseMetricsEntity$Outbound; +} + +export function signalsAPIAnalyticsNoiseMetricsEntityToJSON( + signalsAPIAnalyticsNoiseMetricsEntity: SignalsAPIAnalyticsNoiseMetricsEntity, +): string { + return JSON.stringify( + SignalsAPIAnalyticsNoiseMetricsEntity$outboundSchema.parse( + signalsAPIAnalyticsNoiseMetricsEntity, + ), + ); +} + +export function signalsAPIAnalyticsNoiseMetricsEntityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + SignalsAPIAnalyticsNoiseMetricsEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SignalsAPIAnalyticsNoiseMetricsEntity' from JSON`, + ); +} diff --git a/src/models/components/signalsapihackermodeentity.ts b/src/models/components/signalsapihackermodeentity.ts new file mode 100644 index 00000000..778d7694 --- /dev/null +++ b/src/models/components/signalsapihackermodeentity.ts @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Signals_API_HackerModeEntity model + */ +export type SignalsAPIHackerModeEntity = { + enabled?: boolean | null | undefined; + urlKey?: string | null | undefined; + url?: string | null | undefined; +}; + +/** @internal */ +export const SignalsAPIHackerModeEntity$inboundSchema: z.ZodType< + SignalsAPIHackerModeEntity, + z.ZodTypeDef, + unknown +> = z.object({ + enabled: z.nullable(z.boolean()).optional(), + url_key: z.nullable(z.string()).optional(), + url: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + "url_key": "urlKey", + }); +}); + +/** @internal */ +export type SignalsAPIHackerModeEntity$Outbound = { + enabled?: boolean | null | undefined; + url_key?: string | null | undefined; + url?: string | null | undefined; +}; + +/** @internal */ +export const SignalsAPIHackerModeEntity$outboundSchema: z.ZodType< + SignalsAPIHackerModeEntity$Outbound, + z.ZodTypeDef, + SignalsAPIHackerModeEntity +> = z.object({ + enabled: z.nullable(z.boolean()).optional(), + urlKey: z.nullable(z.string()).optional(), + url: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + urlKey: "url_key", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace SignalsAPIHackerModeEntity$ { + /** @deprecated use `SignalsAPIHackerModeEntity$inboundSchema` instead. */ + export const inboundSchema = SignalsAPIHackerModeEntity$inboundSchema; + /** @deprecated use `SignalsAPIHackerModeEntity$outboundSchema` instead. */ + export const outboundSchema = SignalsAPIHackerModeEntity$outboundSchema; + /** @deprecated use `SignalsAPIHackerModeEntity$Outbound` instead. */ + export type Outbound = SignalsAPIHackerModeEntity$Outbound; +} + +export function signalsAPIHackerModeEntityToJSON( + signalsAPIHackerModeEntity: SignalsAPIHackerModeEntity, +): string { + return JSON.stringify( + SignalsAPIHackerModeEntity$outboundSchema.parse(signalsAPIHackerModeEntity), + ); +} + +export function signalsAPIHackerModeEntityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SignalsAPIHackerModeEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SignalsAPIHackerModeEntity' from JSON`, + ); +} diff --git a/src/models/components/signalsapinotificationpolicyitemcomplianceentity.ts b/src/models/components/signalsapinotificationpolicyitemcomplianceentity.ts new file mode 100644 index 00000000..c008c773 --- /dev/null +++ b/src/models/components/signalsapinotificationpolicyitemcomplianceentity.ts @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type SignalsAPINotificationPolicyItemComplianceEntity = { + notificationPolicyItemId?: string | null | undefined; + isCompliant?: boolean | null | undefined; +}; + +/** @internal */ +export const SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema: + z.ZodType< + SignalsAPINotificationPolicyItemComplianceEntity, + z.ZodTypeDef, + unknown + > = z.object({ + notification_policy_item_id: z.nullable(z.string()).optional(), + is_compliant: z.nullable(z.boolean()).optional(), + }).transform((v) => { + return remap$(v, { + "notification_policy_item_id": "notificationPolicyItemId", + "is_compliant": "isCompliant", + }); + }); + +/** @internal */ +export type SignalsAPINotificationPolicyItemComplianceEntity$Outbound = { + notification_policy_item_id?: string | null | undefined; + is_compliant?: boolean | null | undefined; +}; + +/** @internal */ +export const SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema: + z.ZodType< + SignalsAPINotificationPolicyItemComplianceEntity$Outbound, + z.ZodTypeDef, + SignalsAPINotificationPolicyItemComplianceEntity + > = z.object({ + notificationPolicyItemId: z.nullable(z.string()).optional(), + isCompliant: z.nullable(z.boolean()).optional(), + }).transform((v) => { + return remap$(v, { + notificationPolicyItemId: "notification_policy_item_id", + isCompliant: "is_compliant", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace SignalsAPINotificationPolicyItemComplianceEntity$ { + /** @deprecated use `SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema` instead. */ + export const inboundSchema = + SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema; + /** @deprecated use `SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema` instead. */ + export const outboundSchema = + SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema; + /** @deprecated use `SignalsAPINotificationPolicyItemComplianceEntity$Outbound` instead. */ + export type Outbound = + SignalsAPINotificationPolicyItemComplianceEntity$Outbound; +} + +export function signalsAPINotificationPolicyItemComplianceEntityToJSON( + signalsAPINotificationPolicyItemComplianceEntity: + SignalsAPINotificationPolicyItemComplianceEntity, +): string { + return JSON.stringify( + SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema.parse( + signalsAPINotificationPolicyItemComplianceEntity, + ), + ); +} + +export function signalsAPINotificationPolicyItemComplianceEntityFromJSON( + jsonString: string, +): SafeParseResult< + SignalsAPINotificationPolicyItemComplianceEntity, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'SignalsAPINotificationPolicyItemComplianceEntity' from JSON`, + ); +} diff --git a/src/models/components/tasklistentity.ts b/src/models/components/tasklistentity.ts index 598d9bd1..515a2952 100644 --- a/src/models/components/tasklistentity.ts +++ b/src/models/components/tasklistentity.ts @@ -14,11 +14,11 @@ import { NullableAuthorEntity$outboundSchema, } from "./nullableauthorentity.js"; import { - NullableTaskListItemEntity, - NullableTaskListItemEntity$inboundSchema, - NullableTaskListItemEntity$Outbound, - NullableTaskListItemEntity$outboundSchema, -} from "./nullabletasklistitementity.js"; + TaskListItemEntity, + TaskListItemEntity$inboundSchema, + TaskListItemEntity$Outbound, + TaskListItemEntity$outboundSchema, +} from "./tasklistitementity.js"; /** * TaskListEntity model @@ -30,7 +30,7 @@ export type TaskListEntity = { createdAt?: Date | null | undefined; updatedAt?: Date | null | undefined; createdBy?: NullableAuthorEntity | null | undefined; - taskListItems?: NullableTaskListItemEntity | null | undefined; + taskListItems?: Array | null | undefined; }; /** @internal */ @@ -49,7 +49,7 @@ export const TaskListEntity$inboundSchema: z.ZodType< z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), created_by: z.nullable(NullableAuthorEntity$inboundSchema).optional(), - task_list_items: z.nullable(NullableTaskListItemEntity$inboundSchema) + task_list_items: z.nullable(z.array(TaskListItemEntity$inboundSchema)) .optional(), }).transform((v) => { return remap$(v, { @@ -68,7 +68,7 @@ export type TaskListEntity$Outbound = { created_at?: string | null | undefined; updated_at?: string | null | undefined; created_by?: NullableAuthorEntity$Outbound | null | undefined; - task_list_items?: NullableTaskListItemEntity$Outbound | null | undefined; + task_list_items?: Array | null | undefined; }; /** @internal */ @@ -83,7 +83,7 @@ export const TaskListEntity$outboundSchema: z.ZodType< createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), createdBy: z.nullable(NullableAuthorEntity$outboundSchema).optional(), - taskListItems: z.nullable(NullableTaskListItemEntity$outboundSchema) + taskListItems: z.nullable(z.array(TaskListItemEntity$outboundSchema)) .optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/components/tasklistitementity.ts b/src/models/components/tasklistitementity.ts new file mode 100644 index 00000000..2a7a3904 --- /dev/null +++ b/src/models/components/tasklistitementity.ts @@ -0,0 +1,70 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type TaskListItemEntity = { + summary?: string | null | undefined; + description?: string | null | undefined; +}; + +/** @internal */ +export const TaskListItemEntity$inboundSchema: z.ZodType< + TaskListItemEntity, + z.ZodTypeDef, + unknown +> = z.object({ + summary: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), +}); + +/** @internal */ +export type TaskListItemEntity$Outbound = { + summary?: string | null | undefined; + description?: string | null | undefined; +}; + +/** @internal */ +export const TaskListItemEntity$outboundSchema: z.ZodType< + TaskListItemEntity$Outbound, + z.ZodTypeDef, + TaskListItemEntity +> = z.object({ + summary: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace TaskListItemEntity$ { + /** @deprecated use `TaskListItemEntity$inboundSchema` instead. */ + export const inboundSchema = TaskListItemEntity$inboundSchema; + /** @deprecated use `TaskListItemEntity$outboundSchema` instead. */ + export const outboundSchema = TaskListItemEntity$outboundSchema; + /** @deprecated use `TaskListItemEntity$Outbound` instead. */ + export type Outbound = TaskListItemEntity$Outbound; +} + +export function taskListItemEntityToJSON( + taskListItemEntity: TaskListItemEntity, +): string { + return JSON.stringify( + TaskListItemEntity$outboundSchema.parse(taskListItemEntity), + ); +} + +export function taskListItemEntityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => TaskListItemEntity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TaskListItemEntity' from JSON`, + ); +} diff --git a/src/models/components/updateincidenttype.ts b/src/models/components/updateincidenttype.ts index 6ae770d0..2e354dab 100644 --- a/src/models/components/updateincidenttype.ts +++ b/src/models/components/updateincidenttype.ts @@ -52,6 +52,10 @@ export type UpdateIncidentTypeTemplate = { */ export type UpdateIncidentType = { name: string; + /** + * A description of the incident type + */ + description?: string | null | undefined; template: UpdateIncidentTypeTemplate; }; @@ -228,12 +232,14 @@ export const UpdateIncidentType$inboundSchema: z.ZodType< unknown > = z.object({ name: z.string(), + description: z.nullable(z.string()).optional(), template: z.lazy(() => UpdateIncidentTypeTemplate$inboundSchema), }); /** @internal */ export type UpdateIncidentType$Outbound = { name: string; + description?: string | null | undefined; template: UpdateIncidentTypeTemplate$Outbound; }; @@ -244,6 +250,7 @@ export const UpdateIncidentType$outboundSchema: z.ZodType< UpdateIncidentType > = z.object({ name: z.string(), + description: z.nullable(z.string()).optional(), template: z.lazy(() => UpdateIncidentTypeTemplate$outboundSchema), }); diff --git a/src/models/components/updatesignalsalert.ts b/src/models/components/updatesignalsalert.ts new file mode 100644 index 00000000..e0f4edfc --- /dev/null +++ b/src/models/components/updatesignalsalert.ts @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Update a Signal alert + */ +export type UpdateSignalsAlert = { + /** + * Whether the alert is noisy + */ + noise: boolean; +}; + +/** @internal */ +export const UpdateSignalsAlert$inboundSchema: z.ZodType< + UpdateSignalsAlert, + z.ZodTypeDef, + unknown +> = z.object({ + noise: z.boolean(), +}); + +/** @internal */ +export type UpdateSignalsAlert$Outbound = { + noise: boolean; +}; + +/** @internal */ +export const UpdateSignalsAlert$outboundSchema: z.ZodType< + UpdateSignalsAlert$Outbound, + z.ZodTypeDef, + UpdateSignalsAlert +> = z.object({ + noise: z.boolean(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateSignalsAlert$ { + /** @deprecated use `UpdateSignalsAlert$inboundSchema` instead. */ + export const inboundSchema = UpdateSignalsAlert$inboundSchema; + /** @deprecated use `UpdateSignalsAlert$outboundSchema` instead. */ + export const outboundSchema = UpdateSignalsAlert$outboundSchema; + /** @deprecated use `UpdateSignalsAlert$Outbound` instead. */ + export type Outbound = UpdateSignalsAlert$Outbound; +} + +export function updateSignalsAlertToJSON( + updateSignalsAlert: UpdateSignalsAlert, +): string { + return JSON.stringify( + UpdateSignalsAlert$outboundSchema.parse(updateSignalsAlert), + ); +} + +export function updateSignalsAlertFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateSignalsAlert$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateSignalsAlert' from JSON`, + ); +} diff --git a/src/models/components/userentity.ts b/src/models/components/userentity.ts index 962d419f..0b5db66c 100644 --- a/src/models/components/userentity.ts +++ b/src/models/components/userentity.ts @@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + SignalsAPINotificationPolicyItemComplianceEntity, + SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema, + SignalsAPINotificationPolicyItemComplianceEntity$Outbound, + SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema, +} from "./signalsapinotificationpolicyitemcomplianceentity.js"; /** * UserEntity model @@ -20,6 +26,10 @@ export type UserEntity = { createdAt?: Date | null | undefined; updatedAt?: Date | null | undefined; signalsEnabledNotificationTypes?: Array | null | undefined; + signalsNotificationPolicyCompliance?: + | Array + | null + | undefined; }; /** @internal */ @@ -41,6 +51,9 @@ export const UserEntity$inboundSchema: z.ZodType< ).optional(), signals_enabled_notification_types: z.nullable(z.array(z.string())) .optional(), + signals_notification_policy_compliance: z.nullable( + z.array(SignalsAPINotificationPolicyItemComplianceEntity$inboundSchema), + ).optional(), }).transform((v) => { return remap$(v, { "slack_user_id": "slackUserId", @@ -48,6 +61,8 @@ export const UserEntity$inboundSchema: z.ZodType< "created_at": "createdAt", "updated_at": "updatedAt", "signals_enabled_notification_types": "signalsEnabledNotificationTypes", + "signals_notification_policy_compliance": + "signalsNotificationPolicyCompliance", }); }); @@ -61,6 +76,10 @@ export type UserEntity$Outbound = { created_at?: string | null | undefined; updated_at?: string | null | undefined; signals_enabled_notification_types?: Array | null | undefined; + signals_notification_policy_compliance?: + | Array + | null + | undefined; }; /** @internal */ @@ -77,6 +96,9 @@ export const UserEntity$outboundSchema: z.ZodType< createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), signalsEnabledNotificationTypes: z.nullable(z.array(z.string())).optional(), + signalsNotificationPolicyCompliance: z.nullable( + z.array(SignalsAPINotificationPolicyItemComplianceEntity$outboundSchema), + ).optional(), }).transform((v) => { return remap$(v, { slackUserId: "slack_user_id", @@ -84,6 +106,8 @@ export const UserEntity$outboundSchema: z.ZodType< createdAt: "created_at", updatedAt: "updated_at", signalsEnabledNotificationTypes: "signals_enabled_notification_types", + signalsNotificationPolicyCompliance: + "signals_notification_policy_compliance", }); }); diff --git a/src/models/errors/apierror.ts b/src/models/errors/apierror.ts index 465c98d1..298571fe 100644 --- a/src/models/errors/apierror.ts +++ b/src/models/errors/apierror.ts @@ -25,8 +25,14 @@ export class APIError extends FirehydrantError { }`; } const body = httpMeta.body || `""`; - message += body.length > 100 ? "\n" : " "; - message += `Body ${body}`; + message += body.length > 100 ? "\n" : ". "; + let bodyDisplay = body; + if (body.length > 10000) { + const truncated = body.substring(0, 10000); + const remaining = body.length - 10000; + bodyDisplay = `${truncated}...and ${remaining} more chars`; + } + message += `Body: ${bodyDisplay}`; message = message.trim(); super(message, httpMeta); this.name = "APIError"; diff --git a/src/models/operations/getsignalsnoiseanalytics.ts b/src/models/operations/getsignalsnoiseanalytics.ts new file mode 100644 index 00000000..0b3b761a --- /dev/null +++ b/src/models/operations/getsignalsnoiseanalytics.ts @@ -0,0 +1,328 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * String that determines how records are grouped + */ +export const GetSignalsNoiseAnalyticsBucket = { + Month: "month", + Week: "week", + Day: "day", +} as const; +/** + * String that determines how records are grouped + */ +export type GetSignalsNoiseAnalyticsBucket = ClosedEnum< + typeof GetSignalsNoiseAnalyticsBucket +>; + +/** + * String that determines how records are grouped + */ +export const GetSignalsNoiseAnalyticsGroupBy = { + SignalRules: "signal_rules", + Teams: "teams", + Services: "services", + Environments: "environments", + Tags: "tags", +} as const; +/** + * String that determines how records are grouped + */ +export type GetSignalsNoiseAnalyticsGroupBy = ClosedEnum< + typeof GetSignalsNoiseAnalyticsGroupBy +>; + +/** + * String that determines how records are sorted + */ +export const GetSignalsNoiseAnalyticsSortBy = { + TotalOpenedAlerts: "total_opened_alerts", + TotalAckedAlerts: "total_acked_alerts", + TotalIncidents: "total_incidents", + AckedPercentage: "acked_percentage", + IncidentsPercentage: "incidents_percentage", +} as const; +/** + * String that determines how records are sorted + */ +export type GetSignalsNoiseAnalyticsSortBy = ClosedEnum< + typeof GetSignalsNoiseAnalyticsSortBy +>; + +/** + * String that determines how records are sorted + */ +export const GetSignalsNoiseAnalyticsSortDirection = { + Asc: "asc", + Desc: "desc", +} as const; +/** + * String that determines how records are sorted + */ +export type GetSignalsNoiseAnalyticsSortDirection = ClosedEnum< + typeof GetSignalsNoiseAnalyticsSortDirection +>; + +export type GetSignalsNoiseAnalyticsRequest = { + /** + * String that determines how records are grouped + */ + bucket?: GetSignalsNoiseAnalyticsBucket | null | undefined; + /** + * A comma separated list of signal rule IDs + */ + signalRules?: string | null | undefined; + /** + * A comma separated list of team IDs + */ + teams?: string | null | undefined; + /** + * A comma separated list of environment IDs + */ + environments?: string | null | undefined; + /** + * A comma separated list of service IDs + */ + services?: string | null | undefined; + /** + * A comma separated list of tags + */ + tags?: string | null | undefined; + /** + * A comma separated list of user IDs + */ + users?: string | null | undefined; + /** + * String that determines how records are grouped + */ + groupBy?: GetSignalsNoiseAnalyticsGroupBy | null | undefined; + /** + * String that determines how records are sorted + */ + sortBy?: GetSignalsNoiseAnalyticsSortBy | null | undefined; + /** + * String that determines how records are sorted + */ + sortDirection?: GetSignalsNoiseAnalyticsSortDirection | null | undefined; + /** + * The start date to return metrics from + */ + startDate?: Date | null | undefined; + /** + * The end date to return metrics from + */ + endDate?: Date | null | undefined; +}; + +/** @internal */ +export const GetSignalsNoiseAnalyticsBucket$inboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsBucket +> = z.nativeEnum(GetSignalsNoiseAnalyticsBucket); + +/** @internal */ +export const GetSignalsNoiseAnalyticsBucket$outboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsBucket +> = GetSignalsNoiseAnalyticsBucket$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSignalsNoiseAnalyticsBucket$ { + /** @deprecated use `GetSignalsNoiseAnalyticsBucket$inboundSchema` instead. */ + export const inboundSchema = GetSignalsNoiseAnalyticsBucket$inboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsBucket$outboundSchema` instead. */ + export const outboundSchema = GetSignalsNoiseAnalyticsBucket$outboundSchema; +} + +/** @internal */ +export const GetSignalsNoiseAnalyticsGroupBy$inboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsGroupBy +> = z.nativeEnum(GetSignalsNoiseAnalyticsGroupBy); + +/** @internal */ +export const GetSignalsNoiseAnalyticsGroupBy$outboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsGroupBy +> = GetSignalsNoiseAnalyticsGroupBy$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSignalsNoiseAnalyticsGroupBy$ { + /** @deprecated use `GetSignalsNoiseAnalyticsGroupBy$inboundSchema` instead. */ + export const inboundSchema = GetSignalsNoiseAnalyticsGroupBy$inboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsGroupBy$outboundSchema` instead. */ + export const outboundSchema = GetSignalsNoiseAnalyticsGroupBy$outboundSchema; +} + +/** @internal */ +export const GetSignalsNoiseAnalyticsSortBy$inboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsSortBy +> = z.nativeEnum(GetSignalsNoiseAnalyticsSortBy); + +/** @internal */ +export const GetSignalsNoiseAnalyticsSortBy$outboundSchema: z.ZodNativeEnum< + typeof GetSignalsNoiseAnalyticsSortBy +> = GetSignalsNoiseAnalyticsSortBy$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSignalsNoiseAnalyticsSortBy$ { + /** @deprecated use `GetSignalsNoiseAnalyticsSortBy$inboundSchema` instead. */ + export const inboundSchema = GetSignalsNoiseAnalyticsSortBy$inboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsSortBy$outboundSchema` instead. */ + export const outboundSchema = GetSignalsNoiseAnalyticsSortBy$outboundSchema; +} + +/** @internal */ +export const GetSignalsNoiseAnalyticsSortDirection$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + GetSignalsNoiseAnalyticsSortDirection, + ); + +/** @internal */ +export const GetSignalsNoiseAnalyticsSortDirection$outboundSchema: + z.ZodNativeEnum = + GetSignalsNoiseAnalyticsSortDirection$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSignalsNoiseAnalyticsSortDirection$ { + /** @deprecated use `GetSignalsNoiseAnalyticsSortDirection$inboundSchema` instead. */ + export const inboundSchema = + GetSignalsNoiseAnalyticsSortDirection$inboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsSortDirection$outboundSchema` instead. */ + export const outboundSchema = + GetSignalsNoiseAnalyticsSortDirection$outboundSchema; +} + +/** @internal */ +export const GetSignalsNoiseAnalyticsRequest$inboundSchema: z.ZodType< + GetSignalsNoiseAnalyticsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + bucket: z.nullable(GetSignalsNoiseAnalyticsBucket$inboundSchema).optional(), + signal_rules: z.nullable(z.string()).optional(), + teams: z.nullable(z.string()).optional(), + environments: z.nullable(z.string()).optional(), + services: z.nullable(z.string()).optional(), + tags: z.nullable(z.string()).optional(), + users: z.nullable(z.string()).optional(), + group_by: z.nullable(GetSignalsNoiseAnalyticsGroupBy$inboundSchema) + .optional(), + sort_by: z.nullable(GetSignalsNoiseAnalyticsSortBy$inboundSchema).optional(), + sort_direction: z.nullable( + GetSignalsNoiseAnalyticsSortDirection$inboundSchema, + ).optional(), + start_date: z.nullable( + z.string().datetime({ offset: true }).transform(v => new Date(v)), + ).optional(), + end_date: z.nullable( + z.string().datetime({ offset: true }).transform(v => new Date(v)), + ).optional(), +}).transform((v) => { + return remap$(v, { + "signal_rules": "signalRules", + "group_by": "groupBy", + "sort_by": "sortBy", + "sort_direction": "sortDirection", + "start_date": "startDate", + "end_date": "endDate", + }); +}); + +/** @internal */ +export type GetSignalsNoiseAnalyticsRequest$Outbound = { + bucket?: string | null | undefined; + signal_rules?: string | null | undefined; + teams?: string | null | undefined; + environments?: string | null | undefined; + services?: string | null | undefined; + tags?: string | null | undefined; + users?: string | null | undefined; + group_by?: string | null | undefined; + sort_by?: string | null | undefined; + sort_direction?: string | null | undefined; + start_date?: string | null | undefined; + end_date?: string | null | undefined; +}; + +/** @internal */ +export const GetSignalsNoiseAnalyticsRequest$outboundSchema: z.ZodType< + GetSignalsNoiseAnalyticsRequest$Outbound, + z.ZodTypeDef, + GetSignalsNoiseAnalyticsRequest +> = z.object({ + bucket: z.nullable(GetSignalsNoiseAnalyticsBucket$outboundSchema).optional(), + signalRules: z.nullable(z.string()).optional(), + teams: z.nullable(z.string()).optional(), + environments: z.nullable(z.string()).optional(), + services: z.nullable(z.string()).optional(), + tags: z.nullable(z.string()).optional(), + users: z.nullable(z.string()).optional(), + groupBy: z.nullable(GetSignalsNoiseAnalyticsGroupBy$outboundSchema) + .optional(), + sortBy: z.nullable(GetSignalsNoiseAnalyticsSortBy$outboundSchema).optional(), + sortDirection: z.nullable( + GetSignalsNoiseAnalyticsSortDirection$outboundSchema, + ).optional(), + startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), + endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), +}).transform((v) => { + return remap$(v, { + signalRules: "signal_rules", + groupBy: "group_by", + sortBy: "sort_by", + sortDirection: "sort_direction", + startDate: "start_date", + endDate: "end_date", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSignalsNoiseAnalyticsRequest$ { + /** @deprecated use `GetSignalsNoiseAnalyticsRequest$inboundSchema` instead. */ + export const inboundSchema = GetSignalsNoiseAnalyticsRequest$inboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsRequest$outboundSchema` instead. */ + export const outboundSchema = GetSignalsNoiseAnalyticsRequest$outboundSchema; + /** @deprecated use `GetSignalsNoiseAnalyticsRequest$Outbound` instead. */ + export type Outbound = GetSignalsNoiseAnalyticsRequest$Outbound; +} + +export function getSignalsNoiseAnalyticsRequestToJSON( + getSignalsNoiseAnalyticsRequest: GetSignalsNoiseAnalyticsRequest, +): string { + return JSON.stringify( + GetSignalsNoiseAnalyticsRequest$outboundSchema.parse( + getSignalsNoiseAnalyticsRequest, + ), + ); +} + +export function getSignalsNoiseAnalyticsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetSignalsNoiseAnalyticsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetSignalsNoiseAnalyticsRequest' from JSON`, + ); +} diff --git a/src/models/operations/getsignalstimeseriesanalytics.ts b/src/models/operations/getsignalstimeseriesanalytics.ts index 80e70e27..86fcc546 100644 --- a/src/models/operations/getsignalstimeseriesanalytics.ts +++ b/src/models/operations/getsignalstimeseriesanalytics.ts @@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * String that determines how records are grouped */ -export const Bucket = { +export const GetSignalsTimeseriesAnalyticsBucket = { Month: "month", Week: "week", Day: "day", @@ -20,7 +20,9 @@ export const Bucket = { /** * String that determines how records are grouped */ -export type Bucket = ClosedEnum; +export type GetSignalsTimeseriesAnalyticsBucket = ClosedEnum< + typeof GetSignalsTimeseriesAnalyticsBucket +>; /** * String that determines how records are grouped @@ -74,7 +76,7 @@ export type GetSignalsTimeseriesAnalyticsRequest = { /** * String that determines how records are grouped */ - bucket?: Bucket | null | undefined; + bucket?: GetSignalsTimeseriesAnalyticsBucket | null | undefined; /** * A comma separated list of signal rule IDs */ @@ -122,22 +124,26 @@ export type GetSignalsTimeseriesAnalyticsRequest = { }; /** @internal */ -export const Bucket$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Bucket); +export const GetSignalsTimeseriesAnalyticsBucket$inboundSchema: z.ZodNativeEnum< + typeof GetSignalsTimeseriesAnalyticsBucket +> = z.nativeEnum(GetSignalsTimeseriesAnalyticsBucket); /** @internal */ -export const Bucket$outboundSchema: z.ZodNativeEnum = - Bucket$inboundSchema; +export const GetSignalsTimeseriesAnalyticsBucket$outboundSchema: + z.ZodNativeEnum = + GetSignalsTimeseriesAnalyticsBucket$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Bucket$ { - /** @deprecated use `Bucket$inboundSchema` instead. */ - export const inboundSchema = Bucket$inboundSchema; - /** @deprecated use `Bucket$outboundSchema` instead. */ - export const outboundSchema = Bucket$outboundSchema; +export namespace GetSignalsTimeseriesAnalyticsBucket$ { + /** @deprecated use `GetSignalsTimeseriesAnalyticsBucket$inboundSchema` instead. */ + export const inboundSchema = + GetSignalsTimeseriesAnalyticsBucket$inboundSchema; + /** @deprecated use `GetSignalsTimeseriesAnalyticsBucket$outboundSchema` instead. */ + export const outboundSchema = + GetSignalsTimeseriesAnalyticsBucket$outboundSchema; } /** @internal */ @@ -216,7 +222,8 @@ export const GetSignalsTimeseriesAnalyticsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - bucket: z.nullable(Bucket$inboundSchema).optional(), + bucket: z.nullable(GetSignalsTimeseriesAnalyticsBucket$inboundSchema) + .optional(), signal_rules: z.nullable(z.string()).optional(), teams: z.nullable(z.string()).optional(), environments: z.nullable(z.string()).optional(), @@ -269,7 +276,8 @@ export const GetSignalsTimeseriesAnalyticsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSignalsTimeseriesAnalyticsRequest > = z.object({ - bucket: z.nullable(Bucket$outboundSchema).optional(), + bucket: z.nullable(GetSignalsTimeseriesAnalyticsBucket$outboundSchema) + .optional(), signalRules: z.nullable(z.string()).optional(), teams: z.nullable(z.string()).optional(), environments: z.nullable(z.string()).optional(), diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index c3bf22d7..bc7dcb93 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -170,6 +170,7 @@ export * from "./getsignalseventsource.js"; export * from "./getsignalsgroupedmetrics.js"; export * from "./getsignalsingesturl.js"; export * from "./getsignalsmttxanalytics.js"; +export * from "./getsignalsnoiseanalytics.js"; export * from "./getsignalstimeseriesanalytics.js"; export * from "./getsignalswebhooktarget.js"; export * from "./getslackemojiaction.js"; @@ -355,6 +356,7 @@ export * from "./updateservicedependency.js"; export * from "./updateseverity.js"; export * from "./updateseveritymatrixcondition.js"; export * from "./updateseveritymatriximpact.js"; +export * from "./updatesignalsalert.js"; export * from "./updatesignalsalertgroupingconfiguration.js"; export * from "./updatesignalsemailtarget.js"; export * from "./updatesignalswebhooktarget.js"; diff --git a/src/models/operations/updatesignalsalert.ts b/src/models/operations/updatesignalsalert.ts new file mode 100644 index 00000000..61354945 --- /dev/null +++ b/src/models/operations/updatesignalsalert.ts @@ -0,0 +1,84 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type UpdateSignalsAlertRequest = { + id: string; + updateSignalsAlert: components.UpdateSignalsAlert; +}; + +/** @internal */ +export const UpdateSignalsAlertRequest$inboundSchema: z.ZodType< + UpdateSignalsAlertRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + update_signals_alert: z.lazy(() => + components.UpdateSignalsAlert$inboundSchema + ), +}).transform((v) => { + return remap$(v, { + "update_signals_alert": "updateSignalsAlert", + }); +}); + +/** @internal */ +export type UpdateSignalsAlertRequest$Outbound = { + id: string; + update_signals_alert: components.UpdateSignalsAlert$Outbound; +}; + +/** @internal */ +export const UpdateSignalsAlertRequest$outboundSchema: z.ZodType< + UpdateSignalsAlertRequest$Outbound, + z.ZodTypeDef, + UpdateSignalsAlertRequest +> = z.object({ + id: z.string(), + updateSignalsAlert: z.lazy(() => + components.UpdateSignalsAlert$outboundSchema + ), +}).transform((v) => { + return remap$(v, { + updateSignalsAlert: "update_signals_alert", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateSignalsAlertRequest$ { + /** @deprecated use `UpdateSignalsAlertRequest$inboundSchema` instead. */ + export const inboundSchema = UpdateSignalsAlertRequest$inboundSchema; + /** @deprecated use `UpdateSignalsAlertRequest$outboundSchema` instead. */ + export const outboundSchema = UpdateSignalsAlertRequest$outboundSchema; + /** @deprecated use `UpdateSignalsAlertRequest$Outbound` instead. */ + export type Outbound = UpdateSignalsAlertRequest$Outbound; +} + +export function updateSignalsAlertRequestToJSON( + updateSignalsAlertRequest: UpdateSignalsAlertRequest, +): string { + return JSON.stringify( + UpdateSignalsAlertRequest$outboundSchema.parse(updateSignalsAlertRequest), + ); +} + +export function updateSignalsAlertRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateSignalsAlertRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateSignalsAlertRequest' from JSON`, + ); +} diff --git a/src/sdk/alerts.ts b/src/sdk/alerts.ts index 89b4f2d5..c9610c75 100644 --- a/src/sdk/alerts.ts +++ b/src/sdk/alerts.ts @@ -9,6 +9,7 @@ import { alertsListAlerts } from "../funcs/alertsListAlerts.js"; import { alertsListIncidentAlerts } from "../funcs/alertsListIncidentAlerts.js"; import { alertsListProcessingLogEntries } from "../funcs/alertsListProcessingLogEntries.js"; import { alertsUpdateIncidentAlertPrimary } from "../funcs/alertsUpdateIncidentAlertPrimary.js"; +import { alertsUpdateSignalsAlert } from "../funcs/alertsUpdateSignalsAlert.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -133,4 +134,21 @@ export class Alerts extends ClientSDK { options, )); } + + /** + * Update a Signal alert + * + * @remarks + * Update a Signal alert + */ + async updateSignalsAlert( + request: operations.UpdateSignalsAlertRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(alertsUpdateSignalsAlert( + this, + request, + options, + )); + } } diff --git a/src/sdk/metricsreporting.ts b/src/sdk/metricsreporting.ts index 35aadc24..a6e68aed 100644 --- a/src/sdk/metricsreporting.ts +++ b/src/sdk/metricsreporting.ts @@ -8,6 +8,7 @@ import { metricsReportingGetMeanTimeReport } from "../funcs/metricsReportingGetM import { metricsReportingGetSavedSearch } from "../funcs/metricsReportingGetSavedSearch.js"; import { metricsReportingGetSignalsGroupedMetrics } from "../funcs/metricsReportingGetSignalsGroupedMetrics.js"; import { metricsReportingGetSignalsMttxAnalytics } from "../funcs/metricsReportingGetSignalsMttxAnalytics.js"; +import { metricsReportingGetSignalsNoiseAnalytics } from "../funcs/metricsReportingGetSignalsNoiseAnalytics.js"; import { metricsReportingGetSignalsTimeseriesAnalytics } from "../funcs/metricsReportingGetSignalsTimeseriesAnalytics.js"; import { metricsReportingListIncidentMetrics } from "../funcs/metricsReportingListIncidentMetrics.js"; import { metricsReportingListInfrastructureMetrics } from "../funcs/metricsReportingListInfrastructureMetrics.js"; @@ -259,4 +260,21 @@ export class MetricsReporting extends ClientSDK { options, )); } + + /** + * Get noise analytics for signals + * + * @remarks + * Get noise metrics for Signals alerts + */ + async getSignalsNoiseAnalytics( + request: operations.GetSignalsNoiseAnalyticsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(metricsReportingGetSignalsNoiseAnalytics( + this, + request, + options, + )); + } } diff --git a/src/sdk/signals.ts b/src/sdk/signals.ts index 8dc651be..b22db5fa 100644 --- a/src/sdk/signals.ts +++ b/src/sdk/signals.ts @@ -23,6 +23,7 @@ import { signalsGetOnCallShift } from "../funcs/signalsGetOnCallShift.js"; import { signalsGetSignalsAlertGroupingConfiguration } from "../funcs/signalsGetSignalsAlertGroupingConfiguration.js"; import { signalsGetSignalsEmailTarget } from "../funcs/signalsGetSignalsEmailTarget.js"; import { signalsGetSignalsEventSource } from "../funcs/signalsGetSignalsEventSource.js"; +import { signalsGetSignalsHackerMode } from "../funcs/signalsGetSignalsHackerMode.js"; import { signalsGetSignalsIngestUrl } from "../funcs/signalsGetSignalsIngestUrl.js"; import { signalsGetSignalsWebhookTarget } from "../funcs/signalsGetSignalsWebhookTarget.js"; import { signalsGetTeamEscalationPolicy } from "../funcs/signalsGetTeamEscalationPolicy.js"; @@ -443,6 +444,21 @@ export class Signals extends ClientSDK { )); } + /** + * Get hacker mode status + * + * @remarks + * Get the status of the hacker mode for the current user + */ + async getSignalsHackerMode( + options?: RequestOptions, + ): Promise { + return unwrapAsync(signalsGetSignalsHackerMode( + this, + options, + )); + } + /** * List alert grouping configurations. *