@rustrak/client 0.26.0 → 0.27.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 +18 -0
- package/dist/client.cjs +1 -1
- package/dist/client.mjs +1 -1
- package/dist/generated/client/client.gen.d.cts +1 -0
- package/dist/generated/client/index.d.cts +10 -0
- package/dist/generated/client/types.gen.d.cts +1 -1
- package/dist/generated/client/types.gen.d.mts +1 -1
- package/dist/generated/client/utils.gen.cjs +1 -1
- package/dist/generated/client/utils.gen.d.cts +2 -0
- package/dist/generated/client/utils.gen.d.cts.map +1 -1
- package/dist/generated/client/utils.gen.mjs +1 -1
- package/dist/generated/client.gen.cjs +2 -1
- package/dist/generated/client.gen.cjs.map +1 -1
- package/dist/generated/client.gen.mjs +1 -1
- package/dist/generated/core/params.gen.d.cts +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.cts +1 -0
- package/dist/generated/sdk.gen.cjs +728 -439
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +49 -27
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +49 -28
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +728 -441
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +347 -0
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +347 -0
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +251 -1
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +214 -2
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/utils/http.cjs.map +1 -1
- package/dist/utils/http.mjs.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -355,6 +355,7 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
355
355
|
|---|---|---|
|
|
356
356
|
| `environments.list({ path })` | `GET /api/projects/{project_id}/environments` | Lists the environments a project's issues have been seen in, by name. |
|
|
357
357
|
| `feedback.list({ path, query? })` | `GET /api/projects/{project_id}/feedback` | Lists user feedback with what each user submitted. |
|
|
358
|
+
| `feedback.listAll({ query? })` | `GET /api/feedback` | Lists user feedback across every project the reader can read issues on. |
|
|
358
359
|
| `issues.bulkDelete({ path, body })` | `DELETE /api/projects/{project_id}/issues` | Deletes many issues at once, selected by id or by filter. |
|
|
359
360
|
| `issues.bulkUpdate({ path, body })` | `PUT /api/projects/{project_id}/issues` | Sets the status or priority of many issues at once, by id. |
|
|
360
361
|
| `issues.createComment({ path, body })` | `POST /api/projects/{project_id}/issues/{issue_id}/comments` | Add a note. |
|
|
@@ -367,6 +368,7 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
367
368
|
| `issues.getStats({ path, query? })` | `GET /api/projects/{project_id}/issues/{issue_id}/stats` | Zero-filled event-count timeseries. |
|
|
368
369
|
| `issues.getTagValues({ path })` | `GET /api/projects/{project_id}/issues/{issue_id}/tags/{key}` | Lists the distinct values (with counts) for a tag key across the issue. |
|
|
369
370
|
| `issues.list({ path, query? })` | `GET /api/projects/{project_id}/issues` | Lists issues for a project with offset-based pagination |
|
|
371
|
+
| `issues.listAll({ query? })` | `GET /api/issues` | Lists issues across every project the reader can read issues on, in the same shape and pages as a project's list. |
|
|
370
372
|
| `issues.listUserReports({ path, query? })` | `GET /api/projects/{project_id}/issues/{issue_id}/user-reports` | List user feedback for an issue. |
|
|
371
373
|
| `issues.markSeen({ path })` | `POST /api/projects/{project_id}/issues/{issue_id}/seen` | Mark the issue as seen by the current user. |
|
|
372
374
|
| `issues.setBookmark({ path, body })` | `PUT /api/projects/{project_id}/issues/{issue_id}/bookmark` | Set/clear the per-user bookmark. |
|
|
@@ -432,6 +434,21 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
432
434
|
| `releases.list({ path, query? })` | `GET /api/projects/{project_id}/releases` | Lists a project's releases, newest first, with the events, new issues, environments and session health of each. |
|
|
433
435
|
| `releases.newIssues({ path, query? })` | `GET /api/projects/{project_id}/releases/{release}/new-issues` | Lists the issues first seen in a release. |
|
|
434
436
|
|
|
437
|
+
### Saved Views
|
|
438
|
+
|
|
439
|
+
| Method | Endpoint | Description |
|
|
440
|
+
|---|---|---|
|
|
441
|
+
| `savedViews.create({ path, body })` | `POST /api/projects/{project_id}/views` | Saves a project page's address as a view, personal unless `visibility` is `project`. |
|
|
442
|
+
| `savedViews.delete({ path })` | `DELETE /api/projects/{project_id}/views/{view_id}` | Deletes a project view. |
|
|
443
|
+
| `savedViews.list({ path, query })` | `GET /api/projects/{project_id}/views` | Lists the views of one project page the caller sees: their own and the shared ones. |
|
|
444
|
+
| `savedViews.setDefault({ path, body })` | `PUT /api/projects/{project_id}/views/default` | Sets or clears the view a project page opens on, for the caller or the project. |
|
|
445
|
+
| `savedViews.update({ path, body })` | `PATCH /api/projects/{project_id}/views/{view_id}` | Renames a project view, or changes its address or who sees it. |
|
|
446
|
+
| `workspaceViews.create({ body })` | `POST /api/views` | Saves a workspace page's address as a view, personal unless `visibility` is `project`. |
|
|
447
|
+
| `workspaceViews.delete({ path })` | `DELETE /api/views/{view_id}` | Deletes a workspace view. |
|
|
448
|
+
| `workspaceViews.list({ query })` | `GET /api/views` | Lists the views of one workspace page (one that spans every project). |
|
|
449
|
+
| `workspaceViews.setDefault({ body })` | `PUT /api/views/default` | Sets or clears the view a workspace page opens on, for the caller or everyone. |
|
|
450
|
+
| `workspaceViews.update({ path, body })` | `PATCH /api/views/{view_id}` | Renames a workspace view, or changes its address or who sees it. |
|
|
451
|
+
|
|
435
452
|
### Schedules
|
|
436
453
|
|
|
437
454
|
| Method | Endpoint | Description |
|
|
@@ -445,6 +462,7 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
445
462
|
| `sentry.getIssue({ path })` | `GET /api/0/issues/{issue_id}/` | One issue with its releases and its 24h and 30d series (Sentry's `GroupDetailsEndpoint`). |
|
|
446
463
|
| `sentry.getLatestEvent({ path })` | `GET /api/0/issues/{issue_id}/events/latest/` | The issue's most recent event (Sentry's `GroupEventDetailsEndpoint`, `issues/endpoints/group_event_details.py`). |
|
|
447
464
|
| `sentry.listIssues({ path, query? })` | `GET /api/0/projects/{org_slug}/{project_slug}/issues/` | Issues, filtered by `query`, sorted by `sort` and paginated by `cursor` (Sentry's `ProjectGroupIndexEndpoint`, `issues/endpoints/project_group_index.py`). |
|
|
465
|
+
| `sentry.listOrganizationIssues({ path, query? })` | `GET /api/0/organizations/{org_slug}/issues/` | Issues across projects, narrowed by `project`, filtered by `query`, sorted by `sort` and paginated by `cursor` (Sentry's `OrganizationGroupIndexEndpoint`, `issues/endpoints/organization_group_index.py`). |
|
|
448
466
|
| `sentry.listOrganizations()` | `GET /api/0/organizations/` | The organizations the token belongs to (Sentry's `OrganizationIndexEndpoint`): always the one synthetic org. |
|
|
449
467
|
| `sentry.listProjects({ query? })` | `GET /api/0/projects/` | The projects the token can see, newest first (Sentry's `ProjectIndexEndpoint`, `core/endpoints/project_index.py`). |
|
|
450
468
|
| `sentry.listRepos({ path })` | `GET /api/0/organizations/{org_slug}/repos/` | The code repositories connected to the organization (Sentry's `OrganizationRepositoriesEndpoint`). |
|
package/dist/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_binary_gen = require("./generated/binary.gen.cjs");
|
|
2
|
-
const require_utils_gen = require("./generated/client/utils.gen.cjs");
|
|
3
2
|
const require_client_gen = require("./generated/client/client.gen.cjs");
|
|
3
|
+
const require_utils_gen = require("./generated/client/utils.gen.cjs");
|
|
4
4
|
const require_sdk_gen = require("./generated/sdk.gen.cjs");
|
|
5
5
|
const require_result = require("./result.cjs");
|
|
6
6
|
const require_http = require("./utils/http.cjs");
|
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BINARY } from "./generated/binary.gen.mjs";
|
|
2
|
-
import { createConfig } from "./generated/client/utils.gen.mjs";
|
|
3
2
|
import { createClient } from "./generated/client/client.gen.mjs";
|
|
3
|
+
import { createConfig } from "./generated/client/utils.gen.mjs";
|
|
4
4
|
import { Rustrak } from "./generated/sdk.gen.mjs";
|
|
5
5
|
import { Err, Ok } from "./result.mjs";
|
|
6
6
|
import { RustrakTransportFailure, createFetch, transformHttpError } from "./utils/http.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./types.gen.cjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Auth } from "../core/auth.gen.cjs";
|
|
2
|
+
import { QuerySerializerOptions } from "../core/bodySerializer.gen.cjs";
|
|
3
|
+
import "../core/params.gen.cjs";
|
|
4
|
+
import "../core/queryKeySerializer.gen.cjs";
|
|
5
|
+
import { ServerSentEventsResult } from "../core/serverSentEvents.gen.cjs";
|
|
6
|
+
import { ClientMeta } from "../core/types.gen.cjs";
|
|
7
|
+
import "./client.gen.cjs";
|
|
8
|
+
import { Client, ClientOptions, Config, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape } from "./types.gen.cjs";
|
|
9
|
+
import "./utils.gen.cjs";
|
|
10
|
+
export type { Client, ClientMeta, Options, RequestResult, TDataShape };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Auth } from "../core/auth.gen.cjs";
|
|
2
|
-
import { Client as Client$1, Config as Config$1 } from "../core/types.gen.cjs";
|
|
3
2
|
import { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.cjs";
|
|
3
|
+
import { Client as Client$1, Config as Config$1 } from "../core/types.gen.cjs";
|
|
4
4
|
import { Middleware } from "./utils.gen.cjs";
|
|
5
5
|
export type ResponseStyle = 'data' | 'fields';
|
|
6
6
|
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Auth } from "../core/auth.gen.mjs";
|
|
2
|
-
import { Client as Client$1, Config as Config$1 } from "../core/types.gen.mjs";
|
|
3
2
|
import { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.mjs";
|
|
3
|
+
import { Client as Client$1, Config as Config$1 } from "../core/types.gen.mjs";
|
|
4
4
|
import { Middleware } from "./utils.gen.mjs";
|
|
5
5
|
export type ResponseStyle = 'data' | 'fields';
|
|
6
6
|
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
const require_auth_gen = require("../core/auth.gen.cjs");
|
|
1
2
|
const require_bodySerializer_gen = require("../core/bodySerializer.gen.cjs");
|
|
2
3
|
const require_pathSerializer_gen = require("../core/pathSerializer.gen.cjs");
|
|
3
4
|
const require_utils_gen = require("../core/utils.gen.cjs");
|
|
4
|
-
const require_auth_gen = require("../core/auth.gen.cjs");
|
|
5
5
|
// src/generated/client/utils.gen.ts
|
|
6
6
|
const createQuerySerializer = ({ parameters = {}, ...args } = {}) => {
|
|
7
7
|
const querySerializer = (queryParams) => {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "../core/bodySerializer.gen.cjs";
|
|
2
|
+
import "./types.gen.cjs";
|
|
1
3
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res | undefined, request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
2
4
|
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
3
5
|
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.gen.d.cts","names":[],"sources":["../../../src/generated/client/utils.gen.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.gen.d.cts","names":[],"sources":["../../../src/generated/client/utils.gen.ts"],"mappings":";;KAwNK,eAAe,KAAK,KAAK,KAAK,YACjC,OAAO,KAEP,UAAU,iBAEV,SAAS,iBACT,SAAS,YACN,MAAM,QAAQ;KAEd,eAAe,KAAK,YAAY,SAAS,KAAK,SAAS,YAAY,MAAM,QAAQ;KAEjF,eAAe,KAAK,KAAK,YAC5B,UAAU,KACV,SAAS,KACT,SAAS,YACN,MAAM,QAAQ;cAEb,aAAa;EACjB,KAAK,MAAM;EAEX;EAIA,MAAM,aAAa;EAOnB,OAAO,aAAa;EAKpB,oBAAoB,aAAa;EAOjC,OAAO,aAAa,aAAa,IAAI,uBAAuB;EAS5D,IAAI,IAAI;;iBAMO,WAAW,KAAK,KAAK,KAAK;EACzC,OAAO,aAAa,eAAe,KAAK,KAAK,KAAK;EAClD,SAAS,aAAa,eAAe,KAAK;EAC1C,UAAU,aAAa,eAAe,KAAK,KAAK"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getAuthToken } from "../core/auth.gen.mjs";
|
|
1
2
|
import { jsonBodySerializer } from "../core/bodySerializer.gen.mjs";
|
|
2
3
|
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } from "../core/pathSerializer.gen.mjs";
|
|
3
4
|
import { getUrl } from "../core/utils.gen.mjs";
|
|
4
|
-
import { getAuthToken } from "../core/auth.gen.mjs";
|
|
5
5
|
// src/generated/client/utils.gen.ts
|
|
6
6
|
const createQuerySerializer = ({ parameters = {}, ...args } = {}) => {
|
|
7
7
|
const querySerializer = (queryParams) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
const require_client_gen = require("./client/client.gen.cjs");
|
|
1
2
|
const require_utils_gen = require("./client/utils.gen.cjs");
|
|
2
3
|
// src/generated/client.gen.ts
|
|
3
|
-
const client =
|
|
4
|
+
const client = require_client_gen.createClient(require_utils_gen.createConfig({ baseUrl: "/" }));
|
|
4
5
|
exports.client = client;
|
|
5
6
|
|
|
6
7
|
//# sourceMappingURL=client.gen.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.gen.cjs","names":["createClient","createConfig"],"sources":["../../src/generated/client.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type Client, type ClientOptions, type Config, createClient, createConfig } from './client/index.js';\nimport type { ClientOptions as ClientOptions2 } from './types.gen.js';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;\n\nexport const client: Client = createClient(createConfig<ClientOptions2>({ baseUrl: '/' }));\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.gen.cjs","names":["createClient","createConfig"],"sources":["../../src/generated/client.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type Client, type ClientOptions, type Config, createClient, createConfig } from './client/index.js';\nimport type { ClientOptions as ClientOptions2 } from './types.gen.js';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;\n\nexport const client: Client = createClient(createConfig<ClientOptions2>({ baseUrl: '/' }));\n"],"mappings":";;;AAeA,MAAa,SAAiBA,mBAAAA,aAAaC,kBAAAA,aAA6B,EAAE,SAAS,IAAI,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createConfig } from "./client/utils.gen.mjs";
|
|
2
1
|
import { createClient } from "./client/client.gen.mjs";
|
|
2
|
+
import { createConfig } from "./client/utils.gen.mjs";
|
|
3
3
|
// src/generated/client.gen.ts
|
|
4
4
|
const client = createClient(createConfig({ baseUrl: "/" }));
|
|
5
5
|
export { client };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|