@sepurux/client 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/apis/AnalyticsApi.d.ts +56 -0
- package/dist/apis/AnalyticsApi.js +132 -0
- package/dist/apis/ApiKeysApi.d.ts +37 -0
- package/dist/apis/ApiKeysApi.js +88 -0
- package/dist/apis/AttemptsApi.d.ts +46 -0
- package/dist/apis/AttemptsApi.js +95 -0
- package/dist/apis/AuditEventsApi.d.ts +32 -0
- package/dist/apis/AuditEventsApi.js +70 -0
- package/dist/apis/AuthApi.d.ts +51 -0
- package/dist/apis/AuthApi.js +121 -0
- package/dist/apis/CampaignsApi.d.ts +68 -0
- package/dist/apis/CampaignsApi.js +167 -0
- package/dist/apis/CiApi.d.ts +40 -0
- package/dist/apis/CiApi.js +91 -0
- package/dist/apis/CounterfactualsApi.d.ts +42 -0
- package/dist/apis/CounterfactualsApi.js +95 -0
- package/dist/apis/DemoApi.d.ts +34 -0
- package/dist/apis/DemoApi.js +83 -0
- package/dist/apis/HealthApi.d.ts +29 -0
- package/dist/apis/HealthApi.js +57 -0
- package/dist/apis/MutationPacksApi.d.ts +78 -0
- package/dist/apis/MutationPacksApi.js +189 -0
- package/dist/apis/PolicyPacksApi.d.ts +104 -0
- package/dist/apis/PolicyPacksApi.js +264 -0
- package/dist/apis/ProjectsApi.d.ts +37 -0
- package/dist/apis/ProjectsApi.js +88 -0
- package/dist/apis/RunsApi.d.ts +110 -0
- package/dist/apis/RunsApi.js +276 -0
- package/dist/apis/TemplatesApi.d.ts +53 -0
- package/dist/apis/TemplatesApi.js +125 -0
- package/dist/apis/ToolsApi.d.ts +54 -0
- package/dist/apis/ToolsApi.js +130 -0
- package/dist/apis/TracesApi.d.ts +56 -0
- package/dist/apis/TracesApi.js +134 -0
- package/dist/apis/WebhooksApi.d.ts +78 -0
- package/dist/apis/WebhooksApi.js +192 -0
- package/dist/apis/index.d.ts +18 -0
- package/dist/apis/index.js +36 -0
- package/dist/esm/apis/AnalyticsApi.d.ts +56 -0
- package/dist/esm/apis/AnalyticsApi.js +128 -0
- package/dist/esm/apis/ApiKeysApi.d.ts +37 -0
- package/dist/esm/apis/ApiKeysApi.js +84 -0
- package/dist/esm/apis/AttemptsApi.d.ts +46 -0
- package/dist/esm/apis/AttemptsApi.js +91 -0
- package/dist/esm/apis/AuditEventsApi.d.ts +32 -0
- package/dist/esm/apis/AuditEventsApi.js +66 -0
- package/dist/esm/apis/AuthApi.d.ts +51 -0
- package/dist/esm/apis/AuthApi.js +117 -0
- package/dist/esm/apis/CampaignsApi.d.ts +68 -0
- package/dist/esm/apis/CampaignsApi.js +163 -0
- package/dist/esm/apis/CiApi.d.ts +40 -0
- package/dist/esm/apis/CiApi.js +87 -0
- package/dist/esm/apis/CounterfactualsApi.d.ts +42 -0
- package/dist/esm/apis/CounterfactualsApi.js +91 -0
- package/dist/esm/apis/DemoApi.d.ts +34 -0
- package/dist/esm/apis/DemoApi.js +79 -0
- package/dist/esm/apis/HealthApi.d.ts +29 -0
- package/dist/esm/apis/HealthApi.js +53 -0
- package/dist/esm/apis/MutationPacksApi.d.ts +78 -0
- package/dist/esm/apis/MutationPacksApi.js +185 -0
- package/dist/esm/apis/PolicyPacksApi.d.ts +104 -0
- package/dist/esm/apis/PolicyPacksApi.js +260 -0
- package/dist/esm/apis/ProjectsApi.d.ts +37 -0
- package/dist/esm/apis/ProjectsApi.js +84 -0
- package/dist/esm/apis/RunsApi.d.ts +110 -0
- package/dist/esm/apis/RunsApi.js +272 -0
- package/dist/esm/apis/TemplatesApi.d.ts +53 -0
- package/dist/esm/apis/TemplatesApi.js +121 -0
- package/dist/esm/apis/ToolsApi.d.ts +54 -0
- package/dist/esm/apis/ToolsApi.js +126 -0
- package/dist/esm/apis/TracesApi.d.ts +56 -0
- package/dist/esm/apis/TracesApi.js +130 -0
- package/dist/esm/apis/WebhooksApi.d.ts +78 -0
- package/dist/esm/apis/WebhooksApi.js +188 -0
- package/dist/esm/apis/index.d.ts +18 -0
- package/dist/esm/apis/index.js +20 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiKeyCreateRequest.d.ts +43 -0
- package/dist/esm/models/ApiKeyCreateRequest.js +44 -0
- package/dist/esm/models/ApiKeyCreateResponse.d.ts +91 -0
- package/dist/esm/models/ApiKeyCreateResponse.js +68 -0
- package/dist/esm/models/ApiKeyMetadata.d.ts +85 -0
- package/dist/esm/models/ApiKeyMetadata.js +64 -0
- package/dist/esm/models/ApplyTemplateRunResponse.d.ts +31 -0
- package/dist/esm/models/ApplyTemplateRunResponse.js +40 -0
- package/dist/esm/models/AuditEventListItem.d.ts +61 -0
- package/dist/esm/models/AuditEventListItem.js +58 -0
- package/dist/esm/models/AuthPermissionSet.d.ts +79 -0
- package/dist/esm/models/AuthPermissionSet.js +54 -0
- package/dist/esm/models/AuthSessionMetadata.d.ts +116 -0
- package/dist/esm/models/AuthSessionMetadata.js +89 -0
- package/dist/esm/models/AuthSessionResponse.d.ts +122 -0
- package/dist/esm/models/AuthSessionResponse.js +93 -0
- package/dist/esm/models/CIRunCreateRequest.d.ts +44 -0
- package/dist/esm/models/CIRunCreateRequest.js +49 -0
- package/dist/esm/models/CIRunCreateResponse.d.ts +31 -0
- package/dist/esm/models/CIRunCreateResponse.js +40 -0
- package/dist/esm/models/CIRunStatusResponse.d.ts +83 -0
- package/dist/esm/models/CIRunStatusResponse.js +77 -0
- package/dist/esm/models/CIRunThresholds.d.ts +43 -0
- package/dist/esm/models/CIRunThresholds.js +46 -0
- package/dist/esm/models/CampaignCreateRequest.d.ts +49 -0
- package/dist/esm/models/CampaignCreateRequest.js +50 -0
- package/dist/esm/models/CampaignMetadata.d.ts +67 -0
- package/dist/esm/models/CampaignMetadata.js +62 -0
- package/dist/esm/models/CampaignRunPackRequest.d.ts +31 -0
- package/dist/esm/models/CampaignRunPackRequest.js +40 -0
- package/dist/esm/models/CampaignRunPackResponse.d.ts +67 -0
- package/dist/esm/models/CampaignRunPackResponse.js +64 -0
- package/dist/esm/models/CounterfactualListItem.d.ts +61 -0
- package/dist/esm/models/CounterfactualListItem.js +61 -0
- package/dist/esm/models/CounterfactualMetadata.d.ts +73 -0
- package/dist/esm/models/CounterfactualMetadata.js +69 -0
- package/dist/esm/models/DemoInfoResponse.d.ts +76 -0
- package/dist/esm/models/DemoInfoResponse.js +64 -0
- package/dist/esm/models/DemoLimits.d.ts +49 -0
- package/dist/esm/models/DemoLimits.js +48 -0
- package/dist/esm/models/DemoSessionResponse.d.ts +74 -0
- package/dist/esm/models/DemoSessionResponse.js +69 -0
- package/dist/esm/models/EventIndexCount.d.ts +37 -0
- package/dist/esm/models/EventIndexCount.js +44 -0
- package/dist/esm/models/HTTPValidationError.d.ts +32 -0
- package/dist/esm/models/HTTPValidationError.js +39 -0
- package/dist/esm/models/HardeningTemplateCreateRequest.d.ts +53 -0
- package/dist/esm/models/HardeningTemplateCreateRequest.js +57 -0
- package/dist/esm/models/HardeningTemplateMetadata.d.ts +71 -0
- package/dist/esm/models/HardeningTemplateMetadata.js +69 -0
- package/dist/esm/models/InsightEvidenceMutation.d.ts +37 -0
- package/dist/esm/models/InsightEvidenceMutation.js +44 -0
- package/dist/esm/models/InsightEvidenceReason.d.ts +37 -0
- package/dist/esm/models/InsightEvidenceReason.js +44 -0
- package/dist/esm/models/InsightEvidenceTool.d.ts +37 -0
- package/dist/esm/models/InsightEvidenceTool.js +44 -0
- package/dist/esm/models/LethalMutationInsight.d.ts +63 -0
- package/dist/esm/models/LethalMutationInsight.js +62 -0
- package/dist/esm/models/LethalMutationTopReason.d.ts +37 -0
- package/dist/esm/models/LethalMutationTopReason.js +44 -0
- package/dist/esm/models/LethalMutationTopTool.d.ts +37 -0
- package/dist/esm/models/LethalMutationTopTool.js +44 -0
- package/dist/esm/models/LoginRequest.d.ts +37 -0
- package/dist/esm/models/LoginRequest.js +44 -0
- package/dist/esm/models/MutationCountPct.d.ts +43 -0
- package/dist/esm/models/MutationCountPct.js +48 -0
- package/dist/esm/models/MutationPackCoverageResponse.d.ts +49 -0
- package/dist/esm/models/MutationPackCoverageResponse.js +48 -0
- package/dist/esm/models/MutationPackCreateRequest.d.ts +43 -0
- package/dist/esm/models/MutationPackCreateRequest.js +46 -0
- package/dist/esm/models/MutationPackCreateResponse.d.ts +85 -0
- package/dist/esm/models/MutationPackCreateResponse.js +66 -0
- package/dist/esm/models/MutationPackMetadata.d.ts +73 -0
- package/dist/esm/models/MutationPackMetadata.js +62 -0
- package/dist/esm/models/MutationSummaryItem.d.ts +51 -0
- package/dist/esm/models/MutationSummaryItem.js +54 -0
- package/dist/esm/models/MutationSummaryResponse.d.ts +38 -0
- package/dist/esm/models/MutationSummaryResponse.js +45 -0
- package/dist/esm/models/MutationSummaryTopReason.d.ts +37 -0
- package/dist/esm/models/MutationSummaryTopReason.js +44 -0
- package/dist/esm/models/MutationSummaryTopTool.d.ts +37 -0
- package/dist/esm/models/MutationSummaryTopTool.js +44 -0
- package/dist/esm/models/PolicyEventListItem.d.ts +85 -0
- package/dist/esm/models/PolicyEventListItem.js +75 -0
- package/dist/esm/models/PolicyPackCreateRequest.d.ts +51 -0
- package/dist/esm/models/PolicyPackCreateRequest.js +53 -0
- package/dist/esm/models/PolicyPackMetadata.d.ts +73 -0
- package/dist/esm/models/PolicyPackMetadata.js +64 -0
- package/dist/esm/models/PolicyPackRollbackRequest.d.ts +37 -0
- package/dist/esm/models/PolicyPackRollbackRequest.js +42 -0
- package/dist/esm/models/PolicyPackUpdateRequest.d.ts +57 -0
- package/dist/esm/models/PolicyPackUpdateRequest.js +53 -0
- package/dist/esm/models/PolicyPackVersionMetadata.d.ts +67 -0
- package/dist/esm/models/PolicyPackVersionMetadata.js +60 -0
- package/dist/esm/models/ProjectCreateRequest.d.ts +31 -0
- package/dist/esm/models/ProjectCreateRequest.js +40 -0
- package/dist/esm/models/ProjectMetadata.d.ts +49 -0
- package/dist/esm/models/ProjectMetadata.js +52 -0
- package/dist/esm/models/ReasonCountPct.d.ts +43 -0
- package/dist/esm/models/ReasonCountPct.js +48 -0
- package/dist/esm/models/ReplayAttemptDetail.d.ts +91 -0
- package/dist/esm/models/ReplayAttemptDetail.js +77 -0
- package/dist/esm/models/ReplayAttemptListItem.d.ts +73 -0
- package/dist/esm/models/ReplayAttemptListItem.js +66 -0
- package/dist/esm/models/RunAttemptsSummary.d.ts +49 -0
- package/dist/esm/models/RunAttemptsSummary.js +52 -0
- package/dist/esm/models/RunCreateRequest.d.ts +49 -0
- package/dist/esm/models/RunCreateRequest.js +48 -0
- package/dist/esm/models/RunInsight.d.ts +62 -0
- package/dist/esm/models/RunInsight.js +61 -0
- package/dist/esm/models/RunInsightEvidence.d.ts +46 -0
- package/dist/esm/models/RunInsightEvidence.js +45 -0
- package/dist/esm/models/RunMetadata.d.ts +91 -0
- package/dist/esm/models/RunMetadata.js +71 -0
- package/dist/esm/models/RunStatsResponse.d.ts +105 -0
- package/dist/esm/models/RunStatsResponse.js +88 -0
- package/dist/esm/models/SecurityEventListItem.d.ts +94 -0
- package/dist/esm/models/SecurityEventListItem.js +83 -0
- package/dist/esm/models/SignupRequest.d.ts +64 -0
- package/dist/esm/models/SignupRequest.js +58 -0
- package/dist/esm/models/ToolCount.d.ts +37 -0
- package/dist/esm/models/ToolCount.js +44 -0
- package/dist/esm/models/ToolCountPct.d.ts +43 -0
- package/dist/esm/models/ToolCountPct.js +48 -0
- package/dist/esm/models/ToolFragilityItem.d.ts +63 -0
- package/dist/esm/models/ToolFragilityItem.js +62 -0
- package/dist/esm/models/ToolFragilityResponse.d.ts +50 -0
- package/dist/esm/models/ToolFragilityResponse.js +53 -0
- package/dist/esm/models/ToolFragilityTopMutation.d.ts +37 -0
- package/dist/esm/models/ToolFragilityTopMutation.js +44 -0
- package/dist/esm/models/ToolFragilityTopReason.d.ts +37 -0
- package/dist/esm/models/ToolFragilityTopReason.js +44 -0
- package/dist/esm/models/ToolRegistryCreateRequest.d.ts +37 -0
- package/dist/esm/models/ToolRegistryCreateRequest.js +42 -0
- package/dist/esm/models/ToolRegistryMetadata.d.ts +55 -0
- package/dist/esm/models/ToolRegistryMetadata.js +56 -0
- package/dist/esm/models/ToolRegistryZoneUpdateRequest.d.ts +31 -0
- package/dist/esm/models/ToolRegistryZoneUpdateRequest.js +40 -0
- package/dist/esm/models/ToolUsageStatsItem.d.ts +43 -0
- package/dist/esm/models/ToolUsageStatsItem.js +48 -0
- package/dist/esm/models/TraceMetadata.d.ts +89 -0
- package/dist/esm/models/TraceMetadata.js +69 -0
- package/dist/esm/models/ValidationError.d.ts +44 -0
- package/dist/esm/models/ValidationError.js +49 -0
- package/dist/esm/models/ValidationErrorLocInner.d.ts +25 -0
- package/dist/esm/models/ValidationErrorLocInner.js +28 -0
- package/dist/esm/models/WebhookCreateRequest.d.ts +43 -0
- package/dist/esm/models/WebhookCreateRequest.js +44 -0
- package/dist/esm/models/WebhookCreateResponse.d.ts +79 -0
- package/dist/esm/models/WebhookCreateResponse.js +68 -0
- package/dist/esm/models/WebhookMetadata.d.ts +73 -0
- package/dist/esm/models/WebhookMetadata.js +64 -0
- package/dist/esm/models/WebhookRotateSecretResponse.d.ts +37 -0
- package/dist/esm/models/WebhookRotateSecretResponse.js +44 -0
- package/dist/esm/models/WebhookUpdateRequest.d.ts +43 -0
- package/dist/esm/models/WebhookUpdateRequest.js +42 -0
- package/dist/esm/models/index.d.ts +78 -0
- package/dist/esm/models/index.js +80 -0
- package/dist/esm/runtime.d.ts +183 -0
- package/dist/esm/runtime.js +335 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ApiKeyCreateRequest.d.ts +43 -0
- package/dist/models/ApiKeyCreateRequest.js +50 -0
- package/dist/models/ApiKeyCreateResponse.d.ts +91 -0
- package/dist/models/ApiKeyCreateResponse.js +74 -0
- package/dist/models/ApiKeyMetadata.d.ts +85 -0
- package/dist/models/ApiKeyMetadata.js +70 -0
- package/dist/models/ApplyTemplateRunResponse.d.ts +31 -0
- package/dist/models/ApplyTemplateRunResponse.js +46 -0
- package/dist/models/AuditEventListItem.d.ts +61 -0
- package/dist/models/AuditEventListItem.js +64 -0
- package/dist/models/AuthPermissionSet.d.ts +79 -0
- package/dist/models/AuthPermissionSet.js +60 -0
- package/dist/models/AuthSessionMetadata.d.ts +116 -0
- package/dist/models/AuthSessionMetadata.js +96 -0
- package/dist/models/AuthSessionResponse.d.ts +122 -0
- package/dist/models/AuthSessionResponse.js +100 -0
- package/dist/models/CIRunCreateRequest.d.ts +44 -0
- package/dist/models/CIRunCreateRequest.js +55 -0
- package/dist/models/CIRunCreateResponse.d.ts +31 -0
- package/dist/models/CIRunCreateResponse.js +46 -0
- package/dist/models/CIRunStatusResponse.d.ts +83 -0
- package/dist/models/CIRunStatusResponse.js +84 -0
- package/dist/models/CIRunThresholds.d.ts +43 -0
- package/dist/models/CIRunThresholds.js +52 -0
- package/dist/models/CampaignCreateRequest.d.ts +49 -0
- package/dist/models/CampaignCreateRequest.js +56 -0
- package/dist/models/CampaignMetadata.d.ts +67 -0
- package/dist/models/CampaignMetadata.js +68 -0
- package/dist/models/CampaignRunPackRequest.d.ts +31 -0
- package/dist/models/CampaignRunPackRequest.js +46 -0
- package/dist/models/CampaignRunPackResponse.d.ts +67 -0
- package/dist/models/CampaignRunPackResponse.js +70 -0
- package/dist/models/CounterfactualListItem.d.ts +61 -0
- package/dist/models/CounterfactualListItem.js +67 -0
- package/dist/models/CounterfactualMetadata.d.ts +73 -0
- package/dist/models/CounterfactualMetadata.js +75 -0
- package/dist/models/DemoInfoResponse.d.ts +76 -0
- package/dist/models/DemoInfoResponse.js +71 -0
- package/dist/models/DemoLimits.d.ts +49 -0
- package/dist/models/DemoLimits.js +54 -0
- package/dist/models/DemoSessionResponse.d.ts +74 -0
- package/dist/models/DemoSessionResponse.js +75 -0
- package/dist/models/EventIndexCount.d.ts +37 -0
- package/dist/models/EventIndexCount.js +50 -0
- package/dist/models/HTTPValidationError.d.ts +32 -0
- package/dist/models/HTTPValidationError.js +45 -0
- package/dist/models/HardeningTemplateCreateRequest.d.ts +53 -0
- package/dist/models/HardeningTemplateCreateRequest.js +64 -0
- package/dist/models/HardeningTemplateMetadata.d.ts +71 -0
- package/dist/models/HardeningTemplateMetadata.js +76 -0
- package/dist/models/InsightEvidenceMutation.d.ts +37 -0
- package/dist/models/InsightEvidenceMutation.js +50 -0
- package/dist/models/InsightEvidenceReason.d.ts +37 -0
- package/dist/models/InsightEvidenceReason.js +50 -0
- package/dist/models/InsightEvidenceTool.d.ts +37 -0
- package/dist/models/InsightEvidenceTool.js +50 -0
- package/dist/models/LethalMutationInsight.d.ts +63 -0
- package/dist/models/LethalMutationInsight.js +68 -0
- package/dist/models/LethalMutationTopReason.d.ts +37 -0
- package/dist/models/LethalMutationTopReason.js +50 -0
- package/dist/models/LethalMutationTopTool.d.ts +37 -0
- package/dist/models/LethalMutationTopTool.js +50 -0
- package/dist/models/LoginRequest.d.ts +37 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/models/MutationCountPct.d.ts +43 -0
- package/dist/models/MutationCountPct.js +54 -0
- package/dist/models/MutationPackCoverageResponse.d.ts +49 -0
- package/dist/models/MutationPackCoverageResponse.js +54 -0
- package/dist/models/MutationPackCreateRequest.d.ts +43 -0
- package/dist/models/MutationPackCreateRequest.js +52 -0
- package/dist/models/MutationPackCreateResponse.d.ts +85 -0
- package/dist/models/MutationPackCreateResponse.js +72 -0
- package/dist/models/MutationPackMetadata.d.ts +73 -0
- package/dist/models/MutationPackMetadata.js +68 -0
- package/dist/models/MutationSummaryItem.d.ts +51 -0
- package/dist/models/MutationSummaryItem.js +60 -0
- package/dist/models/MutationSummaryResponse.d.ts +38 -0
- package/dist/models/MutationSummaryResponse.js +51 -0
- package/dist/models/MutationSummaryTopReason.d.ts +37 -0
- package/dist/models/MutationSummaryTopReason.js +50 -0
- package/dist/models/MutationSummaryTopTool.d.ts +37 -0
- package/dist/models/MutationSummaryTopTool.js +50 -0
- package/dist/models/PolicyEventListItem.d.ts +85 -0
- package/dist/models/PolicyEventListItem.js +81 -0
- package/dist/models/PolicyPackCreateRequest.d.ts +51 -0
- package/dist/models/PolicyPackCreateRequest.js +60 -0
- package/dist/models/PolicyPackMetadata.d.ts +73 -0
- package/dist/models/PolicyPackMetadata.js +70 -0
- package/dist/models/PolicyPackRollbackRequest.d.ts +37 -0
- package/dist/models/PolicyPackRollbackRequest.js +48 -0
- package/dist/models/PolicyPackUpdateRequest.d.ts +57 -0
- package/dist/models/PolicyPackUpdateRequest.js +60 -0
- package/dist/models/PolicyPackVersionMetadata.d.ts +67 -0
- package/dist/models/PolicyPackVersionMetadata.js +66 -0
- package/dist/models/ProjectCreateRequest.d.ts +31 -0
- package/dist/models/ProjectCreateRequest.js +46 -0
- package/dist/models/ProjectMetadata.d.ts +49 -0
- package/dist/models/ProjectMetadata.js +58 -0
- package/dist/models/ReasonCountPct.d.ts +43 -0
- package/dist/models/ReasonCountPct.js +54 -0
- package/dist/models/ReplayAttemptDetail.d.ts +91 -0
- package/dist/models/ReplayAttemptDetail.js +83 -0
- package/dist/models/ReplayAttemptListItem.d.ts +73 -0
- package/dist/models/ReplayAttemptListItem.js +72 -0
- package/dist/models/RunAttemptsSummary.d.ts +49 -0
- package/dist/models/RunAttemptsSummary.js +58 -0
- package/dist/models/RunCreateRequest.d.ts +49 -0
- package/dist/models/RunCreateRequest.js +54 -0
- package/dist/models/RunInsight.d.ts +62 -0
- package/dist/models/RunInsight.js +67 -0
- package/dist/models/RunInsightEvidence.d.ts +46 -0
- package/dist/models/RunInsightEvidence.js +51 -0
- package/dist/models/RunMetadata.d.ts +91 -0
- package/dist/models/RunMetadata.js +77 -0
- package/dist/models/RunStatsResponse.d.ts +105 -0
- package/dist/models/RunStatsResponse.js +94 -0
- package/dist/models/SecurityEventListItem.d.ts +94 -0
- package/dist/models/SecurityEventListItem.js +90 -0
- package/dist/models/SignupRequest.d.ts +64 -0
- package/dist/models/SignupRequest.js +65 -0
- package/dist/models/ToolCount.d.ts +37 -0
- package/dist/models/ToolCount.js +50 -0
- package/dist/models/ToolCountPct.d.ts +43 -0
- package/dist/models/ToolCountPct.js +54 -0
- package/dist/models/ToolFragilityItem.d.ts +63 -0
- package/dist/models/ToolFragilityItem.js +68 -0
- package/dist/models/ToolFragilityResponse.d.ts +50 -0
- package/dist/models/ToolFragilityResponse.js +59 -0
- package/dist/models/ToolFragilityTopMutation.d.ts +37 -0
- package/dist/models/ToolFragilityTopMutation.js +50 -0
- package/dist/models/ToolFragilityTopReason.d.ts +37 -0
- package/dist/models/ToolFragilityTopReason.js +50 -0
- package/dist/models/ToolRegistryCreateRequest.d.ts +37 -0
- package/dist/models/ToolRegistryCreateRequest.js +48 -0
- package/dist/models/ToolRegistryMetadata.d.ts +55 -0
- package/dist/models/ToolRegistryMetadata.js +62 -0
- package/dist/models/ToolRegistryZoneUpdateRequest.d.ts +31 -0
- package/dist/models/ToolRegistryZoneUpdateRequest.js +46 -0
- package/dist/models/ToolUsageStatsItem.d.ts +43 -0
- package/dist/models/ToolUsageStatsItem.js +54 -0
- package/dist/models/TraceMetadata.d.ts +89 -0
- package/dist/models/TraceMetadata.js +75 -0
- package/dist/models/ValidationError.d.ts +44 -0
- package/dist/models/ValidationError.js +55 -0
- package/dist/models/ValidationErrorLocInner.d.ts +25 -0
- package/dist/models/ValidationErrorLocInner.js +34 -0
- package/dist/models/WebhookCreateRequest.d.ts +43 -0
- package/dist/models/WebhookCreateRequest.js +50 -0
- package/dist/models/WebhookCreateResponse.d.ts +79 -0
- package/dist/models/WebhookCreateResponse.js +74 -0
- package/dist/models/WebhookMetadata.d.ts +73 -0
- package/dist/models/WebhookMetadata.js +70 -0
- package/dist/models/WebhookRotateSecretResponse.d.ts +37 -0
- package/dist/models/WebhookRotateSecretResponse.js +50 -0
- package/dist/models/WebhookUpdateRequest.d.ts +43 -0
- package/dist/models/WebhookUpdateRequest.js +48 -0
- package/dist/models/index.d.ts +78 -0
- package/dist/models/index.js +96 -0
- package/dist/runtime.d.ts +183 -0
- package/dist/runtime.js +352 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Sepurux TypeScript Client
|
|
2
|
+
|
|
3
|
+
Generated from `clients/openapi.json` with OpenAPI Generator (`typescript-fetch`).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @sepurux/client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Regenerate
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
make gen-clients
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { Configuration, RunsApi, TracesApi } from "@sepurux/client";
|
|
21
|
+
|
|
22
|
+
const config = new Configuration({
|
|
23
|
+
basePath: process.env.SEPURUX_BASE_URL ?? "http://localhost:8000",
|
|
24
|
+
headers: {
|
|
25
|
+
"X-API-Key": process.env.SEPURUX_API_KEY ?? "",
|
|
26
|
+
"X-Project-Id": process.env.SEPURUX_PROJECT_ID ?? "",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const tracesApi = new TracesApi(config);
|
|
31
|
+
const trace = await tracesApi.postTraceV1TracesPost({
|
|
32
|
+
body: {
|
|
33
|
+
trace_version: "0.1",
|
|
34
|
+
source: "sdk",
|
|
35
|
+
task: { name: "demo-task", input: { prompt: "hello" } },
|
|
36
|
+
events: [{ type: "model_step", name: "assistant", output: { text: "hi" } }],
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const runsApi = new RunsApi(config);
|
|
41
|
+
const run = await runsApi.postRunV1RunsPost({
|
|
42
|
+
runCreateRequest: {
|
|
43
|
+
trace_id: trace.trace_id,
|
|
44
|
+
campaign_id: process.env.SEPURUX_CAMPAIGN_ID ?? "",
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const latest = await runsApi.getRunV1RunsRunIdGet({ runId: run.run_id });
|
|
49
|
+
console.log(latest.status);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Release
|
|
53
|
+
|
|
54
|
+
- Push a tag in the format `ts-client-v0.3.0`.
|
|
55
|
+
- GitHub Actions workflow `ts-client-publish-npm.yml` will validate the package version, build it, and publish to npm.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sepurux API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { MutationSummaryResponse, RunStatsResponse, ToolFragilityResponse } from '../models/index';
|
|
14
|
+
export interface GetMutationsSummaryEndpointV1MutationsSummaryGetRequest {
|
|
15
|
+
windowDays?: number;
|
|
16
|
+
limit?: number;
|
|
17
|
+
xProjectId?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface GetRunStatsEndpointV1RunsRunIdStatsGetRequest {
|
|
20
|
+
runId: string;
|
|
21
|
+
xProjectId?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface GetToolsFragilityEndpointV1ToolsFragilityGetRequest {
|
|
24
|
+
windowDays?: number;
|
|
25
|
+
limit?: number;
|
|
26
|
+
xProjectId?: string | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class AnalyticsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get Mutations Summary Endpoint
|
|
34
|
+
*/
|
|
35
|
+
getMutationsSummaryEndpointV1MutationsSummaryGetRaw(requestParameters: GetMutationsSummaryEndpointV1MutationsSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MutationSummaryResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get Mutations Summary Endpoint
|
|
38
|
+
*/
|
|
39
|
+
getMutationsSummaryEndpointV1MutationsSummaryGet(requestParameters?: GetMutationsSummaryEndpointV1MutationsSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutationSummaryResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get Run Stats Endpoint
|
|
42
|
+
*/
|
|
43
|
+
getRunStatsEndpointV1RunsRunIdStatsGetRaw(requestParameters: GetRunStatsEndpointV1RunsRunIdStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RunStatsResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get Run Stats Endpoint
|
|
46
|
+
*/
|
|
47
|
+
getRunStatsEndpointV1RunsRunIdStatsGet(requestParameters: GetRunStatsEndpointV1RunsRunIdStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RunStatsResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Get Tools Fragility Endpoint
|
|
50
|
+
*/
|
|
51
|
+
getToolsFragilityEndpointV1ToolsFragilityGetRaw(requestParameters: GetToolsFragilityEndpointV1ToolsFragilityGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolFragilityResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* Get Tools Fragility Endpoint
|
|
54
|
+
*/
|
|
55
|
+
getToolsFragilityEndpointV1ToolsFragilityGet(requestParameters?: GetToolsFragilityEndpointV1ToolsFragilityGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolFragilityResponse>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sepurux API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AnalyticsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AnalyticsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get Mutations Summary Endpoint
|
|
34
|
+
*/
|
|
35
|
+
getMutationsSummaryEndpointV1MutationsSummaryGetRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['windowDays'] != null) {
|
|
39
|
+
queryParameters['window_days'] = requestParameters['windowDays'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['limit'] != null) {
|
|
42
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
43
|
+
}
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
if (requestParameters['xProjectId'] != null) {
|
|
46
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
47
|
+
}
|
|
48
|
+
const response = yield this.request({
|
|
49
|
+
path: `/v1/mutations/summary`,
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MutationSummaryResponseFromJSON)(jsonValue));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get Mutations Summary Endpoint
|
|
59
|
+
*/
|
|
60
|
+
getMutationsSummaryEndpointV1MutationsSummaryGet() {
|
|
61
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
62
|
+
const response = yield this.getMutationsSummaryEndpointV1MutationsSummaryGetRaw(requestParameters, initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get Run Stats Endpoint
|
|
68
|
+
*/
|
|
69
|
+
getRunStatsEndpointV1RunsRunIdStatsGetRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters['runId'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling getRunStatsEndpointV1RunsRunIdStatsGet().');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
if (requestParameters['xProjectId'] != null) {
|
|
77
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
78
|
+
}
|
|
79
|
+
const response = yield this.request({
|
|
80
|
+
path: `/v1/runs/{run_id}/stats`.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId']))),
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RunStatsResponseFromJSON)(jsonValue));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get Run Stats Endpoint
|
|
90
|
+
*/
|
|
91
|
+
getRunStatsEndpointV1RunsRunIdStatsGet(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const response = yield this.getRunStatsEndpointV1RunsRunIdStatsGetRaw(requestParameters, initOverrides);
|
|
94
|
+
return yield response.value();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get Tools Fragility Endpoint
|
|
99
|
+
*/
|
|
100
|
+
getToolsFragilityEndpointV1ToolsFragilityGetRaw(requestParameters, initOverrides) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const queryParameters = {};
|
|
103
|
+
if (requestParameters['windowDays'] != null) {
|
|
104
|
+
queryParameters['window_days'] = requestParameters['windowDays'];
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters['limit'] != null) {
|
|
107
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
108
|
+
}
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
if (requestParameters['xProjectId'] != null) {
|
|
111
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
112
|
+
}
|
|
113
|
+
const response = yield this.request({
|
|
114
|
+
path: `/v1/tools/fragility`,
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolFragilityResponseFromJSON)(jsonValue));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get Tools Fragility Endpoint
|
|
124
|
+
*/
|
|
125
|
+
getToolsFragilityEndpointV1ToolsFragilityGet() {
|
|
126
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
127
|
+
const response = yield this.getToolsFragilityEndpointV1ToolsFragilityGetRaw(requestParameters, initOverrides);
|
|
128
|
+
return yield response.value();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.AnalyticsApi = AnalyticsApi;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sepurux API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyMetadata } from '../models/index';
|
|
14
|
+
export interface PostApiKeyV1ApiKeysPostRequest {
|
|
15
|
+
apiKeyCreateRequest: ApiKeyCreateRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class ApiKeysApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Get Api Keys
|
|
23
|
+
*/
|
|
24
|
+
getApiKeysV1ApiKeysGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyMetadata>>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Api Keys
|
|
27
|
+
*/
|
|
28
|
+
getApiKeysV1ApiKeysGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyMetadata>>;
|
|
29
|
+
/**
|
|
30
|
+
* Post Api Key
|
|
31
|
+
*/
|
|
32
|
+
postApiKeyV1ApiKeysPostRaw(requestParameters: PostApiKeyV1ApiKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyCreateResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Post Api Key
|
|
35
|
+
*/
|
|
36
|
+
postApiKeyV1ApiKeysPost(requestParameters: PostApiKeyV1ApiKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyCreateResponse>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sepurux API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ApiKeysApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class ApiKeysApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get Api Keys
|
|
34
|
+
*/
|
|
35
|
+
getApiKeysV1ApiKeysGetRaw(initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/v1/api-keys`,
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiKeyMetadataFromJSON));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get Api Keys
|
|
50
|
+
*/
|
|
51
|
+
getApiKeysV1ApiKeysGet(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.getApiKeysV1ApiKeysGetRaw(initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Post Api Key
|
|
59
|
+
*/
|
|
60
|
+
postApiKeyV1ApiKeysPostRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
if (requestParameters['apiKeyCreateRequest'] == null) {
|
|
63
|
+
throw new runtime.RequiredError('apiKeyCreateRequest', 'Required parameter "apiKeyCreateRequest" was null or undefined when calling postApiKeyV1ApiKeysPost().');
|
|
64
|
+
}
|
|
65
|
+
const queryParameters = {};
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
68
|
+
const response = yield this.request({
|
|
69
|
+
path: `/v1/api-keys`,
|
|
70
|
+
method: 'POST',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
body: (0, index_1.ApiKeyCreateRequestToJSON)(requestParameters['apiKeyCreateRequest']),
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiKeyCreateResponseFromJSON)(jsonValue));
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Post Api Key
|
|
80
|
+
*/
|
|
81
|
+
postApiKeyV1ApiKeysPost(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.postApiKeyV1ApiKeysPostRaw(requestParameters, initOverrides);
|
|
84
|
+
return yield response.value();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ApiKeysApi = ApiKeysApi;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sepurux API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ReplayAttemptDetail } from '../models/index';
|
|
14
|
+
export interface GetAttemptTimelineV1AttemptsAttemptIdTimelineGetRequest {
|
|
15
|
+
attemptId: string;
|
|
16
|
+
xProjectId?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface GetAttemptV1AttemptsAttemptIdGetRequest {
|
|
19
|
+
attemptId: string;
|
|
20
|
+
xProjectId?: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class AttemptsApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Get Attempt Timeline
|
|
28
|
+
*/
|
|
29
|
+
getAttemptTimelineV1AttemptsAttemptIdTimelineGetRaw(requestParameters: GetAttemptTimelineV1AttemptsAttemptIdTimelineGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>>;
|
|
32
|
+
/**
|
|
33
|
+
* Get Attempt Timeline
|
|
34
|
+
*/
|
|
35
|
+
getAttemptTimelineV1AttemptsAttemptIdTimelineGet(requestParameters: GetAttemptTimelineV1AttemptsAttemptIdTimelineGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Get Attempt
|
|
40
|
+
*/
|
|
41
|
+
getAttemptV1AttemptsAttemptIdGetRaw(requestParameters: GetAttemptV1AttemptsAttemptIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReplayAttemptDetail>>;
|
|
42
|
+
/**
|
|
43
|
+
* Get Attempt
|
|
44
|
+
*/
|
|
45
|
+
getAttemptV1AttemptsAttemptIdGet(requestParameters: GetAttemptV1AttemptsAttemptIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReplayAttemptDetail>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sepurux API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AttemptsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AttemptsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get Attempt Timeline
|
|
34
|
+
*/
|
|
35
|
+
getAttemptTimelineV1AttemptsAttemptIdTimelineGetRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['attemptId'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling getAttemptTimelineV1AttemptsAttemptIdTimelineGet().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (requestParameters['xProjectId'] != null) {
|
|
43
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
44
|
+
}
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: `/v1/attempts/{attempt_id}/timeline`.replace(`{${"attempt_id"}}`, encodeURIComponent(String(requestParameters['attemptId']))),
|
|
47
|
+
method: 'GET',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.JSONApiResponse(response);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get Attempt Timeline
|
|
56
|
+
*/
|
|
57
|
+
getAttemptTimelineV1AttemptsAttemptIdTimelineGet(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const response = yield this.getAttemptTimelineV1AttemptsAttemptIdTimelineGetRaw(requestParameters, initOverrides);
|
|
60
|
+
return yield response.value();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get Attempt
|
|
65
|
+
*/
|
|
66
|
+
getAttemptV1AttemptsAttemptIdGetRaw(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (requestParameters['attemptId'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling getAttemptV1AttemptsAttemptIdGet().');
|
|
70
|
+
}
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
if (requestParameters['xProjectId'] != null) {
|
|
74
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
75
|
+
}
|
|
76
|
+
const response = yield this.request({
|
|
77
|
+
path: `/v1/attempts/{attempt_id}`.replace(`{${"attempt_id"}}`, encodeURIComponent(String(requestParameters['attemptId']))),
|
|
78
|
+
method: 'GET',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReplayAttemptDetailFromJSON)(jsonValue));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get Attempt
|
|
87
|
+
*/
|
|
88
|
+
getAttemptV1AttemptsAttemptIdGet(requestParameters, initOverrides) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const response = yield this.getAttemptV1AttemptsAttemptIdGetRaw(requestParameters, initOverrides);
|
|
91
|
+
return yield response.value();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.AttemptsApi = AttemptsApi;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sepurux API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AuditEventListItem } from '../models/index';
|
|
14
|
+
export interface GetAuditEventsV1AuditEventsGetRequest {
|
|
15
|
+
limit?: number;
|
|
16
|
+
offset?: number;
|
|
17
|
+
eventType?: string | null;
|
|
18
|
+
xProjectId?: string | null;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class AuditEventsApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Get Audit Events
|
|
26
|
+
*/
|
|
27
|
+
getAuditEventsV1AuditEventsGetRaw(requestParameters: GetAuditEventsV1AuditEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AuditEventListItem>>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get Audit Events
|
|
30
|
+
*/
|
|
31
|
+
getAuditEventsV1AuditEventsGet(requestParameters?: GetAuditEventsV1AuditEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AuditEventListItem>>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sepurux API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AuditEventsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AuditEventsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get Audit Events
|
|
34
|
+
*/
|
|
35
|
+
getAuditEventsV1AuditEventsGetRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['limit'] != null) {
|
|
39
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['offset'] != null) {
|
|
42
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['eventType'] != null) {
|
|
45
|
+
queryParameters['event_type'] = requestParameters['eventType'];
|
|
46
|
+
}
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
if (requestParameters['xProjectId'] != null) {
|
|
49
|
+
headerParameters['X-Project-Id'] = String(requestParameters['xProjectId']);
|
|
50
|
+
}
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: `/v1/audit-events`,
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AuditEventListItemFromJSON));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get Audit Events
|
|
62
|
+
*/
|
|
63
|
+
getAuditEventsV1AuditEventsGet() {
|
|
64
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
65
|
+
const response = yield this.getAuditEventsV1AuditEventsGetRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.AuditEventsApi = AuditEventsApi;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sepurux API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AuthSessionMetadata, AuthSessionResponse, LoginRequest, SignupRequest } from '../models/index';
|
|
14
|
+
export interface GetAuthSessionV1AuthSessionGetRequest {
|
|
15
|
+
xProjectId?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface PostLoginAuthLoginPostRequest {
|
|
18
|
+
loginRequest: LoginRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface PostSignupAuthSignupPostRequest {
|
|
21
|
+
signupRequest: SignupRequest;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class AuthApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Get Auth Session
|
|
29
|
+
*/
|
|
30
|
+
getAuthSessionV1AuthSessionGetRaw(requestParameters: GetAuthSessionV1AuthSessionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthSessionMetadata>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get Auth Session
|
|
33
|
+
*/
|
|
34
|
+
getAuthSessionV1AuthSessionGet(requestParameters?: GetAuthSessionV1AuthSessionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthSessionMetadata>;
|
|
35
|
+
/**
|
|
36
|
+
* Post Login
|
|
37
|
+
*/
|
|
38
|
+
postLoginAuthLoginPostRaw(requestParameters: PostLoginAuthLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthSessionResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
* Post Login
|
|
41
|
+
*/
|
|
42
|
+
postLoginAuthLoginPost(requestParameters: PostLoginAuthLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthSessionResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Post Signup
|
|
45
|
+
*/
|
|
46
|
+
postSignupAuthSignupPostRaw(requestParameters: PostSignupAuthSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthSessionResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Post Signup
|
|
49
|
+
*/
|
|
50
|
+
postSignupAuthSignupPost(requestParameters: PostSignupAuthSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthSessionResponse>;
|
|
51
|
+
}
|