@faiber/faiber-task 0.24.1 → 1.1.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,51 +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
- }
75
- /** Backend response type: api. */
50
+ export type RoutesEventsGetResponse = import("./types.js").TaskEventStreamBody;
51
+ /** Backend response type: Value. */
76
52
  export type FeedbackAssigneesGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAssignees>;
77
- /** Backend request type: ReviewedIntegrationInput. */
53
+ /** Backend request type: InitializeAttachment. */
78
54
  export type FeedbackInitializePostInput = import("./feedback.js").InitializeFeedbackAttachment;
79
- /** Backend response type: api. */
55
+ /** Backend response type: AttachmentView. */
80
56
  export type FeedbackInitializePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
81
- /** Backend response type: api. */
57
+ /** Backend response type: AttachmentView. */
82
58
  export type FeedbackCompletePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
83
59
  /** Backend request type: binary byte stream. */
84
60
  export type FeedbackUploadPutInput = Blob | ArrayBuffer | ArrayBufferView;
85
- /** Backend response type: api. */
61
+ /** Backend response type: AttachmentView. */
86
62
  export type FeedbackUploadPutResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackAttachment>;
87
- /** Backend response type: api. */
63
+ /** Backend response type: Value. */
88
64
  export type FeedbackCapabilitiesGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackCapabilities>;
89
- /** Backend response type: api. */
65
+ /** Backend response type: Value. */
90
66
  export type FeedbackGetPolicyGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPolicyResult>;
91
- /** Backend request type: ReviewedIntegrationInput. */
67
+ /** Backend request type: FeedbackPolicy. */
92
68
  export type FeedbackPutPolicyPutInput = import("./feedback.js").FeedbackPolicy;
93
- /** Backend response type: api. */
69
+ /** Backend response type: Value. */
94
70
  export type FeedbackPutPolicyPutResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPolicyResult>;
95
- /** Backend query type: ReviewedIntegrationQuery. */
71
+ /** Backend query type: ListQuery. */
96
72
  export type FeedbackIndexGetQuery = import("./feedback.js").FeedbackListQuery;
97
- /** Backend response type: api. */
73
+ /** Backend response type: RequestPage. */
98
74
  export type FeedbackIndexGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackPage>;
99
- /** Backend request type: ReviewedIntegrationInput. */
75
+ /** Backend request type: SubmitRequest. */
100
76
  export type FeedbackCreatePostInput = import("./feedback.js").SubmitFeedbackRequest;
101
- /** Backend response type: api. */
77
+ /** Backend response type: Value. */
102
78
  export type FeedbackCreatePostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackRequest>;
103
- /** Backend response type: api. */
79
+ /** Backend response type: RequestDetail. */
104
80
  export type FeedbackShowGetResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackDetail>;
105
- /** Backend response type: raw. */
81
+ /** Backend response type: raw-response. */
106
82
  export type FeedbackContentGetResponse = ArrayBuffer | Uint8Array;
107
- /** Backend request type: ReviewedIntegrationInput. */
83
+ /** Backend request type: DecideRequest. */
108
84
  export type FeedbackDecisionPostInput = import("./feedback.js").DecideFeedbackRequest;
109
- /** Backend response type: api. */
85
+ /** Backend response type: Value. */
110
86
  export type FeedbackDecisionPostResponse = import("./types.js").TaskResponse<import("./feedback.js").FeedbackRequest>;
111
87
  /** Backend request type: UseGuestLink. */
112
88
  export interface RoutesUseGuestLinkPostInput extends JsonObject {
113
89
  "token": string;
114
90
  }
115
91
  /** Backend response type: serde_json::Value. */
116
- export interface RoutesUseGuestLinkPostResponse extends ApiEnvelope<JsonValue> {
117
- }
92
+ export type RoutesUseGuestLinkPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").GuestLinkAccess>;
118
93
  /** Backend query type: GiftQuery. */
