@mestra-dev/contract 0.0.179 → 0.0.181

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +607 -65
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1270,14 +1270,21 @@ declare const routes: import("hono/hono-base").HonoBase<{
1270
1270
  readonly type: "string";
1271
1271
  readonly nullable: true;
1272
1272
  };
1273
- readonly status: {
1273
+ readonly phaseId: {
1274
1274
  readonly type: "string";
1275
- readonly enum: readonly [
1276
- "pending",
1277
- "in_progress",
1278
- "completed"
1279
- ];
1280
1275
  readonly nullable: true;
1276
+ readonly format: "uuid";
1277
+ readonly description: "Identifier of this task's workspace phase.";
1278
+ };
1279
+ readonly phaseName: {
1280
+ readonly type: "string";
1281
+ readonly nullable: true;
1282
+ readonly description: "Current phase name.";
1283
+ };
1284
+ readonly phaseSortOrder: {
1285
+ readonly type: "integer";
1286
+ readonly nullable: true;
1287
+ readonly description: "Current phase order within the workspace.";
1281
1288
  };
1282
1289
  readonly dueDate: {
1283
1290
  readonly type: "string";
@@ -1354,6 +1361,43 @@ declare const routes: import("hono/hono-base").HonoBase<{
1354
1361
  };
1355
1362
  };
1356
1363
  };
1364
+ readonly TaskPhase: {
1365
+ readonly type: "object";
1366
+ readonly required: readonly [
1367
+ "id",
1368
+ "workspaceId",
1369
+ "name",
1370
+ "sortOrder"
1371
+ ];
1372
+ readonly properties: {
1373
+ readonly id: {
1374
+ readonly type: "string";
1375
+ readonly format: "uuid";
1376
+ };
1377
+ readonly workspaceId: {
1378
+ readonly type: "string";
1379
+ readonly format: "uuid";
1380
+ };
1381
+ readonly name: {
1382
+ readonly type: "string";
1383
+ readonly maxLength: 64;
1384
+ };
1385
+ readonly sortOrder: {
1386
+ readonly type: "integer";
1387
+ readonly minimum: 0;
1388
+ };
1389
+ readonly created_at: {
1390
+ readonly type: "string";
1391
+ readonly format: "date-time";
1392
+ readonly nullable: true;
1393
+ };
1394
+ readonly updated_at: {
1395
+ readonly type: "string";
1396
+ readonly format: "date-time";
1397
+ readonly nullable: true;
1398
+ };
1399
+ };
1400
+ };
1357
1401
  readonly CreateTaskSuccess: {
1358
1402
  readonly type: "object";
1359
1403
  readonly required: readonly [
@@ -8968,26 +9012,347 @@ declare const routes: import("hono/hono-base").HonoBase<{
8968
9012
  };
8969
9013
  };
8970
9014
  };
