@dynatrace-sdk/client-classic-environment-v2 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/README.md +1166 -216
  3. package/cjs/index.js +4530 -3687
  4. package/dynatrace-metadata.json +2 -2
  5. package/esm/index.js +3559 -2904
  6. package/package.json +3 -4
  7. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-active-gate-tokens-api.d.ts +1 -1
  8. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-agent-tokens-api.d.ts +1 -1
  9. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-api-tokens-api.d.ts +1 -1
  10. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-tenant-tokens-api.d.ts +1 -1
  11. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-active-gate-groups-api.d.ts +1 -1
  12. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-api.d.ts +1 -1
  13. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-configuration-api.d.ts +1 -1
  14. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-jobs-api.d.ts +1 -1
  15. package/types/packages/{shared-client-utils/src → client/classic-environment-v2/src/lib/apis}/api-client-options.d.ts +1 -1
  16. package/types/packages/client/classic-environment-v2/src/lib/apis/attacks-api.d.ts +1 -1
  17. package/types/packages/client/classic-environment-v2/src/lib/apis/audit-logs-api.d.ts +1 -1
  18. package/types/packages/client/classic-environment-v2/src/lib/apis/business-events-api.d.ts +1 -1
  19. package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +1 -1
  20. package/types/packages/client/classic-environment-v2/src/lib/apis/davis-security-advisor-api.d.ts +1 -1
  21. package/types/packages/client/classic-environment-v2/src/lib/apis/events-api.d.ts +1 -1
  22. package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +3 -2
  23. package/types/packages/client/classic-environment-v2/src/lib/apis/index.d.ts +1 -0
  24. package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +1 -1
  25. package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +1 -1
  26. package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-units-api.d.ts +1 -1
  27. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +5 -1
  28. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-custom-tags-api.d.ts +1 -1
  29. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-monitoring-state-api.d.ts +1 -1
  30. package/types/packages/client/classic-environment-v2/src/lib/apis/network-zones-api.d.ts +1 -1
  31. package/types/packages/client/classic-environment-v2/src/lib/apis/problems-api.d.ts +1 -1
  32. package/types/packages/client/classic-environment-v2/src/lib/apis/releases-api.d.ts +1 -1
  33. package/types/packages/client/classic-environment-v2/src/lib/apis/rum-manual-insertion-tags-api.d.ts +117 -0
  34. package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts +1 -1
  35. package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts +1 -1
  36. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-management-zones-api.d.ts +1 -1
  37. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +1 -1
  38. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +1 -1
  39. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-http-monitor-executions-api.d.ts +1 -1
  40. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +1 -1
  41. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +1 -1
  42. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-on-demand-monitor-executions-api.d.ts +1 -1
  43. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-gateway-errors-handler.d.ts +2 -0
  44. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/error-envelope-array-error.d.ts +9 -0
  45. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/get-error-message.d.ts +1 -0
  46. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/index.d.ts +1 -0
  47. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create-scopes-item.d.ts +2 -1
  48. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create.d.ts +2 -1
  49. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-scopes-item.d.ts +1 -0
  50. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update-scopes-item.d.ts +2 -1
  51. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update.d.ts +2 -1
  52. package/types/packages/client/classic-environment-v2/src/lib/models/api-token.d.ts +1 -1
  53. package/types/packages/client/classic-environment-v2/src/lib/models/get-java-script-tag-query-script-execution-attribute.d.ts +8 -0
  54. package/types/packages/client/classic-environment-v2/src/lib/models/get-one-agent-java-script-tag-query-script-execution-attribute.d.ts +8 -0
  55. package/types/packages/client/classic-environment-v2/src/lib/models/get-one-agent-java-script-tag-with-sri-query-script-execution-attribute.d.ts +8 -0
  56. package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +3 -0
  57. package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +1 -1
  58. package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.d.ts +4 -0
  59. package/types/packages/client/classic-environment-v2/src/lib/utils/encoding.d.ts +10 -0
  60. package/types/packages/client/classic-environment-v2/src/lib/utils/transformations.d.ts +8 -0
  61. package/types/packages/client/classic-environment-v2/src/lib/utils/url-helpers.d.ts +6 -0
  62. package/types/packages/shared-errors/src/client-request-error.d.ts +1 -1
  63. package/types/packages/shared-errors/src/types.d.ts +1 -1
  64. package/types/packages/shared-client-utils/src/api-gateway-errors-handler.d.ts +0 -9
  65. package/types/packages/shared-client-utils/src/encoding.d.ts +0 -17
  66. package/types/packages/shared-client-utils/src/get-error-message.d.ts +0 -8
  67. package/types/packages/shared-client-utils/src/index.d.ts +0 -6
  68. package/types/packages/shared-client-utils/src/transformations.d.ts +0 -64
  69. package/types/packages/shared-client-utils/src/url-helpers.d.ts +0 -12
