@faiber/faiber-task 0.23.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import type { ApiEnvelope, JsonObject, JsonValue, QueryParams, QueryValue } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
3
  /** Backend response type: serde_json::Value. */
4
- export type RoutesOpenapiGetResponse = JsonValue;
4
+ export type RoutesOpenapiGetResponse = import("@faiber/sdk-core").ServiceOpenApiDocument;
5
5
  /** Backend query type: AccessQuery. */
6
6
  export interface RoutesEffectiveAccessGetQuery extends QueryParams {
7
7
  "team_id"?: string | null;
@@ -12,9 +12,9 @@ export interface RoutesEffectiveAccessGetQuery extends QueryParams {
12
12
  export interface RoutesEffectiveAccessGetResponseData extends JsonObject {
13
13
  "user_id": string;
14
14
  "workspace_id": string;
15
- "team_id"?: string | null;
16
- "project_id"?: string | null;
17
- "work_item_id"?: string | null;
15
+ "team_id": string | null;
16
+ "project_id": string | null;
17
+ "work_item_id": string | null;
18
18
  "capabilities": string[];
19
19
  }
20
20
  export interface RoutesEffectiveAccessGetResponse extends ApiEnvelope<RoutesEffectiveAccessGetResponseData> {
@@ -27,36 +27,13 @@ export interface RoutesCreateAgentProposalPostInput extends JsonObject {
27
27
  "payload": JsonValue;
28
28
  }
29
29
  /** Backend response type: raw-response. */
30
- export interface RoutesCreateAgentProposalPostResponse extends ApiEnvelope<JsonValue> {
31
- }
30
+ export type RoutesCreateAgentProposalPostResponse = import("./types.js").TaskResponse<import("./types.js").AgentProposal>;
32
31
  /** Backend response type: serde_json::Value. */
33
- export interface RoutesApproveAgentProposalPostResponse extends ApiEnvelope<JsonValue> {
34
- }
32
+ export type RoutesApproveAgentProposalPostResponse = import("./types.js").TaskResponse<import("./types.js").ApprovedAgentProposal>;
35
33
  /** Backend request type: WorkspaceQuery. */
36
- export interface RoutesQueryPostInputFieldFilters extends JsonObject {
37
- "key": string;
38
- "op": string;
39
- "value"?: JsonValue | null;
40
- "unit"?: string | null;
41
- }
42
- export interface RoutesQueryPostInput extends JsonObject {
43
- "project_id"?: string | null;
44
- "owner_id"?: string | null;
45
- "item_type"?: string | null;
46
- "q"?: string | null;
47
- "from"?: string | null;
48
- "until"?: string | null;
49
- "completed_by_me"?: boolean;
50
- "active_only"?: boolean;
51
- "cursor"?: string | null;
52
- "limit"?: number | null;
53
- "include_archived"?: boolean;
54
- "record_type"?: string | null;
55
- "field_filters"?: RoutesQueryPostInputFieldFilters[];
56
- }
34
+ export type RoutesQueryPostInput = import("./workspace.js").WorkspaceQuery;
57
35
  /** Backend response type: Value. */
58
- export interface RoutesQueryPostResponse extends ApiEnvelope<JsonValue> {
59
- }
36
+ export type RoutesQueryPostResponse = import("./types.js").TaskResponse<import("./workspace.js").WorkspaceQueryResult>;
60
37
  /** Backend response type: serde_json::Value. */
61
38
  export type RoutesRemoveDeleteApiV1AttachmentsIdResponse = import("./types.js").TaskResponse<import("./collaboration.js").DeletedAttachment>;
62
39
  /** Backend response type: Attachment. */
@@ -70,15 +47,49 @@ export type RoutesDownloadGetResponse = ArrayBuffer | Uint8Array;
70
47
  /** Backend response type: serde_json::Value. */
71
48
  export type RoutesConfigGetApiV1CollaborationConfigResponse = import("./types.js").TaskResponse<import("./collaboration.js").CollaborationConfig>;
72
49
  /** Backend response type: stream. */
73
- export interface RoutesEventsGetResponse extends ApiEnvelope<JsonValue> {
74
- }
50
+ export type RoutesEventsGetResponse = import("./types.js").TaskEventStreamBody;
51
+ /** Backend response type: Value. */
52
+ export type FeedbackAssigneesGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAssignees>;
53
+ /** Backend request type: InitializeAttachment. */
54
+ export type FeedbackInitializePostInput = import("./feedback.js").InitializeFeedbackAttachment;
55
+ /** Backend response type: AttachmentView. */
56
+ export type FeedbackInitializePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
57
+ /** Backend response type: AttachmentView. */
58
+ export type FeedbackCompletePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
59
+ /** Backend request type: binary byte stream. */
60
+ export type FeedbackUploadPutInput = Blob | ArrayBuffer | ArrayBufferView;
61
+ /** Backend response type: AttachmentView. */
62
+ export type FeedbackUploadPutResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
63
+ /** Backend response type: Value. */
64
+ export type FeedbackCapabilitiesGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackCapabilities>;
65
+ /** Backend response type: Value. */
66
+ export type FeedbackGetPolicyGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPolicyResult>;
67
+ /** Backend request type: FeedbackPolicy. */
68
+ export type FeedbackPutPolicyPutInput = import("./feedback.js").FeedbackPolicy;
69
+ /** Backend response type: Value. */
70
+ export type FeedbackPutPolicyPutResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPolicyResult>;
71
+ /** Backend query type: ListQuery. */
72
+ export type FeedbackIndexGetQuery = import("./feedback.js").FeedbackListQuery;
73
+ /** Backend response type: RequestPage. */
74
+ export type FeedbackIndexGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPage>;
75
+ /** Backend request type: SubmitRequest. */
76
+ export type FeedbackCreatePostInput = import("./feedback.js").SubmitFeedbackRequest;
77
+ /** Backend response type: Value. */
78
+ export type FeedbackCreatePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackRequest>;
79
+ /** Backend response type: RequestDetail. */
80
+ export type FeedbackShowGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackDetail>;
81
+ /** Backend response type: raw-response. */
82
+ export type FeedbackContentGetResponse = ArrayBuffer | Uint8Array;
83
+ /** Backend request type: DecideRequest. */
84
+ export type FeedbackDecisionPostInput = import("./feedback.js").DecideFeedbackRequest;
85
+ /** Backend response type: Value. */
86
+ export type FeedbackDecisionPostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackRequest>;
75
87
  /** Backend request type: UseGuestLink. */
76
88
  export interface RoutesUseGuestLinkPostInput extends JsonObject {
77
89
  "token": string;
78
90
  }
79
91
  /** Backend response type: serde_json::Value. */
80
- export interface RoutesUseGuestLinkPostResponse extends ApiEnvelope<JsonValue> {
81
- }
92
+ export type RoutesUseGuestLinkPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").GuestLinkAccess>;
82
93
  /** Backend query type: GiftQuery. */
83
94
  export interface RoutesListGetQuery extends QueryParams {
84
95
  "page"?: number | null;
@@ -86,8 +97,7 @@ export interface RoutesListGetQuery extends QueryParams {
86
97
  "search"?: string | null;
87
98
  }
88
99
  /** Backend response type: Value. */
89
- export interface RoutesListGetResponse extends ApiEnvelope<JsonValue> {
90
- }
100
+ export type RoutesListGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGiftPage>;
91
101
  /** Backend request type: CreateGift. */
92
102
  export interface RoutesCreatePostApiV1InternalPlansGiftsInputLimits extends JsonObject {
93
103
  "tasks": number;
@@ -107,11 +117,9 @@ export interface RoutesCreatePostApiV1InternalPlansGiftsInput extends JsonObject
107
117
  "rotate_token"?: boolean;
108
118
  }
109
119
  /** Backend response type: Value. */
110
- export interface RoutesCreatePostApiV1InternalPlansGiftsResponse extends ApiEnvelope<JsonValue> {
111
- }
120
+ export type RoutesCreatePostApiV1InternalPlansGiftsResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
112
121
  /** Backend response type: Value. */
113
- export interface RoutesShowGetResponse extends ApiEnvelope<JsonValue> {
114
- }
122
+ export type RoutesShowGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
115
123
  /** Backend request type: GiftSettings. */
116
124
  export interface RoutesUpdatePutInputLimits extends JsonObject {
117
125
  "tasks": number;
@@ -129,8 +137,7 @@ export interface RoutesUpdatePutInput extends JsonObject {
129
137
  "rotate_token"?: boolean;
130
138
  }
131
139
  /** Backend response type: Value. */
132
- export interface RoutesUpdatePutResponse extends ApiEnvelope<JsonValue> {
133
- }
140
+ export type RoutesUpdatePutResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
134
141
  /** Backend request type: ReserveInput. */
135
142
  export type RoutesReserveInternalPostInputBucket = "storage_bytes" | "imports" | "research" | "audio_seconds";
136
143
  export interface RoutesReserveInternalPostInput extends JsonObject {
@@ -141,8 +148,7 @@ export interface RoutesReserveInternalPostInput extends JsonObject {
141
148
  "units": number;
142
149
  }
143
150
  /** Backend response type: serde_json::Value. */
144
- export interface RoutesReserveInternalPostResponse extends ApiEnvelope<JsonValue> {
145
- }
151
+ export type RoutesReserveInternalPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").MemoryReservation>;
146
152
  /** Backend request type: SettleInput. */
147
153
  export type RoutesSettleInternalPostInputBucket = "storage_bytes" | "imports" | "research" | "audio_seconds";
148
154
  export interface RoutesSettleInternalPostInput extends JsonObject {
@@ -152,8 +158,7 @@ export interface RoutesSettleInternalPostInput extends JsonObject {
152
158
  "completed_units": number;
153
159
  }
154
160
  /** Backend response type: serde_json::Value. */
155
- export interface RoutesSettleInternalPostResponse extends ApiEnvelope<JsonValue> {
156
- }
161
+ export type RoutesSettleInternalPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").MemorySettlement>;
157
162
  /** Backend request type: Reserve. */
158
163
  export type RoutesReservePostInputBucket = "tasks" | "images" | "responses";
159
164
  export interface RoutesReservePostInput extends JsonObject {
@@ -163,8 +168,7 @@ export interface RoutesReservePostInput extends JsonObject {
163
168
  "bucket"?: RoutesReservePostInputBucket;
164
169
  }
165
170
  /** Backend response type: Value. */
166
- export interface RoutesReservePostResponse extends ApiEnvelope<JsonValue> {
167
- }
171
+ export type RoutesReservePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").UsageReservation>;
168
172
  /** Backend request type: Finish. */
169
173
  export type RoutesFinishPostInputBucket = "tasks" | "images" | "responses";
170
174
  export interface RoutesFinishPostInput extends JsonObject {
@@ -172,8 +176,7 @@ export interface RoutesFinishPostInput extends JsonObject {
172
176
  "bucket"?: RoutesFinishPostInputBucket | null;
173
177
  }
174
178
  /** Backend response type: Value. */
175
- export interface RoutesFinishPostResponse extends ApiEnvelope<JsonValue> {
176
- }
179
+ export type RoutesFinishPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").FinishedUsageReservation>;
177
180
  /** Backend response type: Usage. */
178
181
  export type RoutesOwnGetResponse = import("./types.js").TaskResponse<import("./collaboration.js").MemoryUsage>;
179
182
  /** Backend query type: FolderQuery. */
@@ -181,8 +184,7 @@ export interface RoutesFoldersGetQuery extends QueryParams {
181
184
  "project_id": string;
182
185
  }
183
186
  /** Backend response type: Value. */
184
- export interface RoutesFoldersGetResponse extends ApiEnvelope<JsonValue> {
185
- }
187
+ export type RoutesFoldersGetResponse = import("./types.js").TaskResponse<import("./workspace.js").NoteFolder[]>;
186
188
  /** Backend response type: Value. */
187
189
  export type RoutesGetGetApiV1NoteImportsIdResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteImportJob>;
188
190
  /** Backend request type: Control. */
@@ -198,18 +200,11 @@ export type RoutesCoverPutInput = import("./collaboration.js").SetNoteCover;
198
200
  /** Backend response type: NoteMedia. */
199
201
  export type RoutesCoverPutResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteMedia>;
200
202
  /** Backend response type: Value. */
201
- export interface RoutesDocumentGetResponse extends ApiEnvelope<JsonValue> {
202
- }
203
+ export type RoutesDocumentGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDocument>;
203
204
  /** Backend request type: Update. */
204
- export interface RoutesUpdatePostInput extends JsonObject {
205
- "id": string;
206
- "generation": number;
207
- "body": string;
208
- "plain_text": string;
209
- }
205
+ export type RoutesUpdatePostInput = import("./wire.types.js").SaveNoteDocument;
210
206
  /** Backend response type: Value. */
211
- export interface RoutesUpdatePostResponse extends ApiEnvelope<JsonValue> {
212
- }
207
+ export type RoutesUpdatePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDocument>;
213
208
  /** Backend request type: Create. */
214
209
  export type RoutesCreatePostApiV1NotesIdImportsInput = import("./collaboration.js").StartNoteImport;
215
210
  /** Backend response type: Value. */
@@ -217,8 +212,7 @@ export type RoutesCreatePostApiV1NotesIdImportsResponse = import("./types.js").T
217
212
  /** Backend response type: Value. */
218
213
  export type RoutesStatusGetApiV1NotesIdIndexingResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteIndexing>;
219
214
  /** Backend response type: Value. */
220
- export interface RoutesRetryPostResponse extends ApiEnvelope<JsonValue> {
221
- }
215
+ export type RoutesRetryPostResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteIndexing>;
222
216
  /** Backend response type: NoteMedia. */
223
217
  export type RoutesGetGetApiV1NotesIdMediaResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteMedia>;
224
218
  /** Backend request type: AddMedia. */
@@ -235,32 +229,30 @@ export interface RoutesAuthorizePostInput extends JsonObject {
235
229
  "channel_name": string;
236
230
  }
237
231
  /** Backend response type: Value. */
238
- export type RoutesAuthorizePostResponse = JsonValue;
232
+ export type RoutesAuthorizePostResponse = import("./wire.types.js").NoteRealtimeAuthorization;
239
233
  /** Backend response type: Value. */
240
- export interface RoutesConfigGetApiV1NotesIdRealtimeConfigResponse extends ApiEnvelope<JsonValue> {
241
- }
234
+ export type RoutesConfigGetApiV1NotesIdRealtimeConfigResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteRealtimeConfig>;
242
235
  /** Backend request type: CreateSource. */
243
236
  export type RoutesCreatePostApiV1NotesIdSourceImportsInput = import("./collaboration.js").StartSourceImport;
244
237
  /** Backend response type: Value. */
245
238
  export type RoutesCreatePostApiV1NotesIdSourceImportsResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteImportJob>;
239
+ /** Backend query type: CatalogQuery. */
240
+ export type RoutesCatalogGetApiV1NotesDataCatalogQuery = import("./wire.types.js").NoteDataCatalogQuery;
246
241
  /** Backend response type: Value. */
247
- export interface RoutesCatalogGetApiV1NotesDataCatalogResponse extends ApiEnvelope<JsonValue> {
248
- }
242
+ export type RoutesCatalogGetApiV1NotesDataCatalogResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDataCatalog>;
249
243
  /** Backend request type: Query. */
250
244
  export type RoutesSearchPostInput = import("./collaboration.js").NoteKnowledgeQuery;
251
245
  /** Backend response type: Value. */
252
246
  export type RoutesSearchPostResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteKnowledgeResult>;
253
247
  /** Backend response type: Value. */
254
- export interface RoutesGetPreferencesGetResponse extends ApiEnvelope<JsonValue> {
255
- }
248
+ export type RoutesGetPreferencesGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").NotificationPreferences>;
256
249
  /** Backend request type: NotificationPreferencesInput. */
257
250
  export interface RoutesPutPreferencesPutInput extends JsonObject {
258
251
  "sms_enabled"?: boolean;
259
252
  "email_enabled"?: boolean;
260
253
  }
261
254
  /** Backend response type: Value. */
262
- export interface RoutesPutPreferencesPutResponse extends ApiEnvelope<JsonValue> {
263
- }
255
+ export type RoutesPutPreferencesPutResponse = import("./types.js").TaskResponse<import("./wire.types.js").NotificationPreferences>;
264
256
  /** Backend request type: PerformancePolicyInput. */
265
257
  export interface RoutesUpsertPerformancePolicyPutInput extends JsonObject {
266
258
  "month": string;
@@ -271,31 +263,19 @@ export interface RoutesUpsertPerformancePolicyPutInput extends JsonObject {
271
263
  "estimate_capacity_hours"?: number | null;
272
264
  }
273
265
  /** Backend response type: serde_json::Value. */
274
- export interface RoutesUpsertPerformancePolicyPutResponse extends ApiEnvelope<JsonValue> {
275
- }
266
+ export type RoutesUpsertPerformancePolicyPutResponse = import("./types.js").TaskResponse<import("./wire.types.js").PerformancePolicy>;
276
267
  /** Backend response type: Value. */
277
- export interface RoutesPreferencesGetResponse extends ApiEnvelope<JsonValue> {
278
- }
268
+ export type RoutesPreferencesGetResponse = import("./types.js").TaskResponse<import("./workspace.js").PlanningPreferencesResult>;
279
269
  /** Backend request type: PlanningPreferences. */
280
- export interface RoutesSavePreferencesPutInput extends JsonObject {
281
- "timezone": string;
282
- "calendar": string;
283
- "week_start": number;
284
- "working_days": number[];
285
- "work_start": string;
286
- "work_end": string;
287
- "default_duration_minutes": number;
288
- }
270
+ export type RoutesSavePreferencesPutInput = import("./workspace.js").PlanningPreferences;
289
271
  /** Backend response type: Value. */
290
- export interface RoutesSavePreferencesPutResponse extends ApiEnvelope<JsonValue> {
291
- }
272
+ export type RoutesSavePreferencesPutResponse = import("./types.js").TaskResponse<import("./workspace.js").PlanningPreferencesResult>;
292
273
  /** Backend query type: ScopeQuery. */
293
274
  export interface RoutesGetGetApiV1PlansQuery extends QueryParams {
294
275
  "project_id"?: string | null;
295
276
  }
296
277
  /** Backend response type: Value. */
297
- export interface RoutesGetGetApiV1PlansResponse extends ApiEnvelope<JsonValue> {
298
- }
278
+ export type RoutesGetGetApiV1PlansResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanAccount>;
299
279
  /** Backend query type: IncomeQuery. */
300
280
  export interface RoutesIncomeGetQuery extends QueryParams {
301
281
  "from": string;
@@ -304,8 +284,7 @@ export interface RoutesIncomeGetQuery extends QueryParams {
304
284
  "page"?: number | null;
305
285
  }
306
286
  /** Backend response type: Value. */
307
- export interface RoutesIncomeGetResponse extends ApiEnvelope<JsonValue> {
308
- }
287
+ export type RoutesIncomeGetResponse = import("./types.js").TaskResponse<import("./types.js").IncomeReportData>;
309
288
  /** Backend request type: MemoryLimits. */
310
289
  export type RoutesConfigurePutInput = import("./collaboration.js").PlanMemoryLimits;
311
290
  /** Backend response type: MemoryLimits. */
@@ -315,31 +294,26 @@ export interface RoutesUsersGetQuery extends QueryParams {
315
294
  "user_ids": string;
316
295
  }
317
296
  /** Backend response type: Value. */
318
- export interface RoutesUsersGetResponse extends ApiEnvelope<JsonValue> {
319
- }
297
+ export type RoutesUsersGetResponse = import("./types.js").TaskResponse<import("./types.js").AdminUserPlansData>;
320
298
  /** Backend request type: Checkout. */
321
299
  export interface RoutesCheckoutPostInput extends JsonObject {
322
300
  "plan": string;
323
301
  "request_id": string;
324
302
  }
325
303
  /** Backend response type: Value. */
326
- export interface RoutesCheckoutPostResponse extends ApiEnvelope<JsonValue> {
327
- }
304
+ export type RoutesCheckoutPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanCheckoutResult>;
328
305
  /** Backend request type: Redeem. */
329
306
  export interface RoutesRedeemPostInput extends JsonObject {
330
307
  "token": string;
331
308
  }
332
309
  /** Backend response type: Value. */
333
- export interface RoutesRedeemPostResponse extends ApiEnvelope<JsonValue> {
334
- }
310
+ export type RoutesRedeemPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanRedeemed>;
335
311
  /** Backend response type: Value. */
336
- export interface RoutesGiftPostResponse extends ApiEnvelope<JsonValue> {
337
- }
312
+ export type RoutesGiftPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanGiftToken>;
338
313
  /** Backend response type: MemoryLimits. */
339
314
  export type RoutesCatalogGetApiV1PlansMemoryLimitsResponse = import("./types.js").TaskResponse<import("./collaboration.js").PlanMemoryLimits>;
340
315
  /** Backend response type: Value. */
341
- export interface RoutesReconcilePostResponse extends ApiEnvelope<JsonValue> {
342
- }
316
+ export type RoutesReconcilePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanReconcile>;
343
317
  /** Backend query type: PointHistoryQuery. */
344
318
  export interface RoutesPointHistoryGetQuery extends QueryParams {
345
319
  "month"?: string | null;
@@ -347,8 +321,7 @@ export interface RoutesPointHistoryGetQuery extends QueryParams {
347
321
  "limit"?: number | null;
348
322
  }
349
323
  /** Backend response type: Vec<serde_json::Value>. */
350
- export interface RoutesPointHistoryGetResponse extends ApiEnvelope<JsonValue[]> {
351
- }
324
+ export type RoutesPointHistoryGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").PointHistoryEntry[]>;
352
325
  /** Backend query type: ProjectListQuery. */
353
326
  export interface RoutesListProjectsGetQuery extends QueryParams {
354
327
  "cursor"?: string | null;
@@ -358,50 +331,17 @@ export interface RoutesListProjectsGetQuery extends QueryParams {
358
331
  "q"?: string | null;
359
332
  }
360
333
  /** Backend response type: Vec<ProjectView>. */
361
- export interface RoutesListProjectsGetResponseItem extends JsonObject {
362
- "plan_access"?: JsonValue | null;
363
- "id": string;
364
- "created_by": string;
365
- "workspace_id": string;
366
- "team_id"?: string | null;
367
- "key": string;
368
- "name": string;
369
- "description": string;
370
- "mode": string;
371
- "status": string;
372
- "settings": JsonValue;
373
- "version": number;
374
- "created_at": string;
375
- "updated_at": string;
376
- }
377
- export interface RoutesListProjectsGetResponse extends ApiEnvelope<RoutesListProjectsGetResponseItem[]> {
378
- }
334
+ export type RoutesListProjectsGetResponse = import("./types.js").TaskPageResponse<import("./types.js").Project>;
379
335
  /** Backend request type: CreateProject. */
380
- export type RoutesCreateProjectPostInputMode = "software" | "marketing" | "general";
381
- export interface RoutesCreateProjectPostInput extends JsonObject {
382
- "team_id"?: string | null;
383
- "key": string;
384
- "name": string;
385
- "description"?: string;
386
- "mode": RoutesCreateProjectPostInputMode;
387
- "settings"?: JsonValue;
388
- }
336
+ export type RoutesCreateProjectPostInput = import("./types.js").CreateProjectInput;
389
337
  /** Backend response type: raw-response. */
390
- export interface RoutesCreateProjectPostResponse extends ApiEnvelope<JsonValue> {
391
- }
338
+ export type RoutesCreateProjectPostResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
392
339
  /** Backend response type: raw-response. */
393
- export interface RoutesGetProjectGetResponse extends ApiEnvelope<JsonValue> {
394
- }
340
+ export type RoutesGetProjectGetResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
395
341
  /** Backend request type: UpdateProject. */
396
- export interface RoutesUpdateProjectPatchInput extends JsonObject {
397
- "name"?: string | null;
398
- "description"?: string | null;
399
- "status"?: string | null;
400
- "settings"?: JsonValue | null;
401
- }
342
+ export type RoutesUpdateProjectPatchInput = import("./types.js").UpdateProjectInput;
402
343
  /** Backend response type: raw-response. */
403
- export interface RoutesUpdateProjectPatchResponse extends ApiEnvelope<JsonValue> {
404
- }
344
+ export type RoutesUpdateProjectPatchResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
405
345
  /** Backend response type: Workflow. */
406
346
  export type RoutesGetGetApiV1ProjectsIdBoardWorkflowResponse = import("./types.js").TaskResponse<import("./collaboration.js").BoardWorkflow>;
407
347
  /** Backend request type: SaveWorkflow. */
@@ -409,8 +349,7 @@ export type RoutesPutPutApiV1ProjectsIdBoardWorkflowInput = import("./collaborat
409
349
  /** Backend response type: Workflow. */
410
350
  export type RoutesPutPutApiV1ProjectsIdBoardWorkflowResponse = import("./types.js").TaskResponse<import("./collaboration.js").BoardWorkflow>;
411
351
  /** Backend response type: Value. */
412
- export interface RoutesProjectChecklistsGetResponse extends ApiEnvelope<JsonValue> {
413
- }
352
+ export type RoutesProjectChecklistsGetResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistSnapshot[]>;
414
353
  /** Backend request type: GrantAccess. */
415
354
  export interface RoutesGrantProjectAccessPostInput extends JsonObject {
416
355
  "user_id": string;
@@ -418,14 +357,11 @@ export interface RoutesGrantProjectAccessPostInput extends JsonObject {
418
357
  "expires_at"?: string | null;
419
358
  }
420
359
  /** Backend response type: serde_json::Value. */
421
- export interface RoutesGrantProjectAccessPostResponse extends ApiEnvelope<JsonValue> {
422
- }
360
+ export type RoutesGrantProjectAccessPostResponse = import("./types.js").TaskResponse<import("./types.js").GrantProjectAccessResult>;
423
361
  /** Backend response type: Value. */
424
- export interface RoutesMembersGetResponse extends ApiEnvelope<JsonValue> {
425
- }
362
+ export type RoutesMembersGetResponse = import("./types.js").TaskResponse<import("./types.js").ProjectMember[]>;
426
363
  /** Backend response type: Value. */
427
- export interface RoutesRemoveMemberDeleteResponse extends ApiEnvelope<JsonValue> {
428
- }
364
+ export type RoutesRemoveMemberDeleteResponse = import("./types.js").TaskResponse<import("./types.js").RemovalResult>;
429
365
  /** Backend response type: Usage. */
430
366
  export type RoutesGetGetApiV1ProjectsIdMemoryUsageResponse = import("./types.js").TaskResponse<import("./collaboration.js").MemoryUsage>;
431
367
  /** Backend query type: Filters. */
@@ -446,9 +382,9 @@ export interface RoutesGetGetApiV1ProjectsIdReportResponseDataTasks extends Json
446
382
  "priority": string;
447
383
  "owner_id": string;
448
384
  "created_at": string;
449
- "due_at"?: string | null;
450
- "completed_at"?: string | null;
451
- "completed_by"?: string | null;
385
+ "due_at": string | null;
386
+ "completed_at": string | null;
387
+ "completed_by": string | null;
452
388
  "period_seconds": number;
453
389
  "total_seconds": number;
454
390
  "times": RoutesGetGetApiV1ProjectsIdReportResponseDataTasksTimes[];
@@ -469,7 +405,7 @@ export interface RoutesWorkflowStatesGetResponseItem extends JsonObject {
469
405
  "name": JsonValue;
470
406
  "category": string;
471
407
  "position": number;
472
- "wip_limit"?: number | null;
408
+ "wip_limit": number | null;
473
409
  }
474
410
  export interface RoutesWorkflowStatesGetResponse extends ApiEnvelope<RoutesWorkflowStatesGetResponseItem[]> {
475
411
  }
@@ -502,50 +438,25 @@ export interface RoutesTeamMonitoringGetQuery extends QueryParams {
502
438
  "team_id"?: string | null;
503
439
  }
504
440
  /** Backend response type: serde_json::Value. */
505
- export interface RoutesTeamMonitoringGetResponse extends ApiEnvelope<JsonValue> {
506
- }
441
+ export type RoutesTeamMonitoringGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").TeamMonitoring>;
507
442
  /** Backend request type: ProposalInput. */
508
- export type RoutesProposePostInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
509
- export interface RoutesProposePostInput extends JsonObject {
510
- "request_id"?: string | null;
511
- "conversation_id": string;
512
- "project_id"?: string | null;
513
- "operations": RoutesProposePostInputOperations[];
514
- }
443
+ export type RoutesProposePostInput = import("./workspace.js").ReviewProposalInput;
515
444
  /** Backend response type: Value. */
516
- export interface RoutesProposePostResponse extends ApiEnvelope<JsonValue> {
517
- }
445
+ export type RoutesProposePostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
518
446
  /** Backend response type: Value. */
519
- export interface RoutesGetGetApiV1ReviewProposalsIdResponse extends ApiEnvelope<JsonValue> {
520
- }
447
+ export type RoutesGetGetApiV1ReviewProposalsIdResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
521
448
  /** Backend request type: ProposalInput. */
522
- export type RoutesRevisePutInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
523
- export interface RoutesRevisePutInput extends JsonObject {
524
- "request_id"?: string | null;
525
- "conversation_id": string;
526
- "project_id"?: string | null;
527
- "operations": RoutesRevisePutInputOperations[];
528
- }
449
+ export type RoutesRevisePutInput = import("./workspace.js").ReviewProposalInput;
529
450
  /** Backend response type: Value. */
530
- export interface RoutesRevisePutResponse extends ApiEnvelope<JsonValue> {
531
- }
451
+ export type RoutesRevisePutResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
532
452
  /** Backend response type: Value. */
533
- export interface RoutesApplyPostApiV1ReviewProposalsIdApplyResponse extends ApiEnvelope<JsonValue> {
534
- }
453
+ export type RoutesApplyPostApiV1ReviewProposalsIdApplyResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
535
454
  /** Backend response type: Value. */
536
- export interface RoutesRefreshPostResponse extends ApiEnvelope<JsonValue> {
537
- }
455
+ export type RoutesRefreshPostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
538
456
  /** Backend request type: ProposalInput. */
539
- export type RoutesValidateProposalPostInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
540
- export interface RoutesValidateProposalPostInput extends JsonObject {
541
- "request_id"?: string | null;
542
- "conversation_id": string;
543
- "project_id"?: string | null;
544
- "operations": RoutesValidateProposalPostInputOperations[];
545
- }
457
+ export type RoutesValidateProposalPostInput = import("./workspace.js").ReviewProposalInput;
546
458
  /** Backend response type: Value. */
547
- export interface RoutesValidateProposalPostResponse extends ApiEnvelope<JsonValue> {
548
- }
459
+ export type RoutesValidateProposalPostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewPreviewResult>;
549
460
  /** Backend query type: SprintListQuery. */
550
461
  export interface RoutesListSprintsGetQuery extends QueryParams {
551
462
  "team_id"?: string | null;
@@ -556,13 +467,13 @@ export interface RoutesListSprintsGetQuery extends QueryParams {
556
467
  export interface RoutesListSprintsGetResponseItem extends JsonObject {
557
468
  "id": string;
558
469
  "team_id": string;
559
- "project_id"?: string | null;
470
+ "project_id": string | null;
560
471
  "name": string;
561
472
  "goal": string;
562
473
  "status": string;
563
- "starts_at"?: string | null;
564
- "ends_at"?: string | null;
565
- "capacity"?: number | null;
474
+ "starts_at": string | null;
475
+ "ends_at": string | null;
476
+ "capacity": number | null;
566
477
  "version": number;
567
478
  }
568
479
  export interface RoutesListSprintsGetResponse extends ApiEnvelope<RoutesListSprintsGetResponseItem[]> {
@@ -578,14 +489,11 @@ export interface RoutesCreateSprintPostInput extends JsonObject {
578
489
  "capacity"?: number | null;
579
490
  }
580
491
  /** Backend response type: raw-response. */
581
- export interface RoutesCreateSprintPostResponse extends ApiEnvelope<JsonValue> {
582
- }
492
+ export type RoutesCreateSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
583
493
  /** Backend response type: raw-response. */
584
- export interface RoutesCompleteSprintPostResponse extends ApiEnvelope<JsonValue> {
585
- }
494
+ export type RoutesCompleteSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
586
495
  /** Backend response type: raw-response. */
587
- export interface RoutesStartSprintPostResponse extends ApiEnvelope<JsonValue> {
588
- }
496
+ export type RoutesStartSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
589
497
  /** Backend response type: Vec<TeamView>. */
590
498
  export interface RoutesListTeamsGetResponseItem extends JsonObject {
591
499
  "id": string;
@@ -606,11 +514,9 @@ export interface RoutesCreateTeamPostInput extends JsonObject {
606
514
  "member_ids"?: string[];
607
515
  }
608
516
  /** Backend response type: raw-response. */
609
- export interface RoutesCreateTeamPostResponse extends ApiEnvelope<JsonValue> {
610
- }
517
+ export type RoutesCreateTeamPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
611
518
  /** Backend response type: raw-response. */
612
- export interface RoutesGetTeamGetResponse extends ApiEnvelope<JsonValue> {
613
- }
519
+ export type RoutesGetTeamGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
614
520
  /** Backend request type: UpdateTeam. */
615
521
  export interface RoutesUpdateTeamPatchInput extends JsonObject {
616
522
  "name"?: string | null;
@@ -619,8 +525,7 @@ export interface RoutesUpdateTeamPatchInput extends JsonObject {
619
525
  "member_ids"?: string[] | null;
620
526
  }
621
527
  /** Backend response type: raw-response. */
622
- export interface RoutesUpdateTeamPatchResponse extends ApiEnvelope<JsonValue> {
623
- }
528
+ export type RoutesUpdateTeamPatchResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
624
529
  /** Backend query type: WorkItemListQuery. */
625
530
  export interface RoutesListWorkItemsGetQuery extends QueryParams {
626
531
  "cursor"?: string | null;
@@ -634,119 +539,31 @@ export interface RoutesListWorkItemsGetQuery extends QueryParams {
634
539
  "sort"?: string | null;
635
540
  }
636
541
  /** Backend response type: Vec<WorkItemView>. */
637
- export interface RoutesListWorkItemsGetResponseItem extends JsonObject {
638
- "id": string;
639
- "workspace_id": string;
640
- "project_id": string;
641
- "team_id"?: string | null;
642
- "parent_id"?: string | null;
643
- "sequence": number;
644
- "key": string;
645
- "item_type": string;
646
- "title": string;
647
- "description": string;
648
- "status": string;
649
- "stage_id"?: string | null;
650
- "status_category"?: string;
651
- "priority": string;
652
- "rank": string;
653
- "owner_id": string;
654
- "reporter_id": string;
655
- "estimate"?: number | null;
656
- "story_points"?: number | null;
657
- "progress_started_at"?: string | null;
658
- "start_at"?: string | null;
659
- "folder_id"?: string | null;
660
- "planned_start_at"?: string | null;
661
- "planned_end_at"?: string | null;
662
- "due_at"?: string | null;
663
- "completed_at"?: string | null;
664
- "sprint_id"?: string | null;
665
- "release_id"?: string | null;
666
- "campaign_id"?: string | null;
667
- "custom_fields": JsonValue;
668
- "version": number;
669
- "created_at": string;
670
- "updated_at": string;
671
- }
672
- export interface RoutesListWorkItemsGetResponse extends ApiEnvelope<RoutesListWorkItemsGetResponseItem[]> {
673
- }
542
+ export type RoutesListWorkItemsGetResponse = import("./types.js").TaskPageResponse<import("./types.js").WorkItem>;
674
543
  /** Backend request type: CreateWorkItem. */
675
- export interface RoutesCreateWorkItemPostInputChecklist extends JsonObject {
676
- "id": string;
677
- "title": string;
678
- "done": boolean;
679
- }
680
- export type RoutesCreateWorkItemPostInputReminderTriggers = "relative" | "same_day";
681
- export interface RoutesCreateWorkItemPostInputReminder extends JsonObject {
682
- "anchor_at": string;
683
- "timezone": string;
684
- "recurrence"?: string;
685
- "triggers"?: RoutesCreateWorkItemPostInputReminderTriggers[];
686
- }
687
- export interface RoutesCreateWorkItemPostInput extends JsonObject {
688
- "checklist"?: RoutesCreateWorkItemPostInputChecklist[];
689
- "reminder"?: RoutesCreateWorkItemPostInputReminder | null;
690
- "project_id": string;
691
- "team_id"?: string | null;
692
- "parent_id"?: string | null;
693
- "item_type"?: string;
694
- "title": string;
695
- "description"?: string;
696
- "priority"?: string;
697
- "owner_id": string;
698
- "estimate"?: number | null;
699
- "story_points"?: number | null;
700
- "start_at"?: string | null;
701
- "due_at"?: string | null;
702
- "sprint_id"?: string | null;
703
- "release_id"?: string | null;
704
- "campaign_id"?: string | null;
705
- "custom_fields"?: JsonValue;
706
- "external_source"?: string | null;
707
- "external_id"?: string | null;
708
- }
544
+ export type RoutesCreateWorkItemPostInput = import("./types.js").CreateWorkItemInput;
709
545
  /** Backend response type: raw-response. */
710
- export interface RoutesCreateWorkItemPostResponse extends ApiEnvelope<JsonValue> {
711
- }
546
+ export type RoutesCreateWorkItemPostResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
712
547
  /** Backend response type: no-content. */
713
- export type RoutesRemoveWorkItemDeleteResponse = void;
548
+ export type RoutesRemoveWorkItemDeleteResponse = import("./wire.types.js").DeletedWorkItemResponse;
714
549
  /** Backend response type: raw-response. */
715
- export interface RoutesGetWorkItemGetResponse extends ApiEnvelope<JsonValue> {
716
- }
550
+ export type RoutesGetWorkItemGetResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
717
551
  /** Backend request type: UpdateWorkItem. */
718
- export interface RoutesUpdateWorkItemPatchInput extends JsonObject {
719
- "title"?: string | null;
720
- "description"?: string | null;
721
- "priority"?: string | null;
722
- "owner_id"?: string | null;
723
- "team_id"?: string | null;
724
- "estimate"?: number | null;
725
- "story_points"?: number | null;
726
- "start_at"?: string | null;
727
- "due_at"?: string | null;
728
- "sprint_id"?: string | null;
729
- "release_id"?: string | null;
730
- "campaign_id"?: string | null;
731
- "custom_fields"?: JsonValue | null;
732
- }
552
+ export type RoutesUpdateWorkItemPatchInput = import("./types.js").UpdateWorkItemInput;
733
553
  /** Backend response type: raw-response. */
734
- export interface RoutesUpdateWorkItemPatchResponse extends ApiEnvelope<JsonValue> {
735
- }
554
+ export type RoutesUpdateWorkItemPatchResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
736
555
  /** Backend query type: ActivityQuery. */
737
556
  export interface RoutesWorkItemActivityGetQuery extends QueryParams {
738
557
  "offset"?: number;
739
558
  }
740
559
  /** Backend response type: Vec<serde_json::Value>. */
741
- export interface RoutesWorkItemActivityGetResponse extends ApiEnvelope<JsonValue[]> {
742
- }
560
+ export type RoutesWorkItemActivityGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").WorkItemActivity[]>;
743
561
  /** Backend request type: CreateUpload. */
744
562
  export type RoutesCreatePostApiV1WorkItemsIdAttachmentsInput = import("./collaboration.js").CreateAttachment;
745
563
  /** Backend response type: Attachment. */
746
564
  export type RoutesCreatePostApiV1WorkItemsIdAttachmentsResponse = import("./types.js").TaskResponse<import("./collaboration.js").TaskAttachment>;
747
565
  /** Backend response type: Value. */
748
- export interface RoutesWorkItemChecklistGetResponse extends ApiEnvelope<JsonValue> {
749
- }
566
+ export type RoutesWorkItemChecklistGetResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistSnapshot>;
750
567
  /** Backend request type: ChecklistInput. */
751
568
  export interface RoutesReplaceChecklistPutInputItems extends JsonObject {
752
569
  "id": string;
@@ -757,8 +574,7 @@ export interface RoutesReplaceChecklistPutInput extends JsonObject {
757
574
  "items": RoutesReplaceChecklistPutInputItems[];
758
575
  }
759
576
  /** Backend response type: Value. */
760
- export interface RoutesReplaceChecklistPutResponse extends ApiEnvelope<JsonValue> {
761
- }
577
+ export type RoutesReplaceChecklistPutResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistResult>;
762
578
  /** Backend response type: Vec<CommentView>. */
763
579
  export interface RoutesListCommentsGetResponseItemAttachments extends JsonObject {
764
580
  "id": string;
@@ -790,8 +606,7 @@ export interface RoutesCreateCommentPostInput extends JsonObject {
790
606
  "request_id"?: string | null;
791
607
  }
792
608
  /** Backend response type: raw-response. */
793
- export interface RoutesCreateCommentPostResponse extends ApiEnvelope<JsonValue> {
794
- }
609
+ export type RoutesCreateCommentPostResponse = import("./types.js").TaskResponse<import("./types.js").Comment>;
795
610
  /** Backend query type: CommentPageQuery. */
796
611
  export interface RoutesCommentPageGetQuery extends QueryParams {
797
612
  "before"?: string | null;
@@ -819,7 +634,7 @@ export interface RoutesCommentPageGetResponseDataItems extends JsonObject {
819
634
  }
820
635
  export interface RoutesCommentPageGetResponseData extends JsonObject {
821
636
  "items": RoutesCommentPageGetResponseDataItems[];
822
- "next_cursor"?: string | null;
637
+ "next_cursor": string | null;
823
638
  }
824
639
  export interface RoutesCommentPageGetResponse extends ApiEnvelope<RoutesCommentPageGetResponseData> {
825
640
  }
@@ -831,9 +646,9 @@ export interface RoutesListCommitsGetResponseItem extends JsonObject {
831
646
  "sandbox_project": string;
832
647
  "commit_sha": string;
833
648
  "subject": string;
834
- "branch"?: string | null;
835
- "repository_label"?: string | null;
836
- "committed_at"?: string | null;
649
+ "branch": string | null;
650
+ "repository_label": string | null;
651
+ "committed_at": string | null;
837
652
  "metadata": JsonValue;
838
653
  "created_at": string;
839
654
  }
@@ -849,8 +664,7 @@ export interface RoutesAttachCommitPostInput extends JsonObject {
849
664
  "metadata"?: JsonValue;
850
665
  }
851
666
  /** Backend response type: raw-response. */
852
- export interface RoutesAttachCommitPostResponse extends ApiEnvelope<JsonValue> {
853
- }
667
+ export type RoutesAttachCommitPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").CommitLink>;
854
668
  /** Backend request type: PointEntryInput. */
855
669
  export interface RoutesAddPointsPostInput extends JsonObject {
856
670
  "user_id": string;
@@ -859,40 +673,29 @@ export interface RoutesAddPointsPostInput extends JsonObject {
859
673
  "reason"?: string;
860
674
  }
861
675
  /** Backend response type: raw-response. */
862
- export interface RoutesAddPointsPostResponse extends ApiEnvelope<JsonValue> {
863
- }
676
+ export type RoutesAddPointsPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PointEntry>;
864
677
  /** Backend response type: Value. */
865
- export interface RoutesRemoveDeleteApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
866
- }
678
+ export type RoutesRemoveDeleteApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").RemovalResult>;
867
679
  /** Backend response type: Value. */
868
- export interface RoutesGetGetApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
869
- }
680
+ export type RoutesGetGetApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").Reminder | null>;
870
681
  /** Backend request type: Input. */
871
- export type RoutesPutPutApiV1WorkItemsIdReminderInputTriggers = "relative" | "same_day";
872
- export interface RoutesPutPutApiV1WorkItemsIdReminderInput extends JsonObject {
873
- "anchor_at": string;
874
- "timezone": string;
875
- "recurrence"?: string;
876
- "triggers"?: RoutesPutPutApiV1WorkItemsIdReminderInputTriggers[];
877
- }
682
+ export type RoutesPutPutApiV1WorkItemsIdReminderInput = import("./types.js").ReminderInput;
878
683
  /** Backend response type: Value. */
879
- export interface RoutesPutPutApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
880
- }
684
+ export type RoutesPutPutApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").Reminder>;
881
685
  /** Backend request type: TransitionWorkItem. */
882
686
  export interface RoutesTransitionWorkItemPostInput extends JsonObject {
883
687
  "status": string;
884
688
  "rank"?: string | null;
885
689
  }
886
690
  /** Backend response type: raw-response. */
887
- export interface RoutesTransitionWorkItemPostResponse extends ApiEnvelope<JsonValue> {
888
- }
691
+ export type RoutesTransitionWorkItemPostResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
889
692
  /** Backend response type: Vec<WorkLogView>. */
890
693
  export interface RoutesListWorkLogsGetResponseItem extends JsonObject {
891
694
  "id": string;
892
695
  "work_item_id": string;
893
696
  "author_id": string;
894
697
  "body": string;
895
- "minutes"?: number | null;
698
+ "minutes": number | null;
896
699
  "log_type": string;
897
700
  "created_at": string;
898
701
  }
@@ -905,8 +708,7 @@ export interface RoutesCreateWorkLogPostInput extends JsonObject {
905
708
  "log_type"?: string;
906
709
  }
907
710
  /** Backend response type: raw-response. */
908
- export interface RoutesCreateWorkLogPostResponse extends ApiEnvelope<JsonValue> {
909
- }
711
+ export type RoutesCreateWorkLogPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").WorkLog>;
910
712
  /** Backend response type: Vec<WorkSessionView>. */
911
713
  export interface RoutesListWorkSessionsGetResponseItem extends JsonObject {
912
714
  "id": string;
@@ -917,12 +719,12 @@ export interface RoutesListWorkSessionsGetResponseItem extends JsonObject {
917
719
  "state": string;
918
720
  "runtime_state": string;
919
721
  "started_at": string;
920
- "ended_at"?: string | null;
722
+ "ended_at": string | null;
921
723
  "last_heartbeat_at": string;
922
724
  "active_seconds": number;
923
725
  "idle_seconds": number;
924
726
  "elapsed_seconds": number;
925
- "stop_reason"?: string | null;
727
+ "stop_reason": string | null;
926
728
  "metadata": JsonValue;
927
729
  "version": number;
928
730
  }
@@ -934,8 +736,7 @@ export interface RoutesStartWorkSessionPostInput extends JsonObject {
934
736
  "metadata"?: JsonValue;
935
737
  }
936
738
  /** Backend response type: raw-response. */
937
- export interface RoutesStartWorkSessionPostResponse extends ApiEnvelope<JsonValue> {
938
- }
739
+ export type RoutesStartWorkSessionPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").StartedWorkSession>;
939
740
  /** Backend request type: HeartbeatWorkSession. */
940
741
  export interface RoutesHeartbeatWorkSessionPostInput extends JsonObject {
941
742
  "active_seconds"?: number;
@@ -953,12 +754,12 @@ export interface RoutesHeartbeatWorkSessionPostResponseData extends JsonObject {
953
754
  "state": string;
954
755
  "runtime_state": string;
955
756
  "started_at": string;
956
- "ended_at"?: string | null;
757
+ "ended_at": string | null;
957
758
  "last_heartbeat_at": string;
958
759
  "active_seconds": number;
959
760
  "idle_seconds": number;
960
761
  "elapsed_seconds": number;
961
- "stop_reason"?: string | null;
762
+ "stop_reason": string | null;
962
763
  "metadata": JsonValue;
963
764
  "version": number;
964
765
  }
@@ -978,12 +779,12 @@ export interface RoutesStopWorkSessionPostResponseData extends JsonObject {
978
779
  "state": string;
979
780
  "runtime_state": string;
980
781
  "started_at": string;
981
- "ended_at"?: string | null;
782
+ "ended_at": string | null;
982
783
  "last_heartbeat_at": string;
983
784
  "active_seconds": number;
984
785
  "idle_seconds": number;
985
786
  "elapsed_seconds": number;
986
- "stop_reason"?: string | null;
787
+ "stop_reason": string | null;
987
788
  "metadata": JsonValue;
988
789
  "version": number;
989
790
  }
@@ -999,12 +800,12 @@ export interface RoutesActiveWorkSessionsGetResponseItem extends JsonObject {
999
800
  "state": string;
1000
801
  "runtime_state": string;
1001
802
  "started_at": string;
1002
- "ended_at"?: string | null;
803
+ "ended_at": string | null;
1003
804
  "last_heartbeat_at": string;
1004
805
  "active_seconds": number;
1005
806
  "idle_seconds": number;
1006
807
  "elapsed_seconds": number;
1007
- "stop_reason"?: string | null;
808
+ "stop_reason": string | null;
1008
809
  "metadata": JsonValue;
1009
810
  "version": number;
1010
811
  }
@@ -1020,8 +821,7 @@ export interface RoutesWorkspaceGetResponseData extends JsonObject {
1020
821
  export interface RoutesWorkspaceGetResponse extends ApiEnvelope<RoutesWorkspaceGetResponseData> {
1021
822
  }
1022
823
  /** Backend response type: raw-response. */
1023
- export interface RoutesReadyGetHealthDependenciesResponse extends ApiEnvelope<JsonValue> {
1024
- }
824
+ export type RoutesReadyGetHealthDependenciesResponse = import("./types.js").TaskResponse<import("./wire.types.js").Readiness>;
1025
825
  /** Backend response type: Health. */
1026
826
  export interface RoutesLiveGetResponseData extends JsonObject {
1027
827
  "service": string;
@@ -1031,9 +831,7 @@ export interface RoutesLiveGetResponseData extends JsonObject {
1031
831
  export interface RoutesLiveGetResponse extends ApiEnvelope<RoutesLiveGetResponseData> {
1032
832
  }
1033
833
  /** Backend response type: raw-response. */
1034
- export interface RoutesReadyGetHealthReadyResponse extends ApiEnvelope<JsonValue> {
1035
- }
834
+ export type RoutesReadyGetHealthReadyResponse = import("./types.js").TaskResponse<import("./wire.types.js").Readiness>;
1036
835
  /** Backend response type: raw-response. */
1037
- export interface RoutesMetricsGetResponse extends ApiEnvelope<JsonValue> {
1038
- }
836
+ export type RoutesMetricsGetResponse = string;
1039
837
  //# sourceMappingURL=operations.types.d.ts.map