8971
- readonly 404: {
8972
- readonly description: "Workspace not found or caller is not its owner.";
8973
- readonly content: {
8974
- readonly "application/json": {
8975
- readonly schema: {
8976
- readonly $ref: "#/components/schemas/ErrorResponse";
8977
- };
8978
- };
8979
- };
9015
+ readonly 404: {
9016
+ readonly description: "Workspace not found or caller is not its owner.";
9017
+ readonly content: {
9018
+ readonly "application/json": {
9019
+ readonly schema: {
9020
+ readonly $ref: "#/components/schemas/ErrorResponse";
9021
+ };
9022
+ };
9023
+ };
9024
+ };
9025
+ };
9026
+ };
9027
+ };
9028
+ readonly "/payments/webhook": {
9029
+ readonly post: {
9030
+ readonly tags: readonly [
9031
+ "Payments"
9032
+ ];
9033
+ readonly summary: "Receive YooKassa payment event";
9034
+ readonly description: "Server-to-server endpoint for YooKassa only. The core verifies a completed payment and only then marks the invoice paid. Frontends must not call this endpoint.";
9035
+ readonly requestBody: {
9036
+ readonly required: true;
9037
+ readonly content: {
9038
+ readonly "application/json": {
9039
+ readonly schema: {
9040
+ readonly type: "object";
9041
+ readonly required: readonly [
9042
+ "object"
9043
+ ];
9044
+ readonly properties: {
9045
+ readonly type: {
9046
+ readonly type: "string";
9047
+ readonly example: "notification";
9048
+ };
9049
+ readonly object: {
9050
+ readonly type: "object";
9051
+ readonly required: readonly [
9052
+ "id",
9053
+ "status"
9054
+ ];
9055
+ readonly properties: {
9056
+ readonly id: any;
9057
+ readonly status: any;
9058
+ };
9059
+ };
9060
+ };
9061
+ };
9062
+ };
9063
+ };
9064
+ };
9065
+ readonly responses: {
9066
+ readonly 200: {
9067
+ readonly description: "Payment applied or non-success event ignored.";
9068
+ };
9069
+ readonly 400: {
9070
+ readonly description: "Invalid webhook or payment did not succeed.";
9071
+ readonly content: {
9072
+ readonly "application/json": {
9073
+ readonly schema: {
9074
+ readonly $ref: "#/components/schemas/ErrorResponse";
9075
+ };
9076
+ };
9077
+ };
9078
+ };
9079
+ };
9080
+ };
9081
+ };
9082
+ readonly "/task-phases/list/{workspace}": {
9083
+ readonly get: {
9084
+ readonly tags: readonly [
9085
+ "Tasks"
9086
+ ];
9087
+ readonly summary: "List workspace task phases";
9088
+ readonly description: "Returns the ordered task phases configured for a workspace. Requires workspace access and crm::tasks read access.";
9089
+ readonly security: readonly [
9090
+ never
9091
+ ];
9092
+ readonly parameters: readonly [
9093
+ {
9094
+ readonly name: "workspace";
9095
+ readonly in: "path";
9096
+ readonly required: true;
9097
+ readonly schema: {
9098
+ readonly type: "string";
9099
+ readonly format: "uuid";
9100
+ };
9101
+ }
9102
+ ];
9103
+ readonly responses: {
9104
+ readonly 200: {
9105
+ readonly description: "Task phases fetched.";
9106
+ readonly content: {
9107
+ readonly "application/json": {
9108
+ readonly schema: {
9109
+ readonly type: "object";
9110
+ readonly required: readonly [
9111
+ "success",
9112
+ "phases"
9113
+ ];
9114
+ readonly properties: {
9115
+ readonly success: {
9116
+ readonly type: "boolean";
9117
+ readonly const: true;
9118
+ };
9119
+ readonly phases: {
9120
+ readonly type: "array";
9121
+ readonly items: any;
9122
+ };
9123
+ };
9124
+ };
9125
+ };
9126
+ };
9127
+ };
9128
+ readonly 401: {
9129
+ readonly description: "Unauthorized.";
9130
+ readonly content: {
9131
+ readonly "application/json": {
9132
+ readonly schema: {
9133
+ readonly $ref: "#/components/schemas/ErrorResponse";
9134
+ };
9135
+ };
9136
+ };
9137
+ };
9138
+ readonly 403: {
9139
+ readonly description: "Forbidden.";
9140
+ readonly content: {
9141
+ readonly "application/json": {
9142
+ readonly schema: {
9143
+ readonly $ref: "#/components/schemas/ErrorResponse";
9144
+ };
9145
+ };
9146
+ };
9147
+ };
9148
+ };
9149
+ };
9150
+ };
9151
+ readonly "/task-phases/create": {
9152
+ readonly post: {
9153
+ readonly tags: readonly [
9154
+ "Tasks"
9155
+ ];
9156
+ readonly summary: "Create a workspace task phase";
9157
+ readonly description: "Adds a phase at the end of the workspace workflow. Requires crm::tasks write access.";
9158
+ readonly security: readonly [
9159
+ never
9160
+ ];
9161
+ readonly requestBody: {
9162
+ readonly required: true;
9163
+ readonly content: {
9164
+ readonly "application/json": {
9165
+ readonly schema: {
9166
+ readonly type: "object";
9167
+ readonly required: readonly [
9168
+ "workspace",
9169
+ "name"
9170
+ ];
9171
+ readonly properties: {
9172
+ readonly workspace: {
9173
+ readonly type: "string";
9174
+ readonly format: "uuid";
9175
+ };
9176
+ readonly name: {
9177
+ readonly type: "string";
9178
+ readonly maxLength: 64;
9179
+ };
9180
+ };
9181
+ };
9182
+ };
9183
+ };
9184
+ };
9185
+ readonly responses: {
9186
+ readonly 201: {
9187
+ readonly description: "Task phase created.";
9188
+ readonly content: {
9189
+ readonly "application/json": {
9190
+ readonly schema: {
9191
+ readonly type: "object";
9192
+ readonly properties: {
9193
+ readonly success: {
9194
+ readonly type: "boolean";
9195
+ readonly const: true;
9196
+ };
9197
+ readonly phase: {
9198
+ readonly $ref: "#/components/schemas/TaskPhase";
9199
+ };
9200
+ };
9201
+ };
9202
+ };
9203
+ };
9204
+ };
9205
+ readonly 400: {
9206
+ readonly description: "Invalid request.";
9207
+ readonly content: {
9208
+ readonly "application/json": {
9209
+ readonly schema: {
9210
+ readonly $ref: "#/components/schemas/ErrorResponse";
9211
+ };
9212
+ };
9213
+ };
9214
+ };
9215
+ readonly 403: {
9216
+ readonly description: "Forbidden.";
9217
+ readonly content: {
9218
+ readonly "application/json": {
9219
+ readonly schema: {
9220
+ readonly $ref: "#/components/schemas/ErrorResponse";
9221
+ };
9222
+ };
9223
+ };
9224
+ };
9225
+ readonly 409: {
9226
+ readonly description: "A phase with this name exists.";
9227
+ readonly content: {
9228
+ readonly "application/json": {
9229
+ readonly schema: {
9230
+ readonly $ref: "#/components/schemas/ErrorResponse";
9231
+ };
9232
+ };
9233
+ };
9234
+ };
9235
+ };
9236
+ };
9237
+ };
9238
+ readonly "/task-phases/update": {
9239
+ readonly post: {
9240
+ readonly tags: readonly [
9241
+ "Tasks"
9242
+ ];
9243
+ readonly summary: "Rename a workspace task phase";
9244
+ readonly description: "Requires crm::tasks write access.";
9245
+ readonly security: readonly [
9246
+ never
9247
+ ];
9248
+ readonly requestBody: {
9249
+ readonly required: true;
9250
+ readonly content: {
9251
+ readonly "application/json": {
9252
+ readonly schema: {
9253
+ readonly type: "object";
9254
+ readonly required: readonly [
9255
+ "workspace",
9256
+ "phaseId",
9257
+ "name"
9258
+ ];
9259
+ readonly properties: {
9260
+ readonly workspace: {
9261
+ readonly type: "string";
9262
+ readonly format: "uuid";
9263
+ };
9264
+ readonly phaseId: {
9265
+ readonly type: "string";
9266
+ readonly format: "uuid";
9267
+ };
9268
+ readonly name: {
9269
+ readonly type: "string";
9270
+ readonly maxLength: 64;
9271
+ };
9272
+ };
9273
+ };
9274
+ };
9275
+ };
9276
+ };
9277
+ readonly responses: {
9278
+ readonly 200: {
9279
+ readonly description: "Task phase renamed.";
9280
+ };
9281
+ readonly 400: {
9282
+ readonly description: "Invalid request.";
9283
+ };
9284
+ readonly 403: {
9285
+ readonly description: "Forbidden.";
9286
+ };
9287
+ readonly 404: {
9288
+ readonly description: "Task phase not found.";
9289
+ };
9290
+ readonly 409: {
9291
+ readonly description: "A phase with this name exists.";
9292
+ };
9293
+ };
9294
+ };
9295
+ };
9296
+ readonly "/task-phases/reorder": {
9297
+ readonly post: {
9298
+ readonly tags: readonly [
9299
+ "Tasks"
9300
+ ];
9301
+ readonly summary: "Reorder workspace task phases";
9302
+ readonly description: "phaseIds must contain every phase in the workspace exactly once. Requires crm::tasks write access.";
9303
+ readonly security: readonly [
9304
+ never
9305
+ ];
9306
+ readonly requestBody: {
9307
+ readonly required: true;
9308
+ readonly content: {
9309
+ readonly "application/json": {
9310
+ readonly schema: {
9311
+ readonly type: "object";
9312
+ readonly required: readonly [
9313
+ "workspace",
9314
+ "phaseIds"
9315
+ ];
9316
+ readonly properties: {
9317
+ readonly workspace: {
9318
+ readonly type: "string";
9319
+ readonly format: "uuid";
9320
+ };
9321
+ readonly phaseIds: {
9322
+ readonly type: "array";
9323
+ readonly items: {
9324
+ readonly type: "string";
9325
+ readonly format: "uuid";
9326
+ };
9327
+ };
9328
+ };
9329
+ };
9330
+ };
9331
+ };
9332
+ };
9333
+ readonly responses: {
9334
+ readonly 200: {
9335
+ readonly description: "Task phases reordered.";
9336
+ };
9337
+ readonly 400: {
9338
+ readonly description: "Invalid phase order.";
9339
+ };
9340
+ readonly 403: {
9341
+ readonly description: "Forbidden.";
8980
9342
  };
8981
9343
  };
8982
9344
  };
8983
9345
  };