@@ -123,6 +123,7 @@ export interface ApiTokenCreate {
123
123
  * * `extensionConfigurationActions.write`: Actions for extension monitoring configurations.
124
124
  * * `rumCookieNames.read`: Read RUM cookie names.
125
125
  * * `adaptiveTrafficManagement.read`: Read sampling configuration for Adaptive Traffic Management.
126
+ * * `rumManualInsertionTags.read`: Read RUM manual insertion tags.
126
127
  */
127
- scopes: Array<'InstallerDownload' | 'DataExport' | 'PluginUpload' | 'SupportAlert' | 'AdvancedSyntheticIntegration' | 'ExternalSyntheticIntegration' | 'RumBrowserExtension' | 'LogExport' | 'ReadConfig' | 'WriteConfig' | 'DTAQLAccess' | 'UserSessionAnonymization' | 'DataPrivacy' | 'CaptureRequestData' | 'Davis' | 'DssFileManagement' | 'RumJavaScriptTagManagement' | 'TenantTokenManagement' | 'ActiveGateCertManagement' | 'RestRequestForwarding' | 'ReadSyntheticData' | 'DataImport' | 'syntheticExecutions.write' | 'syntheticExecutions.read' | 'auditLogs.read' | 'metrics.read' | 'metrics.write' | 'entities.read' | 'entities.write' | 'problems.read' | 'problems.write' | 'events.read' | 'events.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'bizevents.ingest' | 'analyzers.read' | 'analyzers.write' | 'networkZones.read' | 'networkZones.write' | 'activeGates.read' | 'activeGates.write' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.write' | 'agentTokenManagement.read' | 'credentialVault.read' | 'credentialVault.write' | 'extensions.read' | 'extensions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'metrics.ingest' | 'attacks.read' | 'attacks.write' | 'securityProblems.read' | 'securityProblems.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'settings.read' | 'settings.write' | 'tenantTokenRotation.write' | 'slo.read' | 'slo.write' | 'releases.read' | 'apiTokens.read' | 'apiTokens.write' | 'openTelemetryTrace.ingest' | 'logs.read' | 'logs.ingest' | 'geographicRegions.read' | 'oneAgents.read' | 'oneAgents.write' | 'traces.lookup' | 'unifiedAnalysis.read' | 'hub.read' | 'hub.write' | 'hub.install' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'extensionConfigurationActions.write' | 'rumCookieNames.read' | 'adaptiveTrafficManagement.read'>;
128
+ scopes: Array<'InstallerDownload' | 'DataExport' | 'PluginUpload' | 'SupportAlert' | 'AdvancedSyntheticIntegration' | 'ExternalSyntheticIntegration' | 'RumBrowserExtension' | 'LogExport' | 'ReadConfig' | 'WriteConfig' | 'DTAQLAccess' | 'UserSessionAnonymization' | 'DataPrivacy' | 'CaptureRequestData' | 'Davis' | 'DssFileManagement' | 'RumJavaScriptTagManagement' | 'TenantTokenManagement' | 'ActiveGateCertManagement' | 'RestRequestForwarding' | 'ReadSyntheticData' | 'DataImport' | 'syntheticExecutions.write' | 'syntheticExecutions.read' | 'auditLogs.read' | 'metrics.read' | 'metrics.write' | 'entities.read' | 'entities.write' | 'problems.read' | 'problems.write' | 'events.read' | 'events.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'bizevents.ingest' | 'analyzers.read' | 'analyzers.write' | 'networkZones.read' | 'networkZones.write' | 'activeGates.read' | 'activeGates.write' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.write' | 'agentTokenManagement.read' | 'credentialVault.read' | 'credentialVault.write' | 'extensions.read' | 'extensions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'metrics.ingest' | 'attacks.read' | 'attacks.write' | 'securityProblems.read' | 'securityProblems.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'settings.read' | 'settings.write' | 'tenantTokenRotation.write' | 'slo.read' | 'slo.write' | 'releases.read' | 'apiTokens.read' | 'apiTokens.write' | 'openTelemetryTrace.ingest' | 'logs.read' | 'logs.ingest' | 'geographicRegions.read' | 'oneAgents.read' | 'oneAgents.write' | 'traces.lookup' | 'unifiedAnalysis.read' | 'hub.read' | 'hub.write' | 'hub.install' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'extensionConfigurationActions.write' | 'rumCookieNames.read' | 'adaptiveTrafficManagement.read' | 'rumManualInsertionTags.read'>;
128
129
  }
