@rustrak/client 0.26.0 → 0.27.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.
- package/README.md +18 -0
- package/dist/client.cjs +4 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +4 -4
- package/dist/client.mjs.map +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 +1231 -942
- 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 +1053 -766
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +349 -0
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +349 -0
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +2076 -1824
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +895 -681
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_bodySerializer_gen = require("./core/bodySerializer.gen.cjs");
|
|
3
2
|
const require_client_gen = require("./client.gen.cjs");
|
|
3
|
+
const require_bodySerializer_gen = require("./core/bodySerializer.gen.cjs");
|
|
4
4
|
const require_zod_gen = require("./zod.gen.cjs");
|
|
5
|
-
let
|
|
6
|
-
|
|
5
|
+
let zod_mini = require("zod/mini");
|
|
6
|
+
zod_mini = require_runtime.__toESM(zod_mini, 1);
|
|
7
7
|
// src/generated/sdk.gen.ts
|
|
8
8
|
var HeyApiClient = class {
|
|
9
9
|
client;
|
|
@@ -31,10 +31,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
31
31
|
*/
|
|
32
32
|
getIssue(options) {
|
|
33
33
|
return (options.client ?? this.client).get({
|
|
34
|
-
requestValidator: async (data) => await
|
|
35
|
-
body:
|
|
34
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
35
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
36
36
|
path: require_zod_gen.zSentryGetIssuePath,
|
|
37
|
-
query:
|
|
37
|
+
query: zod_mini.optional(zod_mini.never())
|
|
38
38
|
}).parseAsync(data),
|
|
39
39
|
responseValidator: async (data) => await require_zod_gen.zSentryGetIssueResponse.parseAsync(data),
|
|
40
40
|
security: [{
|
|
@@ -52,10 +52,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
52
52
|
*/
|
|
53
53
|
updateIssue(options) {
|
|
54
54
|
return (options.client ?? this.client).put({
|
|
55
|
-
requestValidator: async (data) => await
|
|
55
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
56
56
|
body: require_zod_gen.zSentryUpdateIssueBody,
|
|
57
57
|
path: require_zod_gen.zSentryUpdateIssuePath,
|
|
58
|
-
query:
|
|
58
|
+
query: zod_mini.optional(zod_mini.never())
|
|
59
59
|
}).parseAsync(data),
|
|
60
60
|
responseValidator: async (data) => await require_zod_gen.zSentryUpdateIssueResponse.parseAsync(data),
|
|
61
61
|
security: [{
|
|
@@ -76,10 +76,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
76
76
|
*/
|
|
77
77
|
getLatestEvent(options) {
|
|
78
78
|
return (options.client ?? this.client).get({
|
|
79
|
-
requestValidator: async (data) => await
|
|
80
|
-
body:
|
|
79
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
80
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
81
81
|
path: require_zod_gen.zSentryGetLatestEventPath,
|
|
82
|
-
query:
|
|
82
|
+
query: zod_mini.optional(zod_mini.never())
|
|
83
83
|
}).parseAsync(data),
|
|
84
84
|
responseValidator: async (data) => await require_zod_gen.zSentryGetLatestEventResponse.parseAsync(data),
|
|
85
85
|
security: [{
|
|
@@ -96,10 +96,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
96
96
|
*/
|
|
97
97
|
listOrganizations(options) {
|
|
98
98
|
return (options?.client ?? this.client).get({
|
|
99
|
-
requestValidator: async (data) => await
|
|
100
|
-
body:
|
|
101
|
-
path:
|
|
102
|
-
query:
|
|
99
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
100
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
101
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
102
|
+
query: zod_mini.optional(zod_mini.never())
|
|
103
103
|
}).parseAsync(data),
|
|
104
104
|
responseValidator: async (data) => await require_zod_gen.zSentryListOrganizationsResponse.parseAsync(data),
|
|
105
105
|
security: [{
|
|
@@ -111,16 +111,38 @@ var Sentry = class extends HeyApiClient {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
+
* Issues across projects, narrowed by `project`, filtered by `query`,
|
|
115
|
+
* sorted by `sort` and paginated by `cursor` (Sentry's
|
|
116
|
+
* `OrganizationGroupIndexEndpoint`,
|
|
117
|
+
* `issues/endpoints/organization_group_index.py`).
|
|
118
|
+
*/
|
|
119
|
+
listOrganizationIssues(options) {
|
|
120
|
+
return (options.client ?? this.client).get({
|
|
121
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
122
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
123
|
+
path: require_zod_gen.zSentryListOrganizationIssuesPath,
|
|
124
|
+
query: zod_mini.optional(require_zod_gen.zSentryListOrganizationIssuesQuery)
|
|
125
|
+
}).parseAsync(data),
|
|
126
|
+
responseValidator: async (data) => await require_zod_gen.zSentryListOrganizationIssuesResponse.parseAsync(data),
|
|
127
|
+
security: [{
|
|
128
|
+
scheme: "bearer",
|
|
129
|
+
type: "http"
|
|
130
|
+
}],
|
|
131
|
+
url: "/api/0/organizations/{org_slug}/issues/",
|
|
132
|
+
...options
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
114
136
|
* The code repositories connected to the organization (Sentry's
|
|
115
137
|
* `OrganizationRepositoriesEndpoint`). Rustrak connects none through
|
|
116
138
|
* Sentry's integrations, so the list is always empty.
|
|
117
139
|
*/
|
|
118
140
|
listRepos(options) {
|
|
119
141
|
return (options.client ?? this.client).get({
|
|
120
|
-
requestValidator: async (data) => await
|
|
121
|
-
body:
|
|
142
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
143
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
122
144
|
path: require_zod_gen.zSentryListReposPath,
|
|
123
|
-
query:
|
|
145
|
+
query: zod_mini.optional(zod_mini.never())
|
|
124
146
|
}).parseAsync(data),
|
|
125
147
|
responseValidator: async (data) => await require_zod_gen.zSentryListReposResponse.parseAsync(data),
|
|
126
148
|
security: [{
|
|
@@ -137,10 +159,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
137
159
|
*/
|
|
138
160
|
listProjects(options) {
|
|
139
161
|
return (options?.client ?? this.client).get({
|
|
140
|
-
requestValidator: async (data) => await
|
|
141
|
-
body:
|
|
142
|
-
path:
|
|
143
|
-
query: require_zod_gen.zSentryListProjectsQuery
|
|
162
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
163
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
164
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
165
|
+
query: zod_mini.optional(require_zod_gen.zSentryListProjectsQuery)
|
|
144
166
|
}).parseAsync(data),
|
|
145
167
|
responseValidator: async (data) => await require_zod_gen.zSentryListProjectsResponse.parseAsync(data),
|
|
146
168
|
security: [{
|
|
@@ -158,10 +180,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
158
180
|
*/
|
|
159
181
|
listIssues(options) {
|
|
160
182
|
return (options.client ?? this.client).get({
|
|
161
|
-
requestValidator: async (data) => await
|
|
162
|
-
body:
|
|
183
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
184
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
163
185
|
path: require_zod_gen.zSentryListIssuesPath,
|
|
164
|
-
query: require_zod_gen.zSentryListIssuesQuery
|
|
186
|
+
query: zod_mini.optional(require_zod_gen.zSentryListIssuesQuery)
|
|
165
187
|
}).parseAsync(data),
|
|
166
188
|
responseValidator: async (data) => await require_zod_gen.zSentryListIssuesResponse.parseAsync(data),
|
|
167
189
|
security: [{
|
|
@@ -180,10 +202,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
180
202
|
*/
|
|
181
203
|
submitUserFeedback(options) {
|
|
182
204
|
return (options.client ?? this.client).post({
|
|
183
|
-
requestValidator: async (data) => await
|
|
205
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
184
206
|
body: require_zod_gen.zSentrySubmitUserFeedbackBody,
|
|
185
207
|
path: require_zod_gen.zSentrySubmitUserFeedbackPath,
|
|
186
|
-
query:
|
|
208
|
+
query: zod_mini.optional(zod_mini.never())
|
|
187
209
|
}).parseAsync(data),
|
|
188
210
|
responseValidator: async (data) => await require_zod_gen.zSentrySubmitUserFeedbackResponse.parseAsync(data),
|
|
189
211
|
security: [{
|
|
@@ -206,10 +228,10 @@ var Sentry = class extends HeyApiClient {
|
|
|
206
228
|
*/
|
|
207
229
|
openIssue(options) {
|
|
208
230
|
return (options.client ?? this.client).get({
|
|
209
|
-
requestValidator: async (data) => await
|
|
210
|
-
body:
|
|
231
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
232
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
211
233
|
path: require_zod_gen.zSentryOpenIssuePath,
|
|
212
|
-
query:
|
|
234
|
+
query: zod_mini.optional(zod_mini.never())
|
|
213
235
|
}).parseAsync(data),
|
|
214
236
|
security: [{
|
|
215
237
|
in: "cookie",
|
|
@@ -230,10 +252,10 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
230
252
|
*/
|
|
231
253
|
orgDetails(options) {
|
|
232
254
|
return (options.client ?? this.client).get({
|
|
233
|
-
requestValidator: async (data) => await
|
|
234
|
-
body:
|
|
255
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
256
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
235
257
|
path: require_zod_gen.zSourceMapsOrgDetailsPath,
|
|
236
|
-
query:
|
|
258
|
+
query: zod_mini.optional(zod_mini.never())
|
|
237
259
|
}).parseAsync(data),
|
|
238
260
|
responseValidator: async (data) => await require_zod_gen.zSourceMapsOrgDetailsResponse.parseAsync(data),
|
|
239
261
|
url: "/api/0/organizations/{org_slug}/",
|
|
@@ -245,10 +267,10 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
245
267
|
*/
|
|
246
268
|
artifactBundleAssemble(options) {
|
|
247
269
|
return (options.client ?? this.client).post({
|
|
248
|
-
requestValidator: async (data) => await
|
|
270
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
249
271
|
body: require_zod_gen.zSourceMapsArtifactBundleAssembleBody,
|
|
250
272
|
path: require_zod_gen.zSourceMapsArtifactBundleAssemblePath,
|
|
251
|
-
query:
|
|
273
|
+
query: zod_mini.optional(zod_mini.never())
|
|
252
274
|
}).parseAsync(data),
|
|
253
275
|
responseValidator: async (data) => await require_zod_gen.zSourceMapsArtifactBundleAssembleResponse.parseAsync(data),
|
|
254
276
|
security: [{
|
|
@@ -268,10 +290,10 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
268
290
|
*/
|
|
269
291
|
chunkUploadCapability(options) {
|
|
270
292
|
return (options.client ?? this.client).get({
|
|
271
|
-
requestValidator: async (data) => await
|
|
272
|
-
body:
|
|
293
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
294
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
273
295
|
path: require_zod_gen.zSourceMapsChunkUploadCapabilityPath,
|
|
274
|
-
query:
|
|
296
|
+
query: zod_mini.optional(zod_mini.never())
|
|
275
297
|
}).parseAsync(data),
|
|
276
298
|
responseValidator: async (data) => await require_zod_gen.zSourceMapsChunkUploadCapabilityResponse.parseAsync(data),
|
|
277
299
|
security: [{
|
|
@@ -288,10 +310,10 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
288
310
|
chunkUpload(options) {
|
|
289
311
|
return (options.client ?? this.client).post({
|
|
290
312
|
...require_bodySerializer_gen.formDataBodySerializer,
|
|
291
|
-
requestValidator: async (data) => await
|
|
313
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
292
314
|
body: require_zod_gen.zSourceMapsChunkUploadBody,
|
|
293
315
|
path: require_zod_gen.zSourceMapsChunkUploadPath,
|
|
294
|
-
query:
|
|
316
|
+
query: zod_mini.optional(zod_mini.never())
|
|
295
317
|
}).parseAsync(data),
|
|
296
318
|
security: [{
|
|
297
319
|
scheme: "bearer",
|
|
@@ -310,10 +332,10 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
310
332
|
*/
|
|
311
333
|
list(options) {
|
|
312
334
|
return (options.client ?? this.client).get({
|
|
313
|
-
requestValidator: async (data) => await
|
|
314
|
-
body:
|
|
335
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
336
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
315
337
|
path: require_zod_gen.zSourceMapsListPath,
|
|
316
|
-
query:
|
|
338
|
+
query: zod_mini.optional(zod_mini.never())
|
|
317
339
|
}).parseAsync(data),
|
|
318
340
|
responseValidator: async (data) => await require_zod_gen.zSourceMapsListResponse.parseAsync(data),
|
|
319
341
|
security: [{
|
|
@@ -334,10 +356,10 @@ var DebugFiles = class extends HeyApiClient {
|
|
|
334
356
|
*/
|
|
335
357
|
assemble(options) {
|
|
336
358
|
return (options.client ?? this.client).post({
|
|
337
|
-
requestValidator: async (data) => await
|
|
359
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
338
360
|
body: require_zod_gen.zDebugFilesAssembleBody,
|
|
339
361
|
path: require_zod_gen.zDebugFilesAssemblePath,
|
|
340
|
-
query:
|
|
362
|
+
query: zod_mini.optional(zod_mini.never())
|
|
341
363
|
}).parseAsync(data),
|
|
342
364
|
responseValidator: async (data) => await require_zod_gen.zDebugFilesAssembleResponse.parseAsync(data),
|
|
343
365
|
security: [{
|
|
@@ -363,10 +385,10 @@ var DebugFiles = class extends HeyApiClient {
|
|
|
363
385
|
upload(options) {
|
|
364
386
|
return (options.client ?? this.client).post({
|
|
365
387
|
...require_bodySerializer_gen.formDataBodySerializer,
|
|
366
|
-
requestValidator: async (data) => await
|
|
388
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
367
389
|
body: require_zod_gen.zDebugFilesUploadBody,
|
|
368
390
|
path: require_zod_gen.zDebugFilesUploadPath,
|
|
369
|
-
query:
|
|
391
|
+
query: zod_mini.optional(zod_mini.never())
|
|
370
392
|
}).parseAsync(data),
|
|
371
393
|
responseValidator: async (data) => await require_zod_gen.zDebugFilesUploadResponse.parseAsync(data),
|
|
372
394
|
security: [{
|
|
@@ -396,10 +418,10 @@ var Releases = class extends HeyApiClient {
|
|
|
396
418
|
*/
|
|
397
419
|
create(options) {
|
|
398
420
|
return (options.client ?? this.client).post({
|
|
399
|
-
requestValidator: async (data) => await
|
|
421
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
400
422
|
body: require_zod_gen.zReleasesCreateBody,
|
|
401
423
|
path: require_zod_gen.zReleasesCreatePath,
|
|
402
|
-
query:
|
|
424
|
+
query: zod_mini.optional(zod_mini.never())
|
|
403
425
|
}).parseAsync(data),
|
|
404
426
|
responseValidator: async (data) => await require_zod_gen.zReleasesCreateResponse.parseAsync(data),
|
|
405
427
|
security: [{
|
|
@@ -420,10 +442,10 @@ var Releases = class extends HeyApiClient {
|
|
|
420
442
|
*/
|
|
421
443
|
finalize(options) {
|
|
422
444
|
return (options.client ?? this.client).put({
|
|
423
|
-
requestValidator: async (data) => await
|
|
445
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
424
446
|
body: require_zod_gen.zReleasesFinalizeBody,
|
|
425
447
|
path: require_zod_gen.zReleasesFinalizePath,
|
|
426
|
-
query:
|
|
448
|
+
query: zod_mini.optional(zod_mini.never())
|
|
427
449
|
}).parseAsync(data),
|
|
428
450
|
responseValidator: async (data) => await require_zod_gen.zReleasesFinalizeResponse.parseAsync(data),
|
|
429
451
|
security: [{
|
|
@@ -444,10 +466,10 @@ var Releases = class extends HeyApiClient {
|
|
|
444
466
|
*/
|
|
445
467
|
list(options) {
|
|
446
468
|
return (options.client ?? this.client).get({
|
|
447
|
-
requestValidator: async (data) => await
|
|
448
|
-
body:
|
|
469
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
470
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
449
471
|
path: require_zod_gen.zReleasesListPath,
|
|
450
|
-
query: require_zod_gen.zReleasesListQuery
|
|
472
|
+
query: zod_mini.optional(require_zod_gen.zReleasesListQuery)
|
|
451
473
|
}).parseAsync(data),
|
|
452
474
|
responseValidator: async (data) => await require_zod_gen.zReleasesListResponse.parseAsync(data),
|
|
453
475
|
security: [{
|
|
@@ -464,10 +486,10 @@ var Releases = class extends HeyApiClient {
|
|
|
464
486
|
*/
|
|
465
487
|
get(options) {
|
|
466
488
|
return (options.client ?? this.client).get({
|
|
467
|
-
requestValidator: async (data) => await
|
|
468
|
-
body:
|
|
489
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
490
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
469
491
|
path: require_zod_gen.zReleasesGetPath,
|
|
470
|
-
query: require_zod_gen.zReleasesGetQuery
|
|
492
|
+
query: zod_mini.optional(require_zod_gen.zReleasesGetQuery)
|
|
471
493
|
}).parseAsync(data),
|
|
472
494
|
responseValidator: async (data) => await require_zod_gen.zReleasesGetResponse.parseAsync(data),
|
|
473
495
|
security: [{
|
|
@@ -483,10 +505,10 @@ var Releases = class extends HeyApiClient {
|
|
|
483
505
|
*/
|
|
484
506
|
newIssues(options) {
|
|
485
507
|
return (options.client ?? this.client).get({
|
|
486
|
-
requestValidator: async (data) => await
|
|
487
|
-
body:
|
|
508
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
509
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
488
510
|
path: require_zod_gen.zReleasesNewIssuesPath,
|
|
489
|
-
query: require_zod_gen.zReleasesNewIssuesQuery
|
|
511
|
+
query: zod_mini.optional(require_zod_gen.zReleasesNewIssuesQuery)
|
|
490
512
|
}).parseAsync(data),
|
|
491
513
|
responseValidator: async (data) => await require_zod_gen.zReleasesNewIssuesResponse.parseAsync(data),
|
|
492
514
|
security: [{
|
|
@@ -504,10 +526,10 @@ var Access = class extends HeyApiClient {
|
|
|
504
526
|
*/
|
|
505
527
|
catalog(options) {
|
|
506
528
|
return (options?.client ?? this.client).get({
|
|
507
|
-
requestValidator: async (data) => await
|
|
508
|
-
body:
|
|
509
|
-
path:
|
|
510
|
-
query:
|
|
529
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
530
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
531
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
532
|
+
query: zod_mini.optional(zod_mini.never())
|
|
511
533
|
}).parseAsync(data),
|
|
512
534
|
responseValidator: async (data) => await require_zod_gen.zAccessCatalogResponse.parseAsync(data),
|
|
513
535
|
security: [{
|
|
@@ -523,10 +545,10 @@ var Access = class extends HeyApiClient {
|
|
|
523
545
|
*/
|
|
524
546
|
me(options) {
|
|
525
547
|
return (options?.client ?? this.client).get({
|
|
526
|
-
requestValidator: async (data) => await
|
|
527
|
-
body:
|
|
528
|
-
path:
|
|
529
|
-
query:
|
|
548
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
549
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
550
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
551
|
+
query: zod_mini.optional(zod_mini.never())
|
|
530
552
|
}).parseAsync(data),
|
|
531
553
|
responseValidator: async (data) => await require_zod_gen.zAccessMeResponse.parseAsync(data),
|
|
532
554
|
security: [{
|
|
@@ -538,16 +560,57 @@ var Access = class extends HeyApiClient {
|
|
|
538
560
|
});
|
|
539
561
|
}
|
|
540
562
|
};
|
|
563
|
+
var Feedback = class extends HeyApiClient {
|
|
564
|
+
/**
|
|
565
|
+
* Lists user feedback across every project the reader can read issues on.
|
|
566
|
+
*/
|
|
567
|
+
listAll(options) {
|
|
568
|
+
return (options?.client ?? this.client).get({
|
|
569
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
570
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
571
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
572
|
+
query: zod_mini.optional(require_zod_gen.zFeedbackListAllQuery)
|
|
573
|
+
}).parseAsync(data),
|
|
574
|
+
responseValidator: async (data) => await require_zod_gen.zFeedbackListAllResponse.parseAsync(data),
|
|
575
|
+
security: [{
|
|
576
|
+
scheme: "bearer",
|
|
577
|
+
type: "http"
|
|
578
|
+
}],
|
|
579
|
+
url: "/api/feedback",
|
|
580
|
+
...options
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Lists user feedback with what each user submitted. Every feedback is an
|
|
585
|
+
* issue of category `feedback`; spam is a muted one.
|
|
586
|
+
*/
|
|
587
|
+
list(options) {
|
|
588
|
+
return (options.client ?? this.client).get({
|
|
589
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
590
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
591
|
+
path: require_zod_gen.zFeedbackListPath,
|
|
592
|
+
query: zod_mini.optional(require_zod_gen.zFeedbackListQuery)
|
|
593
|
+
}).parseAsync(data),
|
|
594
|
+
responseValidator: async (data) => await require_zod_gen.zFeedbackListResponse.parseAsync(data),
|
|
595
|
+
security: [{
|
|
596
|
+
scheme: "bearer",
|
|
597
|
+
type: "http"
|
|
598
|
+
}],
|
|
599
|
+
url: "/api/projects/{project_id}/feedback",
|
|
600
|
+
...options
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
};
|
|
541
604
|
var Github = class extends HeyApiClient {
|
|
542
605
|
/**
|
|
543
606
|
* Disconnects the GitHub App from this instance.
|
|
544
607
|
*/
|
|
545
608
|
disconnect(options) {
|
|
546
609
|
return (options?.client ?? this.client).delete({
|
|
547
|
-
requestValidator: async (data) => await
|
|
548
|
-
body:
|
|
549
|
-
path:
|
|
550
|
-
query:
|
|
610
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
611
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
612
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
613
|
+
query: zod_mini.optional(zod_mini.never())
|
|
551
614
|
}).parseAsync(data),
|
|
552
615
|
responseValidator: async (data) => await require_zod_gen.zGithubDisconnectResponse.parseAsync(data),
|
|
553
616
|
security: [{
|
|
@@ -563,10 +626,10 @@ var Github = class extends HeyApiClient {
|
|
|
563
626
|
*/
|
|
564
627
|
status(options) {
|
|
565
628
|
return (options?.client ?? this.client).get({
|
|
566
|
-
requestValidator: async (data) => await
|
|
567
|
-
body:
|
|
568
|
-
path:
|
|
569
|
-
query:
|
|
629
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
630
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
631
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
632
|
+
query: zod_mini.optional(zod_mini.never())
|
|
570
633
|
}).parseAsync(data),
|
|
571
634
|
responseValidator: async (data) => await require_zod_gen.zGithubStatusResponse.parseAsync(data),
|
|
572
635
|
security: [{
|
|
@@ -583,9 +646,9 @@ var Github = class extends HeyApiClient {
|
|
|
583
646
|
*/
|
|
584
647
|
callback(options) {
|
|
585
648
|
return (options.client ?? this.client).get({
|
|
586
|
-
requestValidator: async (data) => await
|
|
587
|
-
body:
|
|
588
|
-
path:
|
|
649
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
650
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
651
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
589
652
|
query: require_zod_gen.zGithubCallbackQuery
|
|
590
653
|
}).parseAsync(data),
|
|
591
654
|
security: [{
|
|
@@ -602,9 +665,9 @@ var Github = class extends HeyApiClient {
|
|
|
602
665
|
*/
|
|
603
666
|
installed(options) {
|
|
604
667
|
return (options.client ?? this.client).get({
|
|
605
|
-
requestValidator: async (data) => await
|
|
606
|
-
body:
|
|
607
|
-
path:
|
|
668
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
669
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
670
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
608
671
|
query: require_zod_gen.zGithubInstalledQuery
|
|
609
672
|
}).parseAsync(data),
|
|
610
673
|
security: [{
|
|
@@ -621,10 +684,10 @@ var Github = class extends HeyApiClient {
|
|
|
621
684
|
*/
|
|
622
685
|
putIssueTemplate(options) {
|
|
623
686
|
return (options.client ?? this.client).put({
|
|
624
|
-
requestValidator: async (data) => await
|
|
687
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
625
688
|
body: require_zod_gen.zGithubPutIssueTemplateBody,
|
|
626
|
-
path:
|
|
627
|
-
query:
|
|
689
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
690
|
+
query: zod_mini.optional(zod_mini.never())
|
|
628
691
|
}).parseAsync(data),
|
|
629
692
|
responseValidator: async (data) => await require_zod_gen.zGithubPutIssueTemplateResponse.parseAsync(data),
|
|
630
693
|
security: [{
|
|
@@ -645,10 +708,10 @@ var Github = class extends HeyApiClient {
|
|
|
645
708
|
*/
|
|
646
709
|
manifest(options) {
|
|
647
710
|
return (options.client ?? this.client).post({
|
|
648
|
-
requestValidator: async (data) => await
|
|
711
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
649
712
|
body: require_zod_gen.zGithubManifestBody,
|
|
650
|
-
path:
|
|
651
|
-
query:
|
|
713
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
714
|
+
query: zod_mini.optional(zod_mini.never())
|
|
652
715
|
}).parseAsync(data),
|
|
653
716
|
responseValidator: async (data) => await require_zod_gen.zGithubManifestResponse.parseAsync(data),
|
|
654
717
|
security: [{
|
|
@@ -668,10 +731,10 @@ var Github = class extends HeyApiClient {
|
|
|
668
731
|
*/
|
|
669
732
|
getMyLogin(options) {
|
|
670
733
|
return (options?.client ?? this.client).get({
|
|
671
|
-
requestValidator: async (data) => await
|
|
672
|
-
body:
|
|
673
|
-
path:
|
|
674
|
-
query:
|
|
734
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
735
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
736
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
737
|
+
query: zod_mini.optional(zod_mini.never())
|
|
675
738
|
}).parseAsync(data),
|
|
676
739
|
responseValidator: async (data) => await require_zod_gen.zGithubGetMyLoginResponse.parseAsync(data),
|
|
677
740
|
security: [{
|
|
@@ -687,10 +750,10 @@ var Github = class extends HeyApiClient {
|
|
|
687
750
|
*/
|
|
688
751
|
putMyLogin(options) {
|
|
689
752
|
return (options.client ?? this.client).put({
|
|
690
|
-
requestValidator: async (data) => await
|
|
753
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
691
754
|
body: require_zod_gen.zGithubPutMyLoginBody,
|
|
692
|
-
path:
|
|
693
|
-
query:
|
|
755
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
756
|
+
query: zod_mini.optional(zod_mini.never())
|
|
694
757
|
}).parseAsync(data),
|
|
695
758
|
responseValidator: async (data) => await require_zod_gen.zGithubPutMyLoginResponse.parseAsync(data),
|
|
696
759
|
security: [{
|
|
@@ -711,9 +774,9 @@ var Github = class extends HeyApiClient {
|
|
|
711
774
|
*/
|
|
712
775
|
repositories(options) {
|
|
713
776
|
return (options.client ?? this.client).get({
|
|
714
|
-
requestValidator: async (data) => await
|
|
715
|
-
body:
|
|
716
|
-
path:
|
|
777
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
778
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
779
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
717
780
|
query: require_zod_gen.zGithubRepositoriesQuery
|
|
718
781
|
}).parseAsync(data),
|
|
719
782
|
responseValidator: async (data) => await require_zod_gen.zGithubRepositoriesResponse.parseAsync(data),
|
|
@@ -731,10 +794,10 @@ var Github = class extends HeyApiClient {
|
|
|
731
794
|
*/
|
|
732
795
|
webhook(options) {
|
|
733
796
|
return (options.client ?? this.client).post({
|
|
734
|
-
requestValidator: async (data) => await
|
|
797
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
735
798
|
body: require_zod_gen.zGithubWebhookBody,
|
|
736
|
-
path:
|
|
737
|
-
query:
|
|
799
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
800
|
+
query: zod_mini.optional(zod_mini.never())
|
|
738
801
|
}).parseAsync(data),
|
|
739
802
|
responseValidator: async (data) => await require_zod_gen.zGithubWebhookResponse.parseAsync(data),
|
|
740
803
|
url: "/api/github/webhook",
|
|
@@ -750,10 +813,10 @@ var Github = class extends HeyApiClient {
|
|
|
750
813
|
*/
|
|
751
814
|
deleteProjectRepository(options) {
|
|
752
815
|
return (options.client ?? this.client).delete({
|
|
753
|
-
requestValidator: async (data) => await
|
|
754
|
-
body:
|
|
816
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
817
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
755
818
|
path: require_zod_gen.zGithubDeleteProjectRepositoryPath,
|
|
756
|
-
query:
|
|
819
|
+
query: zod_mini.optional(zod_mini.never())
|
|
757
820
|
}).parseAsync(data),
|
|
758
821
|
responseValidator: async (data) => await require_zod_gen.zGithubDeleteProjectRepositoryResponse.parseAsync(data),
|
|
759
822
|
security: [{
|
|
@@ -769,10 +832,10 @@ var Github = class extends HeyApiClient {
|
|
|
769
832
|
*/
|
|
770
833
|
getProjectRepository(options) {
|
|
771
834
|
return (options.client ?? this.client).get({
|
|
772
|
-
requestValidator: async (data) => await
|
|
773
|
-
body:
|
|
835
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
836
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
774
837
|
path: require_zod_gen.zGithubGetProjectRepositoryPath,
|
|
775
|
-
query:
|
|
838
|
+
query: zod_mini.optional(zod_mini.never())
|
|
776
839
|
}).parseAsync(data),
|
|
777
840
|
responseValidator: async (data) => await require_zod_gen.zGithubGetProjectRepositoryResponse.parseAsync(data),
|
|
778
841
|
security: [{
|
|
@@ -788,10 +851,10 @@ var Github = class extends HeyApiClient {
|
|
|
788
851
|
*/
|
|
789
852
|
putProjectRepository(options) {
|
|
790
853
|
return (options.client ?? this.client).put({
|
|
791
|
-
requestValidator: async (data) => await
|
|
854
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
792
855
|
body: require_zod_gen.zGithubPutProjectRepositoryBody,
|
|
793
856
|
path: require_zod_gen.zGithubPutProjectRepositoryPath,
|
|
794
|
-
query:
|
|
857
|
+
query: zod_mini.optional(zod_mini.never())
|
|
795
858
|
}).parseAsync(data),
|
|
796
859
|
responseValidator: async (data) => await require_zod_gen.zGithubPutProjectRepositoryResponse.parseAsync(data),
|
|
797
860
|
security: [{
|
|
@@ -812,10 +875,10 @@ var Github = class extends HeyApiClient {
|
|
|
812
875
|
*/
|
|
813
876
|
syncCodeowners(options) {
|
|
814
877
|
return (options.client ?? this.client).post({
|
|
815
|
-
requestValidator: async (data) => await
|
|
816
|
-
body:
|
|
878
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
879
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
817
880
|
path: require_zod_gen.zGithubSyncCodeownersPath,
|
|
818
|
-
query:
|
|
881
|
+
query: zod_mini.optional(zod_mini.never())
|
|
819
882
|
}).parseAsync(data),
|
|
820
883
|
responseValidator: async (data) => await require_zod_gen.zGithubSyncCodeownersResponse.parseAsync(data),
|
|
821
884
|
security: [{
|
|
@@ -832,10 +895,10 @@ var Github = class extends HeyApiClient {
|
|
|
832
895
|
*/
|
|
833
896
|
issue(options) {
|
|
834
897
|
return (options.client ?? this.client).get({
|
|
835
|
-
requestValidator: async (data) => await
|
|
836
|
-
body:
|
|
898
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
899
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
837
900
|
path: require_zod_gen.zGithubIssuePath,
|
|
838
|
-
query:
|
|
901
|
+
query: zod_mini.optional(zod_mini.never())
|
|
839
902
|
}).parseAsync(data),
|
|
840
903
|
responseValidator: async (data) => await require_zod_gen.zGithubIssueResponse.parseAsync(data),
|
|
841
904
|
security: [{
|
|
@@ -852,10 +915,10 @@ var Github = class extends HeyApiClient {
|
|
|
852
915
|
*/
|
|
853
916
|
issueDraft(options) {
|
|
854
917
|
return (options.client ?? this.client).get({
|
|
855
|
-
requestValidator: async (data) => await
|
|
856
|
-
body:
|
|
918
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
919
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
857
920
|
path: require_zod_gen.zGithubIssueDraftPath,
|
|
858
|
-
query:
|
|
921
|
+
query: zod_mini.optional(zod_mini.never())
|
|
859
922
|
}).parseAsync(data),
|
|
860
923
|
responseValidator: async (data) => await require_zod_gen.zGithubIssueDraftResponse.parseAsync(data),
|
|
861
924
|
security: [{
|
|
@@ -871,10 +934,10 @@ var Github = class extends HeyApiClient {
|
|
|
871
934
|
*/
|
|
872
935
|
createIssue(options) {
|
|
873
936
|
return (options.client ?? this.client).post({
|
|
874
|
-
requestValidator: async (data) => await
|
|
937
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
875
938
|
body: require_zod_gen.zGithubCreateIssueBody,
|
|
876
939
|
path: require_zod_gen.zGithubCreateIssuePath,
|
|
877
|
-
query:
|
|
940
|
+
query: zod_mini.optional(zod_mini.never())
|
|
878
941
|
}).parseAsync(data),
|
|
879
942
|
responseValidator: async (data) => await require_zod_gen.zGithubCreateIssueResponse.parseAsync(data),
|
|
880
943
|
security: [{
|
|
@@ -894,10 +957,10 @@ var Github = class extends HeyApiClient {
|
|
|
894
957
|
*/
|
|
895
958
|
linkIssue(options) {
|
|
896
959
|
return (options.client ?? this.client).post({
|
|
897
|
-
requestValidator: async (data) => await
|
|
960
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
898
961
|
body: require_zod_gen.zGithubLinkIssueBody,
|
|
899
962
|
path: require_zod_gen.zGithubLinkIssuePath,
|
|
900
|
-
query:
|
|
963
|
+
query: zod_mini.optional(zod_mini.never())
|
|
901
964
|
}).parseAsync(data),
|
|
902
965
|
responseValidator: async (data) => await require_zod_gen.zGithubLinkIssueResponse.parseAsync(data),
|
|
903
966
|
security: [{
|
|
@@ -917,10 +980,10 @@ var Github = class extends HeyApiClient {
|
|
|
917
980
|
*/
|
|
918
981
|
unlinkIssue(options) {
|
|
919
982
|
return (options.client ?? this.client).delete({
|
|
920
|
-
requestValidator: async (data) => await
|
|
921
|
-
body:
|
|
983
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
984
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
922
985
|
path: require_zod_gen.zGithubUnlinkIssuePath,
|
|
923
|
-
query:
|
|
986
|
+
query: zod_mini.optional(zod_mini.never())
|
|
924
987
|
}).parseAsync(data),
|
|
925
988
|
responseValidator: async (data) => await require_zod_gen.zGithubUnlinkIssueResponse.parseAsync(data),
|
|
926
989
|
security: [{
|
|
@@ -943,10 +1006,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
943
1006
|
*/
|
|
944
1007
|
list(options) {
|
|
945
1008
|
return (options?.client ?? this.client).get({
|
|
946
|
-
requestValidator: async (data) => await
|
|
947
|
-
body:
|
|
948
|
-
path:
|
|
949
|
-
query:
|
|
1009
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1010
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1011
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1012
|
+
query: zod_mini.optional(zod_mini.never())
|
|
950
1013
|
}).parseAsync(data),
|
|
951
1014
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsListResponse.parseAsync(data),
|
|
952
1015
|
security: [{
|
|
@@ -962,10 +1025,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
962
1025
|
*/
|
|
963
1026
|
create(options) {
|
|
964
1027
|
return (options.client ?? this.client).post({
|
|
965
|
-
requestValidator: async (data) => await
|
|
1028
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
966
1029
|
body: require_zod_gen.zAlertChannelsCreateBody,
|
|
967
|
-
path:
|
|
968
|
-
query:
|
|
1030
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1031
|
+
query: zod_mini.optional(zod_mini.never())
|
|
969
1032
|
}).parseAsync(data),
|
|
970
1033
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsCreateResponse.parseAsync(data),
|
|
971
1034
|
security: [{
|
|
@@ -988,10 +1051,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
988
1051
|
*/
|
|
989
1052
|
previewTemplate(options) {
|
|
990
1053
|
return (options.client ?? this.client).post({
|
|
991
|
-
requestValidator: async (data) => await
|
|
1054
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
992
1055
|
body: require_zod_gen.zAlertChannelsPreviewTemplateBody,
|
|
993
|
-
path:
|
|
994
|
-
query:
|
|
1056
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1057
|
+
query: zod_mini.optional(zod_mini.never())
|
|
995
1058
|
}).parseAsync(data),
|
|
996
1059
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsPreviewTemplateResponse.parseAsync(data),
|
|
997
1060
|
security: [{
|
|
@@ -1011,10 +1074,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1011
1074
|
*/
|
|
1012
1075
|
delete(options) {
|
|
1013
1076
|
return (options.client ?? this.client).delete({
|
|
1014
|
-
requestValidator: async (data) => await
|
|
1015
|
-
body:
|
|
1077
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1078
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1016
1079
|
path: require_zod_gen.zAlertChannelsDeletePath,
|
|
1017
|
-
query:
|
|
1080
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1018
1081
|
}).parseAsync(data),
|
|
1019
1082
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsDeleteResponse.parseAsync(data),
|
|
1020
1083
|
security: [{
|
|
@@ -1030,10 +1093,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1030
1093
|
*/
|
|
1031
1094
|
get(options) {
|
|
1032
1095
|
return (options.client ?? this.client).get({
|
|
1033
|
-
requestValidator: async (data) => await
|
|
1034
|
-
body:
|
|
1096
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1097
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1035
1098
|
path: require_zod_gen.zAlertChannelsGetPath,
|
|
1036
|
-
query:
|
|
1099
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1037
1100
|
}).parseAsync(data),
|
|
1038
1101
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsGetResponse.parseAsync(data),
|
|
1039
1102
|
security: [{
|
|
@@ -1049,10 +1112,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1049
1112
|
*/
|
|
1050
1113
|
update(options) {
|
|
1051
1114
|
return (options.client ?? this.client).patch({
|
|
1052
|
-
requestValidator: async (data) => await
|
|
1115
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1053
1116
|
body: require_zod_gen.zAlertChannelsUpdateBody,
|
|
1054
1117
|
path: require_zod_gen.zAlertChannelsUpdatePath,
|
|
1055
|
-
query:
|
|
1118
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1056
1119
|
}).parseAsync(data),
|
|
1057
1120
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsUpdateResponse.parseAsync(data),
|
|
1058
1121
|
security: [{
|
|
@@ -1072,10 +1135,10 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1072
1135
|
*/
|
|
1073
1136
|
test(options) {
|
|
1074
1137
|
return (options.client ?? this.client).post({
|
|
1075
|
-
requestValidator: async (data) => await
|
|
1076
|
-
body: require_zod_gen.zAlertChannelsTestBody
|
|
1138
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1139
|
+
body: zod_mini.optional(require_zod_gen.zAlertChannelsTestBody),
|
|
1077
1140
|
path: require_zod_gen.zAlertChannelsTestPath,
|
|
1078
|
-
query:
|
|
1141
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1079
1142
|
}).parseAsync(data),
|
|
1080
1143
|
responseValidator: async (data) => await require_zod_gen.zAlertChannelsTestResponse.parseAsync(data),
|
|
1081
1144
|
security: [{
|
|
@@ -1097,10 +1160,10 @@ var Invitations = class extends HeyApiClient {
|
|
|
1097
1160
|
*/
|
|
1098
1161
|
list(options) {
|
|
1099
1162
|
return (options?.client ?? this.client).get({
|
|
1100
|
-
requestValidator: async (data) => await
|
|
1101
|
-
body:
|
|
1102
|
-
path:
|
|
1103
|
-
query:
|
|
1163
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1164
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1165
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1166
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1104
1167
|
}).parseAsync(data),
|
|
1105
1168
|
responseValidator: async (data) => await require_zod_gen.zInvitationsListResponse.parseAsync(data),
|
|
1106
1169
|
security: [{
|
|
@@ -1120,10 +1183,10 @@ var Invitations = class extends HeyApiClient {
|
|
|
1120
1183
|
*/
|
|
1121
1184
|
create(options) {
|
|
1122
1185
|
return (options.client ?? this.client).post({
|
|
1123
|
-
requestValidator: async (data) => await
|
|
1186
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1124
1187
|
body: require_zod_gen.zInvitationsCreateBody,
|
|
1125
|
-
path:
|
|
1126
|
-
query:
|
|
1188
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1189
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1127
1190
|
}).parseAsync(data),
|
|
1128
1191
|
responseValidator: async (data) => await require_zod_gen.zInvitationsCreateResponse.parseAsync(data),
|
|
1129
1192
|
security: [{
|
|
@@ -1143,10 +1206,10 @@ var Invitations = class extends HeyApiClient {
|
|
|
1143
1206
|
*/
|
|
1144
1207
|
emailStatus(options) {
|
|
1145
1208
|
return (options?.client ?? this.client).get({
|
|
1146
|
-
requestValidator: async (data) => await
|
|
1147
|
-
body:
|
|
1148
|
-
path:
|
|
1149
|
-
query:
|
|
1209
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1210
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1211
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1212
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1150
1213
|
}).parseAsync(data),
|
|
1151
1214
|
responseValidator: async (data) => await require_zod_gen.zInvitationsEmailStatusResponse.parseAsync(data),
|
|
1152
1215
|
security: [{
|
|
@@ -1162,10 +1225,10 @@ var Invitations = class extends HeyApiClient {
|
|
|
1162
1225
|
*/
|
|
1163
1226
|
revoke(options) {
|
|
1164
1227
|
return (options.client ?? this.client).delete({
|
|
1165
|
-
requestValidator: async (data) => await
|
|
1166
|
-
body:
|
|
1228
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1229
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1167
1230
|
path: require_zod_gen.zInvitationsRevokePath,
|
|
1168
|
-
query:
|
|
1231
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1169
1232
|
}).parseAsync(data),
|
|
1170
1233
|
responseValidator: async (data) => await require_zod_gen.zInvitationsRevokeResponse.parseAsync(data),
|
|
1171
1234
|
security: [{
|
|
@@ -1181,10 +1244,10 @@ var Invitations = class extends HeyApiClient {
|
|
|
1181
1244
|
*/
|
|
1182
1245
|
resend(options) {
|
|
1183
1246
|
return (options.client ?? this.client).post({
|
|
1184
|
-
requestValidator: async (data) => await
|
|
1185
|
-
body:
|
|
1247
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1248
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1186
1249
|
path: require_zod_gen.zInvitationsResendPath,
|
|
1187
|
-
query:
|
|
1250
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1188
1251
|
}).parseAsync(data),
|
|
1189
1252
|
responseValidator: async (data) => await require_zod_gen.zInvitationsResendResponse.parseAsync(data),
|
|
1190
1253
|
security: [{
|
|
@@ -1196,34 +1259,43 @@ var Invitations = class extends HeyApiClient {
|
|
|
1196
1259
|
});
|
|
1197
1260
|
}
|
|
1198
1261
|
};
|
|
1199
|
-
var
|
|
1262
|
+
var Issues = class extends HeyApiClient {
|
|
1200
1263
|
/**
|
|
1201
|
-
*
|
|
1264
|
+
* Lists issues across every project the reader can read issues on, in the
|
|
1265
|
+
* same shape and pages as a project's list.
|
|
1202
1266
|
*/
|
|
1203
|
-
|
|
1204
|
-
return (options
|
|
1205
|
-
requestValidator: async (data) => await
|
|
1206
|
-
body:
|
|
1207
|
-
path:
|
|
1208
|
-
query: require_zod_gen.
|
|
1267
|
+
listAll(options) {
|
|
1268
|
+
return (options?.client ?? this.client).get({
|
|
1269
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1270
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1271
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1272
|
+
query: zod_mini.optional(require_zod_gen.zIssuesListAllQuery)
|
|
1209
1273
|
}).parseAsync(data),
|
|
1210
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1211
|
-
|
|
1274
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesListAllResponse.parseAsync(data),
|
|
1275
|
+
security: [{
|
|
1276
|
+
scheme: "bearer",
|
|
1277
|
+
type: "http"
|
|
1278
|
+
}],
|
|
1279
|
+
url: "/api/issues",
|
|
1212
1280
|
...options
|
|
1213
1281
|
});
|
|
1214
1282
|
}
|
|
1215
1283
|
/**
|
|
1216
|
-
*
|
|
1284
|
+
* Deletes many issues at once, selected by id or by filter.
|
|
1217
1285
|
*/
|
|
1218
|
-
|
|
1219
|
-
return (options.client ?? this.client).
|
|
1220
|
-
requestValidator: async (data) => await
|
|
1221
|
-
body: require_zod_gen.
|
|
1222
|
-
path:
|
|
1223
|
-
query:
|
|
1286
|
+
bulkDelete(options) {
|
|
1287
|
+
return (options.client ?? this.client).delete({
|
|
1288
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1289
|
+
body: require_zod_gen.zIssuesBulkDeleteBody,
|
|
1290
|
+
path: require_zod_gen.zIssuesBulkDeletePath,
|
|
1291
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1224
1292
|
}).parseAsync(data),
|
|
1225
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1226
|
-
|
|
1293
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesBulkDeleteResponse.parseAsync(data),
|
|
1294
|
+
security: [{
|
|
1295
|
+
scheme: "bearer",
|
|
1296
|
+
type: "http"
|
|
1297
|
+
}],
|
|
1298
|
+
url: "/api/projects/{project_id}/issues",
|
|
1227
1299
|
...options,
|
|
1228
1300
|
headers: {
|
|
1229
1301
|
"Content-Type": "application/json",
|
|
@@ -1232,78 +1304,40 @@ var Oauth = class extends HeyApiClient {
|
|
|
1232
1304
|
});
|
|
1233
1305
|
}
|
|
1234
1306
|
/**
|
|
1235
|
-
* Lists
|
|
1236
|
-
*/
|
|
1237
|
-
listGrants(options) {
|
|
1238
|
-
return (options?.client ?? this.client).get({
|
|
1239
|
-
requestValidator: async (data) => await zod.object({
|
|
1240
|
-
body: zod.never().optional(),
|
|
1241
|
-
path: zod.never().optional(),
|
|
1242
|
-
query: zod.never().optional()
|
|
1243
|
-
}).parseAsync(data),
|
|
1244
|
-
responseValidator: async (data) => await require_zod_gen.zOauthListGrantsResponse.parseAsync(data),
|
|
1245
|
-
url: "/api/oauth/grants",
|
|
1246
|
-
...options
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
/**
|
|
1250
|
-
* Disconnects an assistant: its tokens stop working at once.
|
|
1251
|
-
*/
|
|
1252
|
-
revokeGrant(options) {
|
|
1253
|
-
return (options.client ?? this.client).delete({
|
|
1254
|
-
requestValidator: async (data) => await zod.object({
|
|
1255
|
-
body: zod.never().optional(),
|
|
1256
|
-
path: require_zod_gen.zOauthRevokeGrantPath,
|
|
1257
|
-
query: zod.never().optional()
|
|
1258
|
-
}).parseAsync(data),
|
|
1259
|
-
responseValidator: async (data) => await require_zod_gen.zOauthRevokeGrantResponse.parseAsync(data),
|
|
1260
|
-
url: "/api/oauth/grants/{id}",
|
|
1261
|
-
...options
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
var Projects = class extends HeyApiClient {
|
|
1266
|
-
/**
|
|
1267
|
-
* List projects with pagination.
|
|
1268
|
-
*
|
|
1269
|
-
* Only the projects the caller holds a permission on.
|
|
1307
|
+
* Lists issues for a project with offset-based pagination
|
|
1270
1308
|
*/
|
|
1271
1309
|
list(options) {
|
|
1272
|
-
return (options
|
|
1273
|
-
requestValidator: async (data) => await
|
|
1274
|
-
body:
|
|
1275
|
-
path:
|
|
1276
|
-
query:
|
|
1310
|
+
return (options.client ?? this.client).get({
|
|
1311
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1312
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1313
|
+
path: require_zod_gen.zIssuesListPath,
|
|
1314
|
+
query: zod_mini.optional(require_zod_gen.zIssuesListQuery)
|
|
1277
1315
|
}).parseAsync(data),
|
|
1278
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1316
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesListResponse.parseAsync(data),
|
|
1279
1317
|
security: [{
|
|
1280
1318
|
scheme: "bearer",
|
|
1281
1319
|
type: "http"
|
|
1282
1320
|
}],
|
|
1283
|
-
url: "/api/projects",
|
|
1321
|
+
url: "/api/projects/{project_id}/issues",
|
|
1284
1322
|
...options
|
|
1285
1323
|
});
|
|
1286
1324
|
}
|
|
1287
1325
|
/**
|
|
1288
|
-
*
|
|
1289
|
-
*
|
|
1290
|
-
* Needs `projects:create` and a permission on at least one project, because
|
|
1291
|
-
* the creator's own roles extend to the new one. A token limited to chosen
|
|
1292
|
-
* projects can create one, but its list does not grow to reach it.
|
|
1326
|
+
* Sets the status or priority of many issues at once, by id.
|
|
1293
1327
|
*/
|
|
1294
|
-
|
|
1295
|
-
return (options.client ?? this.client).
|
|
1296
|
-
requestValidator: async (data) => await
|
|
1297
|
-
body: require_zod_gen.
|
|
1298
|
-
path:
|
|
1299
|
-
query:
|
|
1328
|
+
bulkUpdate(options) {
|
|
1329
|
+
return (options.client ?? this.client).put({
|
|
1330
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1331
|
+
body: require_zod_gen.zIssuesBulkUpdateBody,
|
|
1332
|
+
path: require_zod_gen.zIssuesBulkUpdatePath,
|
|
1333
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1300
1334
|
}).parseAsync(data),
|
|
1301
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1335
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesBulkUpdateResponse.parseAsync(data),
|
|
1302
1336
|
security: [{
|
|
1303
1337
|
scheme: "bearer",
|
|
1304
1338
|
type: "http"
|
|
1305
1339
|
}],
|
|
1306
|
-
url: "/api/projects",
|
|
1340
|
+
url: "/api/projects/{project_id}/issues",
|
|
1307
1341
|
...options,
|
|
1308
1342
|
headers: {
|
|
1309
1343
|
"Content-Type": "application/json",
|
|
@@ -1312,59 +1346,59 @@ var Projects = class extends HeyApiClient {
|
|
|
1312
1346
|
});
|
|
1313
1347
|
}
|
|
1314
1348
|
/**
|
|
1315
|
-
*
|
|
1349
|
+
* Hard-deletes an issue and all associated events
|
|
1316
1350
|
*/
|
|
1317
1351
|
delete(options) {
|
|
1318
1352
|
return (options.client ?? this.client).delete({
|
|
1319
|
-
requestValidator: async (data) => await
|
|
1320
|
-
body:
|
|
1321
|
-
path: require_zod_gen.
|
|
1322
|
-
query:
|
|
1353
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1354
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1355
|
+
path: require_zod_gen.zIssuesDeletePath,
|
|
1356
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1323
1357
|
}).parseAsync(data),
|
|
1324
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1358
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesDeleteResponse.parseAsync(data),
|
|
1325
1359
|
security: [{
|
|
1326
1360
|
scheme: "bearer",
|
|
1327
1361
|
type: "http"
|
|
1328
1362
|
}],
|
|
1329
|
-
url: "/api/projects/{
|
|
1363
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1330
1364
|
...options
|
|
1331
1365
|
});
|
|
1332
1366
|
}
|
|
1333
1367
|
/**
|
|
1334
|
-
*
|
|
1368
|
+
* Gets a single issue by ID
|
|
1335
1369
|
*/
|
|
1336
1370
|
get(options) {
|
|
1337
1371
|
return (options.client ?? this.client).get({
|
|
1338
|
-
requestValidator: async (data) => await
|
|
1339
|
-
body:
|
|
1340
|
-
path: require_zod_gen.
|
|
1341
|
-
query:
|
|
1372
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1373
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1374
|
+
path: require_zod_gen.zIssuesGetPath,
|
|
1375
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1342
1376
|
}).parseAsync(data),
|
|
1343
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1377
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetResponse.parseAsync(data),
|
|
1344
1378
|
security: [{
|
|
1345
1379
|
scheme: "bearer",
|
|
1346
1380
|
type: "http"
|
|
1347
1381
|
}],
|
|
1348
|
-
url: "/api/projects/{
|
|
1382
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1349
1383
|
...options
|
|
1350
1384
|
});
|
|
1351
1385
|
}
|
|
1352
1386
|
/**
|
|
1353
|
-
*
|
|
1387
|
+
* Updates issue state (resolve, mute, etc.)
|
|
1354
1388
|
*/
|
|
1355
1389
|
update(options) {
|
|
1356
1390
|
return (options.client ?? this.client).patch({
|
|
1357
|
-
requestValidator: async (data) => await
|
|
1358
|
-
body: require_zod_gen.
|
|
1359
|
-
path: require_zod_gen.
|
|
1360
|
-
query:
|
|
1391
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1392
|
+
body: require_zod_gen.zIssuesUpdateBody,
|
|
1393
|
+
path: require_zod_gen.zIssuesUpdatePath,
|
|
1394
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1361
1395
|
}).parseAsync(data),
|
|
1362
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1396
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesUpdateResponse.parseAsync(data),
|
|
1363
1397
|
security: [{
|
|
1364
1398
|
scheme: "bearer",
|
|
1365
1399
|
type: "http"
|
|
1366
1400
|
}],
|
|
1367
|
-
url: "/api/projects/{
|
|
1401
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1368
1402
|
...options,
|
|
1369
1403
|
headers: {
|
|
1370
1404
|
"Content-Type": "application/json",
|
|
@@ -1373,332 +1407,339 @@ var Projects = class extends HeyApiClient {
|
|
|
1373
1407
|
});
|
|
1374
1408
|
}
|
|
1375
1409
|
/**
|
|
1376
|
-
*
|
|
1410
|
+
* Chronological activity log (incl. comments).
|
|
1377
1411
|
*/
|
|
1378
|
-
|
|
1379
|
-
return (options
|
|
1380
|
-
requestValidator: async (data) => await
|
|
1381
|
-
body:
|
|
1382
|
-
path:
|
|
1383
|
-
query:
|
|
1412
|
+
getActivity(options) {
|
|
1413
|
+
return (options.client ?? this.client).get({
|
|
1414
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1415
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1416
|
+
path: require_zod_gen.zIssuesGetActivityPath,
|
|
1417
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1384
1418
|
}).parseAsync(data),
|
|
1385
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1419
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetActivityResponse.parseAsync(data),
|
|
1386
1420
|
security: [{
|
|
1387
1421
|
scheme: "bearer",
|
|
1388
1422
|
type: "http"
|
|
1389
1423
|
}],
|
|
1390
|
-
url: "/api/
|
|
1424
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/activity",
|
|
1391
1425
|
...options
|
|
1392
1426
|
});
|
|
1393
1427
|
}
|
|
1394
|
-
};
|
|
1395
|
-
var Agents = class extends HeyApiClient {
|
|
1396
1428
|
/**
|
|
1397
|
-
*
|
|
1429
|
+
* Returns the unique user count and top tags for the issue.
|
|
1398
1430
|
*/
|
|
1399
|
-
|
|
1431
|
+
getAggregates(options) {
|
|
1400
1432
|
return (options.client ?? this.client).get({
|
|
1401
|
-
requestValidator: async (data) => await
|
|
1402
|
-
body:
|
|
1403
|
-
path: require_zod_gen.
|
|
1404
|
-
query:
|
|
1433
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1434
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1435
|
+
path: require_zod_gen.zIssuesGetAggregatesPath,
|
|
1436
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1405
1437
|
}).parseAsync(data),
|
|
1406
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1438
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetAggregatesResponse.parseAsync(data),
|
|
1407
1439
|
security: [{
|
|
1408
1440
|
scheme: "bearer",
|
|
1409
1441
|
type: "http"
|
|
1410
1442
|
}],
|
|
1411
|
-
url: "/api/projects/{project_id}/
|
|
1443
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
|
|
1412
1444
|
...options
|
|
1413
1445
|
});
|
|
1414
1446
|
}
|
|
1415
1447
|
/**
|
|
1416
|
-
*
|
|
1448
|
+
* Set/clear the per-user bookmark.
|
|
1417
1449
|
*/
|
|
1418
|
-
|
|
1419
|
-
return (options.client ?? this.client).
|
|
1420
|
-
requestValidator: async (data) => await
|
|
1421
|
-
body:
|
|
1422
|
-
path: require_zod_gen.
|
|
1423
|
-
query:
|
|
1450
|
+
setBookmark(options) {
|
|
1451
|
+
return (options.client ?? this.client).put({
|
|
1452
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1453
|
+
body: require_zod_gen.zIssuesSetBookmarkBody,
|
|
1454
|
+
path: require_zod_gen.zIssuesSetBookmarkPath,
|
|
1455
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1424
1456
|
}).parseAsync(data),
|
|
1425
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1457
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesSetBookmarkResponse.parseAsync(data),
|
|
1426
1458
|
security: [{
|
|
1427
1459
|
scheme: "bearer",
|
|
1428
1460
|
type: "http"
|
|
1429
1461
|
}],
|
|
1430
|
-
url: "/api/projects/{project_id}/
|
|
1431
|
-
...options
|
|
1462
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
|
|
1463
|
+
...options,
|
|
1464
|
+
headers: {
|
|
1465
|
+
"Content-Type": "application/json",
|
|
1466
|
+
...options.headers
|
|
1467
|
+
}
|
|
1432
1468
|
});
|
|
1433
1469
|
}
|
|
1434
1470
|
/**
|
|
1435
|
-
*
|
|
1471
|
+
* Add a note.
|
|
1436
1472
|
*/
|
|
1437
|
-
|
|
1438
|
-
return (options.client ?? this.client).
|
|
1439
|
-
requestValidator: async (data) => await
|
|
1440
|
-
body:
|
|
1441
|
-
path: require_zod_gen.
|
|
1442
|
-
query:
|
|
1473
|
+
createComment(options) {
|
|
1474
|
+
return (options.client ?? this.client).post({
|
|
1475
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1476
|
+
body: require_zod_gen.zIssuesCreateCommentBody,
|
|
1477
|
+
path: require_zod_gen.zIssuesCreateCommentPath,
|
|
1478
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1443
1479
|
}).parseAsync(data),
|
|
1444
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1480
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesCreateCommentResponse.parseAsync(data),
|
|
1445
1481
|
security: [{
|
|
1446
1482
|
scheme: "bearer",
|
|
1447
1483
|
type: "http"
|
|
1448
1484
|
}],
|
|
1449
|
-
url: "/api/projects/{project_id}/
|
|
1450
|
-
...options
|
|
1485
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/comments",
|
|
1486
|
+
...options,
|
|
1487
|
+
headers: {
|
|
1488
|
+
"Content-Type": "application/json",
|
|
1489
|
+
...options.headers
|
|
1490
|
+
}
|
|
1451
1491
|
});
|
|
1452
1492
|
}
|
|
1453
1493
|
/**
|
|
1454
|
-
*
|
|
1455
|
-
* hardcoded — an installation may name its environments anything.
|
|
1494
|
+
* Lists the grouping hashes that map to an issue.
|
|
1456
1495
|
*/
|
|
1457
|
-
|
|
1496
|
+
getHashes(options) {
|
|
1458
1497
|
return (options.client ?? this.client).get({
|
|
1459
|
-
requestValidator: async (data) => await
|
|
1460
|
-
body:
|
|
1461
|
-
path: require_zod_gen.
|
|
1462
|
-
query:
|
|
1498
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1499
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1500
|
+
path: require_zod_gen.zIssuesGetHashesPath,
|
|
1501
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1463
1502
|
}).parseAsync(data),
|
|
1464
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1503
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetHashesResponse.parseAsync(data),
|
|
1465
1504
|
security: [{
|
|
1466
1505
|
scheme: "bearer",
|
|
1467
1506
|
type: "http"
|
|
1468
1507
|
}],
|
|
1469
|
-
url: "/api/projects/{project_id}/
|
|
1508
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
|
|
1470
1509
|
...options
|
|
1471
1510
|
});
|
|
1472
1511
|
}
|
|
1473
1512
|
/**
|
|
1474
|
-
*
|
|
1513
|
+
* Mark the issue as seen by the current user.
|
|
1475
1514
|
*/
|
|
1476
|
-
|
|
1477
|
-
return (options.client ?? this.client).
|
|
1478
|
-
requestValidator: async (data) => await
|
|
1479
|
-
body:
|
|
1480
|
-
path: require_zod_gen.
|
|
1481
|
-
query:
|
|
1515
|
+
markSeen(options) {
|
|
1516
|
+
return (options.client ?? this.client).post({
|
|
1517
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1518
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1519
|
+
path: require_zod_gen.zIssuesMarkSeenPath,
|
|
1520
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1482
1521
|
}).parseAsync(data),
|
|
1483
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1522
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesMarkSeenResponse.parseAsync(data),
|
|
1484
1523
|
security: [{
|
|
1485
1524
|
scheme: "bearer",
|
|
1486
1525
|
type: "http"
|
|
1487
1526
|
}],
|
|
1488
|
-
url: "/api/projects/{project_id}/
|
|
1527
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/seen",
|
|
1489
1528
|
...options
|
|
1490
1529
|
});
|
|
1491
1530
|
}
|
|
1492
1531
|
/**
|
|
1493
|
-
*
|
|
1532
|
+
* Zero-filled event-count timeseries.
|
|
1494
1533
|
*/
|
|
1495
|
-
|
|
1534
|
+
getStats(options) {
|
|
1496
1535
|
return (options.client ?? this.client).get({
|
|
1497
|
-
requestValidator: async (data) => await
|
|
1498
|
-
body:
|
|
1499
|
-
path: require_zod_gen.
|
|
1500
|
-
query:
|
|
1536
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1537
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1538
|
+
path: require_zod_gen.zIssuesGetStatsPath,
|
|
1539
|
+
query: zod_mini.optional(require_zod_gen.zIssuesGetStatsQuery)
|
|
1501
1540
|
}).parseAsync(data),
|
|
1502
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1541
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetStatsResponse.parseAsync(data),
|
|
1503
1542
|
security: [{
|
|
1504
1543
|
scheme: "bearer",
|
|
1505
1544
|
type: "http"
|
|
1506
1545
|
}],
|
|
1507
|
-
url: "/api/projects/{project_id}/
|
|
1546
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/stats",
|
|
1508
1547
|
...options
|
|
1509
1548
|
});
|
|
1510
1549
|
}
|
|
1511
1550
|
/**
|
|
1512
|
-
*
|
|
1551
|
+
* Set/clear the per-user subscription.
|
|
1513
1552
|
*/
|
|
1514
|
-
|
|
1515
|
-
return (options.client ?? this.client).
|
|
1516
|
-
requestValidator: async (data) => await
|
|
1517
|
-
body:
|
|
1518
|
-
path: require_zod_gen.
|
|
1519
|
-
query:
|
|
1553
|
+
setSubscription(options) {
|
|
1554
|
+
return (options.client ?? this.client).put({
|
|
1555
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1556
|
+
body: require_zod_gen.zIssuesSetSubscriptionBody,
|
|
1557
|
+
path: require_zod_gen.zIssuesSetSubscriptionPath,
|
|
1558
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1520
1559
|
}).parseAsync(data),
|
|
1521
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1560
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesSetSubscriptionResponse.parseAsync(data),
|
|
1522
1561
|
security: [{
|
|
1523
1562
|
scheme: "bearer",
|
|
1524
1563
|
type: "http"
|
|
1525
1564
|
}],
|
|
1526
|
-
url: "/api/projects/{project_id}/
|
|
1527
|
-
...options
|
|
1565
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
|
|
1566
|
+
...options,
|
|
1567
|
+
headers: {
|
|
1568
|
+
"Content-Type": "application/json",
|
|
1569
|
+
...options.headers
|
|
1570
|
+
}
|
|
1528
1571
|
});
|
|
1529
1572
|
}
|
|
1530
1573
|
/**
|
|
1531
|
-
*
|
|
1574
|
+
* Lists the distinct values (with counts) for a tag key across the issue.
|
|
1532
1575
|
*/
|
|
1533
|
-
|
|
1576
|
+
getTagValues(options) {
|
|
1534
1577
|
return (options.client ?? this.client).get({
|
|
1535
|
-
requestValidator: async (data) => await
|
|
1536
|
-
body:
|
|
1537
|
-
path: require_zod_gen.
|
|
1538
|
-
query:
|
|
1578
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1579
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1580
|
+
path: require_zod_gen.zIssuesGetTagValuesPath,
|
|
1581
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1539
1582
|
}).parseAsync(data),
|
|
1540
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1583
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesGetTagValuesResponse.parseAsync(data),
|
|
1541
1584
|
security: [{
|
|
1542
1585
|
scheme: "bearer",
|
|
1543
1586
|
type: "http"
|
|
1544
1587
|
}],
|
|
1545
|
-
url: "/api/projects/{project_id}/
|
|
1588
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
|
|
1546
1589
|
...options
|
|
1547
1590
|
});
|
|
1548
1591
|
}
|
|
1549
1592
|
/**
|
|
1550
|
-
*
|
|
1551
|
-
* selected window — the numbers the six charts cannot state outright.
|
|
1593
|
+
* List user feedback for an issue.
|
|
1552
1594
|
*/
|
|
1553
|
-
|
|
1595
|
+
listUserReports(options) {
|
|
1554
1596
|
return (options.client ?? this.client).get({
|
|
1555
|
-
requestValidator: async (data) => await
|
|
1556
|
-
body:
|
|
1557
|
-
path: require_zod_gen.
|
|
1558
|
-
query:
|
|
1597
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1598
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1599
|
+
path: require_zod_gen.zIssuesListUserReportsPath,
|
|
1600
|
+
query: zod_mini.optional(require_zod_gen.zIssuesListUserReportsQuery)
|
|
1559
1601
|
}).parseAsync(data),
|
|
1560
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1602
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesListUserReportsResponse.parseAsync(data),
|
|
1561
1603
|
security: [{
|
|
1562
1604
|
scheme: "bearer",
|
|
1563
1605
|
type: "http"
|
|
1564
1606
|
}],
|
|
1565
|
-
url: "/api/projects/{project_id}/
|
|
1607
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
|
|
1566
1608
|
...options
|
|
1567
1609
|
});
|
|
1568
1610
|
}
|
|
1569
1611
|
/**
|
|
1570
|
-
*
|
|
1612
|
+
* Attach user feedback to an issue.
|
|
1571
1613
|
*/
|
|
1572
|
-
|
|
1573
|
-
return (options.client ?? this.client).
|
|
1574
|
-
requestValidator: async (data) => await
|
|
1575
|
-
body:
|
|
1576
|
-
path: require_zod_gen.
|
|
1577
|
-
query:
|
|
1614
|
+
createUserReport(options) {
|
|
1615
|
+
return (options.client ?? this.client).post({
|
|
1616
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1617
|
+
body: require_zod_gen.zIssuesCreateUserReportBody,
|
|
1618
|
+
path: require_zod_gen.zIssuesCreateUserReportPath,
|
|
1619
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1578
1620
|
}).parseAsync(data),
|
|
1579
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1621
|
+
responseValidator: async (data) => await require_zod_gen.zIssuesCreateUserReportResponse.parseAsync(data),
|
|
1580
1622
|
security: [{
|
|
1581
1623
|
scheme: "bearer",
|
|
1582
1624
|
type: "http"
|
|
1583
1625
|
}],
|
|
1584
|
-
url: "/api/projects/{project_id}/
|
|
1585
|
-
...options
|
|
1626
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
|
|
1627
|
+
...options,
|
|
1628
|
+
headers: {
|
|
1629
|
+
"Content-Type": "application/json",
|
|
1630
|
+
...options.headers
|
|
1631
|
+
}
|
|
1586
1632
|
});
|
|
1587
1633
|
}
|
|
1634
|
+
};
|
|
1635
|
+
var Oauth = class extends HeyApiClient {
|
|
1588
1636
|
/**
|
|
1589
|
-
*
|
|
1637
|
+
* Verifies an authorization request and says who is asking.
|
|
1590
1638
|
*/
|
|
1591
|
-
|
|
1639
|
+
getAuthorization(options) {
|
|
1592
1640
|
return (options.client ?? this.client).get({
|
|
1593
|
-
requestValidator: async (data) => await
|
|
1594
|
-
body:
|
|
1595
|
-
path:
|
|
1596
|
-
query: require_zod_gen.
|
|
1641
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1642
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1643
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1644
|
+
query: require_zod_gen.zOauthGetAuthorizationQuery
|
|
1597
1645
|
}).parseAsync(data),
|
|
1598
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1599
|
-
|
|
1600
|
-
scheme: "bearer",
|
|
1601
|
-
type: "http"
|
|
1602
|
-
}],
|
|
1603
|
-
url: "/api/projects/{project_id}/agents/tools/stats",
|
|
1646
|
+
responseValidator: async (data) => await require_zod_gen.zOauthGetAuthorizationResponse.parseAsync(data),
|
|
1647
|
+
url: "/api/oauth/authorize",
|
|
1604
1648
|
...options
|
|
1605
1649
|
});
|
|
1606
1650
|
}
|
|
1607
1651
|
/**
|
|
1608
|
-
*
|
|
1609
|
-
* all AI spans sharing that trace, regardless of origin.
|
|
1652
|
+
* Approves or denies an authorization request as the signed-in user.
|
|
1610
1653
|
*/
|
|
1611
|
-
|
|
1612
|
-
return (options.client ?? this.client).
|
|
1613
|
-
requestValidator: async (data) => await
|
|
1614
|
-
body:
|
|
1615
|
-
path:
|
|
1616
|
-
query:
|
|
1654
|
+
decideAuthorization(options) {
|
|
1655
|
+
return (options.client ?? this.client).post({
|
|
1656
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1657
|
+
body: require_zod_gen.zOauthDecideAuthorizationBody,
|
|
1658
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1659
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1617
1660
|
}).parseAsync(data),
|
|
1618
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1661
|
+
responseValidator: async (data) => await require_zod_gen.zOauthDecideAuthorizationResponse.parseAsync(data),
|
|
1662
|
+
url: "/api/oauth/authorize",
|
|
1663
|
+
...options,
|
|
1664
|
+
headers: {
|
|
1665
|
+
"Content-Type": "application/json",
|
|
1666
|
+
...options.headers
|
|
1667
|
+
}
|
|
1625
1668
|
});
|
|
1626
1669
|
}
|
|
1627
|
-
};
|
|
1628
|
-
var AlertRules = class extends HeyApiClient {
|
|
1629
1670
|
/**
|
|
1630
|
-
* Lists the
|
|
1671
|
+
* Lists the assistants connected to the signed-in user's account.
|
|
1631
1672
|
*/
|
|
1632
|
-
|
|
1633
|
-
return (options
|
|
1634
|
-
requestValidator: async (data) => await
|
|
1635
|
-
body:
|
|
1636
|
-
path:
|
|
1637
|
-
query:
|
|
1673
|
+
listGrants(options) {
|
|
1674
|
+
return (options?.client ?? this.client).get({
|
|
1675
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1676
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1677
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1678
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1638
1679
|
}).parseAsync(data),
|
|
1639
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1640
|
-
|
|
1641
|
-
scheme: "bearer",
|
|
1642
|
-
type: "http"
|
|
1643
|
-
}],
|
|
1644
|
-
url: "/api/projects/{project_id}/alert-history",
|
|
1680
|
+
responseValidator: async (data) => await require_zod_gen.zOauthListGrantsResponse.parseAsync(data),
|
|
1681
|
+
url: "/api/oauth/grants",
|
|
1645
1682
|
...options
|
|
1646
1683
|
});
|
|
1647
1684
|
}
|
|
1648
1685
|
/**
|
|
1649
|
-
*
|
|
1686
|
+
* Disconnects an assistant: its tokens stop working at once.
|
|
1650
1687
|
*/
|
|
1651
|
-
|
|
1652
|
-
return (options.client ?? this.client).
|
|
1653
|
-
requestValidator: async (data) => await
|
|
1654
|
-
body:
|
|
1655
|
-
path: require_zod_gen.
|
|
1656
|
-
query:
|
|
1688
|
+
revokeGrant(options) {
|
|
1689
|
+
return (options.client ?? this.client).delete({
|
|
1690
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1691
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1692
|
+
path: require_zod_gen.zOauthRevokeGrantPath,
|
|
1693
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1657
1694
|
}).parseAsync(data),
|
|
1658
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1659
|
-
|
|
1660
|
-
scheme: "bearer",
|
|
1661
|
-
type: "http"
|
|
1662
|
-
}],
|
|
1663
|
-
url: "/api/projects/{project_id}/alert-history/daily",
|
|
1695
|
+
responseValidator: async (data) => await require_zod_gen.zOauthRevokeGrantResponse.parseAsync(data),
|
|
1696
|
+
url: "/api/oauth/grants/{id}",
|
|
1664
1697
|
...options
|
|
1665
1698
|
});
|
|
1666
1699
|
}
|
|
1700
|
+
};
|
|
1701
|
+
var Projects = class extends HeyApiClient {
|
|
1667
1702
|
/**
|
|
1668
|
-
*
|
|
1703
|
+
* List projects with pagination.
|
|
1704
|
+
*
|
|
1705
|
+
* Only the projects the caller holds a permission on.
|
|
1669
1706
|
*/
|
|
1670
1707
|
list(options) {
|
|
1671
|
-
return (options
|
|
1672
|
-
requestValidator: async (data) => await
|
|
1673
|
-
body:
|
|
1674
|
-
path:
|
|
1675
|
-
query:
|
|
1708
|
+
return (options?.client ?? this.client).get({
|
|
1709
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1710
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1711
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1712
|
+
query: zod_mini.optional(require_zod_gen.zProjectsListQuery)
|
|
1676
1713
|
}).parseAsync(data),
|
|
1677
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1714
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsListResponse.parseAsync(data),
|
|
1678
1715
|
security: [{
|
|
1679
1716
|
scheme: "bearer",
|
|
1680
1717
|
type: "http"
|
|
1681
1718
|
}],
|
|
1682
|
-
url: "/api/projects
|
|
1719
|
+
url: "/api/projects",
|
|
1683
1720
|
...options
|
|
1684
1721
|
});
|
|
1685
1722
|
}
|
|
1686
1723
|
/**
|
|
1687
|
-
*
|
|
1724
|
+
* Create a new project
|
|
1725
|
+
*
|
|
1726
|
+
* Needs `projects:create` and a permission on at least one project, because
|
|
1727
|
+
* the creator's own roles extend to the new one. A token limited to chosen
|
|
1728
|
+
* projects can create one, but its list does not grow to reach it.
|
|
1688
1729
|
*/
|
|
1689
1730
|
create(options) {
|
|
1690
1731
|
return (options.client ?? this.client).post({
|
|
1691
|
-
requestValidator: async (data) => await
|
|
1692
|
-
body: require_zod_gen.
|
|
1693
|
-
path:
|
|
1694
|
-
query:
|
|
1732
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1733
|
+
body: require_zod_gen.zProjectsCreateBody,
|
|
1734
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1735
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1695
1736
|
}).parseAsync(data),
|
|
1696
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1737
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsCreateResponse.parseAsync(data),
|
|
1697
1738
|
security: [{
|
|
1698
1739
|
scheme: "bearer",
|
|
1699
1740
|
type: "http"
|
|
1700
1741
|
}],
|
|
1701
|
-
url: "/api/projects
|
|
1742
|
+
url: "/api/projects",
|
|
1702
1743
|
...options,
|
|
1703
1744
|
headers: {
|
|
1704
1745
|
"Content-Type": "application/json",
|
|
@@ -1707,59 +1748,59 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1707
1748
|
});
|
|
1708
1749
|
}
|
|
1709
1750
|
/**
|
|
1710
|
-
*
|
|
1751
|
+
* Delete a project
|
|
1711
1752
|
*/
|
|
1712
1753
|
delete(options) {
|
|
1713
1754
|
return (options.client ?? this.client).delete({
|
|
1714
|
-
requestValidator: async (data) => await
|
|
1715
|
-
body:
|
|
1716
|
-
path: require_zod_gen.
|
|
1717
|
-
query:
|
|
1755
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1756
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1757
|
+
path: require_zod_gen.zProjectsDeletePath,
|
|
1758
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1718
1759
|
}).parseAsync(data),
|
|
1719
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1760
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsDeleteResponse.parseAsync(data),
|
|
1720
1761
|
security: [{
|
|
1721
1762
|
scheme: "bearer",
|
|
1722
1763
|
type: "http"
|
|
1723
1764
|
}],
|
|
1724
|
-
url: "/api/projects/{
|
|
1765
|
+
url: "/api/projects/{id}",
|
|
1725
1766
|
...options
|
|
1726
1767
|
});
|
|
1727
1768
|
}
|
|
1728
1769
|
/**
|
|
1729
|
-
*
|
|
1770
|
+
* Get a project by ID
|
|
1730
1771
|
*/
|
|
1731
1772
|
get(options) {
|
|
1732
1773
|
return (options.client ?? this.client).get({
|
|
1733
|
-
requestValidator: async (data) => await
|
|
1734
|
-
body:
|
|
1735
|
-
path: require_zod_gen.
|
|
1736
|
-
query:
|
|
1774
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1775
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1776
|
+
path: require_zod_gen.zProjectsGetPath,
|
|
1777
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1737
1778
|
}).parseAsync(data),
|
|
1738
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1779
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsGetResponse.parseAsync(data),
|
|
1739
1780
|
security: [{
|
|
1740
1781
|
scheme: "bearer",
|
|
1741
1782
|
type: "http"
|
|
1742
1783
|
}],
|
|
1743
|
-
url: "/api/projects/{
|
|
1784
|
+
url: "/api/projects/{id}",
|
|
1744
1785
|
...options
|
|
1745
1786
|
});
|
|
1746
1787
|
}
|
|
1747
1788
|
/**
|
|
1748
|
-
*
|
|
1789
|
+
* Update a project
|
|
1749
1790
|
*/
|
|
1750
1791
|
update(options) {
|
|
1751
1792
|
return (options.client ?? this.client).patch({
|
|
1752
|
-
requestValidator: async (data) => await
|
|
1753
|
-
body: require_zod_gen.
|
|
1754
|
-
path: require_zod_gen.
|
|
1755
|
-
query:
|
|
1793
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1794
|
+
body: require_zod_gen.zProjectsUpdateBody,
|
|
1795
|
+
path: require_zod_gen.zProjectsUpdatePath,
|
|
1796
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1756
1797
|
}).parseAsync(data),
|
|
1757
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1798
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsUpdateResponse.parseAsync(data),
|
|
1758
1799
|
security: [{
|
|
1759
1800
|
scheme: "bearer",
|
|
1760
1801
|
type: "http"
|
|
1761
1802
|
}],
|
|
1762
|
-
url: "/api/projects/{
|
|
1803
|
+
url: "/api/projects/{id}",
|
|
1763
1804
|
...options,
|
|
1764
1805
|
headers: {
|
|
1765
1806
|
"Content-Type": "application/json",
|
|
@@ -1767,308 +1808,333 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1767
1808
|
}
|
|
1768
1809
|
});
|
|
1769
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* What a project without limits of its own follows
|
|
1813
|
+
*/
|
|
1814
|
+
getRateLimits(options) {
|
|
1815
|
+
return (options?.client ?? this.client).get({
|
|
1816
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1817
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1818
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
1819
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1820
|
+
}).parseAsync(data),
|
|
1821
|
+
responseValidator: async (data) => await require_zod_gen.zProjectsGetRateLimitsResponse.parseAsync(data),
|
|
1822
|
+
security: [{
|
|
1823
|
+
scheme: "bearer",
|
|
1824
|
+
type: "http"
|
|
1825
|
+
}],
|
|
1826
|
+
url: "/api/rate-limits",
|
|
1827
|
+
...options
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1770
1830
|
};
|
|
1771
|
-
var
|
|
1831
|
+
var Agents = class extends HeyApiClient {
|
|
1772
1832
|
/**
|
|
1773
|
-
*
|
|
1774
|
-
* else, whatever type it claims, is a download that never runs.
|
|
1833
|
+
* Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
|
|
1775
1834
|
*/
|
|
1776
|
-
|
|
1835
|
+
conversations(options) {
|
|
1777
1836
|
return (options.client ?? this.client).get({
|
|
1778
|
-
requestValidator: async (data) => await
|
|
1779
|
-
body:
|
|
1780
|
-
path: require_zod_gen.
|
|
1781
|
-
query:
|
|
1837
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1838
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1839
|
+
path: require_zod_gen.zAgentsConversationsPath,
|
|
1840
|
+
query: zod_mini.optional(require_zod_gen.zAgentsConversationsQuery)
|
|
1782
1841
|
}).parseAsync(data),
|
|
1783
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1842
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsConversationsResponse.parseAsync(data),
|
|
1784
1843
|
security: [{
|
|
1785
1844
|
scheme: "bearer",
|
|
1786
1845
|
type: "http"
|
|
1787
1846
|
}],
|
|
1788
|
-
url: "/api/projects/{project_id}/
|
|
1847
|
+
url: "/api/projects/{project_id}/agents/conversations",
|
|
1789
1848
|
...options
|
|
1790
1849
|
});
|
|
1791
1850
|
}
|
|
1792
1851
|
/**
|
|
1793
|
-
*
|
|
1852
|
+
* Returns every AI span of a conversation's turns, oldest first, with its input and output.
|
|
1794
1853
|
*/
|
|
1795
|
-
|
|
1854
|
+
conversation(options) {
|
|
1796
1855
|
return (options.client ?? this.client).get({
|
|
1797
|
-
requestValidator: async (data) => await
|
|
1798
|
-
body:
|
|
1799
|
-
path: require_zod_gen.
|
|
1800
|
-
query:
|
|
1856
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1857
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1858
|
+
path: require_zod_gen.zAgentsConversationPath,
|
|
1859
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1801
1860
|
}).parseAsync(data),
|
|
1802
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1861
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsConversationResponse.parseAsync(data),
|
|
1803
1862
|
security: [{
|
|
1804
1863
|
scheme: "bearer",
|
|
1805
1864
|
type: "http"
|
|
1806
1865
|
}],
|
|
1807
|
-
url: "/api/projects/{project_id}/
|
|
1866
|
+
url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
|
|
1808
1867
|
...options
|
|
1809
1868
|
});
|
|
1810
1869
|
}
|
|
1811
1870
|
/**
|
|
1812
|
-
*
|
|
1871
|
+
* Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
|
|
1813
1872
|
*/
|
|
1814
|
-
|
|
1873
|
+
duration(options) {
|
|
1815
1874
|
return (options.client ?? this.client).get({
|
|
1816
|
-
requestValidator: async (data) => await
|
|
1817
|
-
body:
|
|
1818
|
-
path: require_zod_gen.
|
|
1819
|
-
query:
|
|
1875
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1876
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1877
|
+
path: require_zod_gen.zAgentsDurationPath,
|
|
1878
|
+
query: zod_mini.optional(require_zod_gen.zAgentsDurationQuery)
|
|
1820
1879
|
}).parseAsync(data),
|
|
1821
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1880
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsDurationResponse.parseAsync(data),
|
|
1822
1881
|
security: [{
|
|
1823
1882
|
scheme: "bearer",
|
|
1824
1883
|
type: "http"
|
|
1825
1884
|
}],
|
|
1826
|
-
url: "/api/projects/{project_id}/
|
|
1885
|
+
url: "/api/projects/{project_id}/agents/duration",
|
|
1827
1886
|
...options
|
|
1828
1887
|
});
|
|
1829
1888
|
}
|
|
1830
1889
|
/**
|
|
1831
|
-
*
|
|
1890
|
+
* The options the environment filter offers, read from the data rather than
|
|
1891
|
+
* hardcoded — an installation may name its environments anything.
|
|
1832
1892
|
*/
|
|
1833
|
-
|
|
1893
|
+
environments(options) {
|
|
1834
1894
|
return (options.client ?? this.client).get({
|
|
1835
|
-
requestValidator: async (data) => await
|
|
1836
|
-
body:
|
|
1837
|
-
path: require_zod_gen.
|
|
1838
|
-
query:
|
|
1895
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1896
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1897
|
+
path: require_zod_gen.zAgentsEnvironmentsPath,
|
|
1898
|
+
query: zod_mini.optional(zod_mini.never())
|
|
1839
1899
|
}).parseAsync(data),
|
|
1840
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1900
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsEnvironmentsResponse.parseAsync(data),
|
|
1841
1901
|
security: [{
|
|
1842
1902
|
scheme: "bearer",
|
|
1843
1903
|
type: "http"
|
|
1844
1904
|
}],
|
|
1845
|
-
url: "/api/projects/{project_id}/
|
|
1905
|
+
url: "/api/projects/{project_id}/agents/environments",
|
|
1846
1906
|
...options
|
|
1847
1907
|
});
|
|
1848
1908
|
}
|
|
1849
1909
|
/**
|
|
1850
|
-
* Lists the
|
|
1910
|
+
* Lists the AI models a project's agents called, with requests, tokens and latency.
|
|
1851
1911
|
*/
|
|
1852
|
-
|
|
1912
|
+
modelsTable(options) {
|
|
1853
1913
|
return (options.client ?? this.client).get({
|
|
1854
|
-
requestValidator: async (data) => await
|
|
1855
|
-
body:
|
|
1856
|
-
path: require_zod_gen.
|
|
1857
|
-
query:
|
|
1914
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1915
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1916
|
+
path: require_zod_gen.zAgentsModelsTablePath,
|
|
1917
|
+
query: zod_mini.optional(require_zod_gen.zAgentsModelsTableQuery)
|
|
1858
1918
|
}).parseAsync(data),
|
|
1859
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1919
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsModelsTableResponse.parseAsync(data),
|
|
1860
1920
|
security: [{
|
|
1861
1921
|
scheme: "bearer",
|
|
1862
1922
|
type: "http"
|
|
1863
1923
|
}],
|
|
1864
|
-
url: "/api/projects/{project_id}/
|
|
1924
|
+
url: "/api/projects/{project_id}/agents/models",
|
|
1865
1925
|
...options
|
|
1866
1926
|
});
|
|
1867
1927
|
}
|
|
1868
|
-
};
|
|
1869
|
-
var Environments = class extends HeyApiClient {
|
|
1870
1928
|
/**
|
|
1871
|
-
*
|
|
1929
|
+
* Top models by LLM call count (`gen_ai.operation.type:ai_client`).
|
|
1872
1930
|
*/
|
|
1873
|
-
|
|
1931
|
+
modelsCalls(options) {
|
|
1874
1932
|
return (options.client ?? this.client).get({
|
|
1875
|
-
requestValidator: async (data) => await
|
|
1876
|
-
body:
|
|
1877
|
-
path: require_zod_gen.
|
|
1878
|
-
query:
|
|
1933
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1934
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1935
|
+
path: require_zod_gen.zAgentsModelsCallsPath,
|
|
1936
|
+
query: zod_mini.optional(require_zod_gen.zAgentsModelsCallsQuery)
|
|
1879
1937
|
}).parseAsync(data),
|
|
1880
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1938
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsModelsCallsResponse.parseAsync(data),
|
|
1881
1939
|
security: [{
|
|
1882
1940
|
scheme: "bearer",
|
|
1883
1941
|
type: "http"
|
|
1884
1942
|
}],
|
|
1885
|
-
url: "/api/projects/{project_id}/
|
|
1943
|
+
url: "/api/projects/{project_id}/agents/models/calls",
|
|
1886
1944
|
...options
|
|
1887
1945
|
});
|
|
1888
1946
|
}
|
|
1889
|
-
};
|
|
1890
|
-
var Stats = class extends HeyApiClient {
|
|
1891
1947
|
/**
|
|
1892
|
-
*
|
|
1948
|
+
* Top models by total tokens used (`gen_ai.operation.type:ai_client`).
|
|
1893
1949
|
*/
|
|
1894
|
-
|
|
1950
|
+
modelsTokens(options) {
|
|
1895
1951
|
return (options.client ?? this.client).get({
|
|
1896
|
-
requestValidator: async (data) => await
|
|
1897
|
-
body:
|
|
1898
|
-
path: require_zod_gen.
|
|
1899
|
-
query:
|
|
1952
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1953
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1954
|
+
path: require_zod_gen.zAgentsModelsTokensPath,
|
|
1955
|
+
query: zod_mini.optional(require_zod_gen.zAgentsModelsTokensQuery)
|
|
1900
1956
|
}).parseAsync(data),
|
|
1901
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1957
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsModelsTokensResponse.parseAsync(data),
|
|
1902
1958
|
security: [{
|
|
1903
1959
|
scheme: "bearer",
|
|
1904
1960
|
type: "http"
|
|
1905
1961
|
}],
|
|
1906
|
-
url: "/api/projects/{project_id}/
|
|
1962
|
+
url: "/api/projects/{project_id}/agents/models/tokens",
|
|
1907
1963
|
...options
|
|
1908
1964
|
});
|
|
1909
1965
|
}
|
|
1910
1966
|
/**
|
|
1911
|
-
*
|
|
1967
|
+
* Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
|
|
1912
1968
|
*/
|
|
1913
|
-
|
|
1969
|
+
runs(options) {
|
|
1914
1970
|
return (options.client ?? this.client).get({
|
|
1915
|
-
requestValidator: async (data) => await
|
|
1916
|
-
body:
|
|
1917
|
-
path: require_zod_gen.
|
|
1918
|
-
query:
|
|
1971
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1972
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1973
|
+
path: require_zod_gen.zAgentsRunsPath,
|
|
1974
|
+
query: zod_mini.optional(require_zod_gen.zAgentsRunsQuery)
|
|
1919
1975
|
}).parseAsync(data),
|
|
1920
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1976
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsRunsResponse.parseAsync(data),
|
|
1921
1977
|
security: [{
|
|
1922
1978
|
scheme: "bearer",
|
|
1923
1979
|
type: "http"
|
|
1924
1980
|
}],
|
|
1925
|
-
url: "/api/projects/{project_id}/
|
|
1981
|
+
url: "/api/projects/{project_id}/agents/runs",
|
|
1926
1982
|
...options
|
|
1927
1983
|
});
|
|
1928
1984
|
}
|
|
1929
|
-
};
|
|
1930
|
-
var Feedback = class extends HeyApiClient {
|
|
1931
1985
|
/**
|
|
1932
|
-
*
|
|
1933
|
-
*
|
|
1986
|
+
* Agent runs, LLM calls, tool calls, errors, tokens and latency over the
|
|
1987
|
+
* selected window — the numbers the six charts cannot state outright.
|
|
1934
1988
|
*/
|
|
1935
|
-
|
|
1989
|
+
summary(options) {
|
|
1936
1990
|
return (options.client ?? this.client).get({
|
|
1937
|
-
requestValidator: async (data) => await
|
|
1938
|
-
body:
|
|
1939
|
-
path: require_zod_gen.
|
|
1940
|
-
query:
|
|
1991
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
1992
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
1993
|
+
path: require_zod_gen.zAgentsSummaryPath,
|
|
1994
|
+
query: zod_mini.optional(require_zod_gen.zAgentsSummaryQuery)
|
|
1941
1995
|
}).parseAsync(data),
|
|
1942
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
1996
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsSummaryResponse.parseAsync(data),
|
|
1943
1997
|
security: [{
|
|
1944
1998
|
scheme: "bearer",
|
|
1945
1999
|
type: "http"
|
|
1946
2000
|
}],
|
|
1947
|
-
url: "/api/projects/{project_id}/
|
|
2001
|
+
url: "/api/projects/{project_id}/agents/summary",
|
|
1948
2002
|
...options
|
|
1949
2003
|
});
|
|
1950
2004
|
}
|
|
1951
|
-
};
|
|
1952
|
-
var Issues = class extends HeyApiClient {
|
|
1953
2005
|
/**
|
|
1954
|
-
*
|
|
2006
|
+
* Top tools by call count (`gen_ai.operation.type:tool`).
|
|
1955
2007
|
*/
|
|
1956
|
-
|
|
1957
|
-
return (options.client ?? this.client).
|
|
1958
|
-
requestValidator: async (data) => await
|
|
1959
|
-
body:
|
|
1960
|
-
path: require_zod_gen.
|
|
1961
|
-
query:
|
|
2008
|
+
tools(options) {
|
|
2009
|
+
return (options.client ?? this.client).get({
|
|
2010
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2011
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2012
|
+
path: require_zod_gen.zAgentsToolsPath,
|
|
2013
|
+
query: zod_mini.optional(require_zod_gen.zAgentsToolsQuery)
|
|
1962
2014
|
}).parseAsync(data),
|
|
1963
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2015
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsToolsResponse.parseAsync(data),
|
|
1964
2016
|
security: [{
|
|
1965
2017
|
scheme: "bearer",
|
|
1966
2018
|
type: "http"
|
|
1967
2019
|
}],
|
|
1968
|
-
url: "/api/projects/{project_id}/
|
|
1969
|
-
...options
|
|
1970
|
-
headers: {
|
|
1971
|
-
"Content-Type": "application/json",
|
|
1972
|
-
...options.headers
|
|
1973
|
-
}
|
|
2020
|
+
url: "/api/projects/{project_id}/agents/tools",
|
|
2021
|
+
...options
|
|
1974
2022
|
});
|
|
1975
2023
|
}
|
|
1976
2024
|
/**
|
|
1977
|
-
* Lists
|
|
2025
|
+
* Lists the tools a project's agents called, with calls, errors and latency.
|
|
1978
2026
|
*/
|
|
1979
|
-
|
|
2027
|
+
toolsTable(options) {
|
|
1980
2028
|
return (options.client ?? this.client).get({
|
|
1981
|
-
requestValidator: async (data) => await
|
|
1982
|
-
body:
|
|
1983
|
-
path: require_zod_gen.
|
|
1984
|
-
query:
|
|
2029
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2030
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2031
|
+
path: require_zod_gen.zAgentsToolsTablePath,
|
|
2032
|
+
query: zod_mini.optional(require_zod_gen.zAgentsToolsTableQuery)
|
|
1985
2033
|
}).parseAsync(data),
|
|
1986
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2034
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsToolsTableResponse.parseAsync(data),
|
|
1987
2035
|
security: [{
|
|
1988
2036
|
scheme: "bearer",
|
|
1989
2037
|
type: "http"
|
|
1990
2038
|
}],
|
|
1991
|
-
url: "/api/projects/{project_id}/
|
|
2039
|
+
url: "/api/projects/{project_id}/agents/tools/stats",
|
|
1992
2040
|
...options
|
|
1993
2041
|
});
|
|
1994
2042
|
}
|
|
1995
2043
|
/**
|
|
1996
|
-
*
|
|
2044
|
+
* Paginated per-trace_id aggregate (duration, tokens, tool usage) across
|
|
2045
|
+
* all AI spans sharing that trace, regardless of origin.
|
|
1997
2046
|
*/
|
|
1998
|
-
|
|
1999
|
-
return (options.client ?? this.client).
|
|
2000
|
-
requestValidator: async (data) => await
|
|
2001
|
-
body:
|
|
2002
|
-
path: require_zod_gen.
|
|
2003
|
-
query:
|
|
2047
|
+
traces(options) {
|
|
2048
|
+
return (options.client ?? this.client).get({
|
|
2049
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2050
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2051
|
+
path: require_zod_gen.zAgentsTracesPath,
|
|
2052
|
+
query: zod_mini.optional(require_zod_gen.zAgentsTracesQuery)
|
|
2004
2053
|
}).parseAsync(data),
|
|
2005
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2054
|
+
responseValidator: async (data) => await require_zod_gen.zAgentsTracesResponse.parseAsync(data),
|
|
2006
2055
|
security: [{
|
|
2007
2056
|
scheme: "bearer",
|
|
2008
2057
|
type: "http"
|
|
2009
2058
|
}],
|
|
2010
|
-
url: "/api/projects/{project_id}/
|
|
2011
|
-
...options
|
|
2012
|
-
headers: {
|
|
2013
|
-
"Content-Type": "application/json",
|
|
2014
|
-
...options.headers
|
|
2015
|
-
}
|
|
2059
|
+
url: "/api/projects/{project_id}/agents/traces",
|
|
2060
|
+
...options
|
|
2016
2061
|
});
|
|
2017
2062
|
}
|
|
2063
|
+
};
|
|
2064
|
+
var AlertRules = class extends HeyApiClient {
|
|
2018
2065
|
/**
|
|
2019
|
-
*
|
|
2066
|
+
* Lists the alerts a project sent, newest first.
|
|
2020
2067
|
*/
|
|
2021
|
-
|
|
2022
|
-
return (options.client ?? this.client).
|
|
2023
|
-
requestValidator: async (data) => await
|
|
2024
|
-
body:
|
|
2025
|
-
path: require_zod_gen.
|
|
2026
|
-
query:
|
|
2068
|
+
listHistory(options) {
|
|
2069
|
+
return (options.client ?? this.client).get({
|
|
2070
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2071
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2072
|
+
path: require_zod_gen.zAlertRulesListHistoryPath,
|
|
2073
|
+
query: zod_mini.optional(require_zod_gen.zAlertRulesListHistoryQuery)
|
|
2027
2074
|
}).parseAsync(data),
|
|
2028
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2075
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesListHistoryResponse.parseAsync(data),
|
|
2029
2076
|
security: [{
|
|
2030
2077
|
scheme: "bearer",
|
|
2031
2078
|
type: "http"
|
|
2032
2079
|
}],
|
|
2033
|
-
url: "/api/projects/{project_id}/
|
|
2080
|
+
url: "/api/projects/{project_id}/alert-history",
|
|
2034
2081
|
...options
|
|
2035
2082
|
});
|
|
2036
2083
|
}
|
|
2037
2084
|
/**
|
|
2038
|
-
*
|
|
2085
|
+
* Count a project's alert deliveries per day, by outcome.
|
|
2039
2086
|
*/
|
|
2040
|
-
|
|
2087
|
+
historyByDay(options) {
|
|
2041
2088
|
return (options.client ?? this.client).get({
|
|
2042
|
-
requestValidator: async (data) => await
|
|
2043
|
-
body:
|
|
2044
|
-
path: require_zod_gen.
|
|
2045
|
-
query:
|
|
2089
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2090
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2091
|
+
path: require_zod_gen.zAlertRulesHistoryByDayPath,
|
|
2092
|
+
query: zod_mini.optional(require_zod_gen.zAlertRulesHistoryByDayQuery)
|
|
2046
2093
|
}).parseAsync(data),
|
|
2047
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2094
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesHistoryByDayResponse.parseAsync(data),
|
|
2048
2095
|
security: [{
|
|
2049
2096
|
scheme: "bearer",
|
|
2050
2097
|
type: "http"
|
|
2051
2098
|
}],
|
|
2052
|
-
url: "/api/projects/{project_id}/
|
|
2099
|
+
url: "/api/projects/{project_id}/alert-history/daily",
|
|
2053
2100
|
...options
|
|
2054
2101
|
});
|
|
2055
2102
|
}
|
|
2056
2103
|
/**
|
|
2057
|
-
*
|
|
2104
|
+
* Lists a project's alert rules.
|
|
2058
2105
|
*/
|
|
2059
|
-
|
|
2060
|
-
return (options.client ?? this.client).
|
|
2061
|
-
requestValidator: async (data) => await
|
|
2062
|
-
body:
|
|
2063
|
-
path: require_zod_gen.
|
|
2064
|
-
query:
|
|
2106
|
+
list(options) {
|
|
2107
|
+
return (options.client ?? this.client).get({
|
|
2108
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2109
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2110
|
+
path: require_zod_gen.zAlertRulesListPath,
|
|
2111
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2065
2112
|
}).parseAsync(data),
|
|
2066
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2113
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesListResponse.parseAsync(data),
|
|
2067
2114
|
security: [{
|
|
2068
2115
|
scheme: "bearer",
|
|
2069
2116
|
type: "http"
|
|
2070
2117
|
}],
|
|
2071
|
-
url: "/api/projects/{project_id}/
|
|
2118
|
+
url: "/api/projects/{project_id}/alert-rules",
|
|
2119
|
+
...options
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Creates an alert rule in a project.
|
|
2124
|
+
*/
|
|
2125
|
+
create(options) {
|
|
2126
|
+
return (options.client ?? this.client).post({
|
|
2127
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2128
|
+
body: require_zod_gen.zAlertRulesCreateBody,
|
|
2129
|
+
path: require_zod_gen.zAlertRulesCreatePath,
|
|
2130
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2131
|
+
}).parseAsync(data),
|
|
2132
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesCreateResponse.parseAsync(data),
|
|
2133
|
+
security: [{
|
|
2134
|
+
scheme: "bearer",
|
|
2135
|
+
type: "http"
|
|
2136
|
+
}],
|
|
2137
|
+
url: "/api/projects/{project_id}/alert-rules",
|
|
2072
2138
|
...options,
|
|
2073
2139
|
headers: {
|
|
2074
2140
|
"Content-Type": "application/json",
|
|
@@ -2077,59 +2143,59 @@ var Issues = class extends HeyApiClient {
|
|
|
2077
2143
|
});
|
|
2078
2144
|
}
|
|
2079
2145
|
/**
|
|
2080
|
-
*
|
|
2146
|
+
* Deletes an alert rule.
|
|
2081
2147
|
*/
|
|
2082
|
-
|
|
2083
|
-
return (options.client ?? this.client).
|
|
2084
|
-
requestValidator: async (data) => await
|
|
2085
|
-
body:
|
|
2086
|
-
path: require_zod_gen.
|
|
2087
|
-
query:
|
|
2148
|
+
delete(options) {
|
|
2149
|
+
return (options.client ?? this.client).delete({
|
|
2150
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2151
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2152
|
+
path: require_zod_gen.zAlertRulesDeletePath,
|
|
2153
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2088
2154
|
}).parseAsync(data),
|
|
2089
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2155
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesDeleteResponse.parseAsync(data),
|
|
2090
2156
|
security: [{
|
|
2091
2157
|
scheme: "bearer",
|
|
2092
2158
|
type: "http"
|
|
2093
2159
|
}],
|
|
2094
|
-
url: "/api/projects/{project_id}/
|
|
2160
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2095
2161
|
...options
|
|
2096
2162
|
});
|
|
2097
2163
|
}
|
|
2098
2164
|
/**
|
|
2099
|
-
*
|
|
2165
|
+
* Gets one alert rule.
|
|
2100
2166
|
*/
|
|
2101
|
-
|
|
2167
|
+
get(options) {
|
|
2102
2168
|
return (options.client ?? this.client).get({
|
|
2103
|
-
requestValidator: async (data) => await
|
|
2104
|
-
body:
|
|
2105
|
-
path: require_zod_gen.
|
|
2106
|
-
query:
|
|
2169
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2170
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2171
|
+
path: require_zod_gen.zAlertRulesGetPath,
|
|
2172
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2107
2173
|
}).parseAsync(data),
|
|
2108
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2174
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesGetResponse.parseAsync(data),
|
|
2109
2175
|
security: [{
|
|
2110
2176
|
scheme: "bearer",
|
|
2111
2177
|
type: "http"
|
|
2112
2178
|
}],
|
|
2113
|
-
url: "/api/projects/{project_id}/
|
|
2179
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2114
2180
|
...options
|
|
2115
2181
|
});
|
|
2116
2182
|
}
|
|
2117
2183
|
/**
|
|
2118
|
-
*
|
|
2184
|
+
* Updates an alert rule.
|
|
2119
2185
|
*/
|
|
2120
|
-
|
|
2121
|
-
return (options.client ?? this.client).
|
|
2122
|
-
requestValidator: async (data) => await
|
|
2123
|
-
body: require_zod_gen.
|
|
2124
|
-
path: require_zod_gen.
|
|
2125
|
-
query:
|
|
2186
|
+
update(options) {
|
|
2187
|
+
return (options.client ?? this.client).patch({
|
|
2188
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2189
|
+
body: require_zod_gen.zAlertRulesUpdateBody,
|
|
2190
|
+
path: require_zod_gen.zAlertRulesUpdatePath,
|
|
2191
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2126
2192
|
}).parseAsync(data),
|
|
2127
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2193
|
+
responseValidator: async (data) => await require_zod_gen.zAlertRulesUpdateResponse.parseAsync(data),
|
|
2128
2194
|
security: [{
|
|
2129
2195
|
scheme: "bearer",
|
|
2130
2196
|
type: "http"
|
|
2131
2197
|
}],
|
|
2132
|
-
url: "/api/projects/{project_id}/
|
|
2198
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2133
2199
|
...options,
|
|
2134
2200
|
headers: {
|
|
2135
2201
|
"Content-Type": "application/json",
|
|
@@ -2137,168 +2203,163 @@ var Issues = class extends HeyApiClient {
|
|
|
2137
2203
|
}
|
|
2138
2204
|
});
|
|
2139
2205
|
}
|
|
2206
|
+
};
|
|
2207
|
+
var Events = class extends HeyApiClient {
|
|
2140
2208
|
/**
|
|
2141
|
-
*
|
|
2209
|
+
* Downloads an attachment. Only a real image is served inline; anything
|
|
2210
|
+
* else, whatever type it claims, is a download that never runs.
|
|
2142
2211
|
*/
|
|
2143
|
-
|
|
2144
|
-
return (options.client ?? this.client).
|
|
2145
|
-
requestValidator: async (data) => await
|
|
2146
|
-
body:
|
|
2147
|
-
path: require_zod_gen.
|
|
2148
|
-
query:
|
|
2212
|
+
downloadAttachment(options) {
|
|
2213
|
+
return (options.client ?? this.client).get({
|
|
2214
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2215
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2216
|
+
path: require_zod_gen.zEventsDownloadAttachmentPath,
|
|
2217
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2149
2218
|
}).parseAsync(data),
|
|
2150
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2219
|
+
responseValidator: async (data) => await require_zod_gen.zEventsDownloadAttachmentResponse.parseAsync(data),
|
|
2151
2220
|
security: [{
|
|
2152
2221
|
scheme: "bearer",
|
|
2153
2222
|
type: "http"
|
|
2154
2223
|
}],
|
|
2155
|
-
url: "/api/projects/{project_id}/
|
|
2156
|
-
...options
|
|
2157
|
-
headers: {
|
|
2158
|
-
"Content-Type": "application/json",
|
|
2159
|
-
...options.headers
|
|
2160
|
-
}
|
|
2224
|
+
url: "/api/projects/{project_id}/attachments/{attachment_id}",
|
|
2225
|
+
...options
|
|
2161
2226
|
});
|
|
2162
2227
|
}
|
|
2163
2228
|
/**
|
|
2164
|
-
*
|
|
2229
|
+
* Resolve the ID returned by a Sentry SDK without already knowing the issue.
|
|
2165
2230
|
*/
|
|
2166
|
-
|
|
2231
|
+
getBySentryId(options) {
|
|
2167
2232
|
return (options.client ?? this.client).get({
|
|
2168
|
-
requestValidator: async (data) => await
|
|
2169
|
-
body:
|
|
2170
|
-
path: require_zod_gen.
|
|
2171
|
-
query:
|
|
2233
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2234
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2235
|
+
path: require_zod_gen.zEventsGetBySentryIdPath,
|
|
2236
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2172
2237
|
}).parseAsync(data),
|
|
2173
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2238
|
+
responseValidator: async (data) => await require_zod_gen.zEventsGetBySentryIdResponse.parseAsync(data),
|
|
2174
2239
|
security: [{
|
|
2175
2240
|
scheme: "bearer",
|
|
2176
2241
|
type: "http"
|
|
2177
2242
|
}],
|
|
2178
|
-
url: "/api/projects/{project_id}/
|
|
2243
|
+
url: "/api/projects/{project_id}/events/sentry/{event_id}",
|
|
2179
2244
|
...options
|
|
2180
2245
|
});
|
|
2181
2246
|
}
|
|
2182
2247
|
/**
|
|
2183
|
-
*
|
|
2248
|
+
* Lists events for an issue with cursor-based pagination
|
|
2184
2249
|
*/
|
|
2185
|
-
|
|
2186
|
-
return (options.client ?? this.client).
|
|
2187
|
-
requestValidator: async (data) => await
|
|
2188
|
-
body:
|
|
2189
|
-
path: require_zod_gen.
|
|
2190
|
-
query:
|
|
2250
|
+
list(options) {
|
|
2251
|
+
return (options.client ?? this.client).get({
|
|
2252
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2253
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2254
|
+
path: require_zod_gen.zEventsListPath,
|
|
2255
|
+
query: zod_mini.optional(require_zod_gen.zEventsListQuery)
|
|
2191
2256
|
}).parseAsync(data),
|
|
2192
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2257
|
+
responseValidator: async (data) => await require_zod_gen.zEventsListResponse.parseAsync(data),
|
|
2193
2258
|
security: [{
|
|
2194
2259
|
scheme: "bearer",
|
|
2195
2260
|
type: "http"
|
|
2196
2261
|
}],
|
|
2197
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2262
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events",
|
|
2198
2263
|
...options
|
|
2199
2264
|
});
|
|
2200
2265
|
}
|
|
2201
2266
|
/**
|
|
2202
|
-
*
|
|
2267
|
+
* Gets a single event with full data
|
|
2203
2268
|
*/
|
|
2204
|
-
|
|
2269
|
+
get(options) {
|
|
2205
2270
|
return (options.client ?? this.client).get({
|
|
2206
|
-
requestValidator: async (data) => await
|
|
2207
|
-
body:
|
|
2208
|
-
path: require_zod_gen.
|
|
2209
|
-
query:
|
|
2271
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2272
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2273
|
+
path: require_zod_gen.zEventsGetPath,
|
|
2274
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2210
2275
|
}).parseAsync(data),
|
|
2211
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2276
|
+
responseValidator: async (data) => await require_zod_gen.zEventsGetResponse.parseAsync(data),
|
|
2212
2277
|
security: [{
|
|
2213
2278
|
scheme: "bearer",
|
|
2214
2279
|
type: "http"
|
|
2215
2280
|
}],
|
|
2216
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2281
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
|
|
2217
2282
|
...options
|
|
2218
2283
|
});
|
|
2219
2284
|
}
|
|
2220
2285
|
/**
|
|
2221
|
-
*
|
|
2286
|
+
* Lists the files sent with an event, such as a feedback's screenshot.
|
|
2222
2287
|
*/
|
|
2223
|
-
|
|
2224
|
-
return (options.client ?? this.client).
|
|
2225
|
-
requestValidator: async (data) => await
|
|
2226
|
-
body:
|
|
2227
|
-
path: require_zod_gen.
|
|
2228
|
-
query:
|
|
2288
|
+
listAttachments(options) {
|
|
2289
|
+
return (options.client ?? this.client).get({
|
|
2290
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2291
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2292
|
+
path: require_zod_gen.zEventsListAttachmentsPath,
|
|
2293
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2229
2294
|
}).parseAsync(data),
|
|
2230
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2295
|
+
responseValidator: async (data) => await require_zod_gen.zEventsListAttachmentsResponse.parseAsync(data),
|
|
2231
2296
|
security: [{
|
|
2232
2297
|
scheme: "bearer",
|
|
2233
2298
|
type: "http"
|
|
2234
2299
|
}],
|
|
2235
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2236
|
-
...options
|
|
2237
|
-
headers: {
|
|
2238
|
-
"Content-Type": "application/json",
|
|
2239
|
-
...options.headers
|
|
2240
|
-
}
|
|
2300
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
|
|
2301
|
+
...options
|
|
2241
2302
|
});
|
|
2242
2303
|
}
|
|
2304
|
+
};
|
|
2305
|
+
var Environments = class extends HeyApiClient {
|
|
2243
2306
|
/**
|
|
2244
|
-
* Lists the
|
|
2307
|
+
* Lists the environments a project's issues have been seen in, by name.
|
|
2245
2308
|
*/
|
|
2246
|
-
|
|
2309
|
+
list(options) {
|
|
2247
2310
|
return (options.client ?? this.client).get({
|
|
2248
|
-
requestValidator: async (data) => await
|
|
2249
|
-
body:
|
|
2250
|
-
path: require_zod_gen.
|
|
2251
|
-
query:
|
|
2311
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2312
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2313
|
+
path: require_zod_gen.zEnvironmentsListPath,
|
|
2314
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2252
2315
|
}).parseAsync(data),
|
|
2253
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2316
|
+
responseValidator: async (data) => await require_zod_gen.zEnvironmentsListResponse.parseAsync(data),
|
|
2254
2317
|
security: [{
|
|
2255
2318
|
scheme: "bearer",
|
|
2256
2319
|
type: "http"
|
|
2257
2320
|
}],
|
|
2258
|
-
url: "/api/projects/{project_id}/
|
|
2321
|
+
url: "/api/projects/{project_id}/environments",
|
|
2259
2322
|
...options
|
|
2260
2323
|
});
|
|
2261
2324
|
}
|
|
2325
|
+
};
|
|
2326
|
+
var Stats = class extends HeyApiClient {
|
|
2262
2327
|
/**
|
|
2263
|
-
*
|
|
2328
|
+
* Counts a project's events over time, bucketed for a chart.
|
|
2264
2329
|
*/
|
|
2265
|
-
|
|
2330
|
+
getEventTimeseries(options) {
|
|
2266
2331
|
return (options.client ?? this.client).get({
|
|
2267
|
-
requestValidator: async (data) => await
|
|
2268
|
-
body:
|
|
2269
|
-
path: require_zod_gen.
|
|
2270
|
-
query:
|
|
2332
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2333
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2334
|
+
path: require_zod_gen.zStatsGetEventTimeseriesPath,
|
|
2335
|
+
query: zod_mini.optional(require_zod_gen.zStatsGetEventTimeseriesQuery)
|
|
2271
2336
|
}).parseAsync(data),
|
|
2272
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2337
|
+
responseValidator: async (data) => await require_zod_gen.zStatsGetEventTimeseriesResponse.parseAsync(data),
|
|
2273
2338
|
security: [{
|
|
2274
2339
|
scheme: "bearer",
|
|
2275
2340
|
type: "http"
|
|
2276
2341
|
}],
|
|
2277
|
-
url: "/api/projects/{project_id}/
|
|
2342
|
+
url: "/api/projects/{project_id}/events/stats",
|
|
2278
2343
|
...options
|
|
2279
2344
|
});
|
|
2280
2345
|
}
|
|
2281
2346
|
/**
|
|
2282
|
-
*
|
|
2347
|
+
* Headline figures for a project's overview: events, new and open issues.
|
|
2283
2348
|
*/
|
|
2284
|
-
|
|
2285
|
-
return (options.client ?? this.client).
|
|
2286
|
-
requestValidator: async (data) => await
|
|
2287
|
-
body:
|
|
2288
|
-
path: require_zod_gen.
|
|
2289
|
-
query:
|
|
2349
|
+
getSummary(options) {
|
|
2350
|
+
return (options.client ?? this.client).get({
|
|
2351
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2352
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2353
|
+
path: require_zod_gen.zStatsGetSummaryPath,
|
|
2354
|
+
query: zod_mini.optional(require_zod_gen.zStatsGetSummaryQuery)
|
|
2290
2355
|
}).parseAsync(data),
|
|
2291
|
-
responseValidator: async (data) => await require_zod_gen.
|
|
2356
|
+
responseValidator: async (data) => await require_zod_gen.zStatsGetSummaryResponse.parseAsync(data),
|
|
2292
2357
|
security: [{
|
|
2293
2358
|
scheme: "bearer",
|
|
2294
2359
|
type: "http"
|
|
2295
2360
|
}],
|
|
2296
|
-
url: "/api/projects/{project_id}/
|
|
2297
|
-
...options
|
|
2298
|
-
headers: {
|
|
2299
|
-
"Content-Type": "application/json",
|
|
2300
|
-
...options.headers
|
|
2301
|
-
}
|
|
2361
|
+
url: "/api/projects/{project_id}/stats/summary",
|
|
2362
|
+
...options
|
|
2302
2363
|
});
|
|
2303
2364
|
}
|
|
2304
2365
|
};
|
|
@@ -2309,10 +2370,10 @@ var Logs = class extends HeyApiClient {
|
|
|
2309
2370
|
*/
|
|
2310
2371
|
list(options) {
|
|
2311
2372
|
return (options.client ?? this.client).get({
|
|
2312
|
-
requestValidator: async (data) => await
|
|
2313
|
-
body:
|
|
2373
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2374
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2314
2375
|
path: require_zod_gen.zLogsListPath,
|
|
2315
|
-
query: require_zod_gen.zLogsListQuery
|
|
2376
|
+
query: zod_mini.optional(require_zod_gen.zLogsListQuery)
|
|
2316
2377
|
}).parseAsync(data),
|
|
2317
2378
|
responseValidator: async (data) => await require_zod_gen.zLogsListResponse.parseAsync(data),
|
|
2318
2379
|
security: [{
|
|
@@ -2328,10 +2389,10 @@ var Logs = class extends HeyApiClient {
|
|
|
2328
2389
|
*/
|
|
2329
2390
|
volume(options) {
|
|
2330
2391
|
return (options.client ?? this.client).get({
|
|
2331
|
-
requestValidator: async (data) => await
|
|
2332
|
-
body:
|
|
2392
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2393
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2333
2394
|
path: require_zod_gen.zLogsVolumePath,
|
|
2334
|
-
query: require_zod_gen.zLogsVolumeQuery
|
|
2395
|
+
query: zod_mini.optional(require_zod_gen.zLogsVolumeQuery)
|
|
2335
2396
|
}).parseAsync(data),
|
|
2336
2397
|
responseValidator: async (data) => await require_zod_gen.zLogsVolumeResponse.parseAsync(data),
|
|
2337
2398
|
security: [{
|
|
@@ -2347,10 +2408,10 @@ var Logs = class extends HeyApiClient {
|
|
|
2347
2408
|
*/
|
|
2348
2409
|
get(options) {
|
|
2349
2410
|
return (options.client ?? this.client).get({
|
|
2350
|
-
requestValidator: async (data) => await
|
|
2351
|
-
body:
|
|
2411
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2412
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2352
2413
|
path: require_zod_gen.zLogsGetPath,
|
|
2353
|
-
query:
|
|
2414
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2354
2415
|
}).parseAsync(data),
|
|
2355
2416
|
responseValidator: async (data) => await require_zod_gen.zLogsGetResponse.parseAsync(data),
|
|
2356
2417
|
security: [{
|
|
@@ -2368,10 +2429,10 @@ var Members = class extends HeyApiClient {
|
|
|
2368
2429
|
*/
|
|
2369
2430
|
list(options) {
|
|
2370
2431
|
return (options.client ?? this.client).get({
|
|
2371
|
-
requestValidator: async (data) => await
|
|
2372
|
-
body:
|
|
2432
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2433
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2373
2434
|
path: require_zod_gen.zMembersListPath,
|
|
2374
|
-
query:
|
|
2435
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2375
2436
|
}).parseAsync(data),
|
|
2376
2437
|
responseValidator: async (data) => await require_zod_gen.zMembersListResponse.parseAsync(data),
|
|
2377
2438
|
security: [{
|
|
@@ -2387,10 +2448,10 @@ var Members = class extends HeyApiClient {
|
|
|
2387
2448
|
*/
|
|
2388
2449
|
upsert(options) {
|
|
2389
2450
|
return (options.client ?? this.client).put({
|
|
2390
|
-
requestValidator: async (data) => await
|
|
2451
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2391
2452
|
body: require_zod_gen.zMembersUpsertBody,
|
|
2392
2453
|
path: require_zod_gen.zMembersUpsertPath,
|
|
2393
|
-
query:
|
|
2454
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2394
2455
|
}).parseAsync(data),
|
|
2395
2456
|
responseValidator: async (data) => await require_zod_gen.zMembersUpsertResponse.parseAsync(data),
|
|
2396
2457
|
security: [{
|
|
@@ -2410,10 +2471,10 @@ var Members = class extends HeyApiClient {
|
|
|
2410
2471
|
*/
|
|
2411
2472
|
candidates(options) {
|
|
2412
2473
|
return (options.client ?? this.client).get({
|
|
2413
|
-
requestValidator: async (data) => await
|
|
2414
|
-
body:
|
|
2474
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2475
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2415
2476
|
path: require_zod_gen.zMembersCandidatesPath,
|
|
2416
|
-
query:
|
|
2477
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2417
2478
|
}).parseAsync(data),
|
|
2418
2479
|
responseValidator: async (data) => await require_zod_gen.zMembersCandidatesResponse.parseAsync(data),
|
|
2419
2480
|
security: [{
|
|
@@ -2429,10 +2490,10 @@ var Members = class extends HeyApiClient {
|
|
|
2429
2490
|
*/
|
|
2430
2491
|
remove(options) {
|
|
2431
2492
|
return (options.client ?? this.client).delete({
|
|
2432
|
-
requestValidator: async (data) => await
|
|
2433
|
-
body:
|
|
2493
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2494
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2434
2495
|
path: require_zod_gen.zMembersRemovePath,
|
|
2435
|
-
query:
|
|
2496
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2436
2497
|
}).parseAsync(data),
|
|
2437
2498
|
responseValidator: async (data) => await require_zod_gen.zMembersRemoveResponse.parseAsync(data),
|
|
2438
2499
|
security: [{
|
|
@@ -2450,10 +2511,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2450
2511
|
*/
|
|
2451
2512
|
stats(options) {
|
|
2452
2513
|
return (options.client ?? this.client).get({
|
|
2453
|
-
requestValidator: async (data) => await
|
|
2454
|
-
body:
|
|
2514
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2515
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2455
2516
|
path: require_zod_gen.zMonitorsStatsPath,
|
|
2456
|
-
query: require_zod_gen.zMonitorsStatsQuery
|
|
2517
|
+
query: zod_mini.optional(require_zod_gen.zMonitorsStatsQuery)
|
|
2457
2518
|
}).parseAsync(data),
|
|
2458
2519
|
responseValidator: async (data) => await require_zod_gen.zMonitorsStatsResponse.parseAsync(data),
|
|
2459
2520
|
security: [{
|
|
@@ -2469,10 +2530,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2469
2530
|
*/
|
|
2470
2531
|
list(options) {
|
|
2471
2532
|
return (options.client ?? this.client).get({
|
|
2472
|
-
requestValidator: async (data) => await
|
|
2473
|
-
body:
|
|
2533
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2534
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2474
2535
|
path: require_zod_gen.zMonitorsListPath,
|
|
2475
|
-
query:
|
|
2536
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2476
2537
|
}).parseAsync(data),
|
|
2477
2538
|
responseValidator: async (data) => await require_zod_gen.zMonitorsListResponse.parseAsync(data),
|
|
2478
2539
|
security: [{
|
|
@@ -2488,10 +2549,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2488
2549
|
*/
|
|
2489
2550
|
create(options) {
|
|
2490
2551
|
return (options.client ?? this.client).post({
|
|
2491
|
-
requestValidator: async (data) => await
|
|
2552
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2492
2553
|
body: require_zod_gen.zMonitorsCreateBody,
|
|
2493
2554
|
path: require_zod_gen.zMonitorsCreatePath,
|
|
2494
|
-
query:
|
|
2555
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2495
2556
|
}).parseAsync(data),
|
|
2496
2557
|
responseValidator: async (data) => await require_zod_gen.zMonitorsCreateResponse.parseAsync(data),
|
|
2497
2558
|
security: [{
|
|
@@ -2511,10 +2572,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2511
2572
|
*/
|
|
2512
2573
|
delete(options) {
|
|
2513
2574
|
return (options.client ?? this.client).delete({
|
|
2514
|
-
requestValidator: async (data) => await
|
|
2515
|
-
body:
|
|
2575
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2576
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2516
2577
|
path: require_zod_gen.zMonitorsDeletePath,
|
|
2517
|
-
query:
|
|
2578
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2518
2579
|
}).parseAsync(data),
|
|
2519
2580
|
responseValidator: async (data) => await require_zod_gen.zMonitorsDeleteResponse.parseAsync(data),
|
|
2520
2581
|
security: [{
|
|
@@ -2530,10 +2591,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2530
2591
|
*/
|
|
2531
2592
|
get(options) {
|
|
2532
2593
|
return (options.client ?? this.client).get({
|
|
2533
|
-
requestValidator: async (data) => await
|
|
2534
|
-
body:
|
|
2594
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2595
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2535
2596
|
path: require_zod_gen.zMonitorsGetPath,
|
|
2536
|
-
query:
|
|
2597
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2537
2598
|
}).parseAsync(data),
|
|
2538
2599
|
responseValidator: async (data) => await require_zod_gen.zMonitorsGetResponse.parseAsync(data),
|
|
2539
2600
|
security: [{
|
|
@@ -2549,10 +2610,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2549
2610
|
*/
|
|
2550
2611
|
update(options) {
|
|
2551
2612
|
return (options.client ?? this.client).put({
|
|
2552
|
-
requestValidator: async (data) => await
|
|
2613
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2553
2614
|
body: require_zod_gen.zMonitorsUpdateBody,
|
|
2554
2615
|
path: require_zod_gen.zMonitorsUpdatePath,
|
|
2555
|
-
query:
|
|
2616
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2556
2617
|
}).parseAsync(data),
|
|
2557
2618
|
responseValidator: async (data) => await require_zod_gen.zMonitorsUpdateResponse.parseAsync(data),
|
|
2558
2619
|
security: [{
|
|
@@ -2572,10 +2633,10 @@ var Monitors = class extends HeyApiClient {
|
|
|
2572
2633
|
*/
|
|
2573
2634
|
listCheckins(options) {
|
|
2574
2635
|
return (options.client ?? this.client).get({
|
|
2575
|
-
requestValidator: async (data) => await
|
|
2576
|
-
body:
|
|
2636
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2637
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2577
2638
|
path: require_zod_gen.zMonitorsListCheckinsPath,
|
|
2578
|
-
query: require_zod_gen.zMonitorsListCheckinsQuery
|
|
2639
|
+
query: zod_mini.optional(require_zod_gen.zMonitorsListCheckinsQuery)
|
|
2579
2640
|
}).parseAsync(data),
|
|
2580
2641
|
responseValidator: async (data) => await require_zod_gen.zMonitorsListCheckinsResponse.parseAsync(data),
|
|
2581
2642
|
security: [{
|
|
@@ -2593,10 +2654,10 @@ var Sessions = class extends HeyApiClient {
|
|
|
2593
2654
|
*/
|
|
2594
2655
|
getStats(options) {
|
|
2595
2656
|
return (options.client ?? this.client).get({
|
|
2596
|
-
requestValidator: async (data) => await
|
|
2597
|
-
body:
|
|
2657
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2658
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2598
2659
|
path: require_zod_gen.zSessionsGetStatsPath,
|
|
2599
|
-
query: require_zod_gen.zSessionsGetStatsQuery
|
|
2660
|
+
query: zod_mini.optional(require_zod_gen.zSessionsGetStatsQuery)
|
|
2600
2661
|
}).parseAsync(data),
|
|
2601
2662
|
responseValidator: async (data) => await require_zod_gen.zSessionsGetStatsResponse.parseAsync(data),
|
|
2602
2663
|
security: [{
|
|
@@ -2612,10 +2673,10 @@ var Sessions = class extends HeyApiClient {
|
|
|
2612
2673
|
*/
|
|
2613
2674
|
getSummary(options) {
|
|
2614
2675
|
return (options.client ?? this.client).get({
|
|
2615
|
-
requestValidator: async (data) => await
|
|
2616
|
-
body:
|
|
2676
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2677
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2617
2678
|
path: require_zod_gen.zSessionsGetSummaryPath,
|
|
2618
|
-
query: require_zod_gen.zSessionsGetSummaryQuery
|
|
2679
|
+
query: zod_mini.optional(require_zod_gen.zSessionsGetSummaryQuery)
|
|
2619
2680
|
}).parseAsync(data),
|
|
2620
2681
|
responseValidator: async (data) => await require_zod_gen.zSessionsGetSummaryResponse.parseAsync(data),
|
|
2621
2682
|
security: [{
|
|
@@ -2631,10 +2692,10 @@ var Sessions = class extends HeyApiClient {
|
|
|
2631
2692
|
*/
|
|
2632
2693
|
getTimeseries(options) {
|
|
2633
2694
|
return (options.client ?? this.client).get({
|
|
2634
|
-
requestValidator: async (data) => await
|
|
2635
|
-
body:
|
|
2695
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2696
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2636
2697
|
path: require_zod_gen.zSessionsGetTimeseriesPath,
|
|
2637
|
-
query: require_zod_gen.zSessionsGetTimeseriesQuery
|
|
2698
|
+
query: zod_mini.optional(require_zod_gen.zSessionsGetTimeseriesQuery)
|
|
2638
2699
|
}).parseAsync(data),
|
|
2639
2700
|
responseValidator: async (data) => await require_zod_gen.zSessionsGetTimeseriesResponse.parseAsync(data),
|
|
2640
2701
|
security: [{
|
|
@@ -2655,10 +2716,10 @@ var Spans = class extends HeyApiClient {
|
|
|
2655
2716
|
*/
|
|
2656
2717
|
list(options) {
|
|
2657
2718
|
return (options.client ?? this.client).get({
|
|
2658
|
-
requestValidator: async (data) => await
|
|
2659
|
-
body:
|
|
2719
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2720
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2660
2721
|
path: require_zod_gen.zSpansListPath,
|
|
2661
|
-
query: require_zod_gen.zSpansListQuery
|
|
2722
|
+
query: zod_mini.optional(require_zod_gen.zSpansListQuery)
|
|
2662
2723
|
}).parseAsync(data),
|
|
2663
2724
|
responseValidator: async (data) => await require_zod_gen.zSpansListResponse.parseAsync(data),
|
|
2664
2725
|
security: [{
|
|
@@ -2677,10 +2738,10 @@ var Spans = class extends HeyApiClient {
|
|
|
2677
2738
|
*/
|
|
2678
2739
|
get(options) {
|
|
2679
2740
|
return (options.client ?? this.client).get({
|
|
2680
|
-
requestValidator: async (data) => await
|
|
2681
|
-
body:
|
|
2741
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2742
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2682
2743
|
path: require_zod_gen.zSpansGetPath,
|
|
2683
|
-
query:
|
|
2744
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2684
2745
|
}).parseAsync(data),
|
|
2685
2746
|
responseValidator: async (data) => await require_zod_gen.zSpansGetResponse.parseAsync(data),
|
|
2686
2747
|
security: [{
|
|
@@ -2698,10 +2759,10 @@ var Transactions = class extends HeyApiClient {
|
|
|
2698
2759
|
*/
|
|
2699
2760
|
list(options) {
|
|
2700
2761
|
return (options.client ?? this.client).get({
|
|
2701
|
-
requestValidator: async (data) => await
|
|
2702
|
-
body:
|
|
2762
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2763
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2703
2764
|
path: require_zod_gen.zTransactionsListPath,
|
|
2704
|
-
query: require_zod_gen.zTransactionsListQuery
|
|
2765
|
+
query: zod_mini.optional(require_zod_gen.zTransactionsListQuery)
|
|
2705
2766
|
}).parseAsync(data),
|
|
2706
2767
|
responseValidator: async (data) => await require_zod_gen.zTransactionsListResponse.parseAsync(data),
|
|
2707
2768
|
security: [{
|
|
@@ -2719,10 +2780,10 @@ var Transactions = class extends HeyApiClient {
|
|
|
2719
2780
|
*/
|
|
2720
2781
|
getStats(options) {
|
|
2721
2782
|
return (options.client ?? this.client).get({
|
|
2722
|
-
requestValidator: async (data) => await
|
|
2723
|
-
body:
|
|
2783
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2784
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2724
2785
|
path: require_zod_gen.zTransactionsGetStatsPath,
|
|
2725
|
-
query: require_zod_gen.zTransactionsGetStatsQuery
|
|
2786
|
+
query: zod_mini.optional(require_zod_gen.zTransactionsGetStatsQuery)
|
|
2726
2787
|
}).parseAsync(data),
|
|
2727
2788
|
responseValidator: async (data) => await require_zod_gen.zTransactionsGetStatsResponse.parseAsync(data),
|
|
2728
2789
|
security: [{
|
|
@@ -2739,8 +2800,8 @@ var Transactions = class extends HeyApiClient {
|
|
|
2739
2800
|
*/
|
|
2740
2801
|
getStatGroup(options) {
|
|
2741
2802
|
return (options.client ?? this.client).get({
|
|
2742
|
-
requestValidator: async (data) => await
|
|
2743
|
-
body:
|
|
2803
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2804
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2744
2805
|
path: require_zod_gen.zTransactionsGetStatGroupPath,
|
|
2745
2806
|
query: require_zod_gen.zTransactionsGetStatGroupQuery
|
|
2746
2807
|
}).parseAsync(data),
|
|
@@ -2761,8 +2822,8 @@ var Transactions = class extends HeyApiClient {
|
|
|
2761
2822
|
*/
|
|
2762
2823
|
getStatGroupTimeseries(options) {
|
|
2763
2824
|
return (options.client ?? this.client).get({
|
|
2764
|
-
requestValidator: async (data) => await
|
|
2765
|
-
body:
|
|
2825
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2826
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2766
2827
|
path: require_zod_gen.zTransactionsGetStatGroupTimeseriesPath,
|
|
2767
2828
|
query: require_zod_gen.zTransactionsGetStatGroupTimeseriesQuery
|
|
2768
2829
|
}).parseAsync(data),
|
|
@@ -2781,10 +2842,10 @@ var Transactions = class extends HeyApiClient {
|
|
|
2781
2842
|
*/
|
|
2782
2843
|
get(options) {
|
|
2783
2844
|
return (options.client ?? this.client).get({
|
|
2784
|
-
requestValidator: async (data) => await
|
|
2785
|
-
body:
|
|
2845
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2846
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2786
2847
|
path: require_zod_gen.zTransactionsGetPath,
|
|
2787
|
-
query:
|
|
2848
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2788
2849
|
}).parseAsync(data),
|
|
2789
2850
|
responseValidator: async (data) => await require_zod_gen.zTransactionsGetResponse.parseAsync(data),
|
|
2790
2851
|
security: [{
|
|
@@ -2801,10 +2862,10 @@ var Transactions = class extends HeyApiClient {
|
|
|
2801
2862
|
*/
|
|
2802
2863
|
getSpans(options) {
|
|
2803
2864
|
return (options.client ?? this.client).get({
|
|
2804
|
-
requestValidator: async (data) => await
|
|
2805
|
-
body:
|
|
2865
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2866
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2806
2867
|
path: require_zod_gen.zTransactionsGetSpansPath,
|
|
2807
|
-
query:
|
|
2868
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2808
2869
|
}).parseAsync(data),
|
|
2809
2870
|
responseValidator: async (data) => await require_zod_gen.zTransactionsGetSpansResponse.parseAsync(data),
|
|
2810
2871
|
security: [{
|
|
@@ -2816,16 +2877,125 @@ var Transactions = class extends HeyApiClient {
|
|
|
2816
2877
|
});
|
|
2817
2878
|
}
|
|
2818
2879
|
};
|
|
2880
|
+
var SavedViews = class extends HeyApiClient {
|
|
2881
|
+
/**
|
|
2882
|
+
* Lists the views of one project page the caller sees: their own and the shared ones.
|
|
2883
|
+
*/
|
|
2884
|
+
list(options) {
|
|
2885
|
+
return (options.client ?? this.client).get({
|
|
2886
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2887
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2888
|
+
path: require_zod_gen.zSavedViewsListPath,
|
|
2889
|
+
query: require_zod_gen.zSavedViewsListQuery
|
|
2890
|
+
}).parseAsync(data),
|
|
2891
|
+
responseValidator: async (data) => await require_zod_gen.zSavedViewsListResponse.parseAsync(data),
|
|
2892
|
+
security: [{
|
|
2893
|
+
scheme: "bearer",
|
|
2894
|
+
type: "http"
|
|
2895
|
+
}],
|
|
2896
|
+
url: "/api/projects/{project_id}/views",
|
|
2897
|
+
...options
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
/**
|
|
2901
|
+
* Saves a project page's address as a view, personal unless `visibility` is `project`.
|
|
2902
|
+
*/
|
|
2903
|
+
create(options) {
|
|
2904
|
+
return (options.client ?? this.client).post({
|
|
2905
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2906
|
+
body: require_zod_gen.zSavedViewsCreateBody,
|
|
2907
|
+
path: require_zod_gen.zSavedViewsCreatePath,
|
|
2908
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2909
|
+
}).parseAsync(data),
|
|
2910
|
+
responseValidator: async (data) => await require_zod_gen.zSavedViewsCreateResponse.parseAsync(data),
|
|
2911
|
+
security: [{
|
|
2912
|
+
scheme: "bearer",
|
|
2913
|
+
type: "http"
|
|
2914
|
+
}],
|
|
2915
|
+
url: "/api/projects/{project_id}/views",
|
|
2916
|
+
...options,
|
|
2917
|
+
headers: {
|
|
2918
|
+
"Content-Type": "application/json",
|
|
2919
|
+
...options.headers
|
|
2920
|
+
}
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* Sets or clears the view a project page opens on, for the caller or the project.
|
|
2925
|
+
*/
|
|
2926
|
+
setDefault(options) {
|
|
2927
|
+
return (options.client ?? this.client).put({
|
|
2928
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2929
|
+
body: require_zod_gen.zSavedViewsSetDefaultBody,
|
|
2930
|
+
path: require_zod_gen.zSavedViewsSetDefaultPath,
|
|
2931
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2932
|
+
}).parseAsync(data),
|
|
2933
|
+
responseValidator: async (data) => await require_zod_gen.zSavedViewsSetDefaultResponse.parseAsync(data),
|
|
2934
|
+
security: [{
|
|
2935
|
+
scheme: "bearer",
|
|
2936
|
+
type: "http"
|
|
2937
|
+
}],
|
|
2938
|
+
url: "/api/projects/{project_id}/views/default",
|
|
2939
|
+
...options,
|
|
2940
|
+
headers: {
|
|
2941
|
+
"Content-Type": "application/json",
|
|
2942
|
+
...options.headers
|
|
2943
|
+
}
|
|
2944
|
+
});
|
|
2945
|
+
}
|
|
2946
|
+
/**
|
|
2947
|
+
* Deletes a project view.
|
|
2948
|
+
*/
|
|
2949
|
+
delete(options) {
|
|
2950
|
+
return (options.client ?? this.client).delete({
|
|
2951
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2952
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2953
|
+
path: require_zod_gen.zSavedViewsDeletePath,
|
|
2954
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2955
|
+
}).parseAsync(data),
|
|
2956
|
+
responseValidator: async (data) => await require_zod_gen.zSavedViewsDeleteResponse.parseAsync(data),
|
|
2957
|
+
security: [{
|
|
2958
|
+
scheme: "bearer",
|
|
2959
|
+
type: "http"
|
|
2960
|
+
}],
|
|
2961
|
+
url: "/api/projects/{project_id}/views/{view_id}",
|
|
2962
|
+
...options
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Renames a project view, or changes its address or who sees it.
|
|
2967
|
+
*/
|
|
2968
|
+
update(options) {
|
|
2969
|
+
return (options.client ?? this.client).patch({
|
|
2970
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2971
|
+
body: require_zod_gen.zSavedViewsUpdateBody,
|
|
2972
|
+
path: require_zod_gen.zSavedViewsUpdatePath,
|
|
2973
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2974
|
+
}).parseAsync(data),
|
|
2975
|
+
responseValidator: async (data) => await require_zod_gen.zSavedViewsUpdateResponse.parseAsync(data),
|
|
2976
|
+
security: [{
|
|
2977
|
+
scheme: "bearer",
|
|
2978
|
+
type: "http"
|
|
2979
|
+
}],
|
|
2980
|
+
url: "/api/projects/{project_id}/views/{view_id}",
|
|
2981
|
+
...options,
|
|
2982
|
+
headers: {
|
|
2983
|
+
"Content-Type": "application/json",
|
|
2984
|
+
...options.headers
|
|
2985
|
+
}
|
|
2986
|
+
});
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2819
2989
|
var Roles = class extends HeyApiClient {
|
|
2820
2990
|
/**
|
|
2821
2991
|
* Lists every role with its permissions and how often it is assigned.
|
|
2822
2992
|
*/
|
|
2823
2993
|
list(options) {
|
|
2824
2994
|
return (options?.client ?? this.client).get({
|
|
2825
|
-
requestValidator: async (data) => await
|
|
2826
|
-
body:
|
|
2827
|
-
path:
|
|
2828
|
-
query:
|
|
2995
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2996
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2997
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
2998
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2829
2999
|
}).parseAsync(data),
|
|
2830
3000
|
responseValidator: async (data) => await require_zod_gen.zRolesListResponse.parseAsync(data),
|
|
2831
3001
|
security: [{
|
|
@@ -2841,10 +3011,10 @@ var Roles = class extends HeyApiClient {
|
|
|
2841
3011
|
*/
|
|
2842
3012
|
create(options) {
|
|
2843
3013
|
return (options.client ?? this.client).post({
|
|
2844
|
-
requestValidator: async (data) => await
|
|
3014
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2845
3015
|
body: require_zod_gen.zRolesCreateBody,
|
|
2846
|
-
path:
|
|
2847
|
-
query:
|
|
3016
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3017
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2848
3018
|
}).parseAsync(data),
|
|
2849
3019
|
responseValidator: async (data) => await require_zod_gen.zRolesCreateResponse.parseAsync(data),
|
|
2850
3020
|
security: [{
|
|
@@ -2864,10 +3034,10 @@ var Roles = class extends HeyApiClient {
|
|
|
2864
3034
|
*/
|
|
2865
3035
|
delete(options) {
|
|
2866
3036
|
return (options.client ?? this.client).delete({
|
|
2867
|
-
requestValidator: async (data) => await
|
|
2868
|
-
body:
|
|
3037
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3038
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
2869
3039
|
path: require_zod_gen.zRolesDeletePath,
|
|
2870
|
-
query:
|
|
3040
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2871
3041
|
}).parseAsync(data),
|
|
2872
3042
|
responseValidator: async (data) => await require_zod_gen.zRolesDeleteResponse.parseAsync(data),
|
|
2873
3043
|
security: [{
|
|
@@ -2886,10 +3056,10 @@ var Roles = class extends HeyApiClient {
|
|
|
2886
3056
|
*/
|
|
2887
3057
|
update(options) {
|
|
2888
3058
|
return (options.client ?? this.client).put({
|
|
2889
|
-
requestValidator: async (data) => await
|
|
3059
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2890
3060
|
body: require_zod_gen.zRolesUpdateBody,
|
|
2891
3061
|
path: require_zod_gen.zRolesUpdatePath,
|
|
2892
|
-
query:
|
|
3062
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2893
3063
|
}).parseAsync(data),
|
|
2894
3064
|
responseValidator: async (data) => await require_zod_gen.zRolesUpdateResponse.parseAsync(data),
|
|
2895
3065
|
security: [{
|
|
@@ -2912,10 +3082,10 @@ var Schedules = class extends HeyApiClient {
|
|
|
2912
3082
|
*/
|
|
2913
3083
|
preview(options) {
|
|
2914
3084
|
return (options.client ?? this.client).post({
|
|
2915
|
-
requestValidator: async (data) => await
|
|
3085
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2916
3086
|
body: require_zod_gen.zSchedulesPreviewBody,
|
|
2917
|
-
path:
|
|
2918
|
-
query:
|
|
3087
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3088
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2919
3089
|
}).parseAsync(data),
|
|
2920
3090
|
responseValidator: async (data) => await require_zod_gen.zSchedulesPreviewResponse.parseAsync(data),
|
|
2921
3091
|
security: [{
|
|
@@ -2938,10 +3108,10 @@ var Settings = class extends HeyApiClient {
|
|
|
2938
3108
|
*/
|
|
2939
3109
|
getMcp(options) {
|
|
2940
3110
|
return (options?.client ?? this.client).get({
|
|
2941
|
-
requestValidator: async (data) => await
|
|
2942
|
-
body:
|
|
2943
|
-
path:
|
|
2944
|
-
query:
|
|
3111
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3112
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3113
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3114
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2945
3115
|
}).parseAsync(data),
|
|
2946
3116
|
responseValidator: async (data) => await require_zod_gen.zSettingsGetMcpResponse.parseAsync(data),
|
|
2947
3117
|
security: [{
|
|
@@ -2957,10 +3127,10 @@ var Settings = class extends HeyApiClient {
|
|
|
2957
3127
|
*/
|
|
2958
3128
|
updateMcp(options) {
|
|
2959
3129
|
return (options.client ?? this.client).put({
|
|
2960
|
-
requestValidator: async (data) => await
|
|
3130
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
2961
3131
|
body: require_zod_gen.zSettingsUpdateMcpBody,
|
|
2962
|
-
path:
|
|
2963
|
-
query:
|
|
3132
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3133
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2964
3134
|
}).parseAsync(data),
|
|
2965
3135
|
responseValidator: async (data) => await require_zod_gen.zSettingsUpdateMcpResponse.parseAsync(data),
|
|
2966
3136
|
security: [{
|
|
@@ -2982,10 +3152,10 @@ var Storage = class extends HeyApiClient {
|
|
|
2982
3152
|
*/
|
|
2983
3153
|
getAge(options) {
|
|
2984
3154
|
return (options?.client ?? this.client).get({
|
|
2985
|
-
requestValidator: async (data) => await
|
|
2986
|
-
body:
|
|
2987
|
-
path:
|
|
2988
|
-
query:
|
|
3155
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3156
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3157
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3158
|
+
query: zod_mini.optional(zod_mini.never())
|
|
2989
3159
|
}).parseAsync(data),
|
|
2990
3160
|
responseValidator: async (data) => await require_zod_gen.zStorageGetAgeResponse.parseAsync(data),
|
|
2991
3161
|
security: [{
|
|
@@ -3003,10 +3173,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3003
3173
|
*/
|
|
3004
3174
|
executeCleanup(options) {
|
|
3005
3175
|
return (options.client ?? this.client).post({
|
|
3006
|
-
requestValidator: async (data) => await
|
|
3176
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3007
3177
|
body: require_zod_gen.zStorageExecuteCleanupBody,
|
|
3008
|
-
path:
|
|
3009
|
-
query:
|
|
3178
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3179
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3010
3180
|
}).parseAsync(data),
|
|
3011
3181
|
responseValidator: async (data) => await require_zod_gen.zStorageExecuteCleanupResponse.parseAsync(data),
|
|
3012
3182
|
security: [{
|
|
@@ -3026,10 +3196,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3026
3196
|
*/
|
|
3027
3197
|
previewCleanup(options) {
|
|
3028
3198
|
return (options.client ?? this.client).post({
|
|
3029
|
-
requestValidator: async (data) => await
|
|
3199
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3030
3200
|
body: require_zod_gen.zStoragePreviewCleanupBody,
|
|
3031
|
-
path:
|
|
3032
|
-
query:
|
|
3201
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3202
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3033
3203
|
}).parseAsync(data),
|
|
3034
3204
|
responseValidator: async (data) => await require_zod_gen.zStoragePreviewCleanupResponse.parseAsync(data),
|
|
3035
3205
|
security: [{
|
|
@@ -3050,10 +3220,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3050
3220
|
*/
|
|
3051
3221
|
getCleanupStatus(options) {
|
|
3052
3222
|
return (options?.client ?? this.client).get({
|
|
3053
|
-
requestValidator: async (data) => await
|
|
3054
|
-
body:
|
|
3055
|
-
path:
|
|
3056
|
-
query:
|
|
3223
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3224
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3225
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3226
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3057
3227
|
}).parseAsync(data),
|
|
3058
3228
|
responseValidator: async (data) => await require_zod_gen.zStorageGetCleanupStatusResponse.parseAsync(data),
|
|
3059
3229
|
security: [{
|
|
@@ -3070,10 +3240,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3070
3240
|
*/
|
|
3071
3241
|
getCompaction(options) {
|
|
3072
3242
|
return (options?.client ?? this.client).get({
|
|
3073
|
-
requestValidator: async (data) => await
|
|
3074
|
-
body:
|
|
3075
|
-
path:
|
|
3076
|
-
query:
|
|
3243
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3244
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3245
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3246
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3077
3247
|
}).parseAsync(data),
|
|
3078
3248
|
responseValidator: async (data) => await require_zod_gen.zStorageGetCompactionResponse.parseAsync(data),
|
|
3079
3249
|
security: [{
|
|
@@ -3091,10 +3261,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3091
3261
|
*/
|
|
3092
3262
|
compact(options) {
|
|
3093
3263
|
return (options?.client ?? this.client).post({
|
|
3094
|
-
requestValidator: async (data) => await
|
|
3095
|
-
body:
|
|
3096
|
-
path:
|
|
3097
|
-
query:
|
|
3264
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3265
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3266
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3267
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3098
3268
|
}).parseAsync(data),
|
|
3099
3269
|
responseValidator: async (data) => await require_zod_gen.zStorageCompactResponse.parseAsync(data),
|
|
3100
3270
|
security: [{
|
|
@@ -3110,10 +3280,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3110
3280
|
*/
|
|
3111
3281
|
getProjects(options) {
|
|
3112
3282
|
return (options?.client ?? this.client).get({
|
|
3113
|
-
requestValidator: async (data) => await
|
|
3114
|
-
body:
|
|
3115
|
-
path:
|
|
3116
|
-
query:
|
|
3283
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3284
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3285
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3286
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3117
3287
|
}).parseAsync(data),
|
|
3118
3288
|
responseValidator: async (data) => await require_zod_gen.zStorageGetProjectsResponse.parseAsync(data),
|
|
3119
3289
|
security: [{
|
|
@@ -3129,10 +3299,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3129
3299
|
*/
|
|
3130
3300
|
getRetention(options) {
|
|
3131
3301
|
return (options?.client ?? this.client).get({
|
|
3132
|
-
requestValidator: async (data) => await
|
|
3133
|
-
body:
|
|
3134
|
-
path:
|
|
3135
|
-
query:
|
|
3302
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3303
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3304
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3305
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3136
3306
|
}).parseAsync(data),
|
|
3137
3307
|
responseValidator: async (data) => await require_zod_gen.zStorageGetRetentionResponse.parseAsync(data),
|
|
3138
3308
|
security: [{
|
|
@@ -3148,10 +3318,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3148
3318
|
*/
|
|
3149
3319
|
updateRetention(options) {
|
|
3150
3320
|
return (options.client ?? this.client).put({
|
|
3151
|
-
requestValidator: async (data) => await
|
|
3321
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3152
3322
|
body: require_zod_gen.zStorageUpdateRetentionBody,
|
|
3153
|
-
path:
|
|
3154
|
-
query:
|
|
3323
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3324
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3155
3325
|
}).parseAsync(data),
|
|
3156
3326
|
responseValidator: async (data) => await require_zod_gen.zStorageUpdateRetentionResponse.parseAsync(data),
|
|
3157
3327
|
security: [{
|
|
@@ -3172,10 +3342,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3172
3342
|
*/
|
|
3173
3343
|
previewRetention(options) {
|
|
3174
3344
|
return (options.client ?? this.client).post({
|
|
3175
|
-
requestValidator: async (data) => await
|
|
3345
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3176
3346
|
body: require_zod_gen.zStoragePreviewRetentionBody,
|
|
3177
|
-
path:
|
|
3178
|
-
query:
|
|
3347
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3348
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3179
3349
|
}).parseAsync(data),
|
|
3180
3350
|
responseValidator: async (data) => await require_zod_gen.zStoragePreviewRetentionResponse.parseAsync(data),
|
|
3181
3351
|
security: [{
|
|
@@ -3196,10 +3366,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3196
3366
|
*/
|
|
3197
3367
|
runRetention(options) {
|
|
3198
3368
|
return (options?.client ?? this.client).post({
|
|
3199
|
-
requestValidator: async (data) => await
|
|
3200
|
-
body:
|
|
3201
|
-
path:
|
|
3202
|
-
query:
|
|
3369
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3370
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3371
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3372
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3203
3373
|
}).parseAsync(data),
|
|
3204
3374
|
responseValidator: async (data) => await require_zod_gen.zStorageRunRetentionResponse.parseAsync(data),
|
|
3205
3375
|
security: [{
|
|
@@ -3215,10 +3385,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3215
3385
|
*/
|
|
3216
3386
|
gcSourceMaps(options) {
|
|
3217
3387
|
return (options?.client ?? this.client).post({
|
|
3218
|
-
requestValidator: async (data) => await
|
|
3219
|
-
body:
|
|
3220
|
-
path:
|
|
3221
|
-
query:
|
|
3388
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3389
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3390
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3391
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3222
3392
|
}).parseAsync(data),
|
|
3223
3393
|
responseValidator: async (data) => await require_zod_gen.zStorageGcSourceMapsResponse.parseAsync(data),
|
|
3224
3394
|
security: [{
|
|
@@ -3234,10 +3404,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3234
3404
|
*/
|
|
3235
3405
|
previewSourceMapGc(options) {
|
|
3236
3406
|
return (options?.client ?? this.client).post({
|
|
3237
|
-
requestValidator: async (data) => await
|
|
3238
|
-
body:
|
|
3239
|
-
path:
|
|
3240
|
-
query:
|
|
3407
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3408
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3409
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3410
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3241
3411
|
}).parseAsync(data),
|
|
3242
3412
|
responseValidator: async (data) => await require_zod_gen.zStoragePreviewSourceMapGcResponse.parseAsync(data),
|
|
3243
3413
|
security: [{
|
|
@@ -3253,10 +3423,10 @@ var Storage = class extends HeyApiClient {
|
|
|
3253
3423
|
*/
|
|
3254
3424
|
getSummary(options) {
|
|
3255
3425
|
return (options?.client ?? this.client).get({
|
|
3256
|
-
requestValidator: async (data) => await
|
|
3257
|
-
body:
|
|
3258
|
-
path:
|
|
3259
|
-
query:
|
|
3426
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3427
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3428
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3429
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3260
3430
|
}).parseAsync(data),
|
|
3261
3431
|
responseValidator: async (data) => await require_zod_gen.zStorageGetSummaryResponse.parseAsync(data),
|
|
3262
3432
|
security: [{
|
|
@@ -3274,10 +3444,10 @@ var Team = class extends HeyApiClient {
|
|
|
3274
3444
|
*/
|
|
3275
3445
|
list(options) {
|
|
3276
3446
|
return (options?.client ?? this.client).get({
|
|
3277
|
-
requestValidator: async (data) => await
|
|
3278
|
-
body:
|
|
3279
|
-
path:
|
|
3280
|
-
query:
|
|
3447
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3448
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3449
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3450
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3281
3451
|
}).parseAsync(data),
|
|
3282
3452
|
responseValidator: async (data) => await require_zod_gen.zTeamListResponse.parseAsync(data),
|
|
3283
3453
|
security: [{
|
|
@@ -3293,10 +3463,10 @@ var Team = class extends HeyApiClient {
|
|
|
3293
3463
|
*/
|
|
3294
3464
|
deleteUser(options) {
|
|
3295
3465
|
return (options.client ?? this.client).delete({
|
|
3296
|
-
requestValidator: async (data) => await
|
|
3297
|
-
body:
|
|
3466
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3467
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3298
3468
|
path: require_zod_gen.zTeamDeleteUserPath,
|
|
3299
|
-
query:
|
|
3469
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3300
3470
|
}).parseAsync(data),
|
|
3301
3471
|
responseValidator: async (data) => await require_zod_gen.zTeamDeleteUserResponse.parseAsync(data),
|
|
3302
3472
|
security: [{
|
|
@@ -3312,10 +3482,10 @@ var Team = class extends HeyApiClient {
|
|
|
3312
3482
|
*/
|
|
3313
3483
|
updateRole(options) {
|
|
3314
3484
|
return (options.client ?? this.client).patch({
|
|
3315
|
-
requestValidator: async (data) => await
|
|
3485
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3316
3486
|
body: require_zod_gen.zTeamUpdateRoleBody,
|
|
3317
3487
|
path: require_zod_gen.zTeamUpdateRolePath,
|
|
3318
|
-
query:
|
|
3488
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3319
3489
|
}).parseAsync(data),
|
|
3320
3490
|
responseValidator: async (data) => await require_zod_gen.zTeamUpdateRoleResponse.parseAsync(data),
|
|
3321
3491
|
security: [{
|
|
@@ -3337,10 +3507,10 @@ var Telemetry = class extends HeyApiClient {
|
|
|
3337
3507
|
*/
|
|
3338
3508
|
preview(options) {
|
|
3339
3509
|
return (options?.client ?? this.client).get({
|
|
3340
|
-
requestValidator: async (data) => await
|
|
3341
|
-
body:
|
|
3342
|
-
path:
|
|
3343
|
-
query:
|
|
3510
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3511
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3512
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3513
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3344
3514
|
}).parseAsync(data),
|
|
3345
3515
|
responseValidator: async (data) => await require_zod_gen.zTelemetryPreviewResponse.parseAsync(data),
|
|
3346
3516
|
security: [{
|
|
@@ -3361,10 +3531,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3361
3531
|
*/
|
|
3362
3532
|
list(options) {
|
|
3363
3533
|
return (options?.client ?? this.client).get({
|
|
3364
|
-
requestValidator: async (data) => await
|
|
3365
|
-
body:
|
|
3366
|
-
path:
|
|
3367
|
-
query:
|
|
3534
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3535
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3536
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3537
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3368
3538
|
}).parseAsync(data),
|
|
3369
3539
|
responseValidator: async (data) => await require_zod_gen.zTokensListResponse.parseAsync(data),
|
|
3370
3540
|
security: [{
|
|
@@ -3383,10 +3553,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3383
3553
|
*/
|
|
3384
3554
|
create(options) {
|
|
3385
3555
|
return (options.client ?? this.client).post({
|
|
3386
|
-
requestValidator: async (data) => await
|
|
3556
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3387
3557
|
body: require_zod_gen.zTokensCreateBody,
|
|
3388
|
-
path:
|
|
3389
|
-
query:
|
|
3558
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3559
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3390
3560
|
}).parseAsync(data),
|
|
3391
3561
|
responseValidator: async (data) => await require_zod_gen.zTokensCreateResponse.parseAsync(data),
|
|
3392
3562
|
security: [{
|
|
@@ -3408,10 +3578,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3408
3578
|
*/
|
|
3409
3579
|
delete(options) {
|
|
3410
3580
|
return (options.client ?? this.client).delete({
|
|
3411
|
-
requestValidator: async (data) => await
|
|
3412
|
-
body:
|
|
3581
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3582
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3413
3583
|
path: require_zod_gen.zTokensDeletePath,
|
|
3414
|
-
query:
|
|
3584
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3415
3585
|
}).parseAsync(data),
|
|
3416
3586
|
responseValidator: async (data) => await require_zod_gen.zTokensDeleteResponse.parseAsync(data),
|
|
3417
3587
|
security: [{
|
|
@@ -3430,10 +3600,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3430
3600
|
*/
|
|
3431
3601
|
get(options) {
|
|
3432
3602
|
return (options.client ?? this.client).get({
|
|
3433
|
-
requestValidator: async (data) => await
|
|
3434
|
-
body:
|
|
3603
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3604
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3435
3605
|
path: require_zod_gen.zTokensGetPath,
|
|
3436
|
-
query:
|
|
3606
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3437
3607
|
}).parseAsync(data),
|
|
3438
3608
|
responseValidator: async (data) => await require_zod_gen.zTokensGetResponse.parseAsync(data),
|
|
3439
3609
|
security: [{
|
|
@@ -3451,10 +3621,10 @@ var Users = class extends HeyApiClient {
|
|
|
3451
3621
|
*/
|
|
3452
3622
|
assignments(options) {
|
|
3453
3623
|
return (options.client ?? this.client).get({
|
|
3454
|
-
requestValidator: async (data) => await
|
|
3455
|
-
body:
|
|
3624
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3625
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3456
3626
|
path: require_zod_gen.zUsersAssignmentsPath,
|
|
3457
|
-
query:
|
|
3627
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3458
3628
|
}).parseAsync(data),
|
|
3459
3629
|
responseValidator: async (data) => await require_zod_gen.zUsersAssignmentsResponse.parseAsync(data),
|
|
3460
3630
|
security: [{
|
|
@@ -3473,10 +3643,10 @@ var Users = class extends HeyApiClient {
|
|
|
3473
3643
|
*/
|
|
3474
3644
|
setAssignments(options) {
|
|
3475
3645
|
return (options.client ?? this.client).put({
|
|
3476
|
-
requestValidator: async (data) => await
|
|
3646
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3477
3647
|
body: require_zod_gen.zUsersSetAssignmentsBody,
|
|
3478
3648
|
path: require_zod_gen.zUsersSetAssignmentsPath,
|
|
3479
|
-
query:
|
|
3649
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3480
3650
|
}).parseAsync(data),
|
|
3481
3651
|
responseValidator: async (data) => await require_zod_gen.zUsersSetAssignmentsResponse.parseAsync(data),
|
|
3482
3652
|
security: [{
|
|
@@ -3492,16 +3662,125 @@ var Users = class extends HeyApiClient {
|
|
|
3492
3662
|
});
|
|
3493
3663
|
}
|
|
3494
3664
|
};
|
|
3665
|
+
var WorkspaceViews = class extends HeyApiClient {
|
|
3666
|
+
/**
|
|
3667
|
+
* Lists the views of one workspace page (one that spans every project).
|
|
3668
|
+
*/
|
|
3669
|
+
list(options) {
|
|
3670
|
+
return (options.client ?? this.client).get({
|
|
3671
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3672
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3673
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3674
|
+
query: require_zod_gen.zWorkspaceViewsListQuery
|
|
3675
|
+
}).parseAsync(data),
|
|
3676
|
+
responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsListResponse.parseAsync(data),
|
|
3677
|
+
security: [{
|
|
3678
|
+
scheme: "bearer",
|
|
3679
|
+
type: "http"
|
|
3680
|
+
}],
|
|
3681
|
+
url: "/api/views",
|
|
3682
|
+
...options
|
|
3683
|
+
});
|
|
3684
|
+
}
|
|
3685
|
+
/**
|
|
3686
|
+
* Saves a workspace page's address as a view, personal unless `visibility` is `project`.
|
|
3687
|
+
*/
|
|
3688
|
+
create(options) {
|
|
3689
|
+
return (options.client ?? this.client).post({
|
|
3690
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3691
|
+
body: require_zod_gen.zWorkspaceViewsCreateBody,
|
|
3692
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3693
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3694
|
+
}).parseAsync(data),
|
|
3695
|
+
responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsCreateResponse.parseAsync(data),
|
|
3696
|
+
security: [{
|
|
3697
|
+
scheme: "bearer",
|
|
3698
|
+
type: "http"
|
|
3699
|
+
}],
|
|
3700
|
+
url: "/api/views",
|
|
3701
|
+
...options,
|
|
3702
|
+
headers: {
|
|
3703
|
+
"Content-Type": "application/json",
|
|
3704
|
+
...options.headers
|
|
3705
|
+
}
|
|
3706
|
+
});
|
|
3707
|
+
}
|
|
3708
|
+
/**
|
|
3709
|
+
* Sets or clears the view a workspace page opens on, for the caller or everyone.
|
|
3710
|
+
*/
|
|
3711
|
+
setDefault(options) {
|
|
3712
|
+
return (options.client ?? this.client).put({
|
|
3713
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3714
|
+
body: require_zod_gen.zWorkspaceViewsSetDefaultBody,
|
|
3715
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3716
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3717
|
+
}).parseAsync(data),
|
|
3718
|
+
responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsSetDefaultResponse.parseAsync(data),
|
|
3719
|
+
security: [{
|
|
3720
|
+
scheme: "bearer",
|
|
3721
|
+
type: "http"
|
|
3722
|
+
}],
|
|
3723
|
+
url: "/api/views/default",
|
|
3724
|
+
...options,
|
|
3725
|
+
headers: {
|
|
3726
|
+
"Content-Type": "application/json",
|
|
3727
|
+
...options.headers
|
|
3728
|
+
}
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
/**
|
|
3732
|
+
* Deletes a workspace view.
|
|
3733
|
+
*/
|
|
3734
|
+
delete(options) {
|
|
3735
|
+
return (options.client ?? this.client).delete({
|
|
3736
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3737
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3738
|
+
path: require_zod_gen.zWorkspaceViewsDeletePath,
|
|
3739
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3740
|
+
}).parseAsync(data),
|
|
3741
|
+
responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsDeleteResponse.parseAsync(data),
|
|
3742
|
+
security: [{
|
|
3743
|
+
scheme: "bearer",
|
|
3744
|
+
type: "http"
|
|
3745
|
+
}],
|
|
3746
|
+
url: "/api/views/{view_id}",
|
|
3747
|
+
...options
|
|
3748
|
+
});
|
|
3749
|
+
}
|
|
3750
|
+
/**
|
|
3751
|
+
* Renames a workspace view, or changes its address or who sees it.
|
|
3752
|
+
*/
|
|
3753
|
+
update(options) {
|
|
3754
|
+
return (options.client ?? this.client).patch({
|
|
3755
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3756
|
+
body: require_zod_gen.zWorkspaceViewsUpdateBody,
|
|
3757
|
+
path: require_zod_gen.zWorkspaceViewsUpdatePath,
|
|
3758
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3759
|
+
}).parseAsync(data),
|
|
3760
|
+
responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsUpdateResponse.parseAsync(data),
|
|
3761
|
+
security: [{
|
|
3762
|
+
scheme: "bearer",
|
|
3763
|
+
type: "http"
|
|
3764
|
+
}],
|
|
3765
|
+
url: "/api/views/{view_id}",
|
|
3766
|
+
...options,
|
|
3767
|
+
headers: {
|
|
3768
|
+
"Content-Type": "application/json",
|
|
3769
|
+
...options.headers
|
|
3770
|
+
}
|
|
3771
|
+
});
|
|
3772
|
+
}
|
|
3773
|
+
};
|
|
3495
3774
|
var Auth = class extends HeyApiClient {
|
|
3496
3775
|
/**
|
|
3497
3776
|
* Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
|
|
3498
3777
|
*/
|
|
3499
3778
|
acceptInvitation(options) {
|
|
3500
3779
|
return (options.client ?? this.client).post({
|
|
3501
|
-
requestValidator: async (data) => await
|
|
3780
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3502
3781
|
body: require_zod_gen.zAuthAcceptInvitationBody,
|
|
3503
|
-
path:
|
|
3504
|
-
query:
|
|
3782
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3783
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3505
3784
|
}).parseAsync(data),
|
|
3506
3785
|
responseValidator: async (data) => await require_zod_gen.zAuthAcceptInvitationResponse.parseAsync(data),
|
|
3507
3786
|
url: "/auth/accept-invitation",
|
|
@@ -3517,10 +3796,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3517
3796
|
*/
|
|
3518
3797
|
getInvitation(options) {
|
|
3519
3798
|
return (options.client ?? this.client).get({
|
|
3520
|
-
requestValidator: async (data) => await
|
|
3521
|
-
body:
|
|
3799
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3800
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3522
3801
|
path: require_zod_gen.zAuthGetInvitationPath,
|
|
3523
|
-
query:
|
|
3802
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3524
3803
|
}).parseAsync(data),
|
|
3525
3804
|
responseValidator: async (data) => await require_zod_gen.zAuthGetInvitationResponse.parseAsync(data),
|
|
3526
3805
|
url: "/auth/invitation/{token}",
|
|
@@ -3532,10 +3811,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3532
3811
|
*/
|
|
3533
3812
|
login(options) {
|
|
3534
3813
|
return (options.client ?? this.client).post({
|
|
3535
|
-
requestValidator: async (data) => await
|
|
3814
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3536
3815
|
body: require_zod_gen.zAuthLoginBody,
|
|
3537
|
-
path:
|
|
3538
|
-
query:
|
|
3816
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3817
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3539
3818
|
}).parseAsync(data),
|
|
3540
3819
|
responseValidator: async (data) => await require_zod_gen.zAuthLoginResponse.parseAsync(data),
|
|
3541
3820
|
url: "/auth/login",
|
|
@@ -3551,10 +3830,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3551
3830
|
*/
|
|
3552
3831
|
logout(options) {
|
|
3553
3832
|
return (options?.client ?? this.client).post({
|
|
3554
|
-
requestValidator: async (data) => await
|
|
3555
|
-
body:
|
|
3556
|
-
path:
|
|
3557
|
-
query:
|
|
3833
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3834
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3835
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3836
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3558
3837
|
}).parseAsync(data),
|
|
3559
3838
|
responseValidator: async (data) => await require_zod_gen.zAuthLogoutResponse.parseAsync(data),
|
|
3560
3839
|
security: [{
|
|
@@ -3571,10 +3850,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3571
3850
|
*/
|
|
3572
3851
|
getCurrentUser(options) {
|
|
3573
3852
|
return (options?.client ?? this.client).get({
|
|
3574
|
-
requestValidator: async (data) => await
|
|
3575
|
-
body:
|
|
3576
|
-
path:
|
|
3577
|
-
query:
|
|
3853
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3854
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3855
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3856
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3578
3857
|
}).parseAsync(data),
|
|
3579
3858
|
responseValidator: async (data) => await require_zod_gen.zAuthGetCurrentUserResponse.parseAsync(data),
|
|
3580
3859
|
security: [{
|
|
@@ -3591,10 +3870,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3591
3870
|
*/
|
|
3592
3871
|
updateCurrentUser(options) {
|
|
3593
3872
|
return (options.client ?? this.client).patch({
|
|
3594
|
-
requestValidator: async (data) => await
|
|
3873
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3595
3874
|
body: require_zod_gen.zAuthUpdateCurrentUserBody,
|
|
3596
|
-
path:
|
|
3597
|
-
query:
|
|
3875
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3876
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3598
3877
|
}).parseAsync(data),
|
|
3599
3878
|
responseValidator: async (data) => await require_zod_gen.zAuthUpdateCurrentUserResponse.parseAsync(data),
|
|
3600
3879
|
security: [{
|
|
@@ -3616,10 +3895,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3616
3895
|
*/
|
|
3617
3896
|
changePassword(options) {
|
|
3618
3897
|
return (options.client ?? this.client).post({
|
|
3619
|
-
requestValidator: async (data) => await
|
|
3898
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3620
3899
|
body: require_zod_gen.zAuthChangePasswordBody,
|
|
3621
|
-
path:
|
|
3622
|
-
query:
|
|
3900
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3901
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3623
3902
|
}).parseAsync(data),
|
|
3624
3903
|
responseValidator: async (data) => await require_zod_gen.zAuthChangePasswordResponse.parseAsync(data),
|
|
3625
3904
|
security: [{
|
|
@@ -3641,10 +3920,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3641
3920
|
*/
|
|
3642
3921
|
ssoCallback(options) {
|
|
3643
3922
|
return (options?.client ?? this.client).get({
|
|
3644
|
-
requestValidator: async (data) => await
|
|
3645
|
-
body:
|
|
3646
|
-
path:
|
|
3647
|
-
query: require_zod_gen.zAuthSsoCallbackQuery
|
|
3923
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3924
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3925
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3926
|
+
query: zod_mini.optional(require_zod_gen.zAuthSsoCallbackQuery)
|
|
3648
3927
|
}).parseAsync(data),
|
|
3649
3928
|
responseValidator: async (data) => await require_zod_gen.zAuthSsoCallbackResponse.parseAsync(data),
|
|
3650
3929
|
url: "/auth/sso/callback",
|
|
@@ -3656,10 +3935,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3656
3935
|
*/
|
|
3657
3936
|
ssoConfig(options) {
|
|
3658
3937
|
return (options?.client ?? this.client).get({
|
|
3659
|
-
requestValidator: async (data) => await
|
|
3660
|
-
body:
|
|
3661
|
-
path:
|
|
3662
|
-
query:
|
|
3938
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3939
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3940
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3941
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3663
3942
|
}).parseAsync(data),
|
|
3664
3943
|
responseValidator: async (data) => await require_zod_gen.zAuthSsoConfigResponse.parseAsync(data),
|
|
3665
3944
|
url: "/auth/sso/config",
|
|
@@ -3671,10 +3950,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3671
3950
|
*/
|
|
3672
3951
|
ssoLink(options) {
|
|
3673
3952
|
return (options?.client ?? this.client).get({
|
|
3674
|
-
requestValidator: async (data) => await
|
|
3675
|
-
body:
|
|
3676
|
-
path:
|
|
3677
|
-
query:
|
|
3953
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3954
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3955
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3956
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3678
3957
|
}).parseAsync(data),
|
|
3679
3958
|
responseValidator: async (data) => await require_zod_gen.zAuthSsoLinkResponse.parseAsync(data),
|
|
3680
3959
|
url: "/auth/sso/link",
|
|
@@ -3687,10 +3966,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3687
3966
|
*/
|
|
3688
3967
|
confirmSsoLink(options) {
|
|
3689
3968
|
return (options.client ?? this.client).post({
|
|
3690
|
-
requestValidator: async (data) => await
|
|
3969
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3691
3970
|
body: require_zod_gen.zAuthConfirmSsoLinkBody,
|
|
3692
|
-
path:
|
|
3693
|
-
query:
|
|
3971
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3972
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3694
3973
|
}).parseAsync(data),
|
|
3695
3974
|
responseValidator: async (data) => await require_zod_gen.zAuthConfirmSsoLinkResponse.parseAsync(data),
|
|
3696
3975
|
url: "/auth/sso/link",
|
|
@@ -3707,10 +3986,10 @@ var Auth = class extends HeyApiClient {
|
|
|
3707
3986
|
*/
|
|
3708
3987
|
ssoStart(options) {
|
|
3709
3988
|
return (options?.client ?? this.client).post({
|
|
3710
|
-
requestValidator: async (data) => await
|
|
3711
|
-
body:
|
|
3712
|
-
path:
|
|
3713
|
-
query:
|
|
3989
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
3990
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
3991
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
3992
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3714
3993
|
}).parseAsync(data),
|
|
3715
3994
|
responseValidator: async (data) => await require_zod_gen.zAuthSsoStartResponse.parseAsync(data),
|
|
3716
3995
|
url: "/auth/sso/start",
|
|
@@ -3725,10 +4004,10 @@ var Health = class extends HeyApiClient {
|
|
|
3725
4004
|
*/
|
|
3726
4005
|
liveness(options) {
|
|
3727
4006
|
return (options?.client ?? this.client).get({
|
|
3728
|
-
requestValidator: async (data) => await
|
|
3729
|
-
body:
|
|
3730
|
-
path:
|
|
3731
|
-
query:
|
|
4007
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
4008
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
4009
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
4010
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3732
4011
|
}).parseAsync(data),
|
|
3733
4012
|
responseValidator: async (data) => await require_zod_gen.zHealthLivenessResponse.parseAsync(data),
|
|
3734
4013
|
url: "/health",
|
|
@@ -3741,10 +4020,10 @@ var Health = class extends HeyApiClient {
|
|
|
3741
4020
|
*/
|
|
3742
4021
|
readiness(options) {
|
|
3743
4022
|
return (options?.client ?? this.client).get({
|
|
3744
|
-
requestValidator: async (data) => await
|
|
3745
|
-
body:
|
|
3746
|
-
path:
|
|
3747
|
-
query:
|
|
4023
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
4024
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
4025
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
4026
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3748
4027
|
}).parseAsync(data),
|
|
3749
4028
|
responseValidator: async (data) => await require_zod_gen.zHealthReadinessResponse.parseAsync(data),
|
|
3750
4029
|
url: "/health/ready",
|
|
@@ -3762,10 +4041,10 @@ var Health = class extends HeyApiClient {
|
|
|
3762
4041
|
*/
|
|
3763
4042
|
version(options) {
|
|
3764
4043
|
return (options?.client ?? this.client).get({
|
|
3765
|
-
requestValidator: async (data) => await
|
|
3766
|
-
body:
|
|
3767
|
-
path:
|
|
3768
|
-
query:
|
|
4044
|
+
requestValidator: async (data) => await zod_mini.object({
|
|
4045
|
+
body: zod_mini.optional(zod_mini.never()),
|
|
4046
|
+
path: zod_mini.optional(zod_mini.never()),
|
|
4047
|
+
query: zod_mini.optional(zod_mini.never())
|
|
3769
4048
|
}).parseAsync(data),
|
|
3770
4049
|
responseValidator: async (data) => await require_zod_gen.zHealthVersionResponse.parseAsync(data),
|
|
3771
4050
|
security: [{
|
|
@@ -3807,6 +4086,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3807
4086
|
get access() {
|
|
3808
4087
|
return this._access ??= new Access({ client: this.client });
|
|
3809
4088
|
}
|
|
4089
|
+
_feedback;
|
|
4090
|
+
get feedback() {
|
|
4091
|
+
return this._feedback ??= new Feedback({ client: this.client });
|
|
4092
|
+
}
|
|
3810
4093
|
_github;
|
|
3811
4094
|
get github() {
|
|
3812
4095
|
return this._github ??= new Github({ client: this.client });
|
|
@@ -3819,6 +4102,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3819
4102
|
get invitations() {
|
|
3820
4103
|
return this._invitations ??= new Invitations({ client: this.client });
|
|
3821
4104
|
}
|
|
4105
|
+
_issues;
|
|
4106
|
+
get issues() {
|
|
4107
|
+
return this._issues ??= new Issues({ client: this.client });
|
|
4108
|
+
}
|
|
3822
4109
|
_oauth;
|
|
3823
4110
|
get oauth() {
|
|
3824
4111
|
return this._oauth ??= new Oauth({ client: this.client });
|
|
@@ -3847,14 +4134,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3847
4134
|
get stats() {
|
|
3848
4135
|
return this._stats ??= new Stats({ client: this.client });
|
|
3849
4136
|
}
|
|
3850
|
-
_feedback;
|
|
3851
|
-
get feedback() {
|
|
3852
|
-
return this._feedback ??= new Feedback({ client: this.client });
|
|
3853
|
-
}
|
|
3854
|
-
_issues;
|
|
3855
|
-
get issues() {
|
|
3856
|
-
return this._issues ??= new Issues({ client: this.client });
|
|
3857
|
-
}
|
|
3858
4137
|
_logs;
|
|
3859
4138
|
get logs() {
|
|
3860
4139
|
return this._logs ??= new Logs({ client: this.client });
|
|
@@ -3879,6 +4158,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3879
4158
|
get transactions() {
|
|
3880
4159
|
return this._transactions ??= new Transactions({ client: this.client });
|
|
3881
4160
|
}
|
|
4161
|
+
_savedViews;
|
|
4162
|
+
get savedViews() {
|
|
4163
|
+
return this._savedViews ??= new SavedViews({ client: this.client });
|
|
4164
|
+
}
|
|
3882
4165
|
_roles;
|
|
3883
4166
|
get roles() {
|
|
3884
4167
|
return this._roles ??= new Roles({ client: this.client });
|
|
@@ -3911,6 +4194,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3911
4194
|
get users() {
|
|
3912
4195
|
return this._users ??= new Users({ client: this.client });
|
|
3913
4196
|
}
|
|
4197
|
+
_workspaceViews;
|
|
4198
|
+
get workspaceViews() {
|
|
4199
|
+
return this._workspaceViews ??= new WorkspaceViews({ client: this.client });
|
|
4200
|
+
}
|
|
3914
4201
|
_auth;
|
|
3915
4202
|
get auth() {
|
|
3916
4203
|
return this._auth ??= new Auth({ client: this.client });
|
|
@@ -3941,6 +4228,7 @@ exports.Projects = Projects;
|
|
|
3941
4228
|
exports.Releases = Releases;
|
|
3942
4229
|
exports.Roles = Roles;
|
|
3943
4230
|
exports.Rustrak = Rustrak;
|
|
4231
|
+
exports.SavedViews = SavedViews;
|
|
3944
4232
|
exports.Schedules = Schedules;
|
|
3945
4233
|
exports.Sentry = Sentry;
|
|
3946
4234
|
exports.Sessions = Sessions;
|
|
@@ -3954,5 +4242,6 @@ exports.Telemetry = Telemetry;
|
|
|
3954
4242
|
exports.Tokens = Tokens;
|
|
3955
4243
|
exports.Transactions = Transactions;
|
|
3956
4244
|
exports.Users = Users;
|
|
4245
|
+
exports.WorkspaceViews = WorkspaceViews;
|
|
3957
4246
|
|
|
3958
4247
|
//# sourceMappingURL=sdk.gen.cjs.map
|