commits
Add a new `createOpenStatusClient(options)` factory function that allows
users to configure authentication once and reuse it across all API calls,
eliminating the need to pass headers on every request.
Changes:
- Add `OpenStatusClientOptions` interface with `apiKey` and `baseUrl` options
- Add `createAuthInterceptor` to automatically inject auth headers
- Add `createOpenStatusClient` factory function
- Update README with new recommended usage pattern
- Update all code examples to use the new client-based approach
Usage:
```typescript
const client = createOpenStatusClient({
apiKey: process.env.OPENSTATUS_API_KEY,
});
// No headers needed on each call
await client.monitor.v1.MonitorService.listMonitors({});
```
The default `openstatus` export is preserved for backwards compatibility.
- Add maintenance service with CRUD operations (create, get, list, update, delete)
- Export Maintenance and MaintenanceSummary types
- Export all maintenance request/response types
- Add maintenance namespace to OpenStatusClient interface
- Update README with maintenance service documentation
- Remove non-existent Maintenance export from status page types
Add new StatusReportService for managing incident and maintenance reports:
- createStatusReport: Create new status reports
- getStatusReport: Get report with full update timeline
- listStatusReports: List reports with pagination and filtering
- updateStatusReport: Update report metadata
- deleteStatusReport: Delete reports
- addStatusReportUpdate: Add updates to report timeline
Update README with comprehensive documentation for the new service.
* small improvment
* more improvment
* improve sdk
* improve sdk
* typo readme
Add a new `createOpenStatusClient(options)` factory function that allows
users to configure authentication once and reuse it across all API calls,
eliminating the need to pass headers on every request.
Changes:
- Add `OpenStatusClientOptions` interface with `apiKey` and `baseUrl` options
- Add `createAuthInterceptor` to automatically inject auth headers
- Add `createOpenStatusClient` factory function
- Update README with new recommended usage pattern
- Update all code examples to use the new client-based approach
Usage:
```typescript
const client = createOpenStatusClient({
apiKey: process.env.OPENSTATUS_API_KEY,
});
// No headers needed on each call
await client.monitor.v1.MonitorService.listMonitors({});
```
The default `openstatus` export is preserved for backwards compatibility.
- Add maintenance service with CRUD operations (create, get, list, update, delete)
- Export Maintenance and MaintenanceSummary types
- Export all maintenance request/response types
- Add maintenance namespace to OpenStatusClient interface
- Update README with maintenance service documentation
- Remove non-existent Maintenance export from status page types
Add new StatusReportService for managing incident and maintenance reports:
- createStatusReport: Create new status reports
- getStatusReport: Get report with full update timeline
- listStatusReports: List reports with pagination and filtering
- updateStatusReport: Update report metadata
- deleteStatusReport: Delete reports
- addStatusReportUpdate: Add updates to report timeline
Update README with comprehensive documentation for the new service.