119
94
  export interface RoutesListGetQuery extends QueryParams {
120
95
  "page"?: number | null;
@@ -122,8 +97,7 @@ export interface RoutesListGetQuery extends QueryParams {
122
97
  "search"?: string | null;
123
98
  }
124
99
  /** Backend response type: Value. */
125
- export interface RoutesListGetResponse extends ApiEnvelope<JsonValue> {
126
- }
100
+ export type RoutesListGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGiftPage>;
127
101
  /** Backend request type: CreateGift. */
128
102
  export interface RoutesCreatePostApiV1InternalPlansGiftsInputLimits extends JsonObject {
129
103
  "tasks": number;
@@ -143,11 +117,9 @@ export interface RoutesCreatePostApiV1InternalPlansGiftsInput extends JsonObject
143
117
  "rotate_token"?: boolean;
144
118
  }
145
119
  /** Backend response type: Value. */
146
- export interface RoutesCreatePostApiV1InternalPlansGiftsResponse extends ApiEnvelope<JsonValue> {
147
- }
120
+ export type RoutesCreatePostApiV1InternalPlansGiftsResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
148
121
  /** Backend response type: Value. */
149
- export interface RoutesShowGetResponse extends ApiEnvelope<JsonValue> {
150
- }
122
+ export type RoutesShowGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
151
123
  /** Backend request type: GiftSettings. */
152
124
  export interface RoutesUpdatePutInputLimits extends JsonObject {
153
125
  "tasks": number;
@@ -165,8 +137,7 @@ export interface RoutesUpdatePutInput extends JsonObject {
165
137
  "rotate_token"?: boolean;
166
138
  }
167
139
  /** Backend response type: Value. */
168
- export interface RoutesUpdatePutResponse extends ApiEnvelope<JsonValue> {
169
- }
140
+ export type RoutesUpdatePutResponse = import("./types.js").TaskResponse<import("./wire.types.js").ManagedTrialGift>;
170
141
  /** Backend request type: ReserveInput. */
171
142
  export type RoutesReserveInternalPostInputBucket = "storage_bytes" | "imports" | "research" | "audio_seconds";
172
143
  export interface RoutesReserveInternalPostInput extends JsonObject {
@@ -177,8 +148,7 @@ export interface RoutesReserveInternalPostInput extends JsonObject {
177
148
  "units": number;
178
149
  }
179
150
  /** Backend response type: serde_json::Value. */
180
- export interface RoutesReserveInternalPostResponse extends ApiEnvelope<JsonValue> {
181
- }
151
+ export type RoutesReserveInternalPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").MemoryReservation>;
182
152
  /** Backend request type: SettleInput. */
183
153
  export type RoutesSettleInternalPostInputBucket = "storage_bytes" | "imports" | "research" | "audio_seconds";
184
154
  export interface RoutesSettleInternalPostInput extends JsonObject {
@@ -188,8 +158,7 @@ export interface RoutesSettleInternalPostInput extends JsonObject {
188
158
  "completed_units": number;
189
159
  }
190
160
  /** Backend response type: serde_json::Value. */
191
- export interface RoutesSettleInternalPostResponse extends ApiEnvelope<JsonValue> {
192
- }
161
+ export type RoutesSettleInternalPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").MemorySettlement>;
193
162
  /** Backend request type: Reserve. */
194
163
  export type RoutesReservePostInputBucket = "tasks" | "images" | "responses";
195
164
  export interface RoutesReservePostInput extends JsonObject {
@@ -199,8 +168,7 @@ export interface RoutesReservePostInput extends JsonObject {
199
168
  "bucket"?: RoutesReservePostInputBucket;
200
169
  }
201
170
  /** Backend response type: Value. */
202
- export interface RoutesReservePostResponse extends ApiEnvelope<JsonValue> {
203
- }
171
+ export type RoutesReservePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").UsageReservation>;
204
172
  /** Backend request type: Finish. */
205
173
  export type RoutesFinishPostInputBucket = "tasks" | "images" | "responses";
206
174
  export interface RoutesFinishPostInput extends JsonObject {
@@ -208,8 +176,7 @@ export interface RoutesFinishPostInput extends JsonObject {
208
176
  "bucket"?: RoutesFinishPostInputBucket | null;
209
177
  }
210
178
  /** Backend response type: Value. */
211
- export interface RoutesFinishPostResponse extends ApiEnvelope<JsonValue> {
212
- }
179
+ export type RoutesFinishPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").FinishedUsageReservation>;
213
180
  /** Backend response type: Usage. */
214
181
  export type RoutesOwnGetResponse = import("./types.js").TaskResponse<import("./collaboration.js").MemoryUsage>;
215
182
  /** Backend query type: FolderQuery. */
@@ -217,8 +184,7 @@ export interface RoutesFoldersGetQuery extends QueryParams {
217
184
  "project_id": string;
218
185
  }
219
186
  /** Backend response type: Value. */
220
- export interface RoutesFoldersGetResponse extends ApiEnvelope<JsonValue> {
221
- }
187
+ export type RoutesFoldersGetResponse = import("./types.js").TaskResponse<import("./workspace.js").NoteFolder[]>;
222
188
  /** Backend response type: Value. */
223
189
  export type RoutesGetGetApiV1NoteImportsIdResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteImportJob>;
224
190
  /** Backend request type: Control. */
@@ -234,18 +200,11 @@ export type RoutesCoverPutInput = import("./collaboration.js").SetNoteCover;
234
200
  /** Backend response type: NoteMedia. */
235
201
  export type RoutesCoverPutResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteMedia>;
236
202
  /** Backend response type: Value. */
237
- export interface RoutesDocumentGetResponse extends ApiEnvelope<JsonValue> {
238
- }
203
+ export type RoutesDocumentGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDocument>;
239
204
  /** Backend request type: Update. */
240
- export interface RoutesUpdatePostInput extends JsonObject {
241
- "id": string;
242
- "generation": number;
243
- "body": string;
244
- "plain_text": string;
245
- }
205
+ export type RoutesUpdatePostInput = import("./wire.types.js").SaveNoteDocument;
246
206
  /** Backend response type: Value. */
247
- export interface RoutesUpdatePostResponse extends ApiEnvelope<JsonValue> {
248
- }
207
+ export type RoutesUpdatePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDocument>;
249
208
  /** Backend request type: Create. */
250
209
  export type RoutesCreatePostApiV1NotesIdImportsInput = import("./collaboration.js").StartNoteImport;
251
210
  /** Backend response type: Value. */
@@ -253,8 +212,7 @@ export type RoutesCreatePostApiV1NotesIdImportsResponse = import("./types.js").T
253
212
  /** Backend response type: Value. */
254
213
  export type RoutesStatusGetApiV1NotesIdIndexingResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteIndexing>;
255
214
  /** Backend response type: Value. */
256
- export interface RoutesRetryPostResponse extends ApiEnvelope<JsonValue> {
257
- }
215
+ export type RoutesRetryPostResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteIndexing>;
258
216
  /** Backend response type: NoteMedia. */
259
217
  export type RoutesGetGetApiV1NotesIdMediaResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteMedia>;
260
218
  /** Backend request type: AddMedia. */
@@ -271,32 +229,30 @@ export interface RoutesAuthorizePostInput extends JsonObject {
271
229
  "channel_name": string;
272
230
  }
273
231
  /** Backend response type: Value. */
274
- export type RoutesAuthorizePostResponse = JsonValue;
232
+ export type RoutesAuthorizePostResponse = import("./wire.types.js").NoteRealtimeAuthorization;
275
233
  /** Backend response type: Value. */
276
- export interface RoutesConfigGetApiV1NotesIdRealtimeConfigResponse extends ApiEnvelope<JsonValue> {
277
- }
234
+ export type RoutesConfigGetApiV1NotesIdRealtimeConfigResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteRealtimeConfig>;
278
235
  /** Backend request type: CreateSource. */
279
236
  export type RoutesCreatePostApiV1NotesIdSourceImportsInput = import("./collaboration.js").StartSourceImport;
280
237
  /** Backend response type: Value. */
281
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;
282
241
  /** Backend response type: Value. */
283
- export interface RoutesCatalogGetApiV1NotesDataCatalogResponse extends ApiEnvelope<JsonValue> {
284
- }
242
+ export type RoutesCatalogGetApiV1NotesDataCatalogResponse = import("./types.js").TaskResponse<import("./wire.types.js").NoteDataCatalog>;
285
243
  /** Backend request type: Query. */
286
244
  export type RoutesSearchPostInput = import("./collaboration.js").NoteKnowledgeQuery;
287
245
  /** Backend response type: Value. */
288
246
  export type RoutesSearchPostResponse = import("./types.js").TaskResponse<import("./collaboration.js").NoteKnowledgeResult>;
289
247
  /** Backend response type: Value. */
290
- export interface RoutesGetPreferencesGetResponse extends ApiEnvelope<JsonValue> {
291
- }
248
+ export type RoutesGetPreferencesGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").NotificationPreferences>;
292
249
  /** Backend request type: NotificationPreferencesInput. */
293
250
  export interface RoutesPutPreferencesPutInput extends JsonObject {
294
251
  "sms_enabled"?: boolean;
295
252
  "email_enabled"?: boolean;
296
253
  }
297
254
  /** Backend response type: Value. */
298
- export interface RoutesPutPreferencesPutResponse extends ApiEnvelope<JsonValue> {
299
- }
255
+ export type RoutesPutPreferencesPutResponse = import("./types.js").TaskResponse<import("./wire.types.js").NotificationPreferences>;
300
256
  /** Backend request type: PerformancePolicyInput. */
301
257
  export interface RoutesUpsertPerformancePolicyPutInput extends JsonObject {
302
258
  "month": string;
@@ -307,31 +263,19 @@ export interface RoutesUpsertPerformancePolicyPutInput extends JsonObject {
307
263
  "estimate_capacity_hours"?: number | null;
308
264
  }
309
265
  /** Backend response type: serde_json::Value. */
310
- export interface RoutesUpsertPerformancePolicyPutResponse extends ApiEnvelope<JsonValue> {
311
- }
266
+ export type RoutesUpsertPerformancePolicyPutResponse = import("./types.js").TaskResponse<import("./wire.types.js").PerformancePolicy>;
312
267
  /** Backend response type: Value. */
313
- export interface RoutesPreferencesGetResponse extends ApiEnvelope<JsonValue> {
314
- }
268
+ export type RoutesPreferencesGetResponse = import("./types.js").TaskResponse<import("./workspace.js").PlanningPreferencesResult>;
315
269
  /** Backend request type: PlanningPreferences. */
316
- export interface RoutesSavePreferencesPutInput extends JsonObject {
317
- "timezone": string;
318
- "calendar": string;
319
- "week_start": number;
320
- "working_days": number[];
321
- "work_start": string;
322
- "work_end": string;
323
- "default_duration_minutes": number;
324
- }
270
+ export type RoutesSavePreferencesPutInput = import("./workspace.js").PlanningPreferences;
325
271
  /** Backend response type: Value. */
326
- export interface RoutesSavePreferencesPutResponse extends ApiEnvelope<JsonValue> {
327
- }
272
+ export type RoutesSavePreferencesPutResponse = import("./types.js").TaskResponse<import("./workspace.js").PlanningPreferencesResult>;
328
273
  /** Backend query type: ScopeQuery. */
329
274
  export interface RoutesGetGetApiV1PlansQuery extends QueryParams {
330
275
  "project_id"?: string | null;
331
276
  }
332
277
  /** Backend response type: Value. */
333
- export interface RoutesGetGetApiV1PlansResponse extends ApiEnvelope<JsonValue> {
334
- }
278
+ export type RoutesGetGetApiV1PlansResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanAccount>;
335
279
  /** Backend query type: IncomeQuery. */
336
280
  export interface RoutesIncomeGetQuery extends QueryParams {
337
281
  "from": string;
@@ -340,8 +284,7 @@ export interface RoutesIncomeGetQuery extends QueryParams {
340
284
  "page"?: number | null;
341
285
  }
342
286
  /** Backend response type: Value. */
343
- export interface RoutesIncomeGetResponse extends ApiEnvelope<JsonValue> {
344
- }
287
+ export type RoutesIncomeGetResponse = import("./types.js").TaskResponse<import("./types.js").IncomeReportData>;
345
288
  /** Backend request type: MemoryLimits. */
346
289
  export type RoutesConfigurePutInput = import("./collaboration.js").PlanMemoryLimits;
347
290
  /** Backend response type: MemoryLimits. */
@@ -351,31 +294,26 @@ export interface RoutesUsersGetQuery extends QueryParams {
351
294
  "user_ids": string;
352
295
  }
353
296
  /** Backend response type: Value. */
354
- export interface RoutesUsersGetResponse extends ApiEnvelope<JsonValue> {
355
- }
297
+ export type RoutesUsersGetResponse = import("./types.js").TaskResponse<import("./types.js").AdminUserPlansData>;
356
298
  /** Backend request type: Checkout. */
357
299
  export interface RoutesCheckoutPostInput extends JsonObject {
358
300
  "plan": string;
359
301
  "request_id": string;
360
302
  }
361
303
  /** Backend response type: Value. */
362
- export interface RoutesCheckoutPostResponse extends ApiEnvelope<JsonValue> {
363
- }
304
+ export type RoutesCheckoutPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanCheckoutResult>;
364
305
  /** Backend request type: Redeem. */
365
306
  export interface RoutesRedeemPostInput extends JsonObject {
366
307
  "token": string;
367
308
  }
368
309
  /** Backend response type: Value. */
369
- export interface RoutesRedeemPostResponse extends ApiEnvelope<JsonValue> {
370
- }
310
+ export type RoutesRedeemPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanRedeemed>;
371
311
  /** Backend response type: Value. */
372
- export interface RoutesGiftPostResponse extends ApiEnvelope<JsonValue> {
373
- }
312
+ export type RoutesGiftPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanGiftToken>;
374
313
  /** Backend response type: MemoryLimits. */
375
314
  export type RoutesCatalogGetApiV1PlansMemoryLimitsResponse = import("./types.js").TaskResponse<import("./collaboration.js").PlanMemoryLimits>;
376
315
  /** Backend response type: Value. */
377
- export interface RoutesReconcilePostResponse extends ApiEnvelope<JsonValue> {
378
- }
316
+ export type RoutesReconcilePostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PlanReconcile>;
379
317
  /** Backend query type: PointHistoryQuery. */
380
318
  export interface RoutesPointHistoryGetQuery extends QueryParams {
381
319
  "month"?: string | null;
@@ -383,8 +321,7 @@ export interface RoutesPointHistoryGetQuery extends QueryParams {
383
321
  "limit"?: number | null;
384
322
  }
385
323
  /** Backend response type: Vec<serde_json::Value>. */
386
- export interface RoutesPointHistoryGetResponse extends ApiEnvelope<JsonValue[]> {
387
- }
324
+ export type RoutesPointHistoryGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").PointHistoryEntry[]>;
388
325
  /** Backend query type: ProjectListQuery. */
389
326
  export interface RoutesListProjectsGetQuery extends QueryParams {
390
327
  "cursor"?: string | null;
@@ -394,50 +331,17 @@ export interface RoutesListProjectsGetQuery extends QueryParams {
394
331
  "q"?: string | null;
395
332
  }
396
333
  /** Backend response type: Vec<ProjectView>. */
397
- export interface RoutesListProjectsGetResponseItem extends JsonObject {
398
- "plan_access"?: JsonValue | null;
399
- "id": string;
400
- "created_by": string;
401
- "workspace_id": string;
402
- "team_id"?: string | null;
403
- "key": string;
404
- "name": string;
405
- "description": string;
406
- "mode": string;
407
- "status": string;
408
- "settings": JsonValue;
409
- "version": number;
410
- "created_at": string;
411
- "updated_at": string;
412
- }
413
- export interface RoutesListProjectsGetResponse extends ApiEnvelope<RoutesListProjectsGetResponseItem[]> {
414
- }
334
+ export type RoutesListProjectsGetResponse = import("./types.js").TaskPageResponse<import("./types.js").Project>;
415
335
  /** Backend request type: CreateProject. */
416
- export type RoutesCreateProjectPostInputMode = "software" | "marketing" | "general";
417
- export interface RoutesCreateProjectPostInput extends JsonObject {
418
- "team_id"?: string | null;
419
- "key": string;
420
- "name": string;
421
- "description"?: string;
422
- "mode": RoutesCreateProjectPostInputMode;
423
- "settings"?: JsonValue;
424
- }
336
+ export type RoutesCreateProjectPostInput = import("./types.js").CreateProjectInput;
425
337
  /** Backend response type: raw-response. */
426
- export interface RoutesCreateProjectPostResponse extends ApiEnvelope<JsonValue> {
427
- }
338
+ export type RoutesCreateProjectPostResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
428
339
  /** Backend response type: raw-response. */
429
- export interface RoutesGetProjectGetResponse extends ApiEnvelope<JsonValue> {
430
- }
340
+ export type RoutesGetProjectGetResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
431
341
  /** Backend request type: UpdateProject. */
432
- export interface RoutesUpdateProjectPatchInput extends JsonObject {
433
- "name"?: string | null;
434
- "description"?: string | null;
435
- "status"?: string | null;
436
- "settings"?: JsonValue | null;
437
- }
342
+ export type RoutesUpdateProjectPatchInput = import("./types.js").UpdateProjectInput;
438
343
  /** Backend response type: raw-response. */
439
- export interface RoutesUpdateProjectPatchResponse extends ApiEnvelope<JsonValue> {
440
- }
344
+ export type RoutesUpdateProjectPatchResponse = import("./types.js").TaskResponse<import("./types.js").Project>;
441
345
  /** Backend response type: Workflow. */
442
346
  export type RoutesGetGetApiV1ProjectsIdBoardWorkflowResponse = import("./types.js").TaskResponse<import("./collaboration.js").BoardWorkflow>;
443
347
  /** Backend request type: SaveWorkflow. */
@@ -445,8 +349,7 @@ export type RoutesPutPutApiV1ProjectsIdBoardWorkflowInput = import("./collaborat
445
349
  /** Backend response type: Workflow. */
446
350
  export type RoutesPutPutApiV1ProjectsIdBoardWorkflowResponse = import("./types.js").TaskResponse<import("./collaboration.js").BoardWorkflow>;
447
351
  /** Backend response type: Value. */
448
- export interface RoutesProjectChecklistsGetResponse extends ApiEnvelope<JsonValue> {
449
- }
352
+ export type RoutesProjectChecklistsGetResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistSnapshot[]>;
450
353
  /** Backend request type: GrantAccess. */
451
354
  export interface RoutesGrantProjectAccessPostInput extends JsonObject {
452
355
  "user_id": string;
@@ -454,14 +357,11 @@ export interface RoutesGrantProjectAccessPostInput extends JsonObject {
454
357
  "expires_at"?: string | null;
455
358
  }
456
359
  /** Backend response type: serde_json::Value. */
457
- export interface RoutesGrantProjectAccessPostResponse extends ApiEnvelope<JsonValue> {
458
- }
360
+ export type RoutesGrantProjectAccessPostResponse = import("./types.js").TaskResponse<import("./types.js").GrantProjectAccessResult>;
459
361
  /** Backend response type: Value. */
460
- export interface RoutesMembersGetResponse extends ApiEnvelope<JsonValue> {
461
- }
362
+ export type RoutesMembersGetResponse = import("./types.js").TaskResponse<import("./types.js").ProjectMember[]>;
462
363
  /** Backend response type: Value. */
463
- export interface RoutesRemoveMemberDeleteResponse extends ApiEnvelope<JsonValue> {
464
- }
364
+ export type RoutesRemoveMemberDeleteResponse = import("./types.js").TaskResponse<import("./types.js").RemovalResult>;
465
365
  /** Backend response type: Usage. */
466
366
  export type RoutesGetGetApiV1ProjectsIdMemoryUsageResponse = import("./types.js").TaskResponse<import("./collaboration.js").MemoryUsage>;
467
367
  /** Backend query type: Filters. */
@@ -482,9 +382,9 @@ export interface RoutesGetGetApiV1ProjectsIdReportResponseDataTasks extends Json
482
382
  "priority": string;
483
383
  "owner_id": string;
484
384
  "created_at": string;
485
- "due_at"?: string | null;
486
- "completed_at"?: string | null;
487
- "completed_by"?: string | null;
385
+ "due_at": string | null;
386
+ "completed_at": string | null;
387
+ "completed_by": string | null;
488
388
  "period_seconds": number;
489
389
  "total_seconds": number;
490
390
  "times": RoutesGetGetApiV1ProjectsIdReportResponseDataTasksTimes[];
@@ -505,7 +405,7 @@ export interface RoutesWorkflowStatesGetResponseItem extends JsonObject {
505
405
  "name": JsonValue;
506
406
  "category": string;
507
407
  "position": number;
508
- "wip_limit"?: number | null;
408
+ "wip_limit": number | null;
509
409
  }
510
410
  export interface RoutesWorkflowStatesGetResponse extends ApiEnvelope<RoutesWorkflowStatesGetResponseItem[]> {
511
411
  }
@@ -538,50 +438,25 @@ export interface RoutesTeamMonitoringGetQuery extends QueryParams {
538
438
  "team_id"?: string | null;
539
439
  }
540
440
  /** Backend response type: serde_json::Value. */
541
- export interface RoutesTeamMonitoringGetResponse extends ApiEnvelope<JsonValue> {
542
- }
441
+ export type RoutesTeamMonitoringGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").TeamMonitoring>;
543
442
  /** Backend request type: ProposalInput. */
544
- export type RoutesProposePostInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
545
- export interface RoutesProposePostInput extends JsonObject {
546
- "request_id"?: string | null;
547
- "conversation_id": string;
548
- "project_id"?: string | null;
549
- "operations": RoutesProposePostInputOperations[];
550
- }
443
+ export type RoutesProposePostInput = import("./workspace.js").ReviewProposalInput;
551
444
  /** Backend response type: Value. */
552
- export interface RoutesProposePostResponse extends ApiEnvelope<JsonValue> {
553
- }
445
+ export type RoutesProposePostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
554
446
  /** Backend response type: Value. */
555
- export interface RoutesGetGetApiV1ReviewProposalsIdResponse extends ApiEnvelope<JsonValue> {
556
- }
447
+ export type RoutesGetGetApiV1ReviewProposalsIdResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
557
448
  /** Backend request type: ProposalInput. */
558
- export type RoutesRevisePutInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
559
- export interface RoutesRevisePutInput extends JsonObject {
560
- "request_id"?: string | null;
561
- "conversation_id": string;
562
- "project_id"?: string | null;
563
- "operations": RoutesRevisePutInputOperations[];
564
- }
449
+ export type RoutesRevisePutInput = import("./workspace.js").ReviewProposalInput;
565
450
  /** Backend response type: Value. */
566
- export interface RoutesRevisePutResponse extends ApiEnvelope<JsonValue> {
567
- }
451
+ export type RoutesRevisePutResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
568
452
  /** Backend response type: Value. */
569
- export interface RoutesApplyPostApiV1ReviewProposalsIdApplyResponse extends ApiEnvelope<JsonValue> {
570
- }
453
+ export type RoutesApplyPostApiV1ReviewProposalsIdApplyResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
571
454
  /** Backend response type: Value. */
572
- export interface RoutesRefreshPostResponse extends ApiEnvelope<JsonValue> {
573
- }
455
+ export type RoutesRefreshPostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewProposal>;
574
456
  /** Backend request type: ProposalInput. */
575
- export type RoutesValidateProposalPostInputOperations = "create" | "update" | "transition" | "archive_note" | "import_note" | "delete" | "checklist" | "reminder" | "plan" | "move_note" | "folder" | "delete_folder";
576
- export interface RoutesValidateProposalPostInput extends JsonObject {
577
- "request_id"?: string | null;
578
- "conversation_id": string;
579
- "project_id"?: string | null;
580
- "operations": RoutesValidateProposalPostInputOperations[];
581
- }
457
+ export type RoutesValidateProposalPostInput = import("./workspace.js").ReviewProposalInput;
582
458
  /** Backend response type: Value. */
583
- export interface RoutesValidateProposalPostResponse extends ApiEnvelope<JsonValue> {
584
- }
459
+ export type RoutesValidateProposalPostResponse = import("./types.js").TaskResponse<import("./workspace.js").ReviewPreviewResult>;
585
460
  /** Backend query type: SprintListQuery. */
586
461
  export interface RoutesListSprintsGetQuery extends QueryParams {
587
462
  "team_id"?: string | null;
@@ -592,13 +467,13 @@ export interface RoutesListSprintsGetQuery extends QueryParams {
592
467
  export interface RoutesListSprintsGetResponseItem extends JsonObject {
593
468
  "id": string;
594
469
  "team_id": string;
595
- "project_id"?: string | null;
470
+ "project_id": string | null;
596
471
  "name": string;
597
472
  "goal": string;
598
473
  "status": string;
599
- "starts_at"?: string | null;
600
- "ends_at"?: string | null;
601
- "capacity"?: number | null;
474
+ "starts_at": string | null;
475
+ "ends_at": string | null;
476
+ "capacity": number | null;
602
477
  "version": number;
603
478
  }
604
479
  export interface RoutesListSprintsGetResponse extends ApiEnvelope<RoutesListSprintsGetResponseItem[]> {
@@ -614,14 +489,11 @@ export interface RoutesCreateSprintPostInput extends JsonObject {
614
489
  "capacity"?: number | null;
615
490
  }
616
491
  /** Backend response type: raw-response. */
617
- export interface RoutesCreateSprintPostResponse extends ApiEnvelope<JsonValue> {
618
- }
492
+ export type RoutesCreateSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
619
493
  /** Backend response type: raw-response. */
620
- export interface RoutesCompleteSprintPostResponse extends ApiEnvelope<JsonValue> {
621
- }
494
+ export type RoutesCompleteSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
622
495
  /** Backend response type: raw-response. */
623
- export interface RoutesStartSprintPostResponse extends ApiEnvelope<JsonValue> {
624
- }
496
+ export type RoutesStartSprintPostResponse = import("./types.js").TaskResponse<import("./types.js").Sprint>;
625
497
  /** Backend response type: Vec<TeamView>. */
626
498
  export interface RoutesListTeamsGetResponseItem extends JsonObject {
627
499
  "id": string;
@@ -642,11 +514,9 @@ export interface RoutesCreateTeamPostInput extends JsonObject {
642
514
  "member_ids"?: string[];
643
515
  }
644
516
  /** Backend response type: raw-response. */
645
- export interface RoutesCreateTeamPostResponse extends ApiEnvelope<JsonValue> {
646
- }
517
+ export type RoutesCreateTeamPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
647
518
  /** Backend response type: raw-response. */
648
- export interface RoutesGetTeamGetResponse extends ApiEnvelope<JsonValue> {
649
- }
519
+ export type RoutesGetTeamGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
650
520
  /** Backend request type: UpdateTeam. */
651
521
  export interface RoutesUpdateTeamPatchInput extends JsonObject {
652
522
  "name"?: string | null;
@@ -655,8 +525,7 @@ export interface RoutesUpdateTeamPatchInput extends JsonObject {
655
525
  "member_ids"?: string[] | null;
656
526
  }
657
527
  /** Backend response type: raw-response. */
658
- export interface RoutesUpdateTeamPatchResponse extends ApiEnvelope<JsonValue> {
659
- }
528
+ export type RoutesUpdateTeamPatchResponse = import("./types.js").TaskResponse<import("./wire.types.js").Team>;
660
529
  /** Backend query type: WorkItemListQuery. */
661
530
  export interface RoutesListWorkItemsGetQuery extends QueryParams {
662
531
  "cursor"?: string | null;
@@ -670,119 +539,31 @@ export interface RoutesListWorkItemsGetQuery extends QueryParams {
670
539
  "sort"?: string | null;
671
540
  }
672
541
  /** Backend response type: Vec<WorkItemView>. */
673
- export interface RoutesListWorkItemsGetResponseItem extends JsonObject {
674
- "id": string;
675
- "workspace_id": string;
676
- "project_id": string;
677
- "team_id"?: string | null;
678
- "parent_id"?: string | null;
679
- "sequence": number;
680
- "key": string;
681
- "item_type": string;
682
- "title": string;
683
- "description": string;
684
- "status": string;
685
- "stage_id"?: string | null;
686
- "status_category"?: string;
687
- "priority": string;
688
- "rank": string;
689
- "owner_id": string;
690
- "reporter_id": string;
691
- "estimate"?: number | null;
692
- "story_points"?: number | null;
693
- "progress_started_at"?: string | null;
694
- "start_at"?: string | null;
695
- "folder_id"?: string | null;
696
- "planned_start_at"?: string | null;
697
- "planned_end_at"?: string | null;
698
- "due_at"?: string | null;
699
- "completed_at"?: string | null;
700
- "sprint_id"?: string | null;
701
- "release_id"?: string | null;
702
- "campaign_id"?: string | null;
703
- "custom_fields": JsonValue;
704
- "version": number;
705
- "created_at": string;
706
- "updated_at": string;
707
- }
708
- export interface RoutesListWorkItemsGetResponse extends ApiEnvelope<RoutesListWorkItemsGetResponseItem[]> {
709
- }
542
+ export type RoutesListWorkItemsGetResponse = import("./types.js").TaskPageResponse<import("./types.js").WorkItem>;
710
543
  /** Backend request type: CreateWorkItem. */
711
- export interface RoutesCreateWorkItemPostInputChecklist extends JsonObject {
712
- "id": string;
713
- "title": string;
714
- "done": boolean;
715
- }
716
- export type RoutesCreateWorkItemPostInputReminderTriggers = "relative" | "same_day";
717
- export interface RoutesCreateWorkItemPostInputReminder extends JsonObject {
718
- "anchor_at": string;
719
- "timezone": string;
720
- "recurrence"?: string;
721
- "triggers"?: RoutesCreateWorkItemPostInputReminderTriggers[];
722
- }
723
- export interface RoutesCreateWorkItemPostInput extends JsonObject {
724
- "checklist"?: RoutesCreateWorkItemPostInputChecklist[];
725
- "reminder"?: RoutesCreateWorkItemPostInputReminder | null;
726
- "project_id": string;
727
- "team_id"?: string | null;
728
- "parent_id"?: string | null;
729
- "item_type"?: string;
730
- "title": string;
731
- "description"?: string;
732
- "priority"?: string;
733
- "owner_id": string;
734
- "estimate"?: number | null;
735
- "story_points"?: number | null;
736
- "start_at"?: string | null;
737
- "due_at"?: string | null;
738
- "sprint_id"?: string | null;
739
- "release_id"?: string | null;
740
- "campaign_id"?: string | null;
741
- "custom_fields"?: JsonValue;
742
- "external_source"?: string | null;
743
- "external_id"?: string | null;
744
- }
544
+ export type RoutesCreateWorkItemPostInput = import("./types.js").CreateWorkItemInput;
745
545
  /** Backend response type: raw-response. */
746
- export interface RoutesCreateWorkItemPostResponse extends ApiEnvelope<JsonValue> {
747
- }
546
+ export type RoutesCreateWorkItemPostResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
748
547
  /** Backend response type: no-content. */
749
- export type RoutesRemoveWorkItemDeleteResponse = void;
548
+ export type RoutesRemoveWorkItemDeleteResponse = import("./wire.types.js").DeletedWorkItemResponse;
750
549
  /** Backend response type: raw-response. */
751
- export interface RoutesGetWorkItemGetResponse extends ApiEnvelope<JsonValue> {
752
- }
550
+ export type RoutesGetWorkItemGetResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
753
551
  /** Backend request type: UpdateWorkItem. */
754
- export interface RoutesUpdateWorkItemPatchInput extends JsonObject {
755
- "title"?: string | null;
756
- "description"?: string | null;
757
- "priority"?: string | null;
758
- "owner_id"?: string | null;
759
- "team_id"?: string | null;
760
- "estimate"?: number | null;
761
- "story_points"?: number | null;
762
- "start_at"?: string | null;
763
- "due_at"?: string | null;
764
- "sprint_id"?: string | null;
765
- "release_id"?: string | null;
766
- "campaign_id"?: string | null;
767
- "custom_fields"?: JsonValue | null;
768
- }
552
+ export type RoutesUpdateWorkItemPatchInput = import("./types.js").UpdateWorkItemInput;
769
553
  /** Backend response type: raw-response. */
770
- export interface RoutesUpdateWorkItemPatchResponse extends ApiEnvelope<JsonValue> {
771
- }
554
+ export type RoutesUpdateWorkItemPatchResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
772
555
  /** Backend query type: ActivityQuery. */
773
556
  export interface RoutesWorkItemActivityGetQuery extends QueryParams {
774
557
  "offset"?: number;
775
558
  }
776
559
  /** Backend response type: Vec<serde_json::Value>. */
777
- export interface RoutesWorkItemActivityGetResponse extends ApiEnvelope<JsonValue[]> {
778
- }
560
+ export type RoutesWorkItemActivityGetResponse = import("./types.js").TaskResponse<import("./wire.types.js").WorkItemActivity[]>;
779
561
  /** Backend request type: CreateUpload. */
780
562
  export type RoutesCreatePostApiV1WorkItemsIdAttachmentsInput = import("./collaboration.js").CreateAttachment;
781
563
  /** Backend response type: Attachment. */
782
564
  export type RoutesCreatePostApiV1WorkItemsIdAttachmentsResponse = import("./types.js").TaskResponse<import("./collaboration.js").TaskAttachment>;
783
565
  /** Backend response type: Value. */
784
- export interface RoutesWorkItemChecklistGetResponse extends ApiEnvelope<JsonValue> {
785
- }
566
+ export type RoutesWorkItemChecklistGetResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistSnapshot>;
786
567
  /** Backend request type: ChecklistInput. */
787
568
  export interface RoutesReplaceChecklistPutInputItems extends JsonObject {
788
569
  "id": string;
@@ -793,8 +574,7 @@ export interface RoutesReplaceChecklistPutInput extends JsonObject {
793
574
  "items": RoutesReplaceChecklistPutInputItems[];
794
575
  }
795
576
  /** Backend response type: Value. */
796
- export interface RoutesReplaceChecklistPutResponse extends ApiEnvelope<JsonValue> {
797
- }
577
+ export type RoutesReplaceChecklistPutResponse = import("./types.js").TaskResponse<import("./types.js").ChecklistResult>;
798
578
  /** Backend response type: Vec<CommentView>. */
799
579
  export interface RoutesListCommentsGetResponseItemAttachments extends JsonObject {
800
580
  "id": string;
@@ -826,8 +606,7 @@ export interface RoutesCreateCommentPostInput extends JsonObject {
826
606
  "request_id"?: string | null;
827
607
  }
828
608
  /** Backend response type: raw-response. */
829
- export interface RoutesCreateCommentPostResponse extends ApiEnvelope<JsonValue> {
830
- }
609
+ export type RoutesCreateCommentPostResponse = import("./types.js").TaskResponse<import("./types.js").Comment>;
831
610
  /** Backend query type: CommentPageQuery. */
832
611
  export interface RoutesCommentPageGetQuery extends QueryParams {
833
612
  "before"?: string | null;
@@ -855,7 +634,7 @@ export interface RoutesCommentPageGetResponseDataItems extends JsonObject {
855
634
  }
856
635
  export interface RoutesCommentPageGetResponseData extends JsonObject {
857
636
  "items": RoutesCommentPageGetResponseDataItems[];
858
- "next_cursor"?: string | null;
637
+ "next_cursor": string | null;
859
638
  }
860
639
  export interface RoutesCommentPageGetResponse extends ApiEnvelope<RoutesCommentPageGetResponseData> {
861
640
  }
@@ -867,9 +646,9 @@ export interface RoutesListCommitsGetResponseItem extends JsonObject {
867
646
  "sandbox_project": string;
868
647
  "commit_sha": string;
869
648
  "subject": string;
870
- "branch"?: string | null;
871
- "repository_label"?: string | null;
872
- "committed_at"?: string | null;
649
+ "branch": string | null;
650
+ "repository_label": string | null;
651
+ "committed_at": string | null;
873
652
  "metadata": JsonValue;
874
653
  "created_at": string;
875
654
  }
@@ -885,8 +664,7 @@ export interface RoutesAttachCommitPostInput extends JsonObject {
885
664
  "metadata"?: JsonValue;
886
665
  }
887
666
  /** Backend response type: raw-response. */
888
- export interface RoutesAttachCommitPostResponse extends ApiEnvelope<JsonValue> {
889
- }
667
+ export type RoutesAttachCommitPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").CommitLink>;
890
668
  /** Backend request type: PointEntryInput. */
891
669
  export interface RoutesAddPointsPostInput extends JsonObject {
892
670
  "user_id": string;
@@ -895,40 +673,29 @@ export interface RoutesAddPointsPostInput extends JsonObject {
895
673
  "reason"?: string;
896
674
  }
897
675
  /** Backend response type: raw-response. */
898
- export interface RoutesAddPointsPostResponse extends ApiEnvelope<JsonValue> {
899
- }
676
+ export type RoutesAddPointsPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").PointEntry>;
900
677
  /** Backend response type: Value. */
901
- export interface RoutesRemoveDeleteApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
902
- }
678
+ export type RoutesRemoveDeleteApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").RemovalResult>;
903
679
  /** Backend response type: Value. */
904
- export interface RoutesGetGetApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
905
- }
680
+ export type RoutesGetGetApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").Reminder | null>;
906
681
  /** Backend request type: Input. */
907
- export type RoutesPutPutApiV1WorkItemsIdReminderInputTriggers = "relative" | "same_day";
908
- export interface RoutesPutPutApiV1WorkItemsIdReminderInput extends JsonObject {
909
- "anchor_at": string;
910
- "timezone": string;
911
- "recurrence"?: string;
912
- "triggers"?: RoutesPutPutApiV1WorkItemsIdReminderInputTriggers[];
913
- }
682
+ export type RoutesPutPutApiV1WorkItemsIdReminderInput = import("./types.js").ReminderInput;
914
683
  /** Backend response type: Value. */
915
- export interface RoutesPutPutApiV1WorkItemsIdReminderResponse extends ApiEnvelope<JsonValue> {
916
- }
684
+ export type RoutesPutPutApiV1WorkItemsIdReminderResponse = import("./types.js").TaskResponse<import("./types.js").Reminder>;
917
685
  /** Backend request type: TransitionWorkItem. */
918
686
  export interface RoutesTransitionWorkItemPostInput extends JsonObject {
919
687
  "status": string;
920
688
  "rank"?: string | null;
921
689
  }
922
690
  /** Backend response type: raw-response. */
923
- export interface RoutesTransitionWorkItemPostResponse extends ApiEnvelope<JsonValue> {
924
- }
691
+ export type RoutesTransitionWorkItemPostResponse = import("./types.js").TaskResponse<import("./types.js").WorkItem>;
925
692
  /** Backend response type: Vec<WorkLogView>. */
926
693
  export interface RoutesListWorkLogsGetResponseItem extends JsonObject {
927
694
  "id": string;
928
695
  "work_item_id": string;
929
696
  "author_id": string;
930
697
  "body": string;
931
- "minutes"?: number | null;
698
+ "minutes": number | null;
932
699
  "log_type": string;
933
700
  "created_at": string;
934
701
  }
@@ -941,8 +708,7 @@ export interface RoutesCreateWorkLogPostInput extends JsonObject {
941
708
  "log_type"?: string;
942
709
  }
943
710
  /** Backend response type: raw-response. */
944
- export interface RoutesCreateWorkLogPostResponse extends ApiEnvelope<JsonValue> {
945
- }
711
+ export type RoutesCreateWorkLogPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").WorkLog>;
946
712
  /** Backend response type: Vec<WorkSessionView>. */
947
713
  export interface RoutesListWorkSessionsGetResponseItem extends JsonObject {
948
714
  "id": string;
@@ -953,12 +719,12 @@ export interface RoutesListWorkSessionsGetResponseItem extends JsonObject {
953
719
  "state": string;
954
720
  "runtime_state": string;
955
721
  "started_at": string;
956
- "ended_at"?: string | null;
722
+ "ended_at": string | null;
957
723
  "last_heartbeat_at": string;
958
724
  "active_seconds": number;
959
725
  "idle_seconds": number;
960
726
  "elapsed_seconds": number;
961
- "stop_reason"?: string | null;
727
+ "stop_reason": string | null;
962
728
  "metadata": JsonValue;
963
729
  "version": number;
964
730
  }
@@ -970,8 +736,7 @@ export interface RoutesStartWorkSessionPostInput extends JsonObject {
970
736
  "metadata"?: JsonValue;
971
737
  }
972
738
  /** Backend response type: raw-response. */
973
- export interface RoutesStartWorkSessionPostResponse extends ApiEnvelope<JsonValue> {
974
- }
739
+ export type RoutesStartWorkSessionPostResponse = import("./types.js").TaskResponse<import("./wire.types.js").StartedWorkSession>;
975
740
  /** Backend request type: HeartbeatWorkSession. */
976
741
  export interface RoutesHeartbeatWorkSessionPostInput extends JsonObject {
977
742
  "active_seconds"?: number;
@@ -989,12 +754,12 @@ export interface RoutesHeartbeatWorkSessionPostResponseData extends JsonObject {
989
754
  "state": string;
990
755
  "runtime_state": string;
991
756
  "started_at": string;
992
- "ended_at"?: string | null;
757
+ "ended_at": string | null;
993
758
  "last_heartbeat_at": string;
994
759
  "active_seconds": number;
995
760
  "idle_seconds": number;
996
761
  "elapsed_seconds": number;
997
- "stop_reason"?: string | null;
762
+ "stop_reason": string | null;
998
763
  "metadata": JsonValue;
999
764
  "version": number;
1000
765
  }
@@ -1014,12 +779,12 @@ export interface RoutesStopWorkSessionPostResponseData extends JsonObject {
1014
779
  "state": string;
1015
780
  "runtime_state": string;
1016
781
  "started_at": string;
1017
- "ended_at"?: string | null;
782
+ "ended_at": string | null;
1018
783
  "last_heartbeat_at": string;
1019
784
  "active_seconds": number;
1020
785
  "idle_seconds": number;
1021
786
  "elapsed_seconds": number;
1022
- "stop_reason"?: string | null;
787
+ "stop_reason": string | null;
1023
788
  "metadata": JsonValue;
1024
789
  "version": number;
1025
790
  }
@@ -1035,12 +800,12 @@ export interface RoutesActiveWorkSessionsGetResponseItem extends JsonObject {
1035
800
  "state": string;
1036
801
  "runtime_state": string;
1037
802
  "started_at": string;
1038
- "ended_at"?: string | null;
803
+ "ended_at": string | null;
1039
804
  "last_heartbeat_at": string;
1040
805
  "active_seconds": number;
1041
806
  "idle_seconds": number;
1042
807
  "elapsed_seconds": number;
1043
- "stop_reason"?: string | null;
808
+ "stop_reason": string | null;
1044
809
  "metadata": JsonValue;
1045
810
  "version": number;
1046
811
  }
@@ -1056,8 +821,7 @@ export interface RoutesWorkspaceGetResponseData extends JsonObject {
1056
821
  export interface RoutesWorkspaceGetResponse extends ApiEnvelope<RoutesWorkspaceGetResponseData> {
1057
822
  }
1058
823
  /** Backend response type: raw-response. */
1059
- export interface RoutesReadyGetHealthDependenciesResponse extends ApiEnvelope<JsonValue> {
1060
- }
824
+ export type RoutesReadyGetHealthDependenciesResponse = import("./types.js").TaskResponse<import("./wire.types.js").Readiness>;
1061
825
  /** Backend response type: Health. */
1062
826
  export interface RoutesLiveGetResponseData extends JsonObject {
1063
827
  "service": string;
@@ -1067,9 +831,7 @@ export interface RoutesLiveGetResponseData extends JsonObject {
1067
831
  export interface RoutesLiveGetResponse extends ApiEnvelope<RoutesLiveGetResponseData> {
1068
832
  }
1069
833
  /** Backend response type: raw-response. */
1070
- export interface RoutesReadyGetHealthReadyResponse extends ApiEnvelope<JsonValue> {
1071
- }
834
+ export type RoutesReadyGetHealthReadyResponse = import("./types.js").TaskResponse<import("./wire.types.js").Readiness>;
1072
835
  /** Backend response type: raw-response. */
1073
- export interface RoutesMetricsGetResponse extends ApiEnvelope<JsonValue> {
1074
- }
836
+ export type RoutesMetricsGetResponse = string;
1075
837
  //# sourceMappingURL=operations.types.d.ts.map