@@ -84,6 +84,7 @@ export declare enum ApiTokenScopesItem {
84
84
  ProblemsWrite = "problems.write",
85
85
  ReleasesRead = "releases.read",
86
86
  RumCookieNamesRead = "rumCookieNames.read",
87
+ RumManualInsertionTagsRead = "rumManualInsertionTags.read",
87
88
  SecurityProblemsRead = "securityProblems.read",
88
89
  SecurityProblemsWrite = "securityProblems.write",
89
90
  SettingsRead = "settings.read",
@@ -90,5 +90,6 @@ export declare enum ApiTokenUpdateScopesItem {
90
90
  JavaScriptMappingFilesWrite = "javaScriptMappingFiles.write",
91
91
  ExtensionConfigurationActionsWrite = "extensionConfigurationActions.write",
92
92
  RumCookieNamesRead = "rumCookieNames.read",
93
- AdaptiveTrafficManagementRead = "adaptiveTrafficManagement.read"
93
+ AdaptiveTrafficManagementRead = "adaptiveTrafficManagement.read",
94
+ RumManualInsertionTagsRead = "rumManualInsertionTags.read"
94
95
  }
@@ -104,6 +104,7 @@ export interface ApiTokenUpdate {
104
104
  * * `extensionConfigurationActions.write`: Actions for extension monitoring configurations.
105
105
  * * `rumCookieNames.read`: Read RUM cookie names.
106
106
  * * `adaptiveTrafficManagement.read`: Read sampling configuration for Adaptive Traffic Management.
107
+ * * `rumManualInsertionTags.read`: Read RUM manual insertion tags.
107
108
  */
108
- scopes?: Array<'InstallerDownload' | 'DataExport' | 'PluginUpload' | 'SupportAlert' | 'AdvancedSyntheticIntegration' | 'ExternalSyntheticIntegration' | 'RumBrowserExtension' | 'LogExport' | 'ReadConfig' | 'WriteConfig' | 'DTAQLAccess' | 'UserSessionAnonymization' | 'DataPrivacy' | 'CaptureRequestData' | 'Davis' | 'DssFileManagement' | 'RumJavaScriptTagManagement' | 'TenantTokenManagement' | 'ActiveGateCertManagement' | 'RestRequestForwarding' | 'ReadSyntheticData' | 'DataImport' | 'syntheticExecutions.write' | 'syntheticExecutions.read' | 'auditLogs.read' | 'metrics.read' | 'metrics.write' | 'entities.read' | 'entities.write' | 'problems.read' | 'problems.write' | 'events.read' | 'events.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'bizevents.ingest' | 'analyzers.read' | 'analyzers.write' | 'networkZones.read' | 'networkZones.write' | 'activeGates.read' | 'activeGates.write' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.write' | 'agentTokenManagement.read' | 'credentialVault.read' | 'credentialVault.write' | 'extensions.read' | 'extensions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'metrics.ingest' | 'attacks.read' | 'attacks.write' | 'securityProblems.read' | 'securityProblems.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'settings.read' | 'settings.write' | 'tenantTokenRotation.write' | 'slo.read' | 'slo.write' | 'releases.read' | 'apiTokens.read' | 'apiTokens.write' | 'openTelemetryTrace.ingest' | 'logs.read' | 'logs.ingest' | 'geographicRegions.read' | 'oneAgents.read' | 'oneAgents.write' | 'traces.lookup' | 'unifiedAnalysis.read' | 'hub.read' | 'hub.write' | 'hub.install' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'extensionConfigurationActions.write' | 'rumCookieNames.read' | 'adaptiveTrafficManagement.read'>;
109
+ scopes?: Array<'InstallerDownload' | 'DataExport' | 'PluginUpload' | 'SupportAlert' | 'AdvancedSyntheticIntegration' | 'ExternalSyntheticIntegration' | 'RumBrowserExtension' | 'LogExport' | 'ReadConfig' | 'WriteConfig' | 'DTAQLAccess' | 'UserSessionAnonymization' | 'DataPrivacy' | 'CaptureRequestData' | 'Davis' | 'DssFileManagement' | 'RumJavaScriptTagManagement' | 'TenantTokenManagement' | 'ActiveGateCertManagement' | 'RestRequestForwarding' | 'ReadSyntheticData' | 'DataImport' | 'syntheticExecutions.write' | 'syntheticExecutions.read' | 'auditLogs.read' | 'metrics.read' | 'metrics.write' | 'entities.read' | 'entities.write' | 'problems.read' | 'problems.write' | 'events.read' | 'events.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'bizevents.ingest' | 'analyzers.read' | 'analyzers.write' | 'networkZones.read' | 'networkZones.write' | 'activeGates.read' | 'activeGates.write' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.write' | 'agentTokenManagement.read' | 'credentialVault.read' | 'credentialVault.write' | 'extensions.read' | 'extensions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'metrics.ingest' | 'attacks.read' | 'attacks.write' | 'securityProblems.read' | 'securityProblems.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'settings.read' | 'settings.write' | 'tenantTokenRotation.write' | 'slo.read' | 'slo.write' | 'releases.read' | 'apiTokens.read' | 'apiTokens.write' | 'openTelemetryTrace.ingest' | 'logs.read' | 'logs.ingest' | 'geographicRegions.read' | 'oneAgents.read' | 'oneAgents.write' | 'traces.lookup' | 'unifiedAnalysis.read' | 'hub.read' | 'hub.write' | 'hub.install' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'extensionConfigurationActions.write' | 'rumCookieNames.read' | 'adaptiveTrafficManagement.read' | 'rumManualInsertionTags.read'>;
109
110
  }
@@ -55,5 +55,5 @@ export interface ApiToken {
55
55
  /**
56
56
  * A list of scopes assigned to the token.
57
57
  */
58
- scopes?: Array<'ActiveGateCertManagement' | 'AdvancedSyntheticIntegration' | 'CaptureRequestData' | 'DTAQLAccess' | 'DataExport' | 'DataImport' | 'DataPrivacy' | 'Davis' | 'DiagnosticExport' | 'DssFileManagement' | 'ExternalSyntheticIntegration' | 'InstallerDownload' | 'LogExport' | 'MemoryDump' | 'Mobile' | 'PluginUpload' | 'ReadConfig' | 'ReadSyntheticData' | 'RestRequestForwarding' | 'RumBrowserExtension' | 'RumJavaScriptTagManagement' | 'SupportAlert' | 'TenantTokenManagement' | 'UserSessionAnonymization' | 'ViewDashboard' | 'ViewReport' | 'WriteConfig' | 'WriteSyntheticData' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.write' | 'activeGates.read' | 'activeGates.write' | 'adaptiveTrafficManagement.read' | 'agentTokenManagement.read' | 'analyzers.read' | 'analyzers.write' | 'apiTokens.read' | 'apiTokens.write' | 'attacks.read' | 'attacks.write' | 'auditLogs.read' | 'bizevents.ingest' | 'credentialVault.read' | 'credentialVault.write' | 'entities.read' | 'entities.write' | 'events.ingest' | 'events.read' | 'extensionConfigurationActions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'extensions.read' | 'extensions.write' | 'geographicRegions.read' | 'hub.install' | 'hub.read' | 'hub.write' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'logs.ingest' | 'logs.read' | 'metrics.ingest' | 'metrics.read' | 'metrics.write' | 'networkZones.read' | 'networkZones.write' | 'oneAgents.read' | 'oneAgents.write' | 'openTelemetryTrace.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'problems.read' | 'problems.write' | 'releases.read' | 'rumCookieNames.read' | 'securityProblems.read' | 'securityProblems.write' | 'settings.read' | 'settings.write' | 'slo.read' | 'slo.write' | 'syntheticExecutions.read' | 'syntheticExecutions.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'tenantTokenRotation.write' | 'traces.lookup' | 'unifiedAnalysis.read'>;
58
+ scopes?: Array<'ActiveGateCertManagement' | 'AdvancedSyntheticIntegration' | 'CaptureRequestData' | 'DTAQLAccess' | 'DataExport' | 'DataImport' | 'DataPrivacy' | 'Davis' | 'DiagnosticExport' | 'DssFileManagement' | 'ExternalSyntheticIntegration' | 'InstallerDownload' | 'LogExport' | 'MemoryDump' | 'Mobile' | 'PluginUpload' | 'ReadConfig' | 'ReadSyntheticData' | 'RestRequestForwarding' | 'RumBrowserExtension' | 'RumJavaScriptTagManagement' | 'SupportAlert' | 'TenantTokenManagement' | 'UserSessionAnonymization' | 'ViewDashboard' | 'ViewReport' | 'WriteConfig' | 'WriteSyntheticData' | 'activeGateTokenManagement.create' | 'activeGateTokenManagement.read' | 'activeGateTokenManagement.write' | 'activeGates.read' | 'activeGates.write' | 'adaptiveTrafficManagement.read' | 'agentTokenManagement.read' | 'analyzers.read' | 'analyzers.write' | 'apiTokens.read' | 'apiTokens.write' | 'attacks.read' | 'attacks.write' | 'auditLogs.read' | 'bizevents.ingest' | 'credentialVault.read' | 'credentialVault.write' | 'entities.read' | 'entities.write' | 'events.ingest' | 'events.read' | 'extensionConfigurationActions.write' | 'extensionConfigurations.read' | 'extensionConfigurations.write' | 'extensionEnvironment.read' | 'extensionEnvironment.write' | 'extensions.read' | 'extensions.write' | 'geographicRegions.read' | 'hub.install' | 'hub.read' | 'hub.write' | 'javaScriptMappingFiles.read' | 'javaScriptMappingFiles.write' | 'logs.ingest' | 'logs.read' | 'metrics.ingest' | 'metrics.read' | 'metrics.write' | 'networkZones.read' | 'networkZones.write' | 'oneAgents.read' | 'oneAgents.write' | 'openTelemetryTrace.ingest' | 'openpipeline.events' | 'openpipeline.events.custom' | 'openpipeline.events_sdlc' | 'openpipeline.events_sdlc.custom' | 'openpipeline.events_security' | 'openpipeline.events_security.custom' | 'problems.read' | 'problems.write' | 'releases.read' | 'rumCookieNames.read' | 'rumManualInsertionTags.read' | 'securityProblems.read' | 'securityProblems.write' | 'settings.read' | 'settings.write' | 'slo.read' | 'slo.write' | 'syntheticExecutions.read' | 'syntheticExecutions.write' | 'syntheticLocations.read' | 'syntheticLocations.write' | 'tenantTokenRotation.write' | 'traces.lookup' | 'unifiedAnalysis.read'>;
59
59
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @deprecated Use literal values.
3
+ */
4
+ export declare enum GetJavaScriptTagQueryScriptExecutionAttribute {
5
+ Async = "ASYNC",
6
+ Defer = "DEFER",
7
+ None = "NONE"
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @deprecated Use literal values.
3
+ */
4
+ export declare enum GetOneAgentJavaScriptTagQueryScriptExecutionAttribute {
5
+ Async = "ASYNC",
6
+ Defer = "DEFER",
7
+ None = "NONE"
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @deprecated Use literal values.
3
+ */
4
+ export declare enum GetOneAgentJavaScriptTagWithSriQueryScriptExecutionAttribute {
5
+ Async = "ASYNC",
6
+ Defer = "DEFER",
7
+ None = "NONE"
8
+ }
@@ -248,10 +248,13 @@ export * from './get-executions-query-execution-stage';
248
248
  export * from './get-executions-query-source';
249
249
  export * from './get-extension-monitoring-configuration-events-query-status';
250
250
  export * from './get-host-stats-query-filter';
251
+ export * from './get-java-script-tag-query-script-execution-attribute';
251
252
  export * from './get-locations-query-capability';
252
253
  export * from './get-locations-query-cloud-platform';
253
254
  export * from './get-locations-query-type';
254
255
  export * from './get-nodes-query-assigned-to-location';
256
+ export * from './get-one-agent-java-script-tag-query-script-execution-attribute';
257
+ export * from './get-one-agent-java-script-tag-with-sri-query-script-execution-attribute';
255
258
  export * from './get-permission-path-accessor-type';
256
259
  export * from './get-slo-by-id-query-time-frame';
257
260
  export * from './get-slo-query-enabled-slos';
@@ -8,7 +8,7 @@ The object might contain the following types of keys (the possible key values ar
8
8
  * The timestamp for a log event is not limited to future time. If the log event contains a timestamp later than 10 minutes in the future, the timestamp of the event will be overridden by the current time on the server.
9
9
  * The following formats are supported: UTC milliseconds, RFC3339, and RFC3164. For the missing timestamp, the current timestamp is used. For the unsupported timestamp format, the current timestamp is used, and the value of the unsupported timestamp format is stored in the `unparsed_timestamp` attribute (for Log Monitoring Classic, this attribute isn't indexed).
10
10
  * **Severity.** If not set, `NONE` is used.
11
- * **Content.** If the content key is not set, the whole JSON is parsed as the content.
11
+ * **Content.** If the content key is not set or contains JSON object, the content field is filled in with the string representation of the whole ingested JSON object.
12
12
  * **Attributes:**
13
13
  * Logs on Grail with OpenPipeline custom processing (Dynatrace SaaS version 1.295+, Environment ActiveGate version 1.295+): All JSON data types (string, number, boolean, null) are supported. All attributes are indexed and can be used in queries. Keys are case-sensitive.
14
14
  * Logs on Grail without OpenPipeline custom processing: Only values of the `string` type are supported. All attributes are indexed and can be used in queries. Keys are case-insensitive (lowercased).
@@ -11,6 +11,10 @@ export interface SchemaConstraintRestDto {
11
11
  * The ID of a custom validator.
12
12
  */
13
13
  customValidatorId?: string;
14
+ /**
15
+ * Whether to flatten collection properties when checking for uniqueness, so only disjoint collections are considered unique
16
+ */
17
+ flattenCollections?: boolean;
14
18
  /**
15
19
  * Whether to skip validation on a change made from the UI.
16
20
  */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Available formats to transform models to and from
3
+ */
4
+ export declare enum Encoding {
5
+ Json = "json",
6
+ Text = "text",
7
+ Binary = "binary",
8
+ FormData = "form-data"
9
+ }
10
+ export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
@@ -0,0 +1,8 @@
1
+ type TransformRuleConfig = {
2
+ force?: boolean;
3
+ datetime?: boolean;
4
+ };
5
+ type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
6
+ export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
7
+ export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ type QueryParamsType = Record<string | number, any>;
2
+ interface ParametersFlags {
3
+ explode?: Record<string, boolean>;
4
+ }
5
+ export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;
6
+ export {};
@@ -36,4 +36,4 @@ export declare class ClientRequestError<DTO = ErrorResponseBody> extends ApiClie
36
36
  * }
37
37
  * }
38
38
  */
39
- export declare function isClientRequestError(e: any): e is ClientRequestError;
39
+ export declare function isClientRequestError<T = ErrorResponseBody>(e: any): e is ClientRequestError<T>;
@@ -16,7 +16,7 @@ export interface ErrorResponseBody<T = CommonApiError> {
16
16
  /**
17
17
  * Common API error structure, established by Dynatrace API guidelines.
18
18
  * */
19
- export interface CommonApiError<T extends Record<string, any> = Record<string, any>> {
19
+ export interface CommonApiError<T extends CommonErrorDetails & Record<string, any> = CommonErrorDetails & Record<string, any>> {
20
20
  /** The error code should be set to the HTTP error code by default.<br>
21
21
  * The error code may be set to an API-specific error code which must be properly documented.*/
22
22
  code: number;
@@ -1,9 +0,0 @@
1
- import type { HttpClientResponse } from '@dynatrace-sdk/http-client';
2
- /**
3
- * Handles errors from API Gateway responses.
4
- * Throws an ApiGatewayError if the response source is 'API Gateway'.
5
- *
6
- * @param {HttpClientResponse} response - The HTTP response to check for API Gateway errors.
7
- * @throws {ApiGatewayError} If the response is from API Gateway and contains an error.
8
- */
9
- export declare function apiGatewayErrorsHandler(response: HttpClientResponse): Promise<void>;
@@ -1,17 +0,0 @@
1
- /**
2
- * Available formats to transform models to and from
3
- */
4
- export declare enum Encoding {
5
- Json = "json",
6
- Text = "text",
7
- Binary = "binary",
8
- FormData = "form-data"
9
- }
10
- /**
11
- * Maps a MIME type string to an Encoding.
12
- *
13
- * @param {string} mimeType - The MIME type to convert (e.g., 'application/json').
14
- * @param {Encoding} [defaultEncoding] - The encoding to return if the MIME type isn't recognized.
15
- * @returns {Encoding} The corresponding Encoding enum value, or the defaultEncoding if not recognized.
16
- */
17
- export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
@@ -1,8 +0,0 @@
1
- /**
2
- * Returns a user-friendly error message from an error body object.
3
- *
4
- * @param {unknown} errorBody - The error object or response body to extract the message from.
5
- * @param {string} defaultMessage - The default message to use if no error message is found.
6
- * @returns {string} The extracted or default error message, possibly including details.
7
- */
8
- export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
@@ -1,6 +0,0 @@
1
- export * from './api-client-options';
2
- export * from './api-gateway-errors-handler';
3
- export * from './encoding';
4
- export * from './get-error-message';
5
- export * from './transformations';
6
- export * from './url-helpers';
@@ -1,64 +0,0 @@
1
- import { FormDataRequestBody, FormDataRequestField, FormDataResponseBody } from '@dynatrace-sdk/http-client';
2
- export type TransformRuleConfig = {
3
- force?: boolean;
4
- datetime?: boolean;
5
- };
6
- export type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
7
- /**
8
- * Transforms an object by applying transformation rules before sending it in a request.
9
- *
10
- * @template T
11
- * @param {T} object - The object to transform.
12
- * @param {TransformRulesParam} rules - The transformation rules to apply.
13
- * @returns {T} The transformed object.
14
- */
15
- export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
16
- /**
17
- * Transforms an object by applying transformation rules after receiving it in a response.
18
- *
19
- * @template T
20
- * @param {T} object - The object to transform.
21
- * @param {TransformRulesParam} rules - The transformation rules to apply.
22
- * @returns {T} The transformed object.
23
- */
24
- export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
25
- export interface FormDataRequestFieldDefinition {
26
- key: string;
27
- type: 'text' | 'json' | 'binary';
28
- required: boolean;
29
- }
30
- export interface FormDataResponseGenericFieldDefinition {
31
- type: 'text' | 'binary';
32
- }
33
- export interface FormDataResponseJsonFieldDefinition {
34
- type: 'json';
35
- transformations: Array<string | [string, TransformRuleConfig]>;
36
- }
37
- export type FormDataResponseFieldDefinition = FormDataResponseGenericFieldDefinition | FormDataResponseJsonFieldDefinition;
38
- /**
39
- * Converts an object to a FormDataRequestBody using field definitions.
40
- *
41
- * @template T
42
- * @param {T} value - The object to convert.
43
- * @param {Array<FormDataRequestFieldDefinition>} fields - The field definitions for the form data.
44
- * @returns {FormDataRequestBody} The resulting form data body.
45
- */
46
- export declare function transformToFormData<T extends Record<any, any>>(value: T, fields: Array<FormDataRequestFieldDefinition>): FormDataRequestBody;
47
- /**
48
- * Converts a value to a FormDataRequestField based on the field definition.
49
- *
50
- * @template T
51
- * @param {T} value - The value to convert.
52
- * @param {FormDataRequestFieldDefinition} field - The field definition.
53
- * @returns {FormDataRequestField | null} The resulting form data field or null if not required and undefined.
54
- */
55
- export declare function transformToFormDataField<T = any>(value: T, field: FormDataRequestFieldDefinition): FormDataRequestField | null;
56
- /**
57
- * Converts form data and field definitions into a typed object, applying transformations for JSON fields.
58
- *
59
- * @template T
60
- * @param {FormDataResponseBody} formData - The form data to convert.
61
- * @param {Record<string, FormDataResponseFieldDefinition>} fields - The field definitions for the form data.
62
- * @returns {T} The resulting typed object.
63
- */
64
- export declare function transformFromFormData<T extends Record<any, any>>(formData: FormDataResponseBody, fields: Record<string, FormDataResponseFieldDefinition>): T;
@@ -1,12 +0,0 @@
1
- export type QueryParamsType = Record<string | number, any>;
2
- export interface ParametersFlags {
3
- explode?: Record<string, boolean>;
4
- }
5
- /**
6
- * Converts an object of query parameters into a URL query string.
7
- *
8
- * @param {QueryParamsType} [rawQuery] - The object containing query parameters.
9
- * @param {ParametersFlags} [flags] - Flags to control parameter formatting (e.g., explode arrays).
10
- * @returns {string} The resulting query string.
11
- */
12
- export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;