8984
- readonly "/payments/webhook": {
9346
+ readonly "/task-phases/delete": {
8985
9347
  readonly post: {
8986
9348
  readonly tags: readonly [
8987
- "Payments"
9349
+ "Tasks"
9350
+ ];
9351
+ readonly summary: "Delete a workspace task phase";
9352
+ readonly description: "A phase cannot be deleted while tasks use it, and each workspace must retain at least one phase. Requires crm::tasks write access.";
9353
+ readonly security: readonly [
9354
+ never
8988
9355
  ];
8989
- readonly summary: "Receive YooKassa payment event";
8990
- readonly description: "Server-to-server endpoint for YooKassa only. The core verifies a completed payment and only then marks the invoice paid. Frontends must not call this endpoint.";
8991
9356
  readonly requestBody: {
8992
9357
  readonly required: true;
8993
9358
  readonly content: {
@@ -8995,23 +9360,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
8995
9360
  readonly schema: {
8996
9361
  readonly type: "object";
8997
9362
  readonly required: readonly [
8998
- "object"
9363
+ "workspace",
9364
+ "phaseId"
8999
9365
  ];
9000
9366
  readonly properties: {
9001
- readonly type: {
9367
+ readonly workspace: {
9002
9368
  readonly type: "string";
9003
- readonly example: "notification";
9369
+ readonly format: "uuid";
9004
9370
  };
9005
- readonly object: {
9006
- readonly type: "object";
9007
- readonly required: readonly [
9008
- "id",
9009
- "status"
9010
- ];
9011
- readonly properties: {
9012
- readonly id: any;
9013
- readonly status: any;
9014
- };
9371
+ readonly phaseId: {
9372
+ readonly type: "string";
9373
+ readonly format: "uuid";
9015
9374
  };
9016
9375
  };
9017
9376
  };
@@ -9020,17 +9379,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
9020
9379
  };
9021
9380
  readonly responses: {
9022
9381
  readonly 200: {
9023
- readonly description: "Payment applied or non-success event ignored.";
9382
+ readonly description: "Task phase deleted.";
9024
9383
  };
9025
9384
  readonly 400: {
9026
- readonly description: "Invalid webhook or payment did not succeed.";
9027
- readonly content: {
9028
- readonly "application/json": {
9029
- readonly schema: {
9030
- readonly $ref: "#/components/schemas/ErrorResponse";
9031
- };
9032
- };
9033
- };
9385
+ readonly description: "Invalid request.";
9386
+ };
9387
+ readonly 403: {
9388
+ readonly description: "Forbidden.";
9389
+ };
9390
+ readonly 404: {
9391
+ readonly description: "Task phase not found.";
9392
+ };
9393
+ readonly 409: {
9394
+ readonly description: "Task phase is in use.";
9034
9395
  };
9035
9396
  };
9036
9397
  };
@@ -9076,15 +9437,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
9076
9437
  readonly nullable: true;
9077
9438
  readonly description: "Task description.";
9078
9439
  };
9079
- readonly status: {
9440
+ readonly phaseId: {
9080
9441
  readonly type: "string";
9081
- readonly enum: readonly [
9082
- "pending",
9083
- "in_progress",
9084
- "completed"
9085
- ];
9442
+ readonly format: "uuid";
9086
9443
  readonly nullable: true;
9087
- readonly description: "Task status. Defaults to 'pending' if not provided.";
9444
+ readonly description: "Workspace phase for the task. Defaults to the workspace's first phase.";
9088
9445
  };
9089
9446
  readonly priority: {
9090
9447
  readonly type: "string";
@@ -9372,15 +9729,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
9372
9729
  readonly nullable: true;
9373
9730
  readonly description: "Task description.";
9374
9731
  };
9375
- readonly status: {
9732
+ readonly phaseId: {
9376
9733
  readonly type: "string";
9377
- readonly enum: readonly [
9378
- "pending",
9379
- "in_progress",
9380
- "completed"
9381
- ];
9734
+ readonly format: "uuid";
9382
9735
  readonly nullable: true;
9383
- readonly description: "Task status.";
9736
+ readonly description: "Workspace phase for the task.";
9384
9737
  };
9385
9738
  readonly priority: {
9386
9739
  readonly type: "string";
@@ -17996,8 +18349,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
17996
18349
  name: string;
17997
18350
  active: boolean;
17998
18351
  code: string;
17999
- kind: string;
18000
18352
  sortOrder: number;
18353
+ kind: string;
18001
18354
  publiclyVisible: boolean;
18002
18355
  updated_at: string | null;
18003
18356
  deleted_at: string | null;
@@ -18640,6 +18993,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
18640
18993
  };
18641
18994
  outputFormat: "json";
18642
18995
  status: 500;
18996
+ } | {
18997
+ input: {};
18998
+ output: {
18999
+ success: false;
19000
+ error: string;
19001
+ };
19002
+ outputFormat: "json";
19003
+ status: 502;
18643
19004
  } | {
18644
19005
  input: {};
18645
19006
  output: {
@@ -18923,7 +19284,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
18923
19284
  input: {};
18924
19285
  output: {
18925
19286
  success: false;
18926
- error: never;
19287
+ error: string;
18927
19288
  };
18928
19289
  outputFormat: "json";
18929
19290
  status: 400;
@@ -18934,12 +19295,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
18934
19295
  task: {
18935
19296
  id: string;
18936
19297
  created_at: string;
18937
- status: string | null;
18938
19298
  workspaceId: string;
18939
19299
  description: string | null;
18940
19300
  subject: string;
18941
19301
  created_by: string;
18942
19302
  customerId: string | null;
19303
+ phaseId: string | null;
18943
19304
  updated_at: string | null;
18944
19305
  deleted_at: string | null;
18945
19306
  verified_at: string | null;
@@ -18967,7 +19328,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
18967
19328
  subject: string;
18968
19329
  description: string | null;
18969
19330
  visibility: string | null;
18970
- status: string | null;
19331
+ phaseId: string | null;
19332
+ phaseName: string | null;
19333
+ phaseSortOrder: number | null;
18971
19334
  priority: string | null;
18972
19335
  created_at: string;
18973
19336
  workspaceId: string;
@@ -19035,7 +19398,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
19035
19398
  subject: string;
19036
19399
  description: string | null;
19037
19400
  visibility: string | null;
19038
- status: string | null;
19401
+ phaseId: string | null;
19402
+ phaseName: string | null;
19403
+ phaseSortOrder: number | null;
19039
19404
  priority: string | null;
19040
19405
  workspaceId: string;
19041
19406
  created_by: string;
@@ -19107,10 +19472,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
19107
19472
  input: {};
19108
19473
  output: {
19109
19474
  success: false;
19110
- error: never;
19475
+ error: string;
19111
19476
  };
19112
19477
  outputFormat: "json";
19113
- status: 400;
19478
+ status: 404;
19114
19479
  } | {
19115
19480
  input: {};
19116
19481
  output: {
@@ -19118,7 +19483,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
19118
19483
  error: string;
19119
19484
  };
19120
19485
  outputFormat: "json";
19121
- status: 404;
19486
+ status: 403;
19122
19487
  } | {
19123
19488
  input: {};
19124
19489
  output: {
@@ -19126,7 +19491,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
19126
19491
  error: string;
19127
19492
  };
19128
19493
  outputFormat: "json";
19129
- status: 403;
19494
+ status: 400;
19130
19495
  } | {
19131
19496
  input: {};
19132
19497
  output: {
@@ -19199,6 +19564,181 @@ declare const routes: import("hono/hono-base").HonoBase<{
19199
19564
  };
19200
19565
  };
19201
19566
  }, "/tasks"> | import("hono/types").MergeSchemaPath<{
19567
+ "/list/:workspace": {
19568
+ $get: {
19569
+ input: {
19570
+ param: {
19571
+ workspace: string;
19572
+ };
19573
+ };
19574
+ output: {
19575
+ success: true;
19576
+ phases: {
19577
+ updated_at: string | null;
19578
+ deleted_at: string | null;
19579
+ verified_at: string | null;
19580
+ suspended_at: string | null;
19581
+ created_at: string;
19582
+ id: string;
19583
+ workspaceId: string;
19584
+ name: string;
19585
+ sortOrder: number;
19586
+ }[];
19587
+ };
19588
+ outputFormat: "json";
19589
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19590
+ };
19591
+ };
19592
+ } & {
19593
+ "/create": {
19594
+ $post: {
19595
+ input: {};
19596
+ output: {
19597
+ success: false;
19598
+ error: never;
19599
+ };
19600
+ outputFormat: "json";
19601
+ status: 400;
19602
+ } | {
19603
+ input: {};
19604
+ output: {
19605
+ success: false;
19606
+ error: string;
19607
+ };
19608
+ outputFormat: "json";
19609
+ status: 409;
19610
+ } | {
19611
+ input: {};
19612
+ output: {
19613
+ success: true;
19614
+ phase: {
19615
+ id: string;
19616
+ created_at: string;
19617
+ name: string;
19618
+ workspaceId: string;
19619
+ sortOrder: number;
19620
+ updated_at: string | null;
19621
+ deleted_at: string | null;
19622
+ verified_at: string | null;
19623
+ suspended_at: string | null;
19624
+ };
19625
+ };
19626
+ outputFormat: "json";
19627
+ status: 201;
19628
+ };
19629
+ };
19630
+ } & {
19631
+ "/update": {
19632
+ $post: {
19633
+ input: {};
19634
+ output: {
19635
+ success: false;
19636
+ error: never;
19637
+ };
19638
+ outputFormat: "json";
19639
+ status: 400;
19640
+ } | {
19641
+ input: {};
19642
+ output: {
19643
+ success: false;
19644
+ error: string;
19645
+ };
19646
+ outputFormat: "json";
19647
+ status: 409;
19648
+ } | {
19649
+ input: {};
19650
+ output: {
19651
+ success: false;
19652
+ error: string;
19653
+ };
19654
+ outputFormat: "json";
19655
+ status: 404;
19656
+ } | {
19657
+ input: {};
19658
+ output: {
19659
+ success: true;
19660
+ phase: {
19661
+ updated_at: string | null;
19662
+ deleted_at: string | null;
19663
+ verified_at: string | null;
19664
+ suspended_at: string | null;
19665
+ created_at: string;
19666
+ id: string;
19667
+ workspaceId: string;
19668
+ name: string;
19669
+ sortOrder: number;
19670
+ };
19671
+ };
19672
+ outputFormat: "json";
19673
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19674
+ };
19675
+ };
19676
+ } & {
19677
+ "/reorder": {
19678
+ $post: {
19679
+ input: {};
19680
+ output: {
19681
+ success: false;
19682
+ error: string;
19683
+ };
19684
+ outputFormat: "json";
19685
+ status: 400;
19686
+ } | {
19687
+ input: {};
19688
+ output: {
19689
+ success: true;
19690
+ phases: {
19691
+ updated_at: string | null;
19692
+ deleted_at: string | null;
19693
+ verified_at: string | null;
19694
+ suspended_at: string | null;
19695
+ created_at: string;
19696
+ id: string;
19697
+ workspaceId: string;
19698
+ name: string;
19699
+ sortOrder: number;
19700
+ }[];
19701
+ };
19702
+ outputFormat: "json";
19703
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19704
+ };
19705
+ };
19706
+ } & {
19707
+ "/delete": {
19708
+ $post: {
19709
+ input: {};
19710
+ output: {
19711
+ success: false;
19712
+ error: never;
19713
+ };
19714
+ outputFormat: "json";
19715
+ status: 400;
19716
+ } | {
19717
+ input: {};
19718
+ output: {
19719
+ success: false;
19720
+ error: string;
19721
+ };
19722
+ outputFormat: "json";
19723
+ status: 404;
19724
+ } | {
19725
+ input: {};
19726
+ output: {
19727
+ success: false;
19728
+ error: string;
19729
+ };
19730
+ outputFormat: "json";
19731
+ status: 409;
19732
+ } | {
19733
+ input: {};
19734
+ output: {
19735
+ success: true;
19736
+ };
19737
+ outputFormat: "json";
19738
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19739
+ };
19740
+ };
19741
+ }, "/task-phases"> | import("hono/types").MergeSchemaPath<{
19202
19742
  "/list/:workspace": {
19203
19743
  $get: {
19204
19744
  input: {
@@ -20078,7 +20618,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
20078
20618
  subject: string;
20079
20619
  description: string | null;
20080
20620
  visibility: string | null;
20081
- status: string | null;
20621
+ phaseId: string | null;
20622
+ phaseName: string | null;
20623
+ phaseSortOrder: number | null;
20082
20624
  priority: string | null;
20083
20625
  created_at: string;
20084
20626
  workspaceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.179",
3
+ "version": "0.0.181",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,