@mestra-dev/contract 0.0.205 → 0.0.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2133 -1053
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
28
28
|
readonly info: {
|
|
29
29
|
readonly title: "Auth Service API";
|
|
30
30
|
readonly version: "1.5.12";
|
|
31
|
-
readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Payments, Analytics, Tasks, Templates, Tags, Comments, Assignees, Chat, Events, Billings, CInvoices, Customer History, Files, and Notifications endpoints exposed by the k3-core platform. Unhandled HTTPException and unexpected errors are normalized by the global error handler to `{ success: false, error: string }` (status preserved for HTTPException; 500 otherwise).";
|
|
31
|
+
readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Payments, Analytics, Tasks, Templates, Tags, Failure Reasons, Comments, Assignees, Chat, Events, Billings, CInvoices, Customer History, Files, and Notifications endpoints exposed by the k3-core platform. Unhandled HTTPException and unexpected errors are normalized by the global error handler to `{ success: false, error: string }` (status preserved for HTTPException; 500 otherwise).";
|
|
32
32
|
};
|
|
33
33
|
readonly servers: readonly [
|
|
34
34
|
{
|
|
@@ -77,6 +77,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
77
77
|
readonly name: "Tags";
|
|
78
78
|
readonly description: "Workspace tag CRUD and assignment to tasks or customers; list/create accept crm::tasks or crm::customers access; update/delete require crm::general write.";
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
readonly name: "Failure Reasons";
|
|
82
|
+
readonly description: "Workspace failure-reason CRUD and assignment to tasks. Requires workspace access and crm::tasks read or write.";
|
|
83
|
+
},
|
|
80
84
|
{
|
|
81
85
|
readonly name: "Comments";
|
|
82
86
|
readonly description: "Comment create, list, edit, and delete on tasks; create requires crm::tasks read, edit/delete require write.";
|
|
@@ -1550,6 +1554,96 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1550
1554
|
};
|
|
1551
1555
|
};
|
|
1552
1556
|
};
|
|
1557
|
+
readonly FailureReason: {
|
|
1558
|
+
readonly type: "object";
|
|
1559
|
+
readonly required: readonly [
|
|
1560
|
+
"id",
|
|
1561
|
+
"workspaceId",
|
|
1562
|
+
"title"
|
|
1563
|
+
];
|
|
1564
|
+
readonly properties: {
|
|
1565
|
+
readonly id: {
|
|
1566
|
+
readonly type: "string";
|
|
1567
|
+
readonly format: "uuid";
|
|
1568
|
+
readonly description: "Failure reason identifier.";
|
|
1569
|
+
};
|
|
1570
|
+
readonly workspaceId: {
|
|
1571
|
+
readonly type: "string";
|
|
1572
|
+
readonly format: "uuid";
|
|
1573
|
+
readonly description: "Workspace the failure reason belongs to.";
|
|
1574
|
+
};
|
|
1575
|
+
readonly title: {
|
|
1576
|
+
readonly type: "string";
|
|
1577
|
+
readonly description: "Failure reason title.";
|
|
1578
|
+
};
|
|
1579
|
+
readonly description: {
|
|
1580
|
+
readonly type: "string";
|
|
1581
|
+
readonly nullable: true;
|
|
1582
|
+
readonly description: "Optional failure reason description.";
|
|
1583
|
+
};
|
|
1584
|
+
readonly created_at: {
|
|
1585
|
+
readonly type: "string";
|
|
1586
|
+
readonly format: "date-time";
|
|
1587
|
+
readonly nullable: true;
|
|
1588
|
+
};
|
|
1589
|
+
readonly updated_at: {
|
|
1590
|
+
readonly type: "string";
|
|
1591
|
+
readonly format: "date-time";
|
|
1592
|
+
readonly nullable: true;
|
|
1593
|
+
};
|
|
1594
|
+
readonly deleted_at: {
|
|
1595
|
+
readonly type: "string";
|
|
1596
|
+
readonly format: "date-time";
|
|
1597
|
+
readonly nullable: true;
|
|
1598
|
+
};
|
|
1599
|
+
readonly verified_at: {
|
|
1600
|
+
readonly type: "string";
|
|
1601
|
+
readonly format: "date-time";
|
|
1602
|
+
readonly nullable: true;
|
|
1603
|
+
};
|
|
1604
|
+
readonly suspended_at: {
|
|
1605
|
+
readonly type: "string";
|
|
1606
|
+
readonly format: "date-time";
|
|
1607
|
+
readonly nullable: true;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
readonly ListFailureReasonsSuccess: {
|
|
1612
|
+
readonly type: "object";
|
|
1613
|
+
readonly required: readonly [
|
|
1614
|
+
"success",
|
|
1615
|
+
"reasons"
|
|
1616
|
+
];
|
|
1617
|
+
readonly properties: {
|
|
1618
|
+
readonly success: {
|
|
1619
|
+
readonly type: "boolean";
|
|
1620
|
+
readonly const: true;
|
|
1621
|
+
};
|
|
1622
|
+
readonly reasons: {
|
|
1623
|
+
readonly type: "array";
|
|
1624
|
+
readonly items: {
|
|
1625
|
+
readonly $ref: "#/components/schemas/FailureReason";
|
|
1626
|
+
};
|
|
1627
|
+
readonly description: "Failure reasons in the workspace.";
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
readonly FailureReasonSuccess: {
|
|
1632
|
+
readonly type: "object";
|
|
1633
|
+
readonly required: readonly [
|
|
1634
|
+
"success",
|
|
1635
|
+
"reason"
|
|
1636
|
+
];
|
|
1637
|
+
readonly properties: {
|
|
1638
|
+
readonly success: {
|
|
1639
|
+
readonly type: "boolean";
|
|
1640
|
+
readonly const: true;
|
|
1641
|
+
};
|
|
1642
|
+
readonly reason: {
|
|
1643
|
+
readonly $ref: "#/components/schemas/FailureReason";
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
};
|
|
1553
1647
|
readonly S3FileObject: {
|
|
1554
1648
|
readonly type: "object";
|
|
1555
1649
|
readonly properties: {
|
|
@@ -3063,6 +3157,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3063
3157
|
}
|
|
3064
3158
|
];
|
|
3065
3159
|
};
|
|
3160
|
+
readonly failureReasons: {
|
|
3161
|
+
readonly type: "array";
|
|
3162
|
+
readonly items: {
|
|
3163
|
+
readonly $ref: "#/components/schemas/FailureReason";
|
|
3164
|
+
};
|
|
3165
|
+
readonly description: "Failure reasons linked to the task.";
|
|
3166
|
+
};
|
|
3066
3167
|
};
|
|
3067
3168
|
};
|
|
3068
3169
|
readonly Comment: {
|
|
@@ -16272,43 +16373,35 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16272
16373
|
};
|
|
16273
16374
|
};
|
|
16274
16375
|
};
|
|
16275
|
-
readonly "/
|
|
16276
|
-
readonly
|
|
16376
|
+
readonly "/freason/list/{workspace}": {
|
|
16377
|
+
readonly get: {
|
|
16277
16378
|
readonly tags: readonly [
|
|
16278
|
-
"
|
|
16379
|
+
"Failure Reasons"
|
|
16279
16380
|
];
|
|
16280
|
-
readonly summary: "
|
|
16281
|
-
readonly description: "Returns
|
|
16381
|
+
readonly summary: "List failure reasons by workspace";
|
|
16382
|
+
readonly description: "Returns all failure reasons for the given workspace. Requires workspace access and read access to crm::tasks.";
|
|
16282
16383
|
readonly security: readonly [
|
|
16283
16384
|
never
|
|
16284
16385
|
];
|
|
16285
|
-
readonly
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
readonly "
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16386
|
+
readonly parameters: readonly [
|
|
16387
|
+
{
|
|
16388
|
+
readonly name: "workspace";
|
|
16389
|
+
readonly in: "path";
|
|
16390
|
+
readonly required: true;
|
|
16391
|
+
readonly schema: {
|
|
16392
|
+
readonly type: "string";
|
|
16393
|
+
readonly format: "uuid";
|
|
16292
16394
|
};
|
|
16293
|
-
|
|
16294
|
-
|
|
16395
|
+
readonly description: "Workspace identifier.";
|
|
16396
|
+
}
|
|
16397
|
+
];
|
|
16295
16398
|
readonly responses: {
|
|
16296
16399
|
readonly 200: {
|
|
16297
|
-
readonly description: "
|
|
16298
|
-
readonly content: {
|
|
16299
|
-
readonly "application/json": {
|
|
16300
|
-
readonly schema: {
|
|
16301
|
-
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
16302
|
-
};
|
|
16303
|
-
};
|
|
16304
|
-
};
|
|
16305
|
-
};
|
|
16306
|
-
readonly 400: {
|
|
16307
|
-
readonly description: "Invalid request payload or unsupported content type.";
|
|
16400
|
+
readonly description: "Failure reasons fetched successfully.";
|
|
16308
16401
|
readonly content: {
|
|
16309
16402
|
readonly "application/json": {
|
|
16310
16403
|
readonly schema: {
|
|
16311
|
-
readonly $ref: "#/components/schemas/
|
|
16404
|
+
readonly $ref: "#/components/schemas/ListFailureReasonsSuccess";
|
|
16312
16405
|
};
|
|
16313
16406
|
};
|
|
16314
16407
|
};
|
|
@@ -16324,17 +16417,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16324
16417
|
};
|
|
16325
16418
|
};
|
|
16326
16419
|
readonly 403: {
|
|
16327
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16328
|
-
readonly content: {
|
|
16329
|
-
readonly "application/json": {
|
|
16330
|
-
readonly schema: {
|
|
16331
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
16332
|
-
};
|
|
16333
|
-
};
|
|
16334
|
-
};
|
|
16335
|
-
};
|
|
16336
|
-
readonly 404: {
|
|
16337
|
-
readonly description: "Workspace or destination folder not found.";
|
|
16420
|
+
readonly description: "Forbidden - User lacks workspace access or read access to crm::tasks.";
|
|
16338
16421
|
readonly content: {
|
|
16339
16422
|
readonly "application/json": {
|
|
16340
16423
|
readonly schema: {
|
|
@@ -16346,43 +16429,45 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16346
16429
|
};
|
|
16347
16430
|
};
|
|
16348
16431
|
};
|
|
16349
|
-
readonly "/
|
|
16350
|
-
readonly
|
|
16432
|
+
readonly "/freason/get/{workspace}/{failureReasonId}": {
|
|
16433
|
+
readonly get: {
|
|
16351
16434
|
readonly tags: readonly [
|
|
16352
|
-
"
|
|
16435
|
+
"Failure Reasons"
|
|
16353
16436
|
];
|
|
16354
|
-
readonly summary: "
|
|
16355
|
-
readonly description: "
|
|
16437
|
+
readonly summary: "Get a failure reason";
|
|
16438
|
+
readonly description: "Returns a single failure reason by id. Requires workspace access and read access to crm::tasks.";
|
|
16356
16439
|
readonly security: readonly [
|
|
16357
16440
|
never
|
|
16358
16441
|
];
|
|
16359
|
-
readonly
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
readonly "
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16442
|
+
readonly parameters: readonly [
|
|
16443
|
+
{
|
|
16444
|
+
readonly name: "workspace";
|
|
16445
|
+
readonly in: "path";
|
|
16446
|
+
readonly required: true;
|
|
16447
|
+
readonly schema: {
|
|
16448
|
+
readonly type: "string";
|
|
16449
|
+
readonly format: "uuid";
|
|
16366
16450
|
};
|
|
16367
|
-
|
|
16368
|
-
|
|
16451
|
+
readonly description: "Workspace identifier.";
|
|
16452
|
+
},
|
|
16453
|
+
{
|
|
16454
|
+
readonly name: "failureReasonId";
|
|
16455
|
+
readonly in: "path";
|
|
16456
|
+
readonly required: true;
|
|
16457
|
+
readonly schema: {
|
|
16458
|
+
readonly type: "string";
|
|
16459
|
+
readonly format: "uuid";
|
|
16460
|
+
};
|
|
16461
|
+
readonly description: "Failure reason identifier.";
|
|
16462
|
+
}
|
|
16463
|
+
];
|
|
16369
16464
|
readonly responses: {
|
|
16370
16465
|
readonly 200: {
|
|
16371
|
-
readonly description: "
|
|
16372
|
-
readonly content: {
|
|
16373
|
-
readonly "application/json": {
|
|
16374
|
-
readonly schema: {
|
|
16375
|
-
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
16376
|
-
};
|
|
16377
|
-
};
|
|
16378
|
-
};
|
|
16379
|
-
};
|
|
16380
|
-
readonly 400: {
|
|
16381
|
-
readonly description: "Temporary object missing, file too large, invalid file type, or processing failed.";
|
|
16466
|
+
readonly description: "Failure reason fetched successfully.";
|
|
16382
16467
|
readonly content: {
|
|
16383
16468
|
readonly "application/json": {
|
|
16384
16469
|
readonly schema: {
|
|
16385
|
-
readonly $ref: "#/components/schemas/
|
|
16470
|
+
readonly $ref: "#/components/schemas/FailureReasonSuccess";
|
|
16386
16471
|
};
|
|
16387
16472
|
};
|
|
16388
16473
|
};
|
|
@@ -16398,7 +16483,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16398
16483
|
};
|
|
16399
16484
|
};
|
|
16400
16485
|
readonly 403: {
|
|
16401
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16486
|
+
readonly description: "Forbidden - User lacks workspace access or read access to crm::tasks.";
|
|
16402
16487
|
readonly content: {
|
|
16403
16488
|
readonly "application/json": {
|
|
16404
16489
|
readonly schema: {
|
|
@@ -16408,7 +16493,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16408
16493
|
};
|
|
16409
16494
|
};
|
|
16410
16495
|
readonly 404: {
|
|
16411
|
-
readonly description: "
|
|
16496
|
+
readonly description: "Failure reason not found.";
|
|
16412
16497
|
readonly content: {
|
|
16413
16498
|
readonly "application/json": {
|
|
16414
16499
|
readonly schema: {
|
|
@@ -16420,13 +16505,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16420
16505
|
};
|
|
16421
16506
|
};
|
|
16422
16507
|
};
|
|
16423
|
-
readonly "/
|
|
16508
|
+
readonly "/freason/create": {
|
|
16424
16509
|
readonly post: {
|
|
16425
16510
|
readonly tags: readonly [
|
|
16426
|
-
"
|
|
16511
|
+
"Failure Reasons"
|
|
16427
16512
|
];
|
|
16428
|
-
readonly summary: "Create
|
|
16429
|
-
readonly description: "Creates
|
|
16513
|
+
readonly summary: "Create a failure reason";
|
|
16514
|
+
readonly description: "Creates a failure reason in the specified workspace. Requires workspace access and write access to crm::tasks.";
|
|
16430
16515
|
readonly security: readonly [
|
|
16431
16516
|
never
|
|
16432
16517
|
];
|
|
@@ -16435,18 +16520,39 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16435
16520
|
readonly content: {
|
|
16436
16521
|
readonly "application/json": {
|
|
16437
16522
|
readonly schema: {
|
|
16438
|
-
readonly
|
|
16523
|
+
readonly type: "object";
|
|
16524
|
+
readonly required: readonly [
|
|
16525
|
+
"workspace",
|
|
16526
|
+
"title"
|
|
16527
|
+
];
|
|
16528
|
+
readonly properties: {
|
|
16529
|
+
readonly workspace: {
|
|
16530
|
+
readonly type: "string";
|
|
16531
|
+
readonly format: "uuid";
|
|
16532
|
+
readonly description: "Workspace identifier.";
|
|
16533
|
+
};
|
|
16534
|
+
readonly title: {
|
|
16535
|
+
readonly type: "string";
|
|
16536
|
+
readonly maxLength: 256;
|
|
16537
|
+
readonly description: "Failure reason title.";
|
|
16538
|
+
};
|
|
16539
|
+
readonly description: {
|
|
16540
|
+
readonly type: "string";
|
|
16541
|
+
readonly maxLength: 256;
|
|
16542
|
+
readonly description: "Optional failure reason description.";
|
|
16543
|
+
};
|
|
16544
|
+
};
|
|
16439
16545
|
};
|
|
16440
16546
|
};
|
|
16441
16547
|
};
|
|
16442
16548
|
};
|
|
16443
16549
|
readonly responses: {
|
|
16444
16550
|
readonly 201: {
|
|
16445
|
-
readonly description: "
|
|
16551
|
+
readonly description: "Failure reason created successfully.";
|
|
16446
16552
|
readonly content: {
|
|
16447
16553
|
readonly "application/json": {
|
|
16448
16554
|
readonly schema: {
|
|
16449
|
-
readonly $ref: "#/components/schemas/
|
|
16555
|
+
readonly $ref: "#/components/schemas/FailureReasonSuccess";
|
|
16450
16556
|
};
|
|
16451
16557
|
};
|
|
16452
16558
|
};
|
|
@@ -16472,7 +16578,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16472
16578
|
};
|
|
16473
16579
|
};
|
|
16474
16580
|
readonly 403: {
|
|
16475
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16581
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16476
16582
|
readonly content: {
|
|
16477
16583
|
readonly "application/json": {
|
|
16478
16584
|
readonly schema: {
|
|
@@ -16481,8 +16587,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16481
16587
|
};
|
|
16482
16588
|
};
|
|
16483
16589
|
};
|
|
16484
|
-
readonly
|
|
16485
|
-
readonly description: "
|
|
16590
|
+
readonly 409: {
|
|
16591
|
+
readonly description: "A failure reason with this title already exists.";
|
|
16486
16592
|
readonly content: {
|
|
16487
16593
|
readonly "application/json": {
|
|
16488
16594
|
readonly schema: {
|
|
@@ -16494,13 +16600,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16494
16600
|
};
|
|
16495
16601
|
};
|
|
16496
16602
|
};
|
|
16497
|
-
readonly "/
|
|
16603
|
+
readonly "/freason/update": {
|
|
16498
16604
|
readonly post: {
|
|
16499
16605
|
readonly tags: readonly [
|
|
16500
|
-
"
|
|
16606
|
+
"Failure Reasons"
|
|
16501
16607
|
];
|
|
16502
|
-
readonly summary: "
|
|
16503
|
-
readonly description: "
|
|
16608
|
+
readonly summary: "Update a failure reason";
|
|
16609
|
+
readonly description: "Updates a failure reason's title and/or description. Requires workspace access and write access to crm::tasks.";
|
|
16504
16610
|
readonly security: readonly [
|
|
16505
16611
|
never
|
|
16506
16612
|
];
|
|
@@ -16509,18 +16615,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16509
16615
|
readonly content: {
|
|
16510
16616
|
readonly "application/json": {
|
|
16511
16617
|
readonly schema: {
|
|
16512
|
-
readonly
|
|
16618
|
+
readonly type: "object";
|
|
16619
|
+
readonly required: readonly [
|
|
16620
|
+
"failureReasonId",
|
|
16621
|
+
"workspace"
|
|
16622
|
+
];
|
|
16623
|
+
readonly properties: {
|
|
16624
|
+
readonly failureReasonId: {
|
|
16625
|
+
readonly type: "string";
|
|
16626
|
+
readonly format: "uuid";
|
|
16627
|
+
readonly description: "Failure reason identifier.";
|
|
16628
|
+
};
|
|
16629
|
+
readonly workspace: {
|
|
16630
|
+
readonly type: "string";
|
|
16631
|
+
readonly format: "uuid";
|
|
16632
|
+
readonly description: "Workspace identifier.";
|
|
16633
|
+
};
|
|
16634
|
+
readonly title: {
|
|
16635
|
+
readonly type: "string";
|
|
16636
|
+
readonly maxLength: 256;
|
|
16637
|
+
readonly description: "Updated failure reason title.";
|
|
16638
|
+
};
|
|
16639
|
+
readonly description: {
|
|
16640
|
+
readonly type: "string";
|
|
16641
|
+
readonly maxLength: 256;
|
|
16642
|
+
readonly description: "Updated failure reason description.";
|
|
16643
|
+
};
|
|
16644
|
+
};
|
|
16513
16645
|
};
|
|
16514
16646
|
};
|
|
16515
16647
|
};
|
|
16516
16648
|
};
|
|
16517
16649
|
readonly responses: {
|
|
16518
16650
|
readonly 200: {
|
|
16519
|
-
readonly description: "
|
|
16651
|
+
readonly description: "Failure reason updated successfully.";
|
|
16520
16652
|
readonly content: {
|
|
16521
16653
|
readonly "application/json": {
|
|
16522
16654
|
readonly schema: {
|
|
16523
|
-
readonly $ref: "#/components/schemas/
|
|
16655
|
+
readonly $ref: "#/components/schemas/FailureReasonSuccess";
|
|
16524
16656
|
};
|
|
16525
16657
|
};
|
|
16526
16658
|
};
|
|
@@ -16546,7 +16678,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16546
16678
|
};
|
|
16547
16679
|
};
|
|
16548
16680
|
readonly 403: {
|
|
16549
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16681
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16550
16682
|
readonly content: {
|
|
16551
16683
|
readonly "application/json": {
|
|
16552
16684
|
readonly schema: {
|
|
@@ -16556,7 +16688,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16556
16688
|
};
|
|
16557
16689
|
};
|
|
16558
16690
|
readonly 404: {
|
|
16559
|
-
readonly description: "
|
|
16691
|
+
readonly description: "Failure reason not found.";
|
|
16692
|
+
readonly content: {
|
|
16693
|
+
readonly "application/json": {
|
|
16694
|
+
readonly schema: {
|
|
16695
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
16696
|
+
};
|
|
16697
|
+
};
|
|
16698
|
+
};
|
|
16699
|
+
};
|
|
16700
|
+
readonly 409: {
|
|
16701
|
+
readonly description: "A failure reason with this title already exists.";
|
|
16560
16702
|
readonly content: {
|
|
16561
16703
|
readonly "application/json": {
|
|
16562
16704
|
readonly schema: {
|
|
@@ -16568,41 +16710,55 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16568
16710
|
};
|
|
16569
16711
|
};
|
|
16570
16712
|
};
|
|
16571
|
-
readonly "/
|
|
16572
|
-
readonly
|
|
16713
|
+
readonly "/freason/delete": {
|
|
16714
|
+
readonly post: {
|
|
16573
16715
|
readonly tags: readonly [
|
|
16574
|
-
"
|
|
16716
|
+
"Failure Reasons"
|
|
16575
16717
|
];
|
|
16576
|
-
readonly summary: "
|
|
16577
|
-
readonly description: "
|
|
16718
|
+
readonly summary: "Delete a failure reason";
|
|
16719
|
+
readonly description: "Deletes a failure reason from the workspace. Requires workspace access and write access to crm::tasks.";
|
|
16578
16720
|
readonly security: readonly [
|
|
16579
16721
|
never
|
|
16580
16722
|
];
|
|
16581
|
-
readonly
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
readonly
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16723
|
+
readonly requestBody: {
|
|
16724
|
+
readonly required: true;
|
|
16725
|
+
readonly content: {
|
|
16726
|
+
readonly "application/json": {
|
|
16727
|
+
readonly schema: {
|
|
16728
|
+
readonly type: "object";
|
|
16729
|
+
readonly required: readonly [
|
|
16730
|
+
"failureReasonId",
|
|
16731
|
+
"workspace"
|
|
16732
|
+
];
|
|
16733
|
+
readonly properties: {
|
|
16734
|
+
readonly failureReasonId: {
|
|
16735
|
+
readonly type: "string";
|
|
16736
|
+
readonly format: "uuid";
|
|
16737
|
+
readonly description: "Failure reason identifier.";
|
|
16738
|
+
};
|
|
16739
|
+
readonly workspace: {
|
|
16740
|
+
readonly type: "string";
|
|
16741
|
+
readonly format: "uuid";
|
|
16742
|
+
readonly description: "Workspace identifier.";
|
|
16743
|
+
};
|
|
16744
|
+
};
|
|
16745
|
+
};
|
|
16589
16746
|
};
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
];
|
|
16747
|
+
};
|
|
16748
|
+
};
|
|
16593
16749
|
readonly responses: {
|
|
16594
16750
|
readonly 200: {
|
|
16595
|
-
readonly description: "
|
|
16751
|
+
readonly description: "Failure reason deleted successfully.";
|
|
16596
16752
|
readonly content: {
|
|
16597
16753
|
readonly "application/json": {
|
|
16598
16754
|
readonly schema: {
|
|
16599
|
-
readonly $ref: "#/components/schemas/
|
|
16755
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
16600
16756
|
};
|
|
16601
16757
|
};
|
|
16602
16758
|
};
|
|
16603
16759
|
};
|
|
16604
16760
|
readonly 400: {
|
|
16605
|
-
readonly description: "Invalid
|
|
16761
|
+
readonly description: "Invalid request payload.";
|
|
16606
16762
|
readonly content: {
|
|
16607
16763
|
readonly "application/json": {
|
|
16608
16764
|
readonly schema: {
|
|
@@ -16622,7 +16778,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16622
16778
|
};
|
|
16623
16779
|
};
|
|
16624
16780
|
readonly 403: {
|
|
16625
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16781
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16626
16782
|
readonly content: {
|
|
16627
16783
|
readonly "application/json": {
|
|
16628
16784
|
readonly schema: {
|
|
@@ -16632,7 +16788,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16632
16788
|
};
|
|
16633
16789
|
};
|
|
16634
16790
|
readonly 404: {
|
|
16635
|
-
readonly description: "
|
|
16791
|
+
readonly description: "Failure reason not found.";
|
|
16636
16792
|
readonly content: {
|
|
16637
16793
|
readonly "application/json": {
|
|
16638
16794
|
readonly schema: {
|
|
@@ -16644,13 +16800,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16644
16800
|
};
|
|
16645
16801
|
};
|
|
16646
16802
|
};
|
|
16647
|
-
readonly "/
|
|
16803
|
+
readonly "/freason/list/{workspace}/{taskId}": {
|
|
16648
16804
|
readonly get: {
|
|
16649
16805
|
readonly tags: readonly [
|
|
16650
|
-
"
|
|
16806
|
+
"Failure Reasons"
|
|
16651
16807
|
];
|
|
16652
|
-
readonly summary: "
|
|
16653
|
-
readonly description: "Returns
|
|
16808
|
+
readonly summary: "List failure reasons on a task";
|
|
16809
|
+
readonly description: "Returns failure reasons linked to the given task. Requires workspace access and read access to crm::tasks.";
|
|
16654
16810
|
readonly security: readonly [
|
|
16655
16811
|
never
|
|
16656
16812
|
];
|
|
@@ -16664,15 +16820,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16664
16820
|
readonly format: "uuid";
|
|
16665
16821
|
};
|
|
16666
16822
|
readonly description: "Workspace identifier.";
|
|
16823
|
+
},
|
|
16824
|
+
{
|
|
16825
|
+
readonly name: "taskId";
|
|
16826
|
+
readonly in: "path";
|
|
16827
|
+
readonly required: true;
|
|
16828
|
+
readonly schema: {
|
|
16829
|
+
readonly type: "string";
|
|
16830
|
+
readonly format: "uuid";
|
|
16831
|
+
};
|
|
16832
|
+
readonly description: "Task identifier.";
|
|
16667
16833
|
}
|
|
16668
16834
|
];
|
|
16669
16835
|
readonly responses: {
|
|
16670
16836
|
readonly 200: {
|
|
16671
|
-
readonly description: "
|
|
16837
|
+
readonly description: "Task failure reasons fetched successfully.";
|
|
16672
16838
|
readonly content: {
|
|
16673
16839
|
readonly "application/json": {
|
|
16674
16840
|
readonly schema: {
|
|
16675
|
-
readonly $ref: "#/components/schemas/
|
|
16841
|
+
readonly $ref: "#/components/schemas/ListFailureReasonsSuccess";
|
|
16676
16842
|
};
|
|
16677
16843
|
};
|
|
16678
16844
|
};
|
|
@@ -16688,7 +16854,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16688
16854
|
};
|
|
16689
16855
|
};
|
|
16690
16856
|
readonly 403: {
|
|
16691
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16857
|
+
readonly description: "Forbidden - User lacks workspace access or read access to crm::tasks.";
|
|
16692
16858
|
readonly content: {
|
|
16693
16859
|
readonly "application/json": {
|
|
16694
16860
|
readonly schema: {
|
|
@@ -16698,7 +16864,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16698
16864
|
};
|
|
16699
16865
|
};
|
|
16700
16866
|
readonly 404: {
|
|
16701
|
-
readonly description: "
|
|
16867
|
+
readonly description: "Task not found.";
|
|
16702
16868
|
readonly content: {
|
|
16703
16869
|
readonly "application/json": {
|
|
16704
16870
|
readonly schema: {
|
|
@@ -16710,50 +16876,64 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16710
16876
|
};
|
|
16711
16877
|
};
|
|
16712
16878
|
};
|
|
16713
|
-
readonly "/
|
|
16714
|
-
readonly
|
|
16879
|
+
readonly "/freason/assign-to-task": {
|
|
16880
|
+
readonly post: {
|
|
16715
16881
|
readonly tags: readonly [
|
|
16716
|
-
"
|
|
16882
|
+
"Failure Reasons"
|
|
16717
16883
|
];
|
|
16718
|
-
readonly summary: "
|
|
16719
|
-
readonly description: "
|
|
16884
|
+
readonly summary: "Assign failure reasons to a task";
|
|
16885
|
+
readonly description: "Links existing workspace failure reasons to a task. Already-linked reasons are ignored. Requires workspace access and write access to crm::tasks.";
|
|
16720
16886
|
readonly security: readonly [
|
|
16721
16887
|
never
|
|
16722
16888
|
];
|
|
16723
|
-
readonly
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
readonly
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16889
|
+
readonly requestBody: {
|
|
16890
|
+
readonly required: true;
|
|
16891
|
+
readonly content: {
|
|
16892
|
+
readonly "application/json": {
|
|
16893
|
+
readonly schema: {
|
|
16894
|
+
readonly type: "object";
|
|
16895
|
+
readonly required: readonly [
|
|
16896
|
+
"workspace",
|
|
16897
|
+
"taskId",
|
|
16898
|
+
"failureReasonIds"
|
|
16899
|
+
];
|
|
16900
|
+
readonly properties: {
|
|
16901
|
+
readonly workspace: {
|
|
16902
|
+
readonly type: "string";
|
|
16903
|
+
readonly format: "uuid";
|
|
16904
|
+
readonly description: "Workspace identifier.";
|
|
16905
|
+
};
|
|
16906
|
+
readonly taskId: {
|
|
16907
|
+
readonly type: "string";
|
|
16908
|
+
readonly format: "uuid";
|
|
16909
|
+
readonly description: "Task identifier.";
|
|
16910
|
+
};
|
|
16911
|
+
readonly failureReasonIds: {
|
|
16912
|
+
readonly type: "array";
|
|
16913
|
+
readonly items: {
|
|
16914
|
+
readonly type: "string";
|
|
16915
|
+
readonly format: "uuid";
|
|
16916
|
+
};
|
|
16917
|
+
readonly description: "Failure reason identifiers.";
|
|
16918
|
+
};
|
|
16919
|
+
};
|
|
16920
|
+
};
|
|
16740
16921
|
};
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
];
|
|
16922
|
+
};
|
|
16923
|
+
};
|
|
16744
16924
|
readonly responses: {
|
|
16745
16925
|
readonly 200: {
|
|
16746
|
-
readonly description: "
|
|
16926
|
+
readonly description: "Failure reason assigned to task successfully.";
|
|
16747
16927
|
readonly content: {
|
|
16748
16928
|
readonly "application/json": {
|
|
16749
16929
|
readonly schema: {
|
|
16750
|
-
readonly $ref: "#/components/schemas/
|
|
16930
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
16751
16931
|
};
|
|
16752
16932
|
};
|
|
16753
16933
|
};
|
|
16754
16934
|
};
|
|
16755
16935
|
readonly 400: {
|
|
16756
|
-
readonly description: "Invalid
|
|
16936
|
+
readonly description: "Invalid request payload.";
|
|
16757
16937
|
readonly content: {
|
|
16758
16938
|
readonly "application/json": {
|
|
16759
16939
|
readonly schema: {
|
|
@@ -16773,7 +16953,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16773
16953
|
};
|
|
16774
16954
|
};
|
|
16775
16955
|
readonly 403: {
|
|
16776
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16956
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16777
16957
|
readonly content: {
|
|
16778
16958
|
readonly "application/json": {
|
|
16779
16959
|
readonly schema: {
|
|
@@ -16783,7 +16963,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16783
16963
|
};
|
|
16784
16964
|
};
|
|
16785
16965
|
readonly 404: {
|
|
16786
|
-
readonly description: "
|
|
16966
|
+
readonly description: "Failure reason or task not found.";
|
|
16787
16967
|
readonly content: {
|
|
16788
16968
|
readonly "application/json": {
|
|
16789
16969
|
readonly schema: {
|
|
@@ -16795,13 +16975,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16795
16975
|
};
|
|
16796
16976
|
};
|
|
16797
16977
|
};
|
|
16798
|
-
readonly "/
|
|
16978
|
+
readonly "/freason/remove-from-task": {
|
|
16799
16979
|
readonly post: {
|
|
16800
16980
|
readonly tags: readonly [
|
|
16801
|
-
"
|
|
16981
|
+
"Failure Reasons"
|
|
16802
16982
|
];
|
|
16803
|
-
readonly summary: "
|
|
16804
|
-
readonly description: "
|
|
16983
|
+
readonly summary: "Remove failure reasons from a task";
|
|
16984
|
+
readonly description: "Unlinks existing workspace failure reasons from a task. Requires workspace access and write access to crm::tasks.";
|
|
16805
16985
|
readonly security: readonly [
|
|
16806
16986
|
never
|
|
16807
16987
|
];
|
|
@@ -16810,18 +16990,43 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16810
16990
|
readonly content: {
|
|
16811
16991
|
readonly "application/json": {
|
|
16812
16992
|
readonly schema: {
|
|
16813
|
-
readonly
|
|
16993
|
+
readonly type: "object";
|
|
16994
|
+
readonly required: readonly [
|
|
16995
|
+
"workspace",
|
|
16996
|
+
"taskId",
|
|
16997
|
+
"failureReasonIds"
|
|
16998
|
+
];
|
|
16999
|
+
readonly properties: {
|
|
17000
|
+
readonly workspace: {
|
|
17001
|
+
readonly type: "string";
|
|
17002
|
+
readonly format: "uuid";
|
|
17003
|
+
readonly description: "Workspace identifier.";
|
|
17004
|
+
};
|
|
17005
|
+
readonly taskId: {
|
|
17006
|
+
readonly type: "string";
|
|
17007
|
+
readonly format: "uuid";
|
|
17008
|
+
readonly description: "Task identifier.";
|
|
17009
|
+
};
|
|
17010
|
+
readonly failureReasonIds: {
|
|
17011
|
+
readonly type: "array";
|
|
17012
|
+
readonly items: {
|
|
17013
|
+
readonly type: "string";
|
|
17014
|
+
readonly format: "uuid";
|
|
17015
|
+
};
|
|
17016
|
+
readonly description: "Failure reason identifiers.";
|
|
17017
|
+
};
|
|
17018
|
+
};
|
|
16814
17019
|
};
|
|
16815
17020
|
};
|
|
16816
17021
|
};
|
|
16817
17022
|
};
|
|
16818
17023
|
readonly responses: {
|
|
16819
17024
|
readonly 200: {
|
|
16820
|
-
readonly description: "
|
|
17025
|
+
readonly description: "Failure reason removed from task successfully.";
|
|
16821
17026
|
readonly content: {
|
|
16822
17027
|
readonly "application/json": {
|
|
16823
17028
|
readonly schema: {
|
|
16824
|
-
readonly $ref: "#/components/schemas/
|
|
17029
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
16825
17030
|
};
|
|
16826
17031
|
};
|
|
16827
17032
|
};
|
|
@@ -16847,7 +17052,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16847
17052
|
};
|
|
16848
17053
|
};
|
|
16849
17054
|
readonly 403: {
|
|
16850
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
17055
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16851
17056
|
readonly content: {
|
|
16852
17057
|
readonly "application/json": {
|
|
16853
17058
|
readonly schema: {
|
|
@@ -16857,7 +17062,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16857
17062
|
};
|
|
16858
17063
|
};
|
|
16859
17064
|
readonly 404: {
|
|
16860
|
-
readonly description: "
|
|
17065
|
+
readonly description: "Failure reason or task not found.";
|
|
16861
17066
|
readonly content: {
|
|
16862
17067
|
readonly "application/json": {
|
|
16863
17068
|
readonly schema: {
|
|
@@ -16869,13 +17074,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16869
17074
|
};
|
|
16870
17075
|
};
|
|
16871
17076
|
};
|
|
16872
|
-
readonly "/files/
|
|
17077
|
+
readonly "/files/upload": {
|
|
16873
17078
|
readonly post: {
|
|
16874
17079
|
readonly tags: readonly [
|
|
16875
17080
|
"Files"
|
|
16876
17081
|
];
|
|
16877
|
-
readonly summary: "
|
|
16878
|
-
readonly description: "
|
|
17082
|
+
readonly summary: "Create presigned S3 upload";
|
|
17083
|
+
readonly description: "Returns a presigned POST URL and form fields for uploading a file to S3 (max 15 MB, 5-minute expiry). Root object key is `{workspace}/{filename}.tmp`. With optional `folder`, key is `{workspace}/folders/{folder}/{filename}.tmp` and the folder marker must already exist. Only JPEG, PNG, WebP, and PDF content types are accepted. After the multipart upload succeeds, call `/files/confirm` with the same `filename` and `folder` to validate magic bytes and promote the object. Temporary objects are excluded from list results. Requires active workspace access and write access to crm::files.";
|
|
16879
17084
|
readonly security: readonly [
|
|
16880
17085
|
never
|
|
16881
17086
|
];
|
|
@@ -16884,24 +17089,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16884
17089
|
readonly content: {
|
|
16885
17090
|
readonly "application/json": {
|
|
16886
17091
|
readonly schema: {
|
|
16887
|
-
readonly $ref: "#/components/schemas/
|
|
17092
|
+
readonly $ref: "#/components/schemas/UploadFileRequest";
|
|
16888
17093
|
};
|
|
16889
17094
|
};
|
|
16890
17095
|
};
|
|
16891
17096
|
};
|
|
16892
17097
|
readonly responses: {
|
|
16893
17098
|
readonly 200: {
|
|
16894
|
-
readonly description: "
|
|
17099
|
+
readonly description: "Presigned upload created.";
|
|
16895
17100
|
readonly content: {
|
|
16896
17101
|
readonly "application/json": {
|
|
16897
17102
|
readonly schema: {
|
|
16898
|
-
readonly $ref: "#/components/schemas/
|
|
17103
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
16899
17104
|
};
|
|
16900
17105
|
};
|
|
16901
17106
|
};
|
|
16902
17107
|
};
|
|
16903
17108
|
readonly 400: {
|
|
16904
|
-
readonly description: "Invalid request payload.";
|
|
17109
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
16905
17110
|
readonly content: {
|
|
16906
17111
|
readonly "application/json": {
|
|
16907
17112
|
readonly schema: {
|
|
@@ -16931,21 +17136,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16931
17136
|
};
|
|
16932
17137
|
};
|
|
16933
17138
|
readonly 404: {
|
|
16934
|
-
readonly description: "
|
|
16935
|
-
readonly content: {
|
|
16936
|
-
readonly "application/json": {
|
|
16937
|
-
readonly schema: {
|
|
16938
|
-
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
16939
|
-
};
|
|
16940
|
-
};
|
|
16941
|
-
};
|
|
16942
|
-
};
|
|
16943
|
-
readonly 500: {
|
|
16944
|
-
readonly description: "Delete failed (object still present after delete).";
|
|
17139
|
+
readonly description: "Workspace or destination folder not found.";
|
|
16945
17140
|
readonly content: {
|
|
16946
17141
|
readonly "application/json": {
|
|
16947
17142
|
readonly schema: {
|
|
16948
|
-
readonly $ref: "#/components/schemas/
|
|
17143
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
16949
17144
|
};
|
|
16950
17145
|
};
|
|
16951
17146
|
};
|
|
@@ -16953,13 +17148,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16953
17148
|
};
|
|
16954
17149
|
};
|
|
16955
17150
|
};
|
|
16956
|
-
readonly "/files/
|
|
17151
|
+
readonly "/files/confirm": {
|
|
16957
17152
|
readonly post: {
|
|
16958
17153
|
readonly tags: readonly [
|
|
16959
17154
|
"Files"
|
|
16960
17155
|
];
|
|
16961
|
-
readonly summary: "
|
|
16962
|
-
readonly description: "
|
|
17156
|
+
readonly summary: "Confirm and promote a temporary upload";
|
|
17157
|
+
readonly description: "Reads the temporary object (root or under `folders/{folder}/`), verifies size (<= 15 MB) and real file type (JPEG, PNG, WebP, or PDF), promotes it to the final key, and deletes the temporary object. On failure, the temporary object is deleted. Requires workspace access.";
|
|
16963
17158
|
readonly security: readonly [
|
|
16964
17159
|
never
|
|
16965
17160
|
];
|
|
@@ -16968,24 +17163,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16968
17163
|
readonly content: {
|
|
16969
17164
|
readonly "application/json": {
|
|
16970
17165
|
readonly schema: {
|
|
16971
|
-
readonly $ref: "#/components/schemas/
|
|
17166
|
+
readonly $ref: "#/components/schemas/ConfirmFileRequest";
|
|
16972
17167
|
};
|
|
16973
17168
|
};
|
|
16974
17169
|
};
|
|
16975
17170
|
};
|
|
16976
17171
|
readonly responses: {
|
|
16977
17172
|
readonly 200: {
|
|
16978
|
-
readonly description: "File
|
|
17173
|
+
readonly description: "File confirmed and promoted successfully.";
|
|
16979
17174
|
readonly content: {
|
|
16980
17175
|
readonly "application/json": {
|
|
16981
17176
|
readonly schema: {
|
|
16982
|
-
readonly $ref: "#/components/schemas/
|
|
17177
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
16983
17178
|
};
|
|
16984
17179
|
};
|
|
16985
17180
|
};
|
|
16986
17181
|
};
|
|
16987
17182
|
readonly 400: {
|
|
16988
|
-
readonly description: "
|
|
17183
|
+
readonly description: "Temporary object missing, file too large, invalid file type, or processing failed.";
|
|
16989
17184
|
readonly content: {
|
|
16990
17185
|
readonly "application/json": {
|
|
16991
17186
|
readonly schema: {
|
|
@@ -17015,17 +17210,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17015
17210
|
};
|
|
17016
17211
|
};
|
|
17017
17212
|
readonly 404: {
|
|
17018
|
-
readonly description: "
|
|
17019
|
-
readonly content: {
|
|
17020
|
-
readonly "application/json": {
|
|
17021
|
-
readonly schema: {
|
|
17022
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17023
|
-
};
|
|
17024
|
-
};
|
|
17025
|
-
};
|
|
17026
|
-
};
|
|
17027
|
-
readonly 409: {
|
|
17028
|
-
readonly description: "Destination already exists.";
|
|
17213
|
+
readonly description: "Workspace or destination folder not found.";
|
|
17029
17214
|
readonly content: {
|
|
17030
17215
|
readonly "application/json": {
|
|
17031
17216
|
readonly schema: {
|
|
@@ -17037,13 +17222,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17037
17222
|
};
|
|
17038
17223
|
};
|
|
17039
17224
|
};
|
|
17040
|
-
readonly "/files/
|
|
17225
|
+
readonly "/files/create-folder": {
|
|
17041
17226
|
readonly post: {
|
|
17042
17227
|
readonly tags: readonly [
|
|
17043
17228
|
"Files"
|
|
17044
17229
|
];
|
|
17045
|
-
readonly summary: "Create
|
|
17046
|
-
readonly description: "
|
|
17230
|
+
readonly summary: "Create an empty S3 folder";
|
|
17231
|
+
readonly description: "Creates an empty folder marker in S3 at `{workspace}/folders/{name}/`. `name` may be nested (e.g. `contracts/2026`). Requires workspace access.";
|
|
17047
17232
|
readonly security: readonly [
|
|
17048
17233
|
never
|
|
17049
17234
|
];
|
|
@@ -17052,24 +17237,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17052
17237
|
readonly content: {
|
|
17053
17238
|
readonly "application/json": {
|
|
17054
17239
|
readonly schema: {
|
|
17055
|
-
readonly $ref: "#/components/schemas/
|
|
17240
|
+
readonly $ref: "#/components/schemas/CreateFolderRequest";
|
|
17056
17241
|
};
|
|
17057
17242
|
};
|
|
17058
17243
|
};
|
|
17059
17244
|
};
|
|
17060
17245
|
readonly responses: {
|
|
17061
|
-
readonly
|
|
17062
|
-
readonly description: "
|
|
17246
|
+
readonly 201: {
|
|
17247
|
+
readonly description: "Folder created successfully.";
|
|
17063
17248
|
readonly content: {
|
|
17064
17249
|
readonly "application/json": {
|
|
17065
17250
|
readonly schema: {
|
|
17066
|
-
readonly $ref: "#/components/schemas/
|
|
17251
|
+
readonly $ref: "#/components/schemas/CreateFolderSuccess";
|
|
17067
17252
|
};
|
|
17068
17253
|
};
|
|
17069
17254
|
};
|
|
17070
17255
|
};
|
|
17071
17256
|
readonly 400: {
|
|
17072
|
-
readonly description: "Invalid request payload
|
|
17257
|
+
readonly description: "Invalid request payload.";
|
|
17073
17258
|
readonly content: {
|
|
17074
17259
|
readonly "application/json": {
|
|
17075
17260
|
readonly schema: {
|
|
@@ -17089,7 +17274,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17089
17274
|
};
|
|
17090
17275
|
};
|
|
17091
17276
|
readonly 403: {
|
|
17092
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17277
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17093
17278
|
readonly content: {
|
|
17094
17279
|
readonly "application/json": {
|
|
17095
17280
|
readonly schema: {
|
|
@@ -17099,7 +17284,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17099
17284
|
};
|
|
17100
17285
|
};
|
|
17101
17286
|
readonly 404: {
|
|
17102
|
-
readonly description: "Workspace
|
|
17287
|
+
readonly description: "Workspace not found.";
|
|
17103
17288
|
readonly content: {
|
|
17104
17289
|
readonly "application/json": {
|
|
17105
17290
|
readonly schema: {
|
|
@@ -17111,13 +17296,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17111
17296
|
};
|
|
17112
17297
|
};
|
|
17113
17298
|
};
|
|
17114
|
-
readonly "/files/
|
|
17299
|
+
readonly "/files/delete-folder": {
|
|
17115
17300
|
readonly post: {
|
|
17116
17301
|
readonly tags: readonly [
|
|
17117
17302
|
"Files"
|
|
17118
17303
|
];
|
|
17119
|
-
readonly summary: "
|
|
17120
|
-
readonly description: "
|
|
17304
|
+
readonly summary: "Delete an S3 folder and its contents";
|
|
17305
|
+
readonly description: "Deletes all objects under `{workspace}/folders/{name}/` in paginated batches. `name` may be nested. Requires workspace access and file write access. This deletion remains available for a frozen Free-trial workspace so it can reduce storage before selecting a paid plan.";
|
|
17121
17306
|
readonly security: readonly [
|
|
17122
17307
|
never
|
|
17123
17308
|
];
|
|
@@ -17126,24 +17311,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17126
17311
|
readonly content: {
|
|
17127
17312
|
readonly "application/json": {
|
|
17128
17313
|
readonly schema: {
|
|
17129
|
-
readonly $ref: "#/components/schemas/
|
|
17314
|
+
readonly $ref: "#/components/schemas/CreateFolderRequest";
|
|
17130
17315
|
};
|
|
17131
17316
|
};
|
|
17132
17317
|
};
|
|
17133
17318
|
};
|
|
17134
17319
|
readonly responses: {
|
|
17135
17320
|
readonly 200: {
|
|
17136
|
-
readonly description: "
|
|
17321
|
+
readonly description: "Folder and all objects under its prefix deleted successfully.";
|
|
17137
17322
|
readonly content: {
|
|
17138
17323
|
readonly "application/json": {
|
|
17139
17324
|
readonly schema: {
|
|
17140
|
-
readonly $ref: "#/components/schemas/
|
|
17325
|
+
readonly $ref: "#/components/schemas/DeleteFolderSuccess";
|
|
17141
17326
|
};
|
|
17142
17327
|
};
|
|
17143
17328
|
};
|
|
17144
17329
|
};
|
|
17145
17330
|
readonly 400: {
|
|
17146
|
-
readonly description: "Invalid request payload
|
|
17331
|
+
readonly description: "Invalid request payload.";
|
|
17147
17332
|
readonly content: {
|
|
17148
17333
|
readonly "application/json": {
|
|
17149
17334
|
readonly schema: {
|
|
@@ -17163,7 +17348,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17163
17348
|
};
|
|
17164
17349
|
};
|
|
17165
17350
|
readonly 403: {
|
|
17166
|
-
readonly description: "Forbidden -
|
|
17351
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17167
17352
|
readonly content: {
|
|
17168
17353
|
readonly "application/json": {
|
|
17169
17354
|
readonly schema: {
|
|
@@ -17173,7 +17358,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17173
17358
|
};
|
|
17174
17359
|
};
|
|
17175
17360
|
readonly 404: {
|
|
17176
|
-
readonly description: "Workspace
|
|
17361
|
+
readonly description: "Workspace not found.";
|
|
17177
17362
|
readonly content: {
|
|
17178
17363
|
readonly "application/json": {
|
|
17179
17364
|
readonly schema: {
|
|
@@ -17185,39 +17370,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17185
17370
|
};
|
|
17186
17371
|
};
|
|
17187
17372
|
};
|
|
17188
|
-
readonly "/files/
|
|
17189
|
-
readonly
|
|
17373
|
+
readonly "/files/list/{workspace}": {
|
|
17374
|
+
readonly get: {
|
|
17190
17375
|
readonly tags: readonly [
|
|
17191
17376
|
"Files"
|
|
17192
17377
|
];
|
|
17193
|
-
readonly summary: "
|
|
17194
|
-
readonly description: "
|
|
17378
|
+
readonly summary: "List workspace files";
|
|
17379
|
+
readonly description: "Lists up to 50 S3 objects under the workspace prefix. Temporary uploads ending in `.tmp` are excluded. Each item includes `pin` from S3 object user metadata. Requires workspace access.";
|
|
17195
17380
|
readonly security: readonly [
|
|
17196
17381
|
never
|
|
17197
17382
|
];
|
|
17198
|
-
readonly
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
readonly "
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17383
|
+
readonly parameters: readonly [
|
|
17384
|
+
{
|
|
17385
|
+
readonly name: "workspace";
|
|
17386
|
+
readonly in: "path";
|
|
17387
|
+
readonly required: true;
|
|
17388
|
+
readonly schema: {
|
|
17389
|
+
readonly type: "string";
|
|
17390
|
+
readonly format: "uuid";
|
|
17205
17391
|
};
|
|
17206
|
-
|
|
17207
|
-
|
|
17392
|
+
readonly description: "Workspace identifier.";
|
|
17393
|
+
}
|
|
17394
|
+
];
|
|
17208
17395
|
readonly responses: {
|
|
17209
17396
|
readonly 200: {
|
|
17210
|
-
readonly description: "
|
|
17397
|
+
readonly description: "Files listed successfully.";
|
|
17211
17398
|
readonly content: {
|
|
17212
17399
|
readonly "application/json": {
|
|
17213
17400
|
readonly schema: {
|
|
17214
|
-
readonly $ref: "#/components/schemas/
|
|
17401
|
+
readonly $ref: "#/components/schemas/ListFilesSuccess";
|
|
17215
17402
|
};
|
|
17216
17403
|
};
|
|
17217
17404
|
};
|
|
17218
17405
|
};
|
|
17219
17406
|
readonly 400: {
|
|
17220
|
-
readonly description: "Invalid
|
|
17407
|
+
readonly description: "Invalid workspace id.";
|
|
17221
17408
|
readonly content: {
|
|
17222
17409
|
readonly "application/json": {
|
|
17223
17410
|
readonly schema: {
|
|
@@ -17237,7 +17424,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17237
17424
|
};
|
|
17238
17425
|
};
|
|
17239
17426
|
readonly 403: {
|
|
17240
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17427
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17241
17428
|
readonly content: {
|
|
17242
17429
|
readonly "application/json": {
|
|
17243
17430
|
readonly schema: {
|
|
@@ -17247,7 +17434,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17247
17434
|
};
|
|
17248
17435
|
};
|
|
17249
17436
|
readonly 404: {
|
|
17250
|
-
readonly description: "Workspace
|
|
17437
|
+
readonly description: "Workspace not found.";
|
|
17251
17438
|
readonly content: {
|
|
17252
17439
|
readonly "application/json": {
|
|
17253
17440
|
readonly schema: {
|
|
@@ -17259,39 +17446,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17259
17446
|
};
|
|
17260
17447
|
};
|
|
17261
17448
|
};
|
|
17262
|
-
readonly "/files/
|
|
17263
|
-
readonly
|
|
17449
|
+
readonly "/files/usage/{workspace}": {
|
|
17450
|
+
readonly get: {
|
|
17264
17451
|
readonly tags: readonly [
|
|
17265
17452
|
"Files"
|
|
17266
17453
|
];
|
|
17267
|
-
readonly summary: "
|
|
17268
|
-
readonly description: "
|
|
17454
|
+
readonly summary: "Get workspace storage usage";
|
|
17455
|
+
readonly description: "Returns finalized storage usage broken down by workspace files (`filesBytes`), comment attachments (`commentsBytes`), customer files (`customerBytes`), and service files (`servicesBytes`), plus the combined total and plan limit. Temporary `.tmp` objects are excluded. Requires workspace access and read access to crm::files.";
|
|
17269
17456
|
readonly security: readonly [
|
|
17270
17457
|
never
|
|
17271
17458
|
];
|
|
17272
|
-
readonly
|
|
17273
|
-
|
|
17274
|
-
|
|
17275
|
-
readonly "
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17459
|
+
readonly parameters: readonly [
|
|
17460
|
+
{
|
|
17461
|
+
readonly name: "workspace";
|
|
17462
|
+
readonly in: "path";
|
|
17463
|
+
readonly required: true;
|
|
17464
|
+
readonly schema: {
|
|
17465
|
+
readonly type: "string";
|
|
17466
|
+
readonly format: "uuid";
|
|
17279
17467
|
};
|
|
17280
|
-
|
|
17281
|
-
|
|
17468
|
+
readonly description: "Workspace identifier.";
|
|
17469
|
+
}
|
|
17470
|
+
];
|
|
17282
17471
|
readonly responses: {
|
|
17283
17472
|
readonly 200: {
|
|
17284
|
-
readonly description: "
|
|
17473
|
+
readonly description: "Storage usage returned.";
|
|
17285
17474
|
readonly content: {
|
|
17286
17475
|
readonly "application/json": {
|
|
17287
17476
|
readonly schema: {
|
|
17288
|
-
readonly $ref: "#/components/schemas/
|
|
17477
|
+
readonly $ref: "#/components/schemas/StorageUsageSuccess";
|
|
17289
17478
|
};
|
|
17290
17479
|
};
|
|
17291
17480
|
};
|
|
17292
17481
|
};
|
|
17293
|
-
readonly
|
|
17294
|
-
readonly description: "
|
|
17482
|
+
readonly 401: {
|
|
17483
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17295
17484
|
readonly content: {
|
|
17296
17485
|
readonly "application/json": {
|
|
17297
17486
|
readonly schema: {
|
|
@@ -17300,8 +17489,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17300
17489
|
};
|
|
17301
17490
|
};
|
|
17302
17491
|
};
|
|
17303
|
-
readonly
|
|
17304
|
-
readonly description: "
|
|
17492
|
+
readonly 403: {
|
|
17493
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17305
17494
|
readonly content: {
|
|
17306
17495
|
readonly "application/json": {
|
|
17307
17496
|
readonly schema: {
|
|
@@ -17310,8 +17499,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17310
17499
|
};
|
|
17311
17500
|
};
|
|
17312
17501
|
};
|
|
17313
|
-
readonly
|
|
17314
|
-
readonly description: "
|
|
17502
|
+
readonly 404: {
|
|
17503
|
+
readonly description: "Workspace not found.";
|
|
17315
17504
|
readonly content: {
|
|
17316
17505
|
readonly "application/json": {
|
|
17317
17506
|
readonly schema: {
|
|
@@ -17323,13 +17512,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17323
17512
|
};
|
|
17324
17513
|
};
|
|
17325
17514
|
};
|
|
17326
|
-
readonly "/files/download
|
|
17515
|
+
readonly "/files/download/{workspace}": {
|
|
17327
17516
|
readonly get: {
|
|
17328
17517
|
readonly tags: readonly [
|
|
17329
17518
|
"Files"
|
|
17330
17519
|
];
|
|
17331
|
-
readonly summary: "
|
|
17332
|
-
readonly description: "
|
|
17520
|
+
readonly summary: "Get presigned download URL";
|
|
17521
|
+
readonly description: "Returns a presigned GET URL for `{workspace}/{path}` (5-minute expiry). Pass the workspace-relative path as the `path` query parameter (root leaf or `folders/...`). Requires workspace access.";
|
|
17333
17522
|
readonly security: readonly [
|
|
17334
17523
|
never
|
|
17335
17524
|
];
|
|
@@ -17345,29 +17534,28 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17345
17534
|
readonly description: "Workspace identifier.";
|
|
17346
17535
|
},
|
|
17347
17536
|
{
|
|
17348
|
-
readonly name: "
|
|
17349
|
-
readonly in: "
|
|
17537
|
+
readonly name: "path";
|
|
17538
|
+
readonly in: "query";
|
|
17350
17539
|
readonly required: true;
|
|
17351
17540
|
readonly schema: {
|
|
17352
|
-
readonly
|
|
17353
|
-
readonly format: "uuid";
|
|
17541
|
+
readonly $ref: "#/components/schemas/WorkspaceRelativeFilePath";
|
|
17354
17542
|
};
|
|
17355
|
-
readonly description: "
|
|
17543
|
+
readonly description: "Workspace-relative file path after the workspace prefix.";
|
|
17356
17544
|
}
|
|
17357
17545
|
];
|
|
17358
17546
|
readonly responses: {
|
|
17359
17547
|
readonly 200: {
|
|
17360
|
-
readonly description: "
|
|
17548
|
+
readonly description: "Download URL created.";
|
|
17361
17549
|
readonly content: {
|
|
17362
17550
|
readonly "application/json": {
|
|
17363
17551
|
readonly schema: {
|
|
17364
|
-
readonly $ref: "#/components/schemas/
|
|
17552
|
+
readonly $ref: "#/components/schemas/DownloadFileSuccess";
|
|
17365
17553
|
};
|
|
17366
17554
|
};
|
|
17367
17555
|
};
|
|
17368
17556
|
};
|
|
17369
17557
|
readonly 400: {
|
|
17370
|
-
readonly description: "Invalid workspace or
|
|
17558
|
+
readonly description: "Invalid workspace id or file path.";
|
|
17371
17559
|
readonly content: {
|
|
17372
17560
|
readonly "application/json": {
|
|
17373
17561
|
readonly schema: {
|
|
@@ -17387,7 +17575,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17387
17575
|
};
|
|
17388
17576
|
};
|
|
17389
17577
|
readonly 403: {
|
|
17390
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17578
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17579
|
+
readonly content: {
|
|
17580
|
+
readonly "application/json": {
|
|
17581
|
+
readonly schema: {
|
|
17582
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17583
|
+
};
|
|
17584
|
+
};
|
|
17585
|
+
};
|
|
17586
|
+
};
|
|
17587
|
+
readonly 404: {
|
|
17588
|
+
readonly description: "Workspace not found.";
|
|
17391
17589
|
readonly content: {
|
|
17392
17590
|
readonly "application/json": {
|
|
17393
17591
|
readonly schema: {
|
|
@@ -17399,13 +17597,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17399
17597
|
};
|
|
17400
17598
|
};
|
|
17401
17599
|
};
|
|
17402
|
-
readonly "/files/
|
|
17600
|
+
readonly "/files/pin": {
|
|
17403
17601
|
readonly post: {
|
|
17404
17602
|
readonly tags: readonly [
|
|
17405
17603
|
"Files"
|
|
17406
17604
|
];
|
|
17407
|
-
readonly summary: "
|
|
17408
|
-
readonly description: "
|
|
17605
|
+
readonly summary: "Pin or unpin a file";
|
|
17606
|
+
readonly description: "Sets S3 object user metadata `pin` to `true` or `false` on `{workspace}/{path}` via copy-in-place with MetadataDirective REPLACE. Requires workspace access.";
|
|
17409
17607
|
readonly security: readonly [
|
|
17410
17608
|
never
|
|
17411
17609
|
];
|
|
@@ -17414,18 +17612,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17414
17612
|
readonly content: {
|
|
17415
17613
|
readonly "application/json": {
|
|
17416
17614
|
readonly schema: {
|
|
17417
|
-
readonly $ref: "#/components/schemas/
|
|
17615
|
+
readonly $ref: "#/components/schemas/PinFileRequest";
|
|
17418
17616
|
};
|
|
17419
17617
|
};
|
|
17420
17618
|
};
|
|
17421
17619
|
};
|
|
17422
17620
|
readonly responses: {
|
|
17423
17621
|
readonly 200: {
|
|
17424
|
-
readonly description: "
|
|
17622
|
+
readonly description: "Pin metadata updated successfully.";
|
|
17425
17623
|
readonly content: {
|
|
17426
17624
|
readonly "application/json": {
|
|
17427
17625
|
readonly schema: {
|
|
17428
|
-
readonly $ref: "#/components/schemas/
|
|
17626
|
+
readonly $ref: "#/components/schemas/PinFileSuccess";
|
|
17429
17627
|
};
|
|
17430
17628
|
};
|
|
17431
17629
|
};
|
|
@@ -17451,7 +17649,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17451
17649
|
};
|
|
17452
17650
|
};
|
|
17453
17651
|
readonly 403: {
|
|
17454
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17652
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17455
17653
|
readonly content: {
|
|
17456
17654
|
readonly "application/json": {
|
|
17457
17655
|
readonly schema: {
|
|
@@ -17461,21 +17659,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17461
17659
|
};
|
|
17462
17660
|
};
|
|
17463
17661
|
readonly 404: {
|
|
17464
|
-
readonly description: "
|
|
17465
|
-
readonly content: {
|
|
17466
|
-
readonly "application/json": {
|
|
17467
|
-
readonly schema: {
|
|
17468
|
-
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17469
|
-
};
|
|
17470
|
-
};
|
|
17471
|
-
};
|
|
17472
|
-
};
|
|
17473
|
-
readonly 500: {
|
|
17474
|
-
readonly description: "Delete command ran but the object still exists.";
|
|
17662
|
+
readonly description: "Workspace not found.";
|
|
17475
17663
|
readonly content: {
|
|
17476
17664
|
readonly "application/json": {
|
|
17477
17665
|
readonly schema: {
|
|
17478
|
-
readonly $ref: "#/components/schemas/
|
|
17666
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17479
17667
|
};
|
|
17480
17668
|
};
|
|
17481
17669
|
};
|
|
@@ -17483,13 +17671,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17483
17671
|
};
|
|
17484
17672
|
};
|
|
17485
17673
|
};
|
|
17486
|
-
readonly "/files/
|
|
17674
|
+
readonly "/files/delete": {
|
|
17487
17675
|
readonly post: {
|
|
17488
17676
|
readonly tags: readonly [
|
|
17489
17677
|
"Files"
|
|
17490
17678
|
];
|
|
17491
|
-
readonly summary: "
|
|
17492
|
-
readonly description: "
|
|
17679
|
+
readonly summary: "Delete a file by workspace-relative path";
|
|
17680
|
+
readonly description: "Deletes the S3 object at `{workspace}/{path}`. Verifies the object exists before deletion and confirms removal afterward. Requires workspace access and file write access. This deletion remains available for a frozen Free-trial workspace so it can reduce storage before selecting a paid plan.";
|
|
17493
17681
|
readonly security: readonly [
|
|
17494
17682
|
never
|
|
17495
17683
|
];
|
|
@@ -17498,24 +17686,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17498
17686
|
readonly content: {
|
|
17499
17687
|
readonly "application/json": {
|
|
17500
17688
|
readonly schema: {
|
|
17501
|
-
readonly $ref: "#/components/schemas/
|
|
17689
|
+
readonly $ref: "#/components/schemas/DeleteFileRequest";
|
|
17502
17690
|
};
|
|
17503
17691
|
};
|
|
17504
17692
|
};
|
|
17505
17693
|
};
|
|
17506
17694
|
readonly responses: {
|
|
17507
17695
|
readonly 200: {
|
|
17508
|
-
readonly description: "
|
|
17696
|
+
readonly description: "File deleted successfully.";
|
|
17509
17697
|
readonly content: {
|
|
17510
17698
|
readonly "application/json": {
|
|
17511
17699
|
readonly schema: {
|
|
17512
|
-
readonly $ref: "#/components/schemas/
|
|
17700
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
17513
17701
|
};
|
|
17514
17702
|
};
|
|
17515
17703
|
};
|
|
17516
17704
|
};
|
|
17517
17705
|
readonly 400: {
|
|
17518
|
-
readonly description: "Invalid payload
|
|
17706
|
+
readonly description: "Invalid request payload.";
|
|
17519
17707
|
readonly content: {
|
|
17520
17708
|
readonly "application/json": {
|
|
17521
17709
|
readonly schema: {
|
|
@@ -17524,8 +17712,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17524
17712
|
};
|
|
17525
17713
|
};
|
|
17526
17714
|
};
|
|
17527
|
-
readonly
|
|
17528
|
-
readonly description: "
|
|
17715
|
+
readonly 401: {
|
|
17716
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17529
17717
|
readonly content: {
|
|
17530
17718
|
readonly "application/json": {
|
|
17531
17719
|
readonly schema: {
|
|
@@ -17534,42 +17722,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17534
17722
|
};
|
|
17535
17723
|
};
|
|
17536
17724
|
};
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
};
|
|
17540
|
-
readonly "/files/confirm-customer-file": {
|
|
17541
|
-
readonly post: {
|
|
17542
|
-
readonly tags: readonly [
|
|
17543
|
-
"Files"
|
|
17544
|
-
];
|
|
17545
|
-
readonly summary: "Confirm a customer file upload";
|
|
17546
|
-
readonly description: "Validates and promotes `{workspace}_customers/{customerId}/{filename}.tmp` to its finalized key. Confirmed bytes contribute to `customerBytes`.";
|
|
17547
|
-
readonly security: readonly [
|
|
17548
|
-
never
|
|
17549
|
-
];
|
|
17550
|
-
readonly requestBody: {
|
|
17551
|
-
readonly required: true;
|
|
17552
|
-
readonly content: {
|
|
17553
|
-
readonly "application/json": {
|
|
17554
|
-
readonly schema: {
|
|
17555
|
-
readonly $ref: "#/components/schemas/ConfirmCustomerFileRequest";
|
|
17556
|
-
};
|
|
17557
|
-
};
|
|
17558
|
-
};
|
|
17559
|
-
};
|
|
17560
|
-
readonly responses: {
|
|
17561
|
-
readonly 200: {
|
|
17562
|
-
readonly description: "Customer file confirmed.";
|
|
17563
|
-
readonly content: {
|
|
17564
|
-
readonly "application/json": {
|
|
17565
|
-
readonly schema: {
|
|
17566
|
-
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
17567
|
-
};
|
|
17568
|
-
};
|
|
17569
|
-
};
|
|
17570
|
-
};
|
|
17571
|
-
readonly 400: {
|
|
17572
|
-
readonly description: "Invalid request, missing temporary object, oversized file, or invalid file type.";
|
|
17725
|
+
readonly 403: {
|
|
17726
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17573
17727
|
readonly content: {
|
|
17574
17728
|
readonly "application/json": {
|
|
17575
17729
|
readonly schema: {
|
|
@@ -17578,58 +17732,22 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17578
17732
|
};
|
|
17579
17733
|
};
|
|
17580
17734
|
};
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
};
|
|
17584
|
-
readonly "/files/download-from-customer/{workspace}/{customerId}": {
|
|
17585
|
-
readonly get: {
|
|
17586
|
-
readonly tags: readonly [
|
|
17587
|
-
"Files"
|
|
17588
|
-
];
|
|
17589
|
-
readonly summary: "List files for a customer";
|
|
17590
|
-
readonly description: "Lists finalized objects under `{workspace}_customers/{customerId}/`, each with a 5-minute presigned download URL. Requires workspace access and read access to crm::customers.";
|
|
17591
|
-
readonly security: readonly [
|
|
17592
|
-
never
|
|
17593
|
-
];
|
|
17594
|
-
readonly parameters: readonly [
|
|
17595
|
-
{
|
|
17596
|
-
readonly name: "workspace";
|
|
17597
|
-
readonly in: "path";
|
|
17598
|
-
readonly required: true;
|
|
17599
|
-
readonly schema: {
|
|
17600
|
-
readonly type: "string";
|
|
17601
|
-
readonly format: "uuid";
|
|
17602
|
-
};
|
|
17603
|
-
readonly description: "Workspace identifier.";
|
|
17604
|
-
},
|
|
17605
|
-
{
|
|
17606
|
-
readonly name: "customerId";
|
|
17607
|
-
readonly in: "path";
|
|
17608
|
-
readonly required: true;
|
|
17609
|
-
readonly schema: {
|
|
17610
|
-
readonly type: "string";
|
|
17611
|
-
readonly format: "uuid";
|
|
17612
|
-
};
|
|
17613
|
-
readonly description: "Customer identifier.";
|
|
17614
|
-
}
|
|
17615
|
-
];
|
|
17616
|
-
readonly responses: {
|
|
17617
|
-
readonly 200: {
|
|
17618
|
-
readonly description: "Customer files listed.";
|
|
17735
|
+
readonly 404: {
|
|
17736
|
+
readonly description: "File or workspace not found.";
|
|
17619
17737
|
readonly content: {
|
|
17620
17738
|
readonly "application/json": {
|
|
17621
17739
|
readonly schema: {
|
|
17622
|
-
readonly $ref: "#/components/schemas/
|
|
17740
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17623
17741
|
};
|
|
17624
17742
|
};
|
|
17625
17743
|
};
|
|
17626
17744
|
};
|
|
17627
|
-
readonly
|
|
17628
|
-
readonly description: "
|
|
17745
|
+
readonly 500: {
|
|
17746
|
+
readonly description: "Delete failed (object still present after delete).";
|
|
17629
17747
|
readonly content: {
|
|
17630
17748
|
readonly "application/json": {
|
|
17631
17749
|
readonly schema: {
|
|
17632
|
-
readonly $ref: "#/components/schemas/
|
|
17750
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17633
17751
|
};
|
|
17634
17752
|
};
|
|
17635
17753
|
};
|
|
@@ -17637,13 +17755,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17637
17755
|
};
|
|
17638
17756
|
};
|
|
17639
17757
|
};
|
|
17640
|
-
readonly "/files/
|
|
17758
|
+
readonly "/files/move": {
|
|
17641
17759
|
readonly post: {
|
|
17642
17760
|
readonly tags: readonly [
|
|
17643
17761
|
"Files"
|
|
17644
17762
|
];
|
|
17645
|
-
readonly summary: "
|
|
17646
|
-
readonly description: "
|
|
17763
|
+
readonly summary: "Move a file within a workspace";
|
|
17764
|
+
readonly description: "Copies `{workspace}/{from}` to `{workspace}/{to}` (preserving content type and metadata including pin), then deletes the source. Destination must not already exist (409). If `to` is under `folders/`, the parent folder marker must exist. Requires workspace access and write access to crm::files.";
|
|
17647
17765
|
readonly security: readonly [
|
|
17648
17766
|
never
|
|
17649
17767
|
];
|
|
@@ -17652,28 +17770,68 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17652
17770
|
readonly content: {
|
|
17653
17771
|
readonly "application/json": {
|
|
17654
17772
|
readonly schema: {
|
|
17655
|
-
readonly $ref: "#/components/schemas/
|
|
17773
|
+
readonly $ref: "#/components/schemas/MoveFileRequest";
|
|
17656
17774
|
};
|
|
17657
17775
|
};
|
|
17658
17776
|
};
|
|
17659
17777
|
};
|
|
17660
17778
|
readonly responses: {
|
|
17661
17779
|
readonly 200: {
|
|
17662
|
-
readonly description: "
|
|
17780
|
+
readonly description: "File moved successfully.";
|
|
17663
17781
|
readonly content: {
|
|
17664
17782
|
readonly "application/json": {
|
|
17665
17783
|
readonly schema: {
|
|
17666
|
-
readonly $ref: "#/components/schemas/
|
|
17784
|
+
readonly $ref: "#/components/schemas/MoveFileSuccess";
|
|
17667
17785
|
};
|
|
17668
17786
|
};
|
|
17669
17787
|
};
|
|
17670
17788
|
};
|
|
17671
|
-
readonly
|
|
17672
|
-
readonly description: "
|
|
17789
|
+
readonly 400: {
|
|
17790
|
+
readonly description: "Invalid request payload.";
|
|
17673
17791
|
readonly content: {
|
|
17674
17792
|
readonly "application/json": {
|
|
17675
17793
|
readonly schema: {
|
|
17676
|
-
readonly $ref: "#/components/schemas/
|
|
17794
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17795
|
+
};
|
|
17796
|
+
};
|
|
17797
|
+
};
|
|
17798
|
+
};
|
|
17799
|
+
readonly 401: {
|
|
17800
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17801
|
+
readonly content: {
|
|
17802
|
+
readonly "application/json": {
|
|
17803
|
+
readonly schema: {
|
|
17804
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17805
|
+
};
|
|
17806
|
+
};
|
|
17807
|
+
};
|
|
17808
|
+
};
|
|
17809
|
+
readonly 403: {
|
|
17810
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17811
|
+
readonly content: {
|
|
17812
|
+
readonly "application/json": {
|
|
17813
|
+
readonly schema: {
|
|
17814
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17815
|
+
};
|
|
17816
|
+
};
|
|
17817
|
+
};
|
|
17818
|
+
};
|
|
17819
|
+
readonly 404: {
|
|
17820
|
+
readonly description: "Source file, destination folder, or workspace not found.";
|
|
17821
|
+
readonly content: {
|
|
17822
|
+
readonly "application/json": {
|
|
17823
|
+
readonly schema: {
|
|
17824
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17825
|
+
};
|
|
17826
|
+
};
|
|
17827
|
+
};
|
|
17828
|
+
};
|
|
17829
|
+
readonly 409: {
|
|
17830
|
+
readonly description: "Destination already exists.";
|
|
17831
|
+
readonly content: {
|
|
17832
|
+
readonly "application/json": {
|
|
17833
|
+
readonly schema: {
|
|
17834
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17677
17835
|
};
|
|
17678
17836
|
};
|
|
17679
17837
|
};
|
|
@@ -17681,13 +17839,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17681
17839
|
};
|
|
17682
17840
|
};
|
|
17683
17841
|
};
|
|
17684
|
-
readonly "/files/
|
|
17842
|
+
readonly "/files/upload-to-comment": {
|
|
17685
17843
|
readonly post: {
|
|
17686
17844
|
readonly tags: readonly [
|
|
17687
17845
|
"Files"
|
|
17688
17846
|
];
|
|
17689
|
-
readonly summary: "
|
|
17690
|
-
readonly description: "
|
|
17847
|
+
readonly summary: "Create presigned upload for a comment attachment";
|
|
17848
|
+
readonly description: "Returns a presigned POST URL and form fields for uploading a file attached to a task comment. Object key is `{workspace}_comments/{taskId}/{commentId}/{filename}.tmp` (max 15 MB, 5-minute expiry). Accepts JPEG, PNG, WebP, and PDF. After upload, call `/files/confirm-comment-file` to validate magic bytes and promote the object. Verifies the task and comment belong to the workspace. Requires active workspace access and write access to crm::tasks.";
|
|
17691
17849
|
readonly security: readonly [
|
|
17692
17850
|
never
|
|
17693
17851
|
];
|
|
@@ -17696,24 +17854,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17696
17854
|
readonly content: {
|
|
17697
17855
|
readonly "application/json": {
|
|
17698
17856
|
readonly schema: {
|
|
17699
|
-
readonly $ref: "#/components/schemas/
|
|
17857
|
+
readonly $ref: "#/components/schemas/UploadToCommentRequest";
|
|
17700
17858
|
};
|
|
17701
17859
|
};
|
|
17702
17860
|
};
|
|
17703
17861
|
};
|
|
17704
17862
|
readonly responses: {
|
|
17705
17863
|
readonly 200: {
|
|
17706
|
-
readonly description: "
|
|
17864
|
+
readonly description: "Presigned comment upload created.";
|
|
17707
17865
|
readonly content: {
|
|
17708
17866
|
readonly "application/json": {
|
|
17709
17867
|
readonly schema: {
|
|
17710
|
-
readonly $ref: "#/components/schemas/
|
|
17868
|
+
readonly $ref: "#/components/schemas/UploadToCommentSuccess";
|
|
17711
17869
|
};
|
|
17712
17870
|
};
|
|
17713
17871
|
};
|
|
17714
17872
|
};
|
|
17715
17873
|
readonly 400: {
|
|
17716
|
-
readonly description: "Invalid request payload.";
|
|
17874
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
17717
17875
|
readonly content: {
|
|
17718
17876
|
readonly "application/json": {
|
|
17719
17877
|
readonly schema: {
|
|
@@ -17743,21 +17901,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17743
17901
|
};
|
|
17744
17902
|
};
|
|
17745
17903
|
readonly 404: {
|
|
17746
|
-
readonly description: "
|
|
17747
|
-
readonly content: {
|
|
17748
|
-
readonly "application/json": {
|
|
17749
|
-
readonly schema: {
|
|
17750
|
-
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17751
|
-
};
|
|
17752
|
-
};
|
|
17753
|
-
};
|
|
17754
|
-
};
|
|
17755
|
-
readonly 500: {
|
|
17756
|
-
readonly description: "Delete command ran but the object still exists.";
|
|
17904
|
+
readonly description: "Workspace, task, or comment not found.";
|
|
17757
17905
|
readonly content: {
|
|
17758
17906
|
readonly "application/json": {
|
|
17759
17907
|
readonly schema: {
|
|
17760
|
-
readonly $ref: "#/components/schemas/
|
|
17908
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17761
17909
|
};
|
|
17762
17910
|
};
|
|
17763
17911
|
};
|
|
@@ -17765,51 +17913,39 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17765
17913
|
};
|
|
17766
17914
|
};
|
|
17767
17915
|
};
|
|
17768
|
-
readonly "/files/
|
|
17769
|
-
readonly
|
|
17916
|
+
readonly "/files/confirm-comment-file": {
|
|
17917
|
+
readonly post: {
|
|
17770
17918
|
readonly tags: readonly [
|
|
17771
17919
|
"Files"
|
|
17772
17920
|
];
|
|
17773
|
-
readonly summary: "
|
|
17774
|
-
readonly description: "
|
|
17921
|
+
readonly summary: "Confirm a comment attachment upload";
|
|
17922
|
+
readonly description: "Reads the temporary object at `{workspace}_comments/{taskId}/{commentId}/{filename}.tmp`, verifies size (<= 15 MB) and real file type (JPEG, PNG, WebP, or PDF), promotes it to `{workspace}_comments/{taskId}/{commentId}/{filename}`, and deletes the temporary object. Verifies the task and comment belong to the workspace. Requires active workspace access and write access to crm::tasks.";
|
|
17775
17923
|
readonly security: readonly [
|
|
17776
17924
|
never
|
|
17777
17925
|
];
|
|
17778
|
-
readonly
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
readonly
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
readonly format: "uuid";
|
|
17786
|
-
};
|
|
17787
|
-
readonly description: "Workspace identifier.";
|
|
17788
|
-
},
|
|
17789
|
-
{
|
|
17790
|
-
readonly name: "taskId";
|
|
17791
|
-
readonly in: "path";
|
|
17792
|
-
readonly required: true;
|
|
17793
|
-
readonly schema: {
|
|
17794
|
-
readonly type: "string";
|
|
17795
|
-
readonly format: "uuid";
|
|
17926
|
+
readonly requestBody: {
|
|
17927
|
+
readonly required: true;
|
|
17928
|
+
readonly content: {
|
|
17929
|
+
readonly "application/json": {
|
|
17930
|
+
readonly schema: {
|
|
17931
|
+
readonly $ref: "#/components/schemas/ConfirmCommentFileRequest";
|
|
17932
|
+
};
|
|
17796
17933
|
};
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
];
|
|
17934
|
+
};
|
|
17935
|
+
};
|
|
17800
17936
|
readonly responses: {
|
|
17801
17937
|
readonly 200: {
|
|
17802
|
-
readonly description: "
|
|
17938
|
+
readonly description: "Comment file confirmed and promoted.";
|
|
17803
17939
|
readonly content: {
|
|
17804
17940
|
readonly "application/json": {
|
|
17805
17941
|
readonly schema: {
|
|
17806
|
-
readonly $ref: "#/components/schemas/
|
|
17942
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
17807
17943
|
};
|
|
17808
17944
|
};
|
|
17809
17945
|
};
|
|
17810
17946
|
};
|
|
17811
17947
|
readonly 400: {
|
|
17812
|
-
readonly description: "Invalid
|
|
17948
|
+
readonly description: "Invalid request payload, missing temp object, oversized file, or invalid file type.";
|
|
17813
17949
|
readonly content: {
|
|
17814
17950
|
readonly "application/json": {
|
|
17815
17951
|
readonly schema: {
|
|
@@ -17829,7 +17965,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17829
17965
|
};
|
|
17830
17966
|
};
|
|
17831
17967
|
readonly 403: {
|
|
17832
|
-
readonly description: "Forbidden -
|
|
17968
|
+
readonly description: "Forbidden - Invite not accepted, user lacks workspace access, or user lacks write access to crm::tasks.";
|
|
17833
17969
|
readonly content: {
|
|
17834
17970
|
readonly "application/json": {
|
|
17835
17971
|
readonly schema: {
|
|
@@ -17839,7 +17975,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17839
17975
|
};
|
|
17840
17976
|
};
|
|
17841
17977
|
readonly 404: {
|
|
17842
|
-
readonly description: "Workspace not found.";
|
|
17978
|
+
readonly description: "Workspace, task, or comment not found.";
|
|
17843
17979
|
readonly content: {
|
|
17844
17980
|
readonly "application/json": {
|
|
17845
17981
|
readonly schema: {
|
|
@@ -17851,13 +17987,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17851
17987
|
};
|
|
17852
17988
|
};
|
|
17853
17989
|
};
|
|
17854
|
-
readonly "/files/upload-
|
|
17990
|
+
readonly "/files/upload-to-service": {
|
|
17855
17991
|
readonly post: {
|
|
17856
17992
|
readonly tags: readonly [
|
|
17857
17993
|
"Files"
|
|
17858
17994
|
];
|
|
17859
|
-
readonly summary: "Create presigned upload for
|
|
17860
|
-
readonly description: "Returns a presigned POST URL and form fields for uploading a
|
|
17995
|
+
readonly summary: "Create presigned upload for a service file";
|
|
17996
|
+
readonly description: "Returns a presigned POST URL and form fields for uploading a file attached to a CRM service. Object key is `{workspace}_services/{serviceId}/{filename}.tmp` (max 15 MB, 5-minute expiry). Accepts JPEG, PNG, WebP, and PDF. After upload, call `/files/confirm-service-file` to validate magic bytes and promote the object. Currently supported for real-estate workspaces; verifies the service belongs to the workspace. Requires active workspace access, write access to crm::services, and an active billing grant.";
|
|
17861
17997
|
readonly security: readonly [
|
|
17862
17998
|
never
|
|
17863
17999
|
];
|
|
@@ -17866,29 +18002,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17866
18002
|
readonly content: {
|
|
17867
18003
|
readonly "application/json": {
|
|
17868
18004
|
readonly schema: {
|
|
17869
|
-
readonly $ref: "#/components/schemas/
|
|
18005
|
+
readonly $ref: "#/components/schemas/UploadToServiceRequest";
|
|
17870
18006
|
};
|
|
17871
18007
|
};
|
|
17872
18008
|
};
|
|
17873
18009
|
};
|
|
17874
18010
|
readonly responses: {
|
|
17875
18011
|
readonly 200: {
|
|
17876
|
-
readonly description: "Presigned
|
|
18012
|
+
readonly description: "Presigned service upload created.";
|
|
17877
18013
|
readonly content: {
|
|
17878
18014
|
readonly "application/json": {
|
|
17879
18015
|
readonly schema: {
|
|
17880
|
-
readonly
|
|
17881
|
-
{
|
|
17882
|
-
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
17883
|
-
}
|
|
17884
|
-
];
|
|
17885
|
-
readonly description: "key is `profiles/clients/{userId}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18016
|
+
readonly $ref: "#/components/schemas/UploadToServiceSuccess";
|
|
17886
18017
|
};
|
|
17887
18018
|
};
|
|
17888
18019
|
};
|
|
17889
18020
|
};
|
|
17890
18021
|
readonly 400: {
|
|
17891
|
-
readonly description: "Invalid request payload or unsupported
|
|
18022
|
+
readonly description: "Invalid request payload, unsupported content type, or unsupported workspace category.";
|
|
17892
18023
|
readonly content: {
|
|
17893
18024
|
readonly "application/json": {
|
|
17894
18025
|
readonly schema: {
|
|
@@ -17907,32 +18038,62 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17907
18038
|
};
|
|
17908
18039
|
};
|
|
17909
18040
|
};
|
|
18041
|
+
readonly 403: {
|
|
18042
|
+
readonly description: "Forbidden - User lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
18043
|
+
readonly content: {
|
|
18044
|
+
readonly "application/json": {
|
|
18045
|
+
readonly schema: {
|
|
18046
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18047
|
+
};
|
|
18048
|
+
};
|
|
18049
|
+
};
|
|
18050
|
+
};
|
|
18051
|
+
readonly 404: {
|
|
18052
|
+
readonly description: "Workspace or real-estate service not found.";
|
|
18053
|
+
readonly content: {
|
|
18054
|
+
readonly "application/json": {
|
|
18055
|
+
readonly schema: {
|
|
18056
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18057
|
+
};
|
|
18058
|
+
};
|
|
18059
|
+
};
|
|
18060
|
+
};
|
|
17910
18061
|
};
|
|
17911
18062
|
};
|
|
17912
18063
|
};
|
|
17913
|
-
readonly "/files/confirm-
|
|
18064
|
+
readonly "/files/confirm-service-file": {
|
|
17914
18065
|
readonly post: {
|
|
17915
18066
|
readonly tags: readonly [
|
|
17916
18067
|
"Files"
|
|
17917
18068
|
];
|
|
17918
|
-
readonly summary: "Confirm
|
|
17919
|
-
readonly description: "Reads the temporary object at `
|
|
18069
|
+
readonly summary: "Confirm a service file upload";
|
|
18070
|
+
readonly description: "Reads the temporary object at `{workspace}_services/{serviceId}/{filename}.tmp`, verifies size (<= 15 MB) and real file type (JPEG, PNG, WebP, or PDF), promotes it to `{workspace}_services/{serviceId}/{filename}`, and deletes the temporary object. Confirmed bytes count toward workspace storage usage (`servicesBytes`). Requires active workspace access, write access to crm::services, and an active billing grant.";
|
|
17920
18071
|
readonly security: readonly [
|
|
17921
18072
|
never
|
|
17922
18073
|
];
|
|
18074
|
+
readonly requestBody: {
|
|
18075
|
+
readonly required: true;
|
|
18076
|
+
readonly content: {
|
|
18077
|
+
readonly "application/json": {
|
|
18078
|
+
readonly schema: {
|
|
18079
|
+
readonly $ref: "#/components/schemas/ConfirmServiceFileRequest";
|
|
18080
|
+
};
|
|
18081
|
+
};
|
|
18082
|
+
};
|
|
18083
|
+
};
|
|
17923
18084
|
readonly responses: {
|
|
17924
18085
|
readonly 200: {
|
|
17925
|
-
readonly description: "
|
|
18086
|
+
readonly description: "Service file confirmed and promoted.";
|
|
17926
18087
|
readonly content: {
|
|
17927
18088
|
readonly "application/json": {
|
|
17928
18089
|
readonly schema: {
|
|
17929
|
-
readonly $ref: "#/components/schemas/
|
|
18090
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
17930
18091
|
};
|
|
17931
18092
|
};
|
|
17932
18093
|
};
|
|
17933
18094
|
};
|
|
17934
18095
|
readonly 400: {
|
|
17935
|
-
readonly description: "
|
|
18096
|
+
readonly description: "Invalid request payload, missing temp object, oversized file, or invalid file type.";
|
|
17936
18097
|
readonly content: {
|
|
17937
18098
|
readonly "application/json": {
|
|
17938
18099
|
readonly schema: {
|
|
@@ -17951,26 +18112,68 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17951
18112
|
};
|
|
17952
18113
|
};
|
|
17953
18114
|
};
|
|
18115
|
+
readonly 403: {
|
|
18116
|
+
readonly description: "Forbidden - Invite not accepted, user lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
18117
|
+
readonly content: {
|
|
18118
|
+
readonly "application/json": {
|
|
18119
|
+
readonly schema: {
|
|
18120
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18121
|
+
};
|
|
18122
|
+
};
|
|
18123
|
+
};
|
|
18124
|
+
};
|
|
17954
18125
|
};
|
|
17955
18126
|
};
|
|
17956
18127
|
};
|
|
17957
|
-
readonly "/files/
|
|
17958
|
-
readonly
|
|
18128
|
+
readonly "/files/download-from-service/{workspace}/{serviceId}": {
|
|
18129
|
+
readonly get: {
|
|
17959
18130
|
readonly tags: readonly [
|
|
17960
18131
|
"Files"
|
|
17961
18132
|
];
|
|
17962
|
-
readonly summary: "
|
|
17963
|
-
readonly description: "
|
|
18133
|
+
readonly summary: "List files for a service";
|
|
18134
|
+
readonly description: "Lists all objects under `{workspace}_services/{serviceId}/` (excluding `.tmp` keys) and returns each with a 5-minute presigned download URL. Requires workspace access and read access to crm::services.";
|
|
17964
18135
|
readonly security: readonly [
|
|
17965
18136
|
never
|
|
17966
18137
|
];
|
|
18138
|
+
readonly parameters: readonly [
|
|
18139
|
+
{
|
|
18140
|
+
readonly name: "workspace";
|
|
18141
|
+
readonly in: "path";
|
|
18142
|
+
readonly required: true;
|
|
18143
|
+
readonly schema: {
|
|
18144
|
+
readonly type: "string";
|
|
18145
|
+
readonly format: "uuid";
|
|
18146
|
+
};
|
|
18147
|
+
readonly description: "Workspace identifier.";
|
|
18148
|
+
},
|
|
18149
|
+
{
|
|
18150
|
+
readonly name: "serviceId";
|
|
18151
|
+
readonly in: "path";
|
|
18152
|
+
readonly required: true;
|
|
18153
|
+
readonly schema: {
|
|
18154
|
+
readonly type: "string";
|
|
18155
|
+
readonly format: "uuid";
|
|
18156
|
+
};
|
|
18157
|
+
readonly description: "Service identifier whose files are listed.";
|
|
18158
|
+
}
|
|
18159
|
+
];
|
|
17967
18160
|
readonly responses: {
|
|
17968
18161
|
readonly 200: {
|
|
17969
|
-
readonly description: "
|
|
18162
|
+
readonly description: "Service files listed successfully.";
|
|
17970
18163
|
readonly content: {
|
|
17971
18164
|
readonly "application/json": {
|
|
17972
18165
|
readonly schema: {
|
|
17973
|
-
readonly $ref: "#/components/schemas/
|
|
18166
|
+
readonly $ref: "#/components/schemas/ListServiceFilesSuccess";
|
|
18167
|
+
};
|
|
18168
|
+
};
|
|
18169
|
+
};
|
|
18170
|
+
};
|
|
18171
|
+
readonly 400: {
|
|
18172
|
+
readonly description: "Invalid workspace or service id.";
|
|
18173
|
+
readonly content: {
|
|
18174
|
+
readonly "application/json": {
|
|
18175
|
+
readonly schema: {
|
|
18176
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17974
18177
|
};
|
|
17975
18178
|
};
|
|
17976
18179
|
};
|
|
@@ -17985,8 +18188,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17985
18188
|
};
|
|
17986
18189
|
};
|
|
17987
18190
|
};
|
|
17988
|
-
readonly
|
|
17989
|
-
readonly description: "
|
|
18191
|
+
readonly 403: {
|
|
18192
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks read access to crm::services.";
|
|
17990
18193
|
readonly content: {
|
|
17991
18194
|
readonly "application/json": {
|
|
17992
18195
|
readonly schema: {
|
|
@@ -17998,13 +18201,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17998
18201
|
};
|
|
17999
18202
|
};
|
|
18000
18203
|
};
|
|
18001
|
-
readonly "/files/
|
|
18204
|
+
readonly "/files/delete-service-file": {
|
|
18002
18205
|
readonly post: {
|
|
18003
18206
|
readonly tags: readonly [
|
|
18004
18207
|
"Files"
|
|
18005
18208
|
];
|
|
18006
|
-
readonly summary: "
|
|
18007
|
-
readonly description: "
|
|
18209
|
+
readonly summary: "Delete a service file";
|
|
18210
|
+
readonly description: "Deletes the S3 object at `{workspace}_services/{serviceId}/{filename}`. Verifies the object exists before deletion and confirms removal afterward. Requires workspace access and write access to crm::services. This deletion remains available for a frozen Free-trial workspace so it can reduce storage before selecting a paid plan.";
|
|
18008
18211
|
readonly security: readonly [
|
|
18009
18212
|
never
|
|
18010
18213
|
];
|
|
@@ -18013,29 +18216,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18013
18216
|
readonly content: {
|
|
18014
18217
|
readonly "application/json": {
|
|
18015
18218
|
readonly schema: {
|
|
18016
|
-
readonly $ref: "#/components/schemas/
|
|
18219
|
+
readonly $ref: "#/components/schemas/DeleteServiceFileRequest";
|
|
18017
18220
|
};
|
|
18018
18221
|
};
|
|
18019
18222
|
};
|
|
18020
18223
|
};
|
|
18021
18224
|
readonly responses: {
|
|
18022
18225
|
readonly 200: {
|
|
18023
|
-
readonly description: "
|
|
18226
|
+
readonly description: "Service file deleted successfully.";
|
|
18024
18227
|
readonly content: {
|
|
18025
18228
|
readonly "application/json": {
|
|
18026
18229
|
readonly schema: {
|
|
18027
|
-
readonly
|
|
18028
|
-
{
|
|
18029
|
-
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
18030
|
-
}
|
|
18031
|
-
];
|
|
18032
|
-
readonly description: "key is `profiles/workspaces/{workspace}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18230
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18033
18231
|
};
|
|
18034
18232
|
};
|
|
18035
18233
|
};
|
|
18036
18234
|
};
|
|
18037
18235
|
readonly 400: {
|
|
18038
|
-
readonly description: "Invalid request payload
|
|
18236
|
+
readonly description: "Invalid request payload.";
|
|
18039
18237
|
readonly content: {
|
|
18040
18238
|
readonly "application/json": {
|
|
18041
18239
|
readonly schema: {
|
|
@@ -18055,7 +18253,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18055
18253
|
};
|
|
18056
18254
|
};
|
|
18057
18255
|
readonly 403: {
|
|
18058
|
-
readonly description: "Forbidden - User lacks workspace access,
|
|
18256
|
+
readonly description: "Forbidden - User lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
18059
18257
|
readonly content: {
|
|
18060
18258
|
readonly "application/json": {
|
|
18061
18259
|
readonly schema: {
|
|
@@ -18065,11 +18263,21 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18065
18263
|
};
|
|
18066
18264
|
};
|
|
18067
18265
|
readonly 404: {
|
|
18068
|
-
readonly description: "
|
|
18266
|
+
readonly description: "File not found at the given service file key.";
|
|
18069
18267
|
readonly content: {
|
|
18070
18268
|
readonly "application/json": {
|
|
18071
18269
|
readonly schema: {
|
|
18072
|
-
readonly $ref: "#/components/schemas/
|
|
18270
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18271
|
+
};
|
|
18272
|
+
};
|
|
18273
|
+
};
|
|
18274
|
+
};
|
|
18275
|
+
readonly 500: {
|
|
18276
|
+
readonly description: "Delete command ran but the object still exists.";
|
|
18277
|
+
readonly content: {
|
|
18278
|
+
readonly "application/json": {
|
|
18279
|
+
readonly schema: {
|
|
18280
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18073
18281
|
};
|
|
18074
18282
|
};
|
|
18075
18283
|
};
|
|
@@ -18077,13 +18285,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18077
18285
|
};
|
|
18078
18286
|
};
|
|
18079
18287
|
};
|
|
18080
|
-
readonly "/files/
|
|
18288
|
+
readonly "/files/upload-to-customer": {
|
|
18081
18289
|
readonly post: {
|
|
18082
18290
|
readonly tags: readonly [
|
|
18083
18291
|
"Files"
|
|
18084
18292
|
];
|
|
18085
|
-
readonly summary: "
|
|
18086
|
-
readonly description: "
|
|
18293
|
+
readonly summary: "Create presigned upload for a customer file";
|
|
18294
|
+
readonly description: "Returns a presigned POST for `{workspace}_customers/{customerId}/{filename}.tmp`. JPEG, PNG, WebP, and PDF files up to 15 MB are supported. The customer must belong to a real-estate workspace. Confirm the upload with `/files/confirm-customer-file`.";
|
|
18087
18295
|
readonly security: readonly [
|
|
18088
18296
|
never
|
|
18089
18297
|
];
|
|
@@ -18092,44 +18300,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18092
18300
|
readonly content: {
|
|
18093
18301
|
readonly "application/json": {
|
|
18094
18302
|
readonly schema: {
|
|
18095
|
-
readonly $ref: "#/components/schemas/
|
|
18303
|
+
readonly $ref: "#/components/schemas/UploadToCustomerRequest";
|
|
18096
18304
|
};
|
|
18097
18305
|
};
|
|
18098
18306
|
};
|
|
18099
18307
|
};
|
|
18100
18308
|
readonly responses: {
|
|
18101
18309
|
readonly 200: {
|
|
18102
|
-
readonly description: "
|
|
18310
|
+
readonly description: "Presigned customer upload created.";
|
|
18103
18311
|
readonly content: {
|
|
18104
18312
|
readonly "application/json": {
|
|
18105
18313
|
readonly schema: {
|
|
18106
|
-
readonly $ref: "#/components/schemas/
|
|
18314
|
+
readonly $ref: "#/components/schemas/UploadToCustomerSuccess";
|
|
18107
18315
|
};
|
|
18108
18316
|
};
|
|
18109
18317
|
};
|
|
18110
18318
|
};
|
|
18111
18319
|
readonly 400: {
|
|
18112
|
-
readonly description: "
|
|
18113
|
-
readonly content: {
|
|
18114
|
-
readonly "application/json": {
|
|
18115
|
-
readonly schema: {
|
|
18116
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18117
|
-
};
|
|
18118
|
-
};
|
|
18119
|
-
};
|
|
18120
|
-
};
|
|
18121
|
-
readonly 401: {
|
|
18122
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18123
|
-
readonly content: {
|
|
18124
|
-
readonly "application/json": {
|
|
18125
|
-
readonly schema: {
|
|
18126
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18127
|
-
};
|
|
18128
|
-
};
|
|
18129
|
-
};
|
|
18130
|
-
};
|
|
18131
|
-
readonly 403: {
|
|
18132
|
-
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18320
|
+
readonly description: "Invalid payload or unsupported workspace category.";
|
|
18133
18321
|
readonly content: {
|
|
18134
18322
|
readonly "application/json": {
|
|
18135
18323
|
readonly schema: {
|
|
@@ -18139,7 +18327,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18139
18327
|
};
|
|
18140
18328
|
};
|
|
18141
18329
|
readonly 404: {
|
|
18142
|
-
readonly description: "
|
|
18330
|
+
readonly description: "Real-estate customer not found.";
|
|
18143
18331
|
readonly content: {
|
|
18144
18332
|
readonly "application/json": {
|
|
18145
18333
|
readonly schema: {
|
|
@@ -18151,13 +18339,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18151
18339
|
};
|
|
18152
18340
|
};
|
|
18153
18341
|
};
|
|
18154
|
-
readonly "/files/
|
|
18342
|
+
readonly "/files/confirm-customer-file": {
|
|
18155
18343
|
readonly post: {
|
|
18156
18344
|
readonly tags: readonly [
|
|
18157
18345
|
"Files"
|
|
18158
18346
|
];
|
|
18159
|
-
readonly summary: "
|
|
18160
|
-
readonly description: "
|
|
18347
|
+
readonly summary: "Confirm a customer file upload";
|
|
18348
|
+
readonly description: "Validates and promotes `{workspace}_customers/{customerId}/{filename}.tmp` to its finalized key. Confirmed bytes contribute to `customerBytes`.";
|
|
18161
18349
|
readonly security: readonly [
|
|
18162
18350
|
never
|
|
18163
18351
|
];
|
|
@@ -18166,64 +18354,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18166
18354
|
readonly content: {
|
|
18167
18355
|
readonly "application/json": {
|
|
18168
18356
|
readonly schema: {
|
|
18169
|
-
readonly $ref: "#/components/schemas/
|
|
18357
|
+
readonly $ref: "#/components/schemas/ConfirmCustomerFileRequest";
|
|
18170
18358
|
};
|
|
18171
18359
|
};
|
|
18172
18360
|
};
|
|
18173
18361
|
};
|
|
18174
18362
|
readonly responses: {
|
|
18175
18363
|
readonly 200: {
|
|
18176
|
-
readonly description: "
|
|
18364
|
+
readonly description: "Customer file confirmed.";
|
|
18177
18365
|
readonly content: {
|
|
18178
18366
|
readonly "application/json": {
|
|
18179
18367
|
readonly schema: {
|
|
18180
|
-
readonly $ref: "#/components/schemas/
|
|
18368
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
18181
18369
|
};
|
|
18182
18370
|
};
|
|
18183
18371
|
};
|
|
18184
18372
|
};
|
|
18185
18373
|
readonly 400: {
|
|
18186
|
-
readonly description: "Invalid request
|
|
18187
|
-
readonly content: {
|
|
18188
|
-
readonly "application/json": {
|
|
18189
|
-
readonly schema: {
|
|
18190
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18191
|
-
};
|
|
18192
|
-
};
|
|
18193
|
-
};
|
|
18194
|
-
};
|
|
18195
|
-
readonly 401: {
|
|
18196
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18197
|
-
readonly content: {
|
|
18198
|
-
readonly "application/json": {
|
|
18199
|
-
readonly schema: {
|
|
18200
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18201
|
-
};
|
|
18202
|
-
};
|
|
18203
|
-
};
|
|
18204
|
-
};
|
|
18205
|
-
readonly 403: {
|
|
18206
|
-
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18207
|
-
readonly content: {
|
|
18208
|
-
readonly "application/json": {
|
|
18209
|
-
readonly schema: {
|
|
18210
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18211
|
-
};
|
|
18212
|
-
};
|
|
18213
|
-
};
|
|
18214
|
-
};
|
|
18215
|
-
readonly 404: {
|
|
18216
|
-
readonly description: "Workspace not found.";
|
|
18217
|
-
readonly content: {
|
|
18218
|
-
readonly "application/json": {
|
|
18219
|
-
readonly schema: {
|
|
18220
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18221
|
-
};
|
|
18222
|
-
};
|
|
18223
|
-
};
|
|
18224
|
-
};
|
|
18225
|
-
readonly 500: {
|
|
18226
|
-
readonly description: "Failed to delete the workspace picture object.";
|
|
18374
|
+
readonly description: "Invalid request, missing temporary object, oversized file, or invalid file type.";
|
|
18227
18375
|
readonly content: {
|
|
18228
18376
|
readonly "application/json": {
|
|
18229
18377
|
readonly schema: {
|
|
@@ -18235,63 +18383,51 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18235
18383
|
};
|
|
18236
18384
|
};
|
|
18237
18385
|
};
|
|
18238
|
-
readonly "/
|
|
18386
|
+
readonly "/files/download-from-customer/{workspace}/{customerId}": {
|
|
18239
18387
|
readonly get: {
|
|
18240
18388
|
readonly tags: readonly [
|
|
18241
|
-
"
|
|
18389
|
+
"Files"
|
|
18242
18390
|
];
|
|
18243
|
-
readonly summary: "
|
|
18244
|
-
readonly description: "
|
|
18391
|
+
readonly summary: "List files for a customer";
|
|
18392
|
+
readonly description: "Lists finalized objects under `{workspace}_customers/{customerId}/`, each with a 5-minute presigned download URL. Requires workspace access and read access to crm::customers.";
|
|
18245
18393
|
readonly security: readonly [
|
|
18246
18394
|
never
|
|
18247
18395
|
];
|
|
18248
18396
|
readonly parameters: readonly [
|
|
18249
18397
|
{
|
|
18250
|
-
readonly name: "
|
|
18251
|
-
readonly in: "
|
|
18252
|
-
readonly required:
|
|
18398
|
+
readonly name: "workspace";
|
|
18399
|
+
readonly in: "path";
|
|
18400
|
+
readonly required: true;
|
|
18253
18401
|
readonly schema: {
|
|
18254
18402
|
readonly type: "string";
|
|
18255
|
-
readonly format: "
|
|
18403
|
+
readonly format: "uuid";
|
|
18256
18404
|
};
|
|
18257
|
-
readonly description: "
|
|
18405
|
+
readonly description: "Workspace identifier.";
|
|
18258
18406
|
},
|
|
18259
18407
|
{
|
|
18260
|
-
readonly name: "
|
|
18261
|
-
readonly in: "
|
|
18262
|
-
readonly required:
|
|
18408
|
+
readonly name: "customerId";
|
|
18409
|
+
readonly in: "path";
|
|
18410
|
+
readonly required: true;
|
|
18263
18411
|
readonly schema: {
|
|
18264
|
-
readonly type: "
|
|
18265
|
-
readonly
|
|
18266
|
-
readonly maximum: 200;
|
|
18267
|
-
readonly default: 100;
|
|
18412
|
+
readonly type: "string";
|
|
18413
|
+
readonly format: "uuid";
|
|
18268
18414
|
};
|
|
18269
|
-
readonly description: "
|
|
18415
|
+
readonly description: "Customer identifier.";
|
|
18270
18416
|
}
|
|
18271
18417
|
];
|
|
18272
18418
|
readonly responses: {
|
|
18273
18419
|
readonly 200: {
|
|
18274
|
-
readonly description: "
|
|
18275
|
-
readonly content: {
|
|
18276
|
-
readonly "application/json": {
|
|
18277
|
-
readonly schema: {
|
|
18278
|
-
readonly $ref: "#/components/schemas/NotificationSyncSuccess";
|
|
18279
|
-
};
|
|
18280
|
-
};
|
|
18281
|
-
};
|
|
18282
|
-
};
|
|
18283
|
-
readonly 400: {
|
|
18284
|
-
readonly description: "Invalid cursor or limit query parameter.";
|
|
18420
|
+
readonly description: "Customer files listed.";
|
|
18285
18421
|
readonly content: {
|
|
18286
18422
|
readonly "application/json": {
|
|
18287
18423
|
readonly schema: {
|
|
18288
|
-
readonly $ref: "#/components/schemas/
|
|
18424
|
+
readonly $ref: "#/components/schemas/ListCustomerFilesSuccess";
|
|
18289
18425
|
};
|
|
18290
18426
|
};
|
|
18291
18427
|
};
|
|
18292
18428
|
};
|
|
18293
|
-
readonly
|
|
18294
|
-
readonly description: "
|
|
18429
|
+
readonly 403: {
|
|
18430
|
+
readonly description: "Workspace or customer read access is missing.";
|
|
18295
18431
|
readonly content: {
|
|
18296
18432
|
readonly "application/json": {
|
|
18297
18433
|
readonly schema: {
|
|
@@ -18303,13 +18439,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18303
18439
|
};
|
|
18304
18440
|
};
|
|
18305
18441
|
};
|
|
18306
|
-
readonly "/
|
|
18442
|
+
readonly "/files/delete-customer-file": {
|
|
18307
18443
|
readonly post: {
|
|
18308
18444
|
readonly tags: readonly [
|
|
18309
|
-
"
|
|
18445
|
+
"Files"
|
|
18310
18446
|
];
|
|
18311
|
-
readonly summary: "
|
|
18312
|
-
readonly description: "
|
|
18447
|
+
readonly summary: "Delete a customer file";
|
|
18448
|
+
readonly description: "Deletes `{workspace}_customers/{customerId}/{filename}`. Requires workspace access and write access to crm::customers. This deletion remains available for a frozen Free-trial workspace so it can reduce storage before selecting a paid plan.";
|
|
18313
18449
|
readonly security: readonly [
|
|
18314
18450
|
never
|
|
18315
18451
|
];
|
|
@@ -18318,82 +18454,28 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18318
18454
|
readonly content: {
|
|
18319
18455
|
readonly "application/json": {
|
|
18320
18456
|
readonly schema: {
|
|
18321
|
-
readonly $ref: "#/components/schemas/
|
|
18457
|
+
readonly $ref: "#/components/schemas/DeleteCustomerFileRequest";
|
|
18322
18458
|
};
|
|
18323
18459
|
};
|
|
18324
18460
|
};
|
|
18325
18461
|
};
|
|
18326
18462
|
readonly responses: {
|
|
18327
18463
|
readonly 200: {
|
|
18328
|
-
readonly description: "
|
|
18329
|
-
readonly content: {
|
|
18330
|
-
readonly "application/json": {
|
|
18331
|
-
readonly schema: {
|
|
18332
|
-
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
18333
|
-
};
|
|
18334
|
-
};
|
|
18335
|
-
};
|
|
18336
|
-
};
|
|
18337
|
-
readonly 400: {
|
|
18338
|
-
readonly description: "Invalid request payload.";
|
|
18339
|
-
readonly content: {
|
|
18340
|
-
readonly "application/json": {
|
|
18341
|
-
readonly schema: {
|
|
18342
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18343
|
-
};
|
|
18344
|
-
};
|
|
18345
|
-
};
|
|
18346
|
-
};
|
|
18347
|
-
readonly 401: {
|
|
18348
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18464
|
+
readonly description: "Customer file deleted.";
|
|
18349
18465
|
readonly content: {
|
|
18350
18466
|
readonly "application/json": {
|
|
18351
18467
|
readonly schema: {
|
|
18352
|
-
readonly $ref: "#/components/schemas/
|
|
18468
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18353
18469
|
};
|
|
18354
18470
|
};
|
|
18355
18471
|
};
|
|
18356
18472
|
};
|
|
18357
18473
|
readonly 404: {
|
|
18358
|
-
readonly description: "
|
|
18359
|
-
readonly content: {
|
|
18360
|
-
readonly "application/json": {
|
|
18361
|
-
readonly schema: {
|
|
18362
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18363
|
-
};
|
|
18364
|
-
};
|
|
18365
|
-
};
|
|
18366
|
-
};
|
|
18367
|
-
};
|
|
18368
|
-
};
|
|
18369
|
-
};
|
|
18370
|
-
readonly "/notifications/read-all": {
|
|
18371
|
-
readonly post: {
|
|
18372
|
-
readonly tags: readonly [
|
|
18373
|
-
"Notifications"
|
|
18374
|
-
];
|
|
18375
|
-
readonly summary: "Mark all notifications as read";
|
|
18376
|
-
readonly description: "Sets `read=true` and bumps `updated_at` on every unread notification owned by the authenticated user so the changes are picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
18377
|
-
readonly security: readonly [
|
|
18378
|
-
never
|
|
18379
|
-
];
|
|
18380
|
-
readonly responses: {
|
|
18381
|
-
readonly 200: {
|
|
18382
|
-
readonly description: "All unread notifications marked as read.";
|
|
18383
|
-
readonly content: {
|
|
18384
|
-
readonly "application/json": {
|
|
18385
|
-
readonly schema: {
|
|
18386
|
-
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
18387
|
-
};
|
|
18388
|
-
};
|
|
18389
|
-
};
|
|
18390
|
-
};
|
|
18391
|
-
readonly 401: {
|
|
18392
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18474
|
+
readonly description: "File not found.";
|
|
18393
18475
|
readonly content: {
|
|
18394
18476
|
readonly "application/json": {
|
|
18395
18477
|
readonly schema: {
|
|
18396
|
-
readonly $ref: "#/components/schemas/
|
|
18478
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18397
18479
|
};
|
|
18398
18480
|
};
|
|
18399
18481
|
};
|
|
@@ -18401,13 +18483,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18401
18483
|
};
|
|
18402
18484
|
};
|
|
18403
18485
|
};
|
|
18404
|
-
readonly "/
|
|
18486
|
+
readonly "/files/delete-comment-file": {
|
|
18405
18487
|
readonly post: {
|
|
18406
18488
|
readonly tags: readonly [
|
|
18407
|
-
"
|
|
18489
|
+
"Files"
|
|
18408
18490
|
];
|
|
18409
|
-
readonly summary: "
|
|
18410
|
-
readonly description: "
|
|
18491
|
+
readonly summary: "Delete a comment attachment";
|
|
18492
|
+
readonly description: "Deletes the S3 object at `{workspace}_comments/{taskId}/{commentId}/{filename}`. Verifies the object exists before deletion and confirms removal afterward. Requires workspace access and write access to crm::tasks. This deletion remains available for a frozen Free-trial workspace so it can reduce storage before selecting a paid plan.";
|
|
18411
18493
|
readonly security: readonly [
|
|
18412
18494
|
never
|
|
18413
18495
|
];
|
|
@@ -18416,18 +18498,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18416
18498
|
readonly content: {
|
|
18417
18499
|
readonly "application/json": {
|
|
18418
18500
|
readonly schema: {
|
|
18419
|
-
readonly $ref: "#/components/schemas/
|
|
18501
|
+
readonly $ref: "#/components/schemas/DeleteCommentFileRequest";
|
|
18420
18502
|
};
|
|
18421
18503
|
};
|
|
18422
18504
|
};
|
|
18423
18505
|
};
|
|
18424
18506
|
readonly responses: {
|
|
18425
18507
|
readonly 200: {
|
|
18426
|
-
readonly description: "
|
|
18508
|
+
readonly description: "Comment file deleted successfully.";
|
|
18427
18509
|
readonly content: {
|
|
18428
18510
|
readonly "application/json": {
|
|
18429
18511
|
readonly schema: {
|
|
18430
|
-
readonly $ref: "#/components/schemas/
|
|
18512
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18431
18513
|
};
|
|
18432
18514
|
};
|
|
18433
18515
|
};
|
|
@@ -18452,8 +18534,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18452
18534
|
};
|
|
18453
18535
|
};
|
|
18454
18536
|
};
|
|
18455
|
-
readonly
|
|
18456
|
-
readonly description: "
|
|
18537
|
+
readonly 403: {
|
|
18538
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::tasks.";
|
|
18457
18539
|
readonly content: {
|
|
18458
18540
|
readonly "application/json": {
|
|
18459
18541
|
readonly schema: {
|
|
@@ -18462,26 +18544,78 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18462
18544
|
};
|
|
18463
18545
|
};
|
|
18464
18546
|
};
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18547
|
+
readonly 404: {
|
|
18548
|
+
readonly description: "File not found at the given comment attachment key.";
|
|
18549
|
+
readonly content: {
|
|
18550
|
+
readonly "application/json": {
|
|
18551
|
+
readonly schema: {
|
|
18552
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18553
|
+
};
|
|
18554
|
+
};
|
|
18555
|
+
};
|
|
18556
|
+
};
|
|
18557
|
+
readonly 500: {
|
|
18558
|
+
readonly description: "Delete command ran but the object still exists.";
|
|
18559
|
+
readonly content: {
|
|
18560
|
+
readonly "application/json": {
|
|
18561
|
+
readonly schema: {
|
|
18562
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18563
|
+
};
|
|
18564
|
+
};
|
|
18565
|
+
};
|
|
18566
|
+
};
|
|
18567
|
+
};
|
|
18568
|
+
};
|
|
18569
|
+
};
|
|
18570
|
+
readonly "/files/download-from-task/{workspace}/{taskId}": {
|
|
18571
|
+
readonly get: {
|
|
18572
|
+
readonly tags: readonly [
|
|
18573
|
+
"Files"
|
|
18574
|
+
];
|
|
18575
|
+
readonly summary: "List comment files for a task";
|
|
18576
|
+
readonly description: "Lists all comment attachment objects under `{workspace}_comments/{taskId}/` and returns each with a 5-minute presigned download URL. Requires workspace access and read access to crm::tasks.";
|
|
18577
|
+
readonly security: readonly [
|
|
18476
18578
|
never
|
|
18477
18579
|
];
|
|
18580
|
+
readonly parameters: readonly [
|
|
18581
|
+
{
|
|
18582
|
+
readonly name: "workspace";
|
|
18583
|
+
readonly in: "path";
|
|
18584
|
+
readonly required: true;
|
|
18585
|
+
readonly schema: {
|
|
18586
|
+
readonly type: "string";
|
|
18587
|
+
readonly format: "uuid";
|
|
18588
|
+
};
|
|
18589
|
+
readonly description: "Workspace identifier.";
|
|
18590
|
+
},
|
|
18591
|
+
{
|
|
18592
|
+
readonly name: "taskId";
|
|
18593
|
+
readonly in: "path";
|
|
18594
|
+
readonly required: true;
|
|
18595
|
+
readonly schema: {
|
|
18596
|
+
readonly type: "string";
|
|
18597
|
+
readonly format: "uuid";
|
|
18598
|
+
};
|
|
18599
|
+
readonly description: "Task identifier whose comment attachments are listed.";
|
|
18600
|
+
}
|
|
18601
|
+
];
|
|
18478
18602
|
readonly responses: {
|
|
18479
18603
|
readonly 200: {
|
|
18480
|
-
readonly description: "
|
|
18604
|
+
readonly description: "Task comment files listed successfully.";
|
|
18481
18605
|
readonly content: {
|
|
18482
18606
|
readonly "application/json": {
|
|
18483
18607
|
readonly schema: {
|
|
18484
|
-
readonly $ref: "#/components/schemas/
|
|
18608
|
+
readonly $ref: "#/components/schemas/ListTaskCommentFilesSuccess";
|
|
18609
|
+
};
|
|
18610
|
+
};
|
|
18611
|
+
};
|
|
18612
|
+
};
|
|
18613
|
+
readonly 400: {
|
|
18614
|
+
readonly description: "Invalid workspace or task id.";
|
|
18615
|
+
readonly content: {
|
|
18616
|
+
readonly "application/json": {
|
|
18617
|
+
readonly schema: {
|
|
18618
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18485
18619
|
};
|
|
18486
18620
|
};
|
|
18487
18621
|
};
|
|
@@ -18496,16 +18630,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18496
18630
|
};
|
|
18497
18631
|
};
|
|
18498
18632
|
};
|
|
18633
|
+
readonly 403: {
|
|
18634
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks read access to crm::tasks.";
|
|
18635
|
+
readonly content: {
|
|
18636
|
+
readonly "application/json": {
|
|
18637
|
+
readonly schema: {
|
|
18638
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18639
|
+
};
|
|
18640
|
+
};
|
|
18641
|
+
};
|
|
18642
|
+
};
|
|
18643
|
+
readonly 404: {
|
|
18644
|
+
readonly description: "Workspace not found.";
|
|
18645
|
+
readonly content: {
|
|
18646
|
+
readonly "application/json": {
|
|
18647
|
+
readonly schema: {
|
|
18648
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18649
|
+
};
|
|
18650
|
+
};
|
|
18651
|
+
};
|
|
18652
|
+
};
|
|
18499
18653
|
};
|
|
18500
18654
|
};
|
|
18501
18655
|
};
|
|
18502
|
-
readonly "/
|
|
18656
|
+
readonly "/files/upload-profile-picture": {
|
|
18503
18657
|
readonly post: {
|
|
18504
18658
|
readonly tags: readonly [
|
|
18505
|
-
"
|
|
18659
|
+
"Files"
|
|
18506
18660
|
];
|
|
18507
|
-
readonly summary: "
|
|
18508
|
-
readonly description: "
|
|
18661
|
+
readonly summary: "Create presigned upload for profile picture";
|
|
18662
|
+
readonly description: "Returns a presigned POST URL and form fields for uploading a temporary profile picture to `profiles/clients/{userId}/temp` (max 0.5 MB, 5-minute expiry). Accepts JPEG and PNG. After the multipart upload succeeds, call `/files/confirm-profile-picture` to validate, optimize, and persist the image. Requires a valid access token (no workspace policy check).";
|
|
18509
18663
|
readonly security: readonly [
|
|
18510
18664
|
never
|
|
18511
18665
|
];
|
|
@@ -18514,34 +18668,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18514
18668
|
readonly content: {
|
|
18515
18669
|
readonly "application/json": {
|
|
18516
18670
|
readonly schema: {
|
|
18517
|
-
readonly
|
|
18518
|
-
readonly required: readonly [
|
|
18519
|
-
"workspace"
|
|
18520
|
-
];
|
|
18521
|
-
readonly properties: {
|
|
18522
|
-
readonly workspace: {
|
|
18523
|
-
readonly type: "string";
|
|
18524
|
-
readonly format: "uuid";
|
|
18525
|
-
readonly description: "Workspace identifier for chat tenancy.";
|
|
18526
|
-
};
|
|
18527
|
-
};
|
|
18671
|
+
readonly $ref: "#/components/schemas/UploadProfilePictureRequest";
|
|
18528
18672
|
};
|
|
18529
18673
|
};
|
|
18530
18674
|
};
|
|
18531
18675
|
};
|
|
18532
18676
|
readonly responses: {
|
|
18533
|
-
readonly
|
|
18534
|
-
readonly description: "
|
|
18677
|
+
readonly 200: {
|
|
18678
|
+
readonly description: "Presigned profile picture upload created.";
|
|
18535
18679
|
readonly content: {
|
|
18536
18680
|
readonly "application/json": {
|
|
18537
18681
|
readonly schema: {
|
|
18538
|
-
readonly
|
|
18682
|
+
readonly allOf: readonly [
|
|
18683
|
+
{
|
|
18684
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
18685
|
+
}
|
|
18686
|
+
];
|
|
18687
|
+
readonly description: "key is `profiles/clients/{userId}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18539
18688
|
};
|
|
18540
18689
|
};
|
|
18541
18690
|
};
|
|
18542
18691
|
};
|
|
18543
18692
|
readonly 400: {
|
|
18544
|
-
readonly description: "Invalid request payload.";
|
|
18693
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
18545
18694
|
readonly content: {
|
|
18546
18695
|
readonly "application/json": {
|
|
18547
18696
|
readonly schema: {
|
|
@@ -18560,8 +18709,32 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18560
18709
|
};
|
|
18561
18710
|
};
|
|
18562
18711
|
};
|
|
18563
|
-
|
|
18564
|
-
|
|
18712
|
+
};
|
|
18713
|
+
};
|
|
18714
|
+
};
|
|
18715
|
+
readonly "/files/confirm-profile-picture": {
|
|
18716
|
+
readonly post: {
|
|
18717
|
+
readonly tags: readonly [
|
|
18718
|
+
"Files"
|
|
18719
|
+
];
|
|
18720
|
+
readonly summary: "Confirm and persist an uploaded profile picture";
|
|
18721
|
+
readonly description: "Reads the temporary object at `profiles/clients/{userId}/temp`, verifies size (<= 0.5 MB) and real image type (JPEG, PNG, or WebP), resizes it to a 512x512 WebP avatar (cover fit, without enlargement, input pixel limit 4096x4096), stores it privately at `profiles/clients/{userId}/avatar.webp`, deletes the temporary object, creates a 7-day presigned GET URL for the avatar, and saves that URL on the user profile. On failure, the temporary object is deleted; the existing profile picture is left unchanged.";
|
|
18722
|
+
readonly security: readonly [
|
|
18723
|
+
never
|
|
18724
|
+
];
|
|
18725
|
+
readonly responses: {
|
|
18726
|
+
readonly 200: {
|
|
18727
|
+
readonly description: "Profile picture confirmed and saved successfully.";
|
|
18728
|
+
readonly content: {
|
|
18729
|
+
readonly "application/json": {
|
|
18730
|
+
readonly schema: {
|
|
18731
|
+
readonly $ref: "#/components/schemas/ConfirmProfilePictureSuccess";
|
|
18732
|
+
};
|
|
18733
|
+
};
|
|
18734
|
+
};
|
|
18735
|
+
};
|
|
18736
|
+
readonly 400: {
|
|
18737
|
+
readonly description: "Temporary object missing, file too large, invalid image type, or processing failed.";
|
|
18565
18738
|
readonly content: {
|
|
18566
18739
|
readonly "application/json": {
|
|
18567
18740
|
readonly schema: {
|
|
@@ -18570,8 +18743,42 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18570
18743
|
};
|
|
18571
18744
|
};
|
|
18572
18745
|
};
|
|
18573
|
-
readonly
|
|
18574
|
-
readonly description: "
|
|
18746
|
+
readonly 401: {
|
|
18747
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18748
|
+
readonly content: {
|
|
18749
|
+
readonly "application/json": {
|
|
18750
|
+
readonly schema: {
|
|
18751
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18752
|
+
};
|
|
18753
|
+
};
|
|
18754
|
+
};
|
|
18755
|
+
};
|
|
18756
|
+
};
|
|
18757
|
+
};
|
|
18758
|
+
};
|
|
18759
|
+
readonly "/files/delete-profile-picture": {
|
|
18760
|
+
readonly post: {
|
|
18761
|
+
readonly tags: readonly [
|
|
18762
|
+
"Files"
|
|
18763
|
+
];
|
|
18764
|
+
readonly summary: "Delete the authenticated user's profile picture";
|
|
18765
|
+
readonly description: "Deletes `profiles/clients/{userId}/avatar.webp` from S3 when present and clears the profile picture on the user. If the object is already missing, still clears the stored value and returns success with message `Profile picture already deleted`. Requires a valid access token (no workspace policy check).";
|
|
18766
|
+
readonly security: readonly [
|
|
18767
|
+
never
|
|
18768
|
+
];
|
|
18769
|
+
readonly responses: {
|
|
18770
|
+
readonly 200: {
|
|
18771
|
+
readonly description: "Profile picture deleted, or already absent and cleared from the user profile.";
|
|
18772
|
+
readonly content: {
|
|
18773
|
+
readonly "application/json": {
|
|
18774
|
+
readonly schema: {
|
|
18775
|
+
readonly $ref: "#/components/schemas/DeleteProfilePictureSuccess";
|
|
18776
|
+
};
|
|
18777
|
+
};
|
|
18778
|
+
};
|
|
18779
|
+
};
|
|
18780
|
+
readonly 401: {
|
|
18781
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18575
18782
|
readonly content: {
|
|
18576
18783
|
readonly "application/json": {
|
|
18577
18784
|
readonly schema: {
|
|
@@ -18581,11 +18788,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18581
18788
|
};
|
|
18582
18789
|
};
|
|
18583
18790
|
readonly 500: {
|
|
18584
|
-
readonly description: "Failed to
|
|
18791
|
+
readonly description: "Failed to delete the profile picture object.";
|
|
18585
18792
|
readonly content: {
|
|
18586
18793
|
readonly "application/json": {
|
|
18587
18794
|
readonly schema: {
|
|
18588
|
-
readonly $ref: "#/components/schemas/
|
|
18795
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18589
18796
|
};
|
|
18590
18797
|
};
|
|
18591
18798
|
};
|
|
@@ -18593,41 +18800,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18593
18800
|
};
|
|
18594
18801
|
};
|
|
18595
18802
|
};
|
|
18596
|
-
readonly "/
|
|
18597
|
-
readonly
|
|
18803
|
+
readonly "/files/upload-workspace-picture": {
|
|
18804
|
+
readonly post: {
|
|
18598
18805
|
readonly tags: readonly [
|
|
18599
|
-
"
|
|
18806
|
+
"Files"
|
|
18600
18807
|
];
|
|
18601
|
-
readonly summary: "
|
|
18602
|
-
readonly description: "Returns
|
|
18808
|
+
readonly summary: "Create presigned upload for workspace picture";
|
|
18809
|
+
readonly description: "Returns a presigned POST URL and form fields for uploading a temporary workspace picture to `profiles/workspaces/{workspace}/temp` (max 0.5 MB, 5-minute expiry). Accepts JPEG and PNG. After the multipart upload succeeds, call `/files/confirm-workspace-picture` to validate, optimize, and persist the image. Requires workspace access and write access to crm::general.";
|
|
18603
18810
|
readonly security: readonly [
|
|
18604
18811
|
never
|
|
18605
18812
|
];
|
|
18606
|
-
readonly
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
readonly
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
readonly format: "uuid";
|
|
18813
|
+
readonly requestBody: {
|
|
18814
|
+
readonly required: true;
|
|
18815
|
+
readonly content: {
|
|
18816
|
+
readonly "application/json": {
|
|
18817
|
+
readonly schema: {
|
|
18818
|
+
readonly $ref: "#/components/schemas/UploadWorkspacePictureRequest";
|
|
18819
|
+
};
|
|
18614
18820
|
};
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
];
|
|
18821
|
+
};
|
|
18822
|
+
};
|
|
18618
18823
|
readonly responses: {
|
|
18619
18824
|
readonly 200: {
|
|
18620
|
-
readonly description: "
|
|
18825
|
+
readonly description: "Presigned workspace picture upload created.";
|
|
18621
18826
|
readonly content: {
|
|
18622
18827
|
readonly "application/json": {
|
|
18623
18828
|
readonly schema: {
|
|
18624
|
-
readonly
|
|
18829
|
+
readonly allOf: readonly [
|
|
18830
|
+
{
|
|
18831
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
18832
|
+
}
|
|
18833
|
+
];
|
|
18834
|
+
readonly description: "key is `profiles/workspaces/{workspace}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18625
18835
|
};
|
|
18626
18836
|
};
|
|
18627
18837
|
};
|
|
18628
18838
|
};
|
|
18629
18839
|
readonly 400: {
|
|
18630
|
-
readonly description: "Invalid
|
|
18840
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
18631
18841
|
readonly content: {
|
|
18632
18842
|
readonly "application/json": {
|
|
18633
18843
|
readonly schema: {
|
|
@@ -18647,7 +18857,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18647
18857
|
};
|
|
18648
18858
|
};
|
|
18649
18859
|
readonly 403: {
|
|
18650
|
-
readonly description: "Forbidden -
|
|
18860
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18651
18861
|
readonly content: {
|
|
18652
18862
|
readonly "application/json": {
|
|
18653
18863
|
readonly schema: {
|
|
@@ -18657,7 +18867,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18657
18867
|
};
|
|
18658
18868
|
};
|
|
18659
18869
|
readonly 404: {
|
|
18660
|
-
readonly description: "Workspace not found
|
|
18870
|
+
readonly description: "Workspace not found.";
|
|
18661
18871
|
readonly content: {
|
|
18662
18872
|
readonly "application/json": {
|
|
18663
18873
|
readonly schema: {
|
|
@@ -18669,27 +18879,619 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18669
18879
|
};
|
|
18670
18880
|
};
|
|
18671
18881
|
};
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
}
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18882
|
+
readonly "/files/confirm-workspace-picture": {
|
|
18883
|
+
readonly post: {
|
|
18884
|
+
readonly tags: readonly [
|
|
18885
|
+
"Files"
|
|
18886
|
+
];
|
|
18887
|
+
readonly summary: "Confirm and persist an uploaded workspace picture";
|
|
18888
|
+
readonly description: "Reads the temporary object at `profiles/workspaces/{workspace}/temp`, verifies size (<= 0.5 MB) and real image type (JPEG, PNG, or WebP), resizes it to a 512x512 WebP avatar (cover fit, without enlargement, input pixel limit 4096x4096), stores it privately at `profiles/workspaces/{workspace}/avatar.webp`, deletes the temporary object, creates a 7-day presigned GET URL for the avatar, and saves that URL on the workspace. On failure, the temporary object is deleted; the existing workspace picture is left unchanged. Requires workspace access and write access to crm::general.";
|
|
18889
|
+
readonly security: readonly [
|
|
18890
|
+
never
|
|
18891
|
+
];
|
|
18892
|
+
readonly requestBody: {
|
|
18893
|
+
readonly required: true;
|
|
18894
|
+
readonly content: {
|
|
18895
|
+
readonly "application/json": {
|
|
18896
|
+
readonly schema: {
|
|
18897
|
+
readonly $ref: "#/components/schemas/WorkspacePictureWorkspaceRequest";
|
|
18898
|
+
};
|
|
18899
|
+
};
|
|
18900
|
+
};
|
|
18901
|
+
};
|
|
18902
|
+
readonly responses: {
|
|
18903
|
+
readonly 200: {
|
|
18904
|
+
readonly description: "Workspace picture confirmed and saved successfully.";
|
|
18905
|
+
readonly content: {
|
|
18906
|
+
readonly "application/json": {
|
|
18907
|
+
readonly schema: {
|
|
18908
|
+
readonly $ref: "#/components/schemas/ConfirmWorkspacePictureSuccess";
|
|
18909
|
+
};
|
|
18910
|
+
};
|
|
18911
|
+
};
|
|
18912
|
+
};
|
|
18913
|
+
readonly 400: {
|
|
18914
|
+
readonly description: "Temporary object missing, file too large, invalid image type, or processing failed.";
|
|
18915
|
+
readonly content: {
|
|
18916
|
+
readonly "application/json": {
|
|
18917
|
+
readonly schema: {
|
|
18918
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18919
|
+
};
|
|
18920
|
+
};
|
|
18921
|
+
};
|
|
18922
|
+
};
|
|
18923
|
+
readonly 401: {
|
|
18924
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18925
|
+
readonly content: {
|
|
18926
|
+
readonly "application/json": {
|
|
18927
|
+
readonly schema: {
|
|
18928
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18929
|
+
};
|
|
18930
|
+
};
|
|
18931
|
+
};
|
|
18932
|
+
};
|
|
18933
|
+
readonly 403: {
|
|
18934
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18935
|
+
readonly content: {
|
|
18936
|
+
readonly "application/json": {
|
|
18937
|
+
readonly schema: {
|
|
18938
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18939
|
+
};
|
|
18940
|
+
};
|
|
18941
|
+
};
|
|
18942
|
+
};
|
|
18943
|
+
readonly 404: {
|
|
18944
|
+
readonly description: "Workspace not found.";
|
|
18945
|
+
readonly content: {
|
|
18946
|
+
readonly "application/json": {
|
|
18947
|
+
readonly schema: {
|
|
18948
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18949
|
+
};
|
|
18950
|
+
};
|
|
18951
|
+
};
|
|
18952
|
+
};
|
|
18953
|
+
};
|
|
18954
|
+
};
|
|
18955
|
+
};
|
|
18956
|
+
readonly "/files/delete-workspace-picture": {
|
|
18957
|
+
readonly post: {
|
|
18958
|
+
readonly tags: readonly [
|
|
18959
|
+
"Files"
|
|
18960
|
+
];
|
|
18961
|
+
readonly summary: "Delete a workspace picture";
|
|
18962
|
+
readonly description: "Deletes `profiles/workspaces/{workspace}/avatar.webp` from S3 when present and clears the picture on the workspace. If the object is already missing, still clears the stored value and returns success with message `Workspace picture already deleted`. Requires workspace access and write access to crm::general.";
|
|
18963
|
+
readonly security: readonly [
|
|
18964
|
+
never
|
|
18965
|
+
];
|
|
18966
|
+
readonly requestBody: {
|
|
18967
|
+
readonly required: true;
|
|
18968
|
+
readonly content: {
|
|
18969
|
+
readonly "application/json": {
|
|
18970
|
+
readonly schema: {
|
|
18971
|
+
readonly $ref: "#/components/schemas/WorkspacePictureWorkspaceRequest";
|
|
18972
|
+
};
|
|
18973
|
+
};
|
|
18974
|
+
};
|
|
18975
|
+
};
|
|
18976
|
+
readonly responses: {
|
|
18977
|
+
readonly 200: {
|
|
18978
|
+
readonly description: "Workspace picture deleted, or already absent and cleared from the workspace.";
|
|
18979
|
+
readonly content: {
|
|
18980
|
+
readonly "application/json": {
|
|
18981
|
+
readonly schema: {
|
|
18982
|
+
readonly $ref: "#/components/schemas/DeleteWorkspacePictureSuccess";
|
|
18983
|
+
};
|
|
18984
|
+
};
|
|
18985
|
+
};
|
|
18986
|
+
};
|
|
18987
|
+
readonly 400: {
|
|
18988
|
+
readonly description: "Invalid request payload.";
|
|
18989
|
+
readonly content: {
|
|
18990
|
+
readonly "application/json": {
|
|
18991
|
+
readonly schema: {
|
|
18992
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18993
|
+
};
|
|
18994
|
+
};
|
|
18995
|
+
};
|
|
18996
|
+
};
|
|
18997
|
+
readonly 401: {
|
|
18998
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18999
|
+
readonly content: {
|
|
19000
|
+
readonly "application/json": {
|
|
19001
|
+
readonly schema: {
|
|
19002
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19003
|
+
};
|
|
19004
|
+
};
|
|
19005
|
+
};
|
|
19006
|
+
};
|
|
19007
|
+
readonly 403: {
|
|
19008
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
19009
|
+
readonly content: {
|
|
19010
|
+
readonly "application/json": {
|
|
19011
|
+
readonly schema: {
|
|
19012
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19013
|
+
};
|
|
19014
|
+
};
|
|
19015
|
+
};
|
|
19016
|
+
};
|
|
19017
|
+
readonly 404: {
|
|
19018
|
+
readonly description: "Workspace not found.";
|
|
19019
|
+
readonly content: {
|
|
19020
|
+
readonly "application/json": {
|
|
19021
|
+
readonly schema: {
|
|
19022
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19023
|
+
};
|
|
19024
|
+
};
|
|
19025
|
+
};
|
|
19026
|
+
};
|
|
19027
|
+
readonly 500: {
|
|
19028
|
+
readonly description: "Failed to delete the workspace picture object.";
|
|
19029
|
+
readonly content: {
|
|
19030
|
+
readonly "application/json": {
|
|
19031
|
+
readonly schema: {
|
|
19032
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19033
|
+
};
|
|
19034
|
+
};
|
|
19035
|
+
};
|
|
19036
|
+
};
|
|
19037
|
+
};
|
|
19038
|
+
};
|
|
19039
|
+
};
|
|
19040
|
+
readonly "/notifications/sync": {
|
|
19041
|
+
readonly get: {
|
|
19042
|
+
readonly tags: readonly [
|
|
19043
|
+
"Notifications"
|
|
19044
|
+
];
|
|
19045
|
+
readonly summary: "Sync notifications incrementally";
|
|
19046
|
+
readonly description: "Returns the authenticated user's notifications created or updated after the given `cursor` (change timestamp = greatest of created_at/updated_at), ordered oldest change first. Without a cursor, returns notifications from the beginning. Responses are paged by `limit`; when `hasMore` is true, call again with the returned cursor until it is false. Marking notifications read or archived bumps their change timestamp, so state changes propagate to all of the user's devices. Requires a valid access token (no workspace policy check).";
|
|
19047
|
+
readonly security: readonly [
|
|
19048
|
+
never
|
|
19049
|
+
];
|
|
19050
|
+
readonly parameters: readonly [
|
|
19051
|
+
{
|
|
19052
|
+
readonly name: "cursor";
|
|
19053
|
+
readonly in: "query";
|
|
19054
|
+
readonly required: false;
|
|
19055
|
+
readonly schema: {
|
|
19056
|
+
readonly type: "string";
|
|
19057
|
+
readonly format: "date-time";
|
|
19058
|
+
};
|
|
19059
|
+
readonly description: "Change timestamp returned by the previous sync call (ISO 8601). Omit for a full initial sync.";
|
|
19060
|
+
},
|
|
19061
|
+
{
|
|
19062
|
+
readonly name: "limit";
|
|
19063
|
+
readonly in: "query";
|
|
19064
|
+
readonly required: false;
|
|
19065
|
+
readonly schema: {
|
|
19066
|
+
readonly type: "integer";
|
|
19067
|
+
readonly minimum: 1;
|
|
19068
|
+
readonly maximum: 200;
|
|
19069
|
+
readonly default: 100;
|
|
19070
|
+
};
|
|
19071
|
+
readonly description: "Maximum notifications per page.";
|
|
19072
|
+
}
|
|
19073
|
+
];
|
|
19074
|
+
readonly responses: {
|
|
19075
|
+
readonly 200: {
|
|
19076
|
+
readonly description: "Changed notifications with the next cursor.";
|
|
19077
|
+
readonly content: {
|
|
19078
|
+
readonly "application/json": {
|
|
19079
|
+
readonly schema: {
|
|
19080
|
+
readonly $ref: "#/components/schemas/NotificationSyncSuccess";
|
|
19081
|
+
};
|
|
19082
|
+
};
|
|
19083
|
+
};
|
|
19084
|
+
};
|
|
19085
|
+
readonly 400: {
|
|
19086
|
+
readonly description: "Invalid cursor or limit query parameter.";
|
|
19087
|
+
readonly content: {
|
|
19088
|
+
readonly "application/json": {
|
|
19089
|
+
readonly schema: {
|
|
19090
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19091
|
+
};
|
|
19092
|
+
};
|
|
19093
|
+
};
|
|
19094
|
+
};
|
|
19095
|
+
readonly 401: {
|
|
19096
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19097
|
+
readonly content: {
|
|
19098
|
+
readonly "application/json": {
|
|
19099
|
+
readonly schema: {
|
|
19100
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19101
|
+
};
|
|
19102
|
+
};
|
|
19103
|
+
};
|
|
19104
|
+
};
|
|
19105
|
+
};
|
|
19106
|
+
};
|
|
19107
|
+
};
|
|
19108
|
+
readonly "/notifications/read": {
|
|
19109
|
+
readonly post: {
|
|
19110
|
+
readonly tags: readonly [
|
|
19111
|
+
"Notifications"
|
|
19112
|
+
];
|
|
19113
|
+
readonly summary: "Mark a notification as read";
|
|
19114
|
+
readonly description: "Sets `read=true` and bumps `updated_at` for a notification owned by the authenticated user so the change is picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
19115
|
+
readonly security: readonly [
|
|
19116
|
+
never
|
|
19117
|
+
];
|
|
19118
|
+
readonly requestBody: {
|
|
19119
|
+
readonly required: true;
|
|
19120
|
+
readonly content: {
|
|
19121
|
+
readonly "application/json": {
|
|
19122
|
+
readonly schema: {
|
|
19123
|
+
readonly $ref: "#/components/schemas/NotificationIdRequest";
|
|
19124
|
+
};
|
|
19125
|
+
};
|
|
19126
|
+
};
|
|
19127
|
+
};
|
|
19128
|
+
readonly responses: {
|
|
19129
|
+
readonly 200: {
|
|
19130
|
+
readonly description: "Notification marked as read.";
|
|
19131
|
+
readonly content: {
|
|
19132
|
+
readonly "application/json": {
|
|
19133
|
+
readonly schema: {
|
|
19134
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19135
|
+
};
|
|
19136
|
+
};
|
|
19137
|
+
};
|
|
19138
|
+
};
|
|
19139
|
+
readonly 400: {
|
|
19140
|
+
readonly description: "Invalid request payload.";
|
|
19141
|
+
readonly content: {
|
|
19142
|
+
readonly "application/json": {
|
|
19143
|
+
readonly schema: {
|
|
19144
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19145
|
+
};
|
|
19146
|
+
};
|
|
19147
|
+
};
|
|
19148
|
+
};
|
|
19149
|
+
readonly 401: {
|
|
19150
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19151
|
+
readonly content: {
|
|
19152
|
+
readonly "application/json": {
|
|
19153
|
+
readonly schema: {
|
|
19154
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19155
|
+
};
|
|
19156
|
+
};
|
|
19157
|
+
};
|
|
19158
|
+
};
|
|
19159
|
+
readonly 404: {
|
|
19160
|
+
readonly description: "Notification not found for this user.";
|
|
19161
|
+
readonly content: {
|
|
19162
|
+
readonly "application/json": {
|
|
19163
|
+
readonly schema: {
|
|
19164
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19165
|
+
};
|
|
19166
|
+
};
|
|
19167
|
+
};
|
|
19168
|
+
};
|
|
19169
|
+
};
|
|
19170
|
+
};
|
|
19171
|
+
};
|
|
19172
|
+
readonly "/notifications/read-all": {
|
|
19173
|
+
readonly post: {
|
|
19174
|
+
readonly tags: readonly [
|
|
19175
|
+
"Notifications"
|
|
19176
|
+
];
|
|
19177
|
+
readonly summary: "Mark all notifications as read";
|
|
19178
|
+
readonly description: "Sets `read=true` and bumps `updated_at` on every unread notification owned by the authenticated user so the changes are picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
19179
|
+
readonly security: readonly [
|
|
19180
|
+
never
|
|
19181
|
+
];
|
|
19182
|
+
readonly responses: {
|
|
19183
|
+
readonly 200: {
|
|
19184
|
+
readonly description: "All unread notifications marked as read.";
|
|
19185
|
+
readonly content: {
|
|
19186
|
+
readonly "application/json": {
|
|
19187
|
+
readonly schema: {
|
|
19188
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19189
|
+
};
|
|
19190
|
+
};
|
|
19191
|
+
};
|
|
19192
|
+
};
|
|
19193
|
+
readonly 401: {
|
|
19194
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19195
|
+
readonly content: {
|
|
19196
|
+
readonly "application/json": {
|
|
19197
|
+
readonly schema: {
|
|
19198
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19199
|
+
};
|
|
19200
|
+
};
|
|
19201
|
+
};
|
|
19202
|
+
};
|
|
19203
|
+
};
|
|
19204
|
+
};
|
|
19205
|
+
};
|
|
19206
|
+
readonly "/notifications/archive": {
|
|
19207
|
+
readonly post: {
|
|
19208
|
+
readonly tags: readonly [
|
|
19209
|
+
"Notifications"
|
|
19210
|
+
];
|
|
19211
|
+
readonly summary: "Archive a notification";
|
|
19212
|
+
readonly description: "Sets `archive=true` and bumps `updated_at` for a notification owned by the authenticated user so the change is picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
19213
|
+
readonly security: readonly [
|
|
19214
|
+
never
|
|
19215
|
+
];
|
|
19216
|
+
readonly requestBody: {
|
|
19217
|
+
readonly required: true;
|
|
19218
|
+
readonly content: {
|
|
19219
|
+
readonly "application/json": {
|
|
19220
|
+
readonly schema: {
|
|
19221
|
+
readonly $ref: "#/components/schemas/NotificationIdRequest";
|
|
19222
|
+
};
|
|
19223
|
+
};
|
|
19224
|
+
};
|
|
19225
|
+
};
|
|
19226
|
+
readonly responses: {
|
|
19227
|
+
readonly 200: {
|
|
19228
|
+
readonly description: "Notification archived.";
|
|
19229
|
+
readonly content: {
|
|
19230
|
+
readonly "application/json": {
|
|
19231
|
+
readonly schema: {
|
|
19232
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19233
|
+
};
|
|
19234
|
+
};
|
|
19235
|
+
};
|
|
19236
|
+
};
|
|
19237
|
+
readonly 400: {
|
|
19238
|
+
readonly description: "Invalid request payload.";
|
|
19239
|
+
readonly content: {
|
|
19240
|
+
readonly "application/json": {
|
|
19241
|
+
readonly schema: {
|
|
19242
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19243
|
+
};
|
|
19244
|
+
};
|
|
19245
|
+
};
|
|
19246
|
+
};
|
|
19247
|
+
readonly 401: {
|
|
19248
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19249
|
+
readonly content: {
|
|
19250
|
+
readonly "application/json": {
|
|
19251
|
+
readonly schema: {
|
|
19252
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19253
|
+
};
|
|
19254
|
+
};
|
|
19255
|
+
};
|
|
19256
|
+
};
|
|
19257
|
+
readonly 404: {
|
|
19258
|
+
readonly description: "Notification not found for this user.";
|
|
19259
|
+
readonly content: {
|
|
19260
|
+
readonly "application/json": {
|
|
19261
|
+
readonly schema: {
|
|
19262
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19263
|
+
};
|
|
19264
|
+
};
|
|
19265
|
+
};
|
|
19266
|
+
};
|
|
19267
|
+
};
|
|
19268
|
+
};
|
|
19269
|
+
};
|
|
19270
|
+
readonly "/notifications/archive-all": {
|
|
19271
|
+
readonly post: {
|
|
19272
|
+
readonly tags: readonly [
|
|
19273
|
+
"Notifications"
|
|
19274
|
+
];
|
|
19275
|
+
readonly summary: "Archive all notifications";
|
|
19276
|
+
readonly description: "Sets `archive=true` and bumps `updated_at` on every unarchived notification owned by the authenticated user so the changes are picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
19277
|
+
readonly security: readonly [
|
|
19278
|
+
never
|
|
19279
|
+
];
|
|
19280
|
+
readonly responses: {
|
|
19281
|
+
readonly 200: {
|
|
19282
|
+
readonly description: "All unarchived notifications archived.";
|
|
19283
|
+
readonly content: {
|
|
19284
|
+
readonly "application/json": {
|
|
19285
|
+
readonly schema: {
|
|
19286
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19287
|
+
};
|
|
19288
|
+
};
|
|
19289
|
+
};
|
|
19290
|
+
};
|
|
19291
|
+
readonly 401: {
|
|
19292
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19293
|
+
readonly content: {
|
|
19294
|
+
readonly "application/json": {
|
|
19295
|
+
readonly schema: {
|
|
19296
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19297
|
+
};
|
|
19298
|
+
};
|
|
19299
|
+
};
|
|
19300
|
+
};
|
|
19301
|
+
};
|
|
19302
|
+
};
|
|
19303
|
+
};
|
|
19304
|
+
readonly "/chat/start": {
|
|
19305
|
+
readonly post: {
|
|
19306
|
+
readonly tags: readonly [
|
|
19307
|
+
"Chat"
|
|
19308
|
+
];
|
|
19309
|
+
readonly summary: "Start Matrix chat session";
|
|
19310
|
+
readonly description: "Provisions or reuses a Matrix (Synapse) user for the authenticated collaborator. Existing tenants are looked up by JWT `userId` + workspace. Username is `owner_{emailLocalPart}-{workspace}` when the caller is the workspace owner (`workspaces.owner_id`), otherwise `{emailLocalPart}-{workspace}`. Persists a tenant row when new, logs in via Matrix `/login` on first use (stable `device_id` and display name), caches `access_token` on the tenant, and returns the raw login JSON. Requires workspace access and read access to crm::chats.";
|
|
19311
|
+
readonly security: readonly [
|
|
19312
|
+
never
|
|
19313
|
+
];
|
|
19314
|
+
readonly requestBody: {
|
|
19315
|
+
readonly required: true;
|
|
19316
|
+
readonly content: {
|
|
19317
|
+
readonly "application/json": {
|
|
19318
|
+
readonly schema: {
|
|
19319
|
+
readonly type: "object";
|
|
19320
|
+
readonly required: readonly [
|
|
19321
|
+
"workspace"
|
|
19322
|
+
];
|
|
19323
|
+
readonly properties: {
|
|
19324
|
+
readonly workspace: {
|
|
19325
|
+
readonly type: "string";
|
|
19326
|
+
readonly format: "uuid";
|
|
19327
|
+
readonly description: "Workspace identifier for chat tenancy.";
|
|
19328
|
+
};
|
|
19329
|
+
};
|
|
19330
|
+
};
|
|
19331
|
+
};
|
|
19332
|
+
};
|
|
19333
|
+
};
|
|
19334
|
+
readonly responses: {
|
|
19335
|
+
readonly 201: {
|
|
19336
|
+
readonly description: "Matrix login payload (fresh Synapse login or cached token response).";
|
|
19337
|
+
readonly content: {
|
|
19338
|
+
readonly "application/json": {
|
|
19339
|
+
readonly schema: {
|
|
19340
|
+
readonly $ref: "#/components/schemas/MatrixLoginResponse";
|
|
19341
|
+
};
|
|
19342
|
+
};
|
|
19343
|
+
};
|
|
19344
|
+
};
|
|
19345
|
+
readonly 400: {
|
|
19346
|
+
readonly description: "Invalid request payload.";
|
|
19347
|
+
readonly content: {
|
|
19348
|
+
readonly "application/json": {
|
|
19349
|
+
readonly schema: {
|
|
19350
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19351
|
+
};
|
|
19352
|
+
};
|
|
19353
|
+
};
|
|
19354
|
+
};
|
|
19355
|
+
readonly 401: {
|
|
19356
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19357
|
+
readonly content: {
|
|
19358
|
+
readonly "application/json": {
|
|
19359
|
+
readonly schema: {
|
|
19360
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19361
|
+
};
|
|
19362
|
+
};
|
|
19363
|
+
};
|
|
19364
|
+
};
|
|
19365
|
+
readonly 403: {
|
|
19366
|
+
readonly description: "Forbidden - Collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
|
|
19367
|
+
readonly content: {
|
|
19368
|
+
readonly "application/json": {
|
|
19369
|
+
readonly schema: {
|
|
19370
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19371
|
+
};
|
|
19372
|
+
};
|
|
19373
|
+
};
|
|
19374
|
+
};
|
|
19375
|
+
readonly 404: {
|
|
19376
|
+
readonly description: "Workspace not found.";
|
|
19377
|
+
readonly content: {
|
|
19378
|
+
readonly "application/json": {
|
|
19379
|
+
readonly schema: {
|
|
19380
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19381
|
+
};
|
|
19382
|
+
};
|
|
19383
|
+
};
|
|
19384
|
+
};
|
|
19385
|
+
readonly 500: {
|
|
19386
|
+
readonly description: "Failed to provision the Matrix user on Synapse.";
|
|
19387
|
+
readonly content: {
|
|
19388
|
+
readonly "application/json": {
|
|
19389
|
+
readonly schema: {
|
|
19390
|
+
readonly $ref: "#/components/schemas/ChatStartFailure";
|
|
19391
|
+
};
|
|
19392
|
+
};
|
|
19393
|
+
};
|
|
19394
|
+
};
|
|
19395
|
+
};
|
|
19396
|
+
};
|
|
19397
|
+
};
|
|
19398
|
+
readonly "/chat/collaborators/{workspace}": {
|
|
19399
|
+
readonly get: {
|
|
19400
|
+
readonly tags: readonly [
|
|
19401
|
+
"Chat"
|
|
19402
|
+
];
|
|
19403
|
+
readonly summary: "List chat tenants / collaborators";
|
|
19404
|
+
readonly description: "Returns chat tenants for the workspace joined with collaborator role and user profile fields. `username` is a fully qualified Matrix user ID (`@{localpart}:aio.mestra.chat`). Requires workspace access and read access to crm::chats.";
|
|
19405
|
+
readonly security: readonly [
|
|
19406
|
+
never
|
|
19407
|
+
];
|
|
19408
|
+
readonly parameters: readonly [
|
|
19409
|
+
{
|
|
19410
|
+
readonly name: "workspace";
|
|
19411
|
+
readonly in: "path";
|
|
19412
|
+
readonly required: true;
|
|
19413
|
+
readonly schema: {
|
|
19414
|
+
readonly type: "string";
|
|
19415
|
+
readonly format: "uuid";
|
|
19416
|
+
};
|
|
19417
|
+
readonly description: "Workspace identifier.";
|
|
19418
|
+
}
|
|
19419
|
+
];
|
|
19420
|
+
readonly responses: {
|
|
19421
|
+
readonly 200: {
|
|
19422
|
+
readonly description: "Chat collaborators listed successfully.";
|
|
19423
|
+
readonly content: {
|
|
19424
|
+
readonly "application/json": {
|
|
19425
|
+
readonly schema: {
|
|
19426
|
+
readonly $ref: "#/components/schemas/ListChatCollaboratorsSuccess";
|
|
19427
|
+
};
|
|
19428
|
+
};
|
|
19429
|
+
};
|
|
19430
|
+
};
|
|
19431
|
+
readonly 400: {
|
|
19432
|
+
readonly description: "Invalid workspace id.";
|
|
19433
|
+
readonly content: {
|
|
19434
|
+
readonly "application/json": {
|
|
19435
|
+
readonly schema: {
|
|
19436
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19437
|
+
};
|
|
19438
|
+
};
|
|
19439
|
+
};
|
|
19440
|
+
};
|
|
19441
|
+
readonly 401: {
|
|
19442
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19443
|
+
readonly content: {
|
|
19444
|
+
readonly "application/json": {
|
|
19445
|
+
readonly schema: {
|
|
19446
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19447
|
+
};
|
|
19448
|
+
};
|
|
19449
|
+
};
|
|
19450
|
+
};
|
|
19451
|
+
readonly 403: {
|
|
19452
|
+
readonly description: "Forbidden - Collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
|
|
19453
|
+
readonly content: {
|
|
19454
|
+
readonly "application/json": {
|
|
19455
|
+
readonly schema: {
|
|
19456
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19457
|
+
};
|
|
19458
|
+
};
|
|
19459
|
+
};
|
|
19460
|
+
};
|
|
19461
|
+
readonly 404: {
|
|
19462
|
+
readonly description: "Workspace not found, or collaborators not found.";
|
|
19463
|
+
readonly content: {
|
|
19464
|
+
readonly "application/json": {
|
|
19465
|
+
readonly schema: {
|
|
19466
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19467
|
+
};
|
|
19468
|
+
};
|
|
19469
|
+
};
|
|
19470
|
+
};
|
|
19471
|
+
};
|
|
19472
|
+
};
|
|
19473
|
+
};
|
|
19474
|
+
};
|
|
19475
|
+
};
|
|
19476
|
+
outputFormat: "json";
|
|
19477
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19478
|
+
};
|
|
19479
|
+
};
|
|
19480
|
+
} & {
|
|
19481
|
+
"/docs": {
|
|
19482
|
+
$get: {
|
|
19483
|
+
input: {};
|
|
19484
|
+
output: {};
|
|
19485
|
+
outputFormat: string;
|
|
19486
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
19487
|
+
};
|
|
19488
|
+
};
|
|
19489
|
+
} & {
|
|
19490
|
+
"/health": {
|
|
19491
|
+
$get: {
|
|
19492
|
+
input: {};
|
|
19493
|
+
output: {
|
|
19494
|
+
status: string;
|
|
18693
19495
|
};
|
|
18694
19496
|
outputFormat: "json";
|
|
18695
19497
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -20187,6 +20989,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20187
20989
|
birthDate: string | null;
|
|
20188
20990
|
notes: string | null;
|
|
20189
20991
|
}[];
|
|
20992
|
+
failureReasons: {
|
|
20993
|
+
id: string;
|
|
20994
|
+
title: string;
|
|
20995
|
+
description: string | null;
|
|
20996
|
+
workspaceId: string;
|
|
20997
|
+
created_at: string;
|
|
20998
|
+
}[];
|
|
20190
20999
|
};
|
|
20191
21000
|
outputFormat: "json";
|
|
20192
21001
|
status: 200;
|
|
@@ -21455,17 +22264,182 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21455
22264
|
}[];
|
|
21456
22265
|
};
|
|
21457
22266
|
outputFormat: "json";
|
|
21458
|
-
status: 200;
|
|
22267
|
+
status: 200;
|
|
22268
|
+
};
|
|
22269
|
+
};
|
|
22270
|
+
} & {
|
|
22271
|
+
"/get/:workspace/:billingId": {
|
|
22272
|
+
$get: {
|
|
22273
|
+
input: {
|
|
22274
|
+
param: {
|
|
22275
|
+
workspace: string;
|
|
22276
|
+
} & {
|
|
22277
|
+
billingId: string;
|
|
22278
|
+
};
|
|
22279
|
+
};
|
|
22280
|
+
output: {
|
|
22281
|
+
success: false;
|
|
22282
|
+
error: string;
|
|
22283
|
+
};
|
|
22284
|
+
outputFormat: "json";
|
|
22285
|
+
status: 404;
|
|
22286
|
+
} | {
|
|
22287
|
+
input: {
|
|
22288
|
+
param: {
|
|
22289
|
+
workspace: string;
|
|
22290
|
+
} & {
|
|
22291
|
+
billingId: string;
|
|
22292
|
+
};
|
|
22293
|
+
};
|
|
22294
|
+
output: {
|
|
22295
|
+
success: true;
|
|
22296
|
+
billing: {
|
|
22297
|
+
updated_at: string | null;
|
|
22298
|
+
deleted_at: string | null;
|
|
22299
|
+
verified_at: string | null;
|
|
22300
|
+
suspended_at: string | null;
|
|
22301
|
+
created_at: string;
|
|
22302
|
+
id: string;
|
|
22303
|
+
workspaceId: string;
|
|
22304
|
+
country: string;
|
|
22305
|
+
companyName: string;
|
|
22306
|
+
inn: string;
|
|
22307
|
+
kpp: string;
|
|
22308
|
+
bankBranch: string;
|
|
22309
|
+
bankAccountNumber: string;
|
|
22310
|
+
bankBik: string;
|
|
22311
|
+
bankKc: string;
|
|
22312
|
+
vat: boolean;
|
|
22313
|
+
vatRate: number;
|
|
22314
|
+
active: boolean | null;
|
|
22315
|
+
};
|
|
22316
|
+
};
|
|
22317
|
+
outputFormat: "json";
|
|
22318
|
+
status: 200;
|
|
22319
|
+
};
|
|
22320
|
+
};
|
|
22321
|
+
} & {
|
|
22322
|
+
"/edit": {
|
|
22323
|
+
$post: {
|
|
22324
|
+
input: {};
|
|
22325
|
+
output: {
|
|
22326
|
+
success: false;
|
|
22327
|
+
error: never;
|
|
22328
|
+
};
|
|
22329
|
+
outputFormat: "json";
|
|
22330
|
+
status: 400;
|
|
22331
|
+
} | {
|
|
22332
|
+
input: {};
|
|
22333
|
+
output: {
|
|
22334
|
+
success: false;
|
|
22335
|
+
error: string;
|
|
22336
|
+
};
|
|
22337
|
+
outputFormat: "json";
|
|
22338
|
+
status: 404;
|
|
22339
|
+
} | {
|
|
22340
|
+
input: {};
|
|
22341
|
+
output: {
|
|
22342
|
+
success: true;
|
|
22343
|
+
};
|
|
22344
|
+
outputFormat: "json";
|
|
22345
|
+
status: 200;
|
|
22346
|
+
};
|
|
22347
|
+
};
|
|
22348
|
+
} & {
|
|
22349
|
+
"/delete": {
|
|
22350
|
+
$post: {
|
|
22351
|
+
input: {};
|
|
22352
|
+
output: {
|
|
22353
|
+
success: false;
|
|
22354
|
+
error: never;
|
|
22355
|
+
};
|
|
22356
|
+
outputFormat: "json";
|
|
22357
|
+
status: 400;
|
|
22358
|
+
} | {
|
|
22359
|
+
input: {};
|
|
22360
|
+
output: {
|
|
22361
|
+
success: false;
|
|
22362
|
+
error: string;
|
|
22363
|
+
};
|
|
22364
|
+
outputFormat: "json";
|
|
22365
|
+
status: 404;
|
|
22366
|
+
} | {
|
|
22367
|
+
input: {};
|
|
22368
|
+
output: {
|
|
22369
|
+
success: true;
|
|
22370
|
+
};
|
|
22371
|
+
outputFormat: "json";
|
|
22372
|
+
status: 200;
|
|
22373
|
+
};
|
|
22374
|
+
};
|
|
22375
|
+
}, "/billings"> | import("hono/types").MergeSchemaPath<{
|
|
22376
|
+
"/create": {
|
|
22377
|
+
$post: {
|
|
22378
|
+
input: {};
|
|
22379
|
+
output: {
|
|
22380
|
+
success: false;
|
|
22381
|
+
error: string;
|
|
22382
|
+
};
|
|
22383
|
+
outputFormat: "json";
|
|
22384
|
+
status: 404;
|
|
22385
|
+
} | {
|
|
22386
|
+
input: {};
|
|
22387
|
+
output: {
|
|
22388
|
+
success: false;
|
|
22389
|
+
error: string;
|
|
22390
|
+
};
|
|
22391
|
+
outputFormat: "json";
|
|
22392
|
+
status: 400;
|
|
22393
|
+
} | {
|
|
22394
|
+
input: {};
|
|
22395
|
+
output: {
|
|
22396
|
+
success: true;
|
|
22397
|
+
cinvoice: {
|
|
22398
|
+
id: string;
|
|
22399
|
+
created_at: string;
|
|
22400
|
+
invoiceId: string;
|
|
22401
|
+
status: string;
|
|
22402
|
+
workspaceId: string;
|
|
22403
|
+
created_by: string;
|
|
22404
|
+
customerId: string;
|
|
22405
|
+
serviceId: string;
|
|
22406
|
+
installment: boolean | null;
|
|
22407
|
+
vatRate: number | null;
|
|
22408
|
+
SellerBillingId: string;
|
|
22409
|
+
date: string;
|
|
22410
|
+
language: string;
|
|
22411
|
+
currency: string;
|
|
22412
|
+
vatOption: string;
|
|
22413
|
+
unitName: string;
|
|
22414
|
+
unitPrice: number;
|
|
22415
|
+
unitQuantity: number;
|
|
22416
|
+
subscription: boolean | null;
|
|
22417
|
+
updated_at: string | null;
|
|
22418
|
+
deleted_at: string | null;
|
|
22419
|
+
verified_at: string | null;
|
|
22420
|
+
suspended_at: string | null;
|
|
22421
|
+
paidAt: string | null;
|
|
22422
|
+
fullPayment: boolean | null;
|
|
22423
|
+
notes: string | null;
|
|
22424
|
+
buyerInn: string | null;
|
|
22425
|
+
buyerKpp: string | null;
|
|
22426
|
+
discount: number | null;
|
|
22427
|
+
subscriptionStartDate: string | null;
|
|
22428
|
+
subscriptionEndDate: string | null;
|
|
22429
|
+
}[];
|
|
22430
|
+
};
|
|
22431
|
+
outputFormat: "json";
|
|
22432
|
+
status: 201;
|
|
21459
22433
|
};
|
|
21460
22434
|
};
|
|
21461
22435
|
} & {
|
|
21462
|
-
"/
|
|
22436
|
+
"/list/:workspace/:customerId": {
|
|
21463
22437
|
$get: {
|
|
21464
22438
|
input: {
|
|
21465
22439
|
param: {
|
|
21466
22440
|
workspace: string;
|
|
21467
22441
|
} & {
|
|
21468
|
-
|
|
22442
|
+
customerId: string;
|
|
21469
22443
|
};
|
|
21470
22444
|
};
|
|
21471
22445
|
output: {
|
|
@@ -21479,12 +22453,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21479
22453
|
param: {
|
|
21480
22454
|
workspace: string;
|
|
21481
22455
|
} & {
|
|
21482
|
-
|
|
22456
|
+
customerId: string;
|
|
22457
|
+
};
|
|
22458
|
+
};
|
|
22459
|
+
output: {
|
|
22460
|
+
success: false;
|
|
22461
|
+
error: string;
|
|
22462
|
+
};
|
|
22463
|
+
outputFormat: "json";
|
|
22464
|
+
status: 400;
|
|
22465
|
+
} | {
|
|
22466
|
+
input: {
|
|
22467
|
+
param: {
|
|
22468
|
+
workspace: string;
|
|
22469
|
+
} & {
|
|
22470
|
+
customerId: string;
|
|
21483
22471
|
};
|
|
21484
22472
|
};
|
|
21485
22473
|
output: {
|
|
21486
22474
|
success: true;
|
|
21487
|
-
|
|
22475
|
+
cinvoices: {
|
|
21488
22476
|
updated_at: string | null;
|
|
21489
22477
|
deleted_at: string | null;
|
|
21490
22478
|
verified_at: string | null;
|
|
@@ -21492,33 +22480,46 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21492
22480
|
created_at: string;
|
|
21493
22481
|
id: string;
|
|
21494
22482
|
workspaceId: string;
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
22483
|
+
invoiceId: string;
|
|
22484
|
+
serviceId: string;
|
|
22485
|
+
SellerBillingId: string;
|
|
22486
|
+
customerId: string;
|
|
22487
|
+
date: string;
|
|
22488
|
+
language: string;
|
|
22489
|
+
currency: string;
|
|
22490
|
+
vatOption: string;
|
|
22491
|
+
vatRate: number | null;
|
|
22492
|
+
buyerInn: string | null;
|
|
22493
|
+
buyerKpp: string | null;
|
|
22494
|
+
unitName: string;
|
|
22495
|
+
unitPrice: number;
|
|
22496
|
+
unitQuantity: number;
|
|
22497
|
+
notes: string | null;
|
|
22498
|
+
discount: number | null;
|
|
22499
|
+
fullPayment: boolean | null;
|
|
22500
|
+
installment: boolean | null;
|
|
22501
|
+
subscription: boolean | null;
|
|
22502
|
+
subscriptionStartDate: string | null;
|
|
22503
|
+
subscriptionEndDate: string | null;
|
|
22504
|
+
status: string;
|
|
22505
|
+
paidAt: string | null;
|
|
22506
|
+
created_by: string;
|
|
22507
|
+
}[];
|
|
21507
22508
|
};
|
|
21508
22509
|
outputFormat: "json";
|
|
21509
22510
|
status: 200;
|
|
21510
22511
|
};
|
|
21511
22512
|
};
|
|
21512
22513
|
} & {
|
|
21513
|
-
"/
|
|
22514
|
+
"/update": {
|
|
21514
22515
|
$post: {
|
|
21515
22516
|
input: {};
|
|
21516
22517
|
output: {
|
|
21517
22518
|
success: false;
|
|
21518
|
-
error:
|
|
22519
|
+
error: string;
|
|
21519
22520
|
};
|
|
21520
22521
|
outputFormat: "json";
|
|
21521
|
-
status:
|
|
22522
|
+
status: 404;
|
|
21522
22523
|
} | {
|
|
21523
22524
|
input: {};
|
|
21524
22525
|
output: {
|
|
@@ -21526,11 +22527,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21526
22527
|
error: string;
|
|
21527
22528
|
};
|
|
21528
22529
|
outputFormat: "json";
|
|
21529
|
-
status:
|
|
22530
|
+
status: 400;
|
|
21530
22531
|
} | {
|
|
21531
22532
|
input: {};
|
|
21532
22533
|
output: {
|
|
21533
22534
|
success: true;
|
|
22535
|
+
cinvoice: {
|
|
22536
|
+
id: string;
|
|
22537
|
+
created_at: string;
|
|
22538
|
+
invoiceId: string;
|
|
22539
|
+
status: string;
|
|
22540
|
+
workspaceId: string;
|
|
22541
|
+
created_by: string;
|
|
22542
|
+
customerId: string;
|
|
22543
|
+
serviceId: string;
|
|
22544
|
+
installment: boolean | null;
|
|
22545
|
+
vatRate: number | null;
|
|
22546
|
+
SellerBillingId: string;
|
|
22547
|
+
date: string;
|
|
22548
|
+
language: string;
|
|
22549
|
+
currency: string;
|
|
22550
|
+
vatOption: string;
|
|
22551
|
+
unitName: string;
|
|
22552
|
+
unitPrice: number;
|
|
22553
|
+
unitQuantity: number;
|
|
22554
|
+
subscription: boolean | null;
|
|
22555
|
+
updated_at: string | null;
|
|
22556
|
+
deleted_at: string | null;
|
|
22557
|
+
verified_at: string | null;
|
|
22558
|
+
suspended_at: string | null;
|
|
22559
|
+
paidAt: string | null;
|
|
22560
|
+
fullPayment: boolean | null;
|
|
22561
|
+
notes: string | null;
|
|
22562
|
+
buyerInn: string | null;
|
|
22563
|
+
buyerKpp: string | null;
|
|
22564
|
+
discount: number | null;
|
|
22565
|
+
subscriptionStartDate: string | null;
|
|
22566
|
+
subscriptionEndDate: string | null;
|
|
22567
|
+
}[];
|
|
21534
22568
|
};
|
|
21535
22569
|
outputFormat: "json";
|
|
21536
22570
|
status: 200;
|
|
@@ -21542,10 +22576,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21542
22576
|
input: {};
|
|
21543
22577
|
output: {
|
|
21544
22578
|
success: false;
|
|
21545
|
-
error:
|
|
22579
|
+
error: string;
|
|
21546
22580
|
};
|
|
21547
22581
|
outputFormat: "json";
|
|
21548
|
-
status:
|
|
22582
|
+
status: 404;
|
|
21549
22583
|
} | {
|
|
21550
22584
|
input: {};
|
|
21551
22585
|
output: {
|
|
@@ -21553,7 +22587,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21553
22587
|
error: string;
|
|
21554
22588
|
};
|
|
21555
22589
|
outputFormat: "json";
|
|
21556
|
-
status:
|
|
22590
|
+
status: 400;
|
|
21557
22591
|
} | {
|
|
21558
22592
|
input: {};
|
|
21559
22593
|
output: {
|
|
@@ -21563,7 +22597,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21563
22597
|
status: 200;
|
|
21564
22598
|
};
|
|
21565
22599
|
};
|
|
21566
|
-
}, "/
|
|
22600
|
+
}, "/cinvoices"> | import("hono/types").MergeSchemaPath<{
|
|
21567
22601
|
"/create": {
|
|
21568
22602
|
$post: {
|
|
21569
22603
|
input: {};
|
|
@@ -21585,38 +22619,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21585
22619
|
input: {};
|
|
21586
22620
|
output: {
|
|
21587
22621
|
success: true;
|
|
21588
|
-
|
|
22622
|
+
history: {
|
|
21589
22623
|
id: string;
|
|
21590
22624
|
created_at: string;
|
|
21591
|
-
invoiceId: string;
|
|
21592
|
-
status: string;
|
|
21593
22625
|
workspaceId: string;
|
|
21594
22626
|
created_by: string;
|
|
21595
22627
|
customerId: string;
|
|
21596
22628
|
serviceId: string;
|
|
21597
|
-
installment: boolean | null;
|
|
21598
|
-
vatRate: number | null;
|
|
21599
|
-
SellerBillingId: string;
|
|
21600
22629
|
date: string;
|
|
21601
|
-
language: string;
|
|
21602
|
-
currency: string;
|
|
21603
|
-
vatOption: string;
|
|
21604
|
-
unitName: string;
|
|
21605
|
-
unitPrice: number;
|
|
21606
|
-
unitQuantity: number;
|
|
21607
|
-
subscription: boolean | null;
|
|
21608
22630
|
updated_at: string | null;
|
|
21609
22631
|
deleted_at: string | null;
|
|
21610
22632
|
verified_at: string | null;
|
|
21611
22633
|
suspended_at: string | null;
|
|
21612
|
-
paidAt: string | null;
|
|
21613
|
-
fullPayment: boolean | null;
|
|
21614
22634
|
notes: string | null;
|
|
21615
|
-
buyerInn: string | null;
|
|
21616
|
-
buyerKpp: string | null;
|
|
21617
|
-
discount: number | null;
|
|
21618
|
-
subscriptionStartDate: string | null;
|
|
21619
|
-
subscriptionEndDate: string | null;
|
|
21620
22635
|
}[];
|
|
21621
22636
|
};
|
|
21622
22637
|
outputFormat: "json";
|
|
@@ -21643,58 +22658,164 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21643
22658
|
input: {
|
|
21644
22659
|
param: {
|
|
21645
22660
|
workspace: string;
|
|
21646
|
-
} & {
|
|
21647
|
-
customerId: string;
|
|
22661
|
+
} & {
|
|
22662
|
+
customerId: string;
|
|
22663
|
+
};
|
|
22664
|
+
};
|
|
22665
|
+
output: {
|
|
22666
|
+
success: false;
|
|
22667
|
+
error: string;
|
|
22668
|
+
};
|
|
22669
|
+
outputFormat: "json";
|
|
22670
|
+
status: 400;
|
|
22671
|
+
} | {
|
|
22672
|
+
input: {
|
|
22673
|
+
param: {
|
|
22674
|
+
workspace: string;
|
|
22675
|
+
} & {
|
|
22676
|
+
customerId: string;
|
|
22677
|
+
};
|
|
22678
|
+
};
|
|
22679
|
+
output: {
|
|
22680
|
+
success: true;
|
|
22681
|
+
history: {
|
|
22682
|
+
createdBy: {
|
|
22683
|
+
id: string;
|
|
22684
|
+
firstName: string | null;
|
|
22685
|
+
lastName: string | null;
|
|
22686
|
+
profilePicture: string | null;
|
|
22687
|
+
} | null;
|
|
22688
|
+
updated_at: string | null;
|
|
22689
|
+
deleted_at: string | null;
|
|
22690
|
+
verified_at: string | null;
|
|
22691
|
+
suspended_at: string | null;
|
|
22692
|
+
created_at: string;
|
|
22693
|
+
id: string;
|
|
22694
|
+
workspaceId: string;
|
|
22695
|
+
customerId: string;
|
|
22696
|
+
serviceId: string;
|
|
22697
|
+
notes: string | null;
|
|
22698
|
+
date: string;
|
|
22699
|
+
created_by: string;
|
|
22700
|
+
}[];
|
|
22701
|
+
};
|
|
22702
|
+
outputFormat: "json";
|
|
22703
|
+
status: 200;
|
|
22704
|
+
};
|
|
22705
|
+
};
|
|
22706
|
+
} & {
|
|
22707
|
+
"/update": {
|
|
22708
|
+
$post: {
|
|
22709
|
+
input: {};
|
|
22710
|
+
output: {
|
|
22711
|
+
success: false;
|
|
22712
|
+
error: string;
|
|
22713
|
+
};
|
|
22714
|
+
outputFormat: "json";
|
|
22715
|
+
status: 404;
|
|
22716
|
+
} | {
|
|
22717
|
+
input: {};
|
|
22718
|
+
output: {
|
|
22719
|
+
success: false;
|
|
22720
|
+
error: string;
|
|
22721
|
+
};
|
|
22722
|
+
outputFormat: "json";
|
|
22723
|
+
status: 400;
|
|
22724
|
+
} | {
|
|
22725
|
+
input: {};
|
|
22726
|
+
output: {
|
|
22727
|
+
success: true;
|
|
22728
|
+
history: {
|
|
22729
|
+
updated_at: string | null;
|
|
22730
|
+
deleted_at: string | null;
|
|
22731
|
+
verified_at: string | null;
|
|
22732
|
+
suspended_at: string | null;
|
|
22733
|
+
created_at: string;
|
|
22734
|
+
id: string;
|
|
22735
|
+
workspaceId: string;
|
|
22736
|
+
customerId: string;
|
|
22737
|
+
serviceId: string;
|
|
22738
|
+
notes: string | null;
|
|
22739
|
+
date: string;
|
|
22740
|
+
created_by: string;
|
|
22741
|
+
}[];
|
|
22742
|
+
};
|
|
22743
|
+
outputFormat: "json";
|
|
22744
|
+
status: 200;
|
|
22745
|
+
};
|
|
22746
|
+
};
|
|
22747
|
+
} & {
|
|
22748
|
+
"/delete": {
|
|
22749
|
+
$post: {
|
|
22750
|
+
input: {};
|
|
22751
|
+
output: {
|
|
22752
|
+
success: false;
|
|
22753
|
+
error: string;
|
|
22754
|
+
};
|
|
22755
|
+
outputFormat: "json";
|
|
22756
|
+
status: 404;
|
|
22757
|
+
} | {
|
|
22758
|
+
input: {};
|
|
22759
|
+
output: {
|
|
22760
|
+
success: false;
|
|
22761
|
+
error: string;
|
|
22762
|
+
};
|
|
22763
|
+
outputFormat: "json";
|
|
22764
|
+
status: 400;
|
|
22765
|
+
} | {
|
|
22766
|
+
input: {};
|
|
22767
|
+
output: {
|
|
22768
|
+
success: true;
|
|
22769
|
+
};
|
|
22770
|
+
outputFormat: "json";
|
|
22771
|
+
status: 200;
|
|
22772
|
+
};
|
|
22773
|
+
};
|
|
22774
|
+
}, "/chistory"> | import("hono/types").MergeSchemaPath<{
|
|
22775
|
+
"/list/:workspace": {
|
|
22776
|
+
$get: {
|
|
22777
|
+
input: {
|
|
22778
|
+
param: {
|
|
22779
|
+
workspace: string;
|
|
21648
22780
|
};
|
|
21649
22781
|
};
|
|
21650
22782
|
output: {
|
|
21651
|
-
success:
|
|
21652
|
-
|
|
22783
|
+
success: true;
|
|
22784
|
+
collaborators: {
|
|
22785
|
+
collaboratorId: string;
|
|
22786
|
+
role: string;
|
|
22787
|
+
profilePicture: string | null;
|
|
22788
|
+
firstName: string | null;
|
|
22789
|
+
lastName: string | null;
|
|
22790
|
+
}[];
|
|
21653
22791
|
};
|
|
21654
22792
|
outputFormat: "json";
|
|
21655
|
-
status:
|
|
21656
|
-
}
|
|
22793
|
+
status: 200;
|
|
22794
|
+
};
|
|
22795
|
+
};
|
|
22796
|
+
} & {
|
|
22797
|
+
"/list/:workspace/:taskId": {
|
|
22798
|
+
$get: {
|
|
21657
22799
|
input: {
|
|
21658
22800
|
param: {
|
|
21659
22801
|
workspace: string;
|
|
21660
22802
|
} & {
|
|
21661
|
-
|
|
22803
|
+
taskId: string;
|
|
21662
22804
|
};
|
|
21663
22805
|
};
|
|
21664
22806
|
output: {
|
|
21665
22807
|
success: true;
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
deleted_at: string | null;
|
|
21669
|
-
verified_at: string | null;
|
|
21670
|
-
suspended_at: string | null;
|
|
21671
|
-
created_at: string;
|
|
21672
|
-
id: string;
|
|
22808
|
+
assignees: {
|
|
22809
|
+
assigneeId: string;
|
|
21673
22810
|
workspaceId: string;
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
vatRate: number | null;
|
|
21683
|
-
buyerInn: string | null;
|
|
21684
|
-
buyerKpp: string | null;
|
|
21685
|
-
unitName: string;
|
|
21686
|
-
unitPrice: number;
|
|
21687
|
-
unitQuantity: number;
|
|
21688
|
-
notes: string | null;
|
|
21689
|
-
discount: number | null;
|
|
21690
|
-
fullPayment: boolean | null;
|
|
21691
|
-
installment: boolean | null;
|
|
21692
|
-
subscription: boolean | null;
|
|
21693
|
-
subscriptionStartDate: string | null;
|
|
21694
|
-
subscriptionEndDate: string | null;
|
|
21695
|
-
status: string;
|
|
21696
|
-
paidAt: string | null;
|
|
21697
|
-
created_by: string;
|
|
22811
|
+
collaboratorId: string;
|
|
22812
|
+
taskId: string;
|
|
22813
|
+
startDate: string | null;
|
|
22814
|
+
endDate: string | null;
|
|
22815
|
+
description: string | null;
|
|
22816
|
+
profilePicture: string | null;
|
|
22817
|
+
firstName: string | null;
|
|
22818
|
+
lastName: string | null;
|
|
21698
22819
|
}[];
|
|
21699
22820
|
};
|
|
21700
22821
|
outputFormat: "json";
|
|
@@ -21702,7 +22823,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21702
22823
|
};
|
|
21703
22824
|
};
|
|
21704
22825
|
} & {
|
|
21705
|
-
"/
|
|
22826
|
+
"/create": {
|
|
21706
22827
|
$post: {
|
|
21707
22828
|
input: {};
|
|
21708
22829
|
output: {
|
|
@@ -21723,54 +22844,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21723
22844
|
input: {};
|
|
21724
22845
|
output: {
|
|
21725
22846
|
success: true;
|
|
21726
|
-
|
|
22847
|
+
assignee: {
|
|
21727
22848
|
id: string;
|
|
21728
22849
|
created_at: string;
|
|
21729
|
-
|
|
21730
|
-
|
|
22850
|
+
startDate: string | null;
|
|
22851
|
+
endDate: string | null;
|
|
22852
|
+
collaboratorId: string;
|
|
21731
22853
|
workspaceId: string;
|
|
22854
|
+
description: string | null;
|
|
21732
22855
|
created_by: string;
|
|
21733
|
-
|
|
21734
|
-
serviceId: string;
|
|
21735
|
-
installment: boolean | null;
|
|
21736
|
-
vatRate: number | null;
|
|
21737
|
-
SellerBillingId: string;
|
|
21738
|
-
date: string;
|
|
21739
|
-
language: string;
|
|
21740
|
-
currency: string;
|
|
21741
|
-
vatOption: string;
|
|
21742
|
-
unitName: string;
|
|
21743
|
-
unitPrice: number;
|
|
21744
|
-
unitQuantity: number;
|
|
21745
|
-
subscription: boolean | null;
|
|
22856
|
+
taskId: string;
|
|
21746
22857
|
updated_at: string | null;
|
|
21747
22858
|
deleted_at: string | null;
|
|
21748
22859
|
verified_at: string | null;
|
|
21749
22860
|
suspended_at: string | null;
|
|
21750
|
-
|
|
21751
|
-
fullPayment: boolean | null;
|
|
21752
|
-
notes: string | null;
|
|
21753
|
-
buyerInn: string | null;
|
|
21754
|
-
buyerKpp: string | null;
|
|
21755
|
-
discount: number | null;
|
|
21756
|
-
subscriptionStartDate: string | null;
|
|
21757
|
-
subscriptionEndDate: string | null;
|
|
21758
|
-
}[];
|
|
22861
|
+
};
|
|
21759
22862
|
};
|
|
21760
22863
|
outputFormat: "json";
|
|
21761
|
-
status:
|
|
22864
|
+
status: 201;
|
|
21762
22865
|
};
|
|
21763
22866
|
};
|
|
21764
22867
|
} & {
|
|
21765
|
-
"/
|
|
22868
|
+
"/remove": {
|
|
21766
22869
|
$post: {
|
|
21767
22870
|
input: {};
|
|
21768
22871
|
output: {
|
|
21769
22872
|
success: false;
|
|
21770
|
-
error:
|
|
22873
|
+
error: never;
|
|
21771
22874
|
};
|
|
21772
22875
|
outputFormat: "json";
|
|
21773
|
-
status:
|
|
22876
|
+
status: 400;
|
|
21774
22877
|
} | {
|
|
21775
22878
|
input: {};
|
|
21776
22879
|
output: {
|
|
@@ -21778,7 +22881,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21778
22881
|
error: string;
|
|
21779
22882
|
};
|
|
21780
22883
|
outputFormat: "json";
|
|
21781
|
-
status:
|
|
22884
|
+
status: 404;
|
|
21782
22885
|
} | {
|
|
21783
22886
|
input: {};
|
|
21784
22887
|
output: {
|
|
@@ -21788,8 +22891,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21788
22891
|
status: 200;
|
|
21789
22892
|
};
|
|
21790
22893
|
};
|
|
21791
|
-
}
|
|
21792
|
-
"/
|
|
22894
|
+
} & {
|
|
22895
|
+
"/update": {
|
|
21793
22896
|
$post: {
|
|
21794
22897
|
input: {};
|
|
21795
22898
|
output: {
|
|
@@ -21810,88 +22913,73 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21810
22913
|
input: {};
|
|
21811
22914
|
output: {
|
|
21812
22915
|
success: true;
|
|
21813
|
-
|
|
21814
|
-
id: string;
|
|
21815
|
-
created_at: string;
|
|
21816
|
-
workspaceId: string;
|
|
21817
|
-
created_by: string;
|
|
21818
|
-
customerId: string;
|
|
21819
|
-
serviceId: string;
|
|
21820
|
-
date: string;
|
|
22916
|
+
result: {
|
|
21821
22917
|
updated_at: string | null;
|
|
21822
22918
|
deleted_at: string | null;
|
|
21823
22919
|
verified_at: string | null;
|
|
21824
22920
|
suspended_at: string | null;
|
|
21825
|
-
|
|
21826
|
-
|
|
22921
|
+
created_at: string;
|
|
22922
|
+
id: string;
|
|
22923
|
+
taskId: string;
|
|
22924
|
+
collaboratorId: string;
|
|
22925
|
+
startDate: string | null;
|
|
22926
|
+
endDate: string | null;
|
|
22927
|
+
description: string | null;
|
|
22928
|
+
workspaceId: string;
|
|
22929
|
+
created_by: string;
|
|
22930
|
+
};
|
|
21827
22931
|
};
|
|
21828
22932
|
outputFormat: "json";
|
|
21829
|
-
status:
|
|
22933
|
+
status: 200;
|
|
21830
22934
|
};
|
|
21831
22935
|
};
|
|
21832
|
-
}
|
|
21833
|
-
"/list/:workspace
|
|
22936
|
+
}, "/assignees"> | import("hono/types").MergeSchemaPath<{
|
|
22937
|
+
"/list/:workspace": {
|
|
21834
22938
|
$get: {
|
|
21835
22939
|
input: {
|
|
21836
22940
|
param: {
|
|
21837
22941
|
workspace: string;
|
|
21838
|
-
} & {
|
|
21839
|
-
customerId: string;
|
|
21840
22942
|
};
|
|
21841
22943
|
};
|
|
21842
22944
|
output: {
|
|
21843
|
-
success:
|
|
21844
|
-
|
|
22945
|
+
success: true;
|
|
22946
|
+
tags: {
|
|
22947
|
+
name: string;
|
|
22948
|
+
description: string | null;
|
|
22949
|
+
}[];
|
|
21845
22950
|
};
|
|
21846
22951
|
outputFormat: "json";
|
|
21847
|
-
status:
|
|
21848
|
-
}
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
};
|
|
21855
|
-
};
|
|
22952
|
+
status: 200;
|
|
22953
|
+
};
|
|
22954
|
+
};
|
|
22955
|
+
} & {
|
|
22956
|
+
"/create": {
|
|
22957
|
+
$post: {
|
|
22958
|
+
input: {};
|
|
21856
22959
|
output: {
|
|
21857
22960
|
success: false;
|
|
21858
|
-
error:
|
|
22961
|
+
error: never;
|
|
21859
22962
|
};
|
|
21860
22963
|
outputFormat: "json";
|
|
21861
22964
|
status: 400;
|
|
21862
22965
|
} | {
|
|
21863
|
-
input: {
|
|
21864
|
-
param: {
|
|
21865
|
-
workspace: string;
|
|
21866
|
-
} & {
|
|
21867
|
-
customerId: string;
|
|
21868
|
-
};
|
|
21869
|
-
};
|
|
22966
|
+
input: {};
|
|
21870
22967
|
output: {
|
|
21871
22968
|
success: true;
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
21878
|
-
} | null;
|
|
22969
|
+
tag: {
|
|
22970
|
+
id: string;
|
|
22971
|
+
created_at: string;
|
|
22972
|
+
name: string;
|
|
22973
|
+
workspaceId: string;
|
|
22974
|
+
description: string | null;
|
|
21879
22975
|
updated_at: string | null;
|
|
21880
22976
|
deleted_at: string | null;
|
|
21881
22977
|
verified_at: string | null;
|
|
21882
22978
|
suspended_at: string | null;
|
|
21883
|
-
created_at: string;
|
|
21884
|
-
id: string;
|
|
21885
|
-
workspaceId: string;
|
|
21886
|
-
customerId: string;
|
|
21887
|
-
serviceId: string;
|
|
21888
|
-
notes: string | null;
|
|
21889
|
-
date: string;
|
|
21890
|
-
created_by: string;
|
|
21891
22979
|
}[];
|
|
21892
22980
|
};
|
|
21893
22981
|
outputFormat: "json";
|
|
21894
|
-
status:
|
|
22982
|
+
status: 201;
|
|
21895
22983
|
};
|
|
21896
22984
|
};
|
|
21897
22985
|
} & {
|
|
@@ -21900,10 +22988,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21900
22988
|
input: {};
|
|
21901
22989
|
output: {
|
|
21902
22990
|
success: false;
|
|
21903
|
-
error:
|
|
22991
|
+
error: never;
|
|
21904
22992
|
};
|
|
21905
22993
|
outputFormat: "json";
|
|
21906
|
-
status:
|
|
22994
|
+
status: 400;
|
|
22995
|
+
} | {
|
|
22996
|
+
input: {};
|
|
22997
|
+
output: {
|
|
22998
|
+
success: true;
|
|
22999
|
+
tag: {
|
|
23000
|
+
rows: never[];
|
|
23001
|
+
command: string;
|
|
23002
|
+
rowCount: number | null;
|
|
23003
|
+
oid: number;
|
|
23004
|
+
fields: {
|
|
23005
|
+
name: string;
|
|
23006
|
+
tableID: number;
|
|
23007
|
+
columnID: number;
|
|
23008
|
+
dataTypeID: number;
|
|
23009
|
+
dataTypeSize: number;
|
|
23010
|
+
dataTypeModifier: number;
|
|
23011
|
+
format: string;
|
|
23012
|
+
}[];
|
|
23013
|
+
};
|
|
23014
|
+
};
|
|
23015
|
+
outputFormat: "json";
|
|
23016
|
+
status: 200;
|
|
23017
|
+
};
|
|
23018
|
+
};
|
|
23019
|
+
} & {
|
|
23020
|
+
"/delete": {
|
|
23021
|
+
$post: {
|
|
23022
|
+
input: {};
|
|
23023
|
+
output: {
|
|
23024
|
+
success: false;
|
|
23025
|
+
error: never;
|
|
23026
|
+
};
|
|
23027
|
+
outputFormat: "json";
|
|
23028
|
+
status: 400;
|
|
21907
23029
|
} | {
|
|
21908
23030
|
input: {};
|
|
21909
23031
|
output: {
|
|
@@ -21911,40 +23033,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21911
23033
|
error: string;
|
|
21912
23034
|
};
|
|
21913
23035
|
outputFormat: "json";
|
|
21914
|
-
status:
|
|
23036
|
+
status: 404;
|
|
21915
23037
|
} | {
|
|
21916
23038
|
input: {};
|
|
21917
23039
|
output: {
|
|
21918
23040
|
success: true;
|
|
21919
|
-
history: {
|
|
21920
|
-
updated_at: string | null;
|
|
21921
|
-
deleted_at: string | null;
|
|
21922
|
-
verified_at: string | null;
|
|
21923
|
-
suspended_at: string | null;
|
|
21924
|
-
created_at: string;
|
|
21925
|
-
id: string;
|
|
21926
|
-
workspaceId: string;
|
|
21927
|
-
customerId: string;
|
|
21928
|
-
serviceId: string;
|
|
21929
|
-
notes: string | null;
|
|
21930
|
-
date: string;
|
|
21931
|
-
created_by: string;
|
|
21932
|
-
}[];
|
|
21933
23041
|
};
|
|
21934
23042
|
outputFormat: "json";
|
|
21935
23043
|
status: 200;
|
|
21936
23044
|
};
|
|
21937
23045
|
};
|
|
21938
23046
|
} & {
|
|
21939
|
-
"/
|
|
23047
|
+
"/assign-to-task": {
|
|
21940
23048
|
$post: {
|
|
21941
23049
|
input: {};
|
|
21942
23050
|
output: {
|
|
21943
23051
|
success: false;
|
|
21944
|
-
error:
|
|
23052
|
+
error: never;
|
|
21945
23053
|
};
|
|
21946
23054
|
outputFormat: "json";
|
|
21947
|
-
status:
|
|
23055
|
+
status: 400;
|
|
21948
23056
|
} | {
|
|
21949
23057
|
input: {};
|
|
21950
23058
|
output: {
|
|
@@ -21952,7 +23060,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21952
23060
|
error: string;
|
|
21953
23061
|
};
|
|
21954
23062
|
outputFormat: "json";
|
|
21955
|
-
status:
|
|
23063
|
+
status: 404;
|
|
21956
23064
|
} | {
|
|
21957
23065
|
input: {};
|
|
21958
23066
|
output: {
|
|
@@ -21962,59 +23070,35 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21962
23070
|
status: 200;
|
|
21963
23071
|
};
|
|
21964
23072
|
};
|
|
21965
|
-
}
|
|
21966
|
-
"/
|
|
21967
|
-
$
|
|
21968
|
-
input: {
|
|
21969
|
-
param: {
|
|
21970
|
-
workspace: string;
|
|
21971
|
-
};
|
|
21972
|
-
};
|
|
23073
|
+
} & {
|
|
23074
|
+
"/assign-to-customer": {
|
|
23075
|
+
$post: {
|
|
23076
|
+
input: {};
|
|
21973
23077
|
output: {
|
|
21974
|
-
success:
|
|
21975
|
-
|
|
21976
|
-
collaboratorId: string;
|
|
21977
|
-
role: string;
|
|
21978
|
-
profilePicture: string | null;
|
|
21979
|
-
firstName: string | null;
|
|
21980
|
-
lastName: string | null;
|
|
21981
|
-
}[];
|
|
23078
|
+
success: false;
|
|
23079
|
+
error: string;
|
|
21982
23080
|
};
|
|
21983
23081
|
outputFormat: "json";
|
|
21984
|
-
status:
|
|
21985
|
-
}
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
input: {
|
|
21991
|
-
param: {
|
|
21992
|
-
workspace: string;
|
|
21993
|
-
} & {
|
|
21994
|
-
taskId: string;
|
|
21995
|
-
};
|
|
23082
|
+
status: 404;
|
|
23083
|
+
} | {
|
|
23084
|
+
input: {};
|
|
23085
|
+
output: {
|
|
23086
|
+
success: false;
|
|
23087
|
+
error: string;
|
|
21996
23088
|
};
|
|
23089
|
+
outputFormat: "json";
|
|
23090
|
+
status: 400;
|
|
23091
|
+
} | {
|
|
23092
|
+
input: {};
|
|
21997
23093
|
output: {
|
|
21998
23094
|
success: true;
|
|
21999
|
-
assignees: {
|
|
22000
|
-
assigneeId: string;
|
|
22001
|
-
workspaceId: string;
|
|
22002
|
-
collaboratorId: string;
|
|
22003
|
-
taskId: string;
|
|
22004
|
-
startDate: string | null;
|
|
22005
|
-
endDate: string | null;
|
|
22006
|
-
description: string | null;
|
|
22007
|
-
profilePicture: string | null;
|
|
22008
|
-
firstName: string | null;
|
|
22009
|
-
lastName: string | null;
|
|
22010
|
-
}[];
|
|
22011
23095
|
};
|
|
22012
23096
|
outputFormat: "json";
|
|
22013
23097
|
status: 200;
|
|
22014
23098
|
};
|
|
22015
23099
|
};
|
|
22016
23100
|
} & {
|
|
22017
|
-
"/
|
|
23101
|
+
"/remove-from-customer": {
|
|
22018
23102
|
$post: {
|
|
22019
23103
|
input: {};
|
|
22020
23104
|
output: {
|
|
@@ -22035,28 +23119,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22035
23119
|
input: {};
|
|
22036
23120
|
output: {
|
|
22037
23121
|
success: true;
|
|
22038
|
-
assignee: {
|
|
22039
|
-
id: string;
|
|
22040
|
-
created_at: string;
|
|
22041
|
-
startDate: string | null;
|
|
22042
|
-
endDate: string | null;
|
|
22043
|
-
collaboratorId: string;
|
|
22044
|
-
workspaceId: string;
|
|
22045
|
-
description: string | null;
|
|
22046
|
-
created_by: string;
|
|
22047
|
-
taskId: string;
|
|
22048
|
-
updated_at: string | null;
|
|
22049
|
-
deleted_at: string | null;
|
|
22050
|
-
verified_at: string | null;
|
|
22051
|
-
suspended_at: string | null;
|
|
22052
|
-
};
|
|
22053
23122
|
};
|
|
22054
23123
|
outputFormat: "json";
|
|
22055
|
-
status:
|
|
23124
|
+
status: 200;
|
|
22056
23125
|
};
|
|
22057
23126
|
};
|
|
22058
23127
|
} & {
|
|
22059
|
-
"/remove": {
|
|
23128
|
+
"/remove-from-task": {
|
|
22060
23129
|
$post: {
|
|
22061
23130
|
input: {};
|
|
22062
23131
|
output: {
|
|
@@ -22082,10 +23151,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22082
23151
|
status: 200;
|
|
22083
23152
|
};
|
|
22084
23153
|
};
|
|
22085
|
-
}
|
|
22086
|
-
"/
|
|
22087
|
-
$
|
|
22088
|
-
input: {
|
|
23154
|
+
}, "/tags"> | import("hono/types").MergeSchemaPath<{
|
|
23155
|
+
"/list/:workspace/:taskId": {
|
|
23156
|
+
$get: {
|
|
23157
|
+
input: {
|
|
23158
|
+
param: {
|
|
23159
|
+
workspace: string;
|
|
23160
|
+
} & {
|
|
23161
|
+
taskId: string;
|
|
23162
|
+
};
|
|
23163
|
+
};
|
|
22089
23164
|
output: {
|
|
22090
23165
|
success: false;
|
|
22091
23166
|
error: string;
|
|
@@ -22093,51 +23168,90 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22093
23168
|
outputFormat: "json";
|
|
22094
23169
|
status: 404;
|
|
22095
23170
|
} | {
|
|
22096
|
-
input: {
|
|
23171
|
+
input: {
|
|
23172
|
+
param: {
|
|
23173
|
+
workspace: string;
|
|
23174
|
+
} & {
|
|
23175
|
+
taskId: string;
|
|
23176
|
+
};
|
|
23177
|
+
};
|
|
22097
23178
|
output: {
|
|
22098
|
-
success:
|
|
22099
|
-
|
|
23179
|
+
success: true;
|
|
23180
|
+
reasons: {
|
|
23181
|
+
id: string;
|
|
23182
|
+
title: string;
|
|
23183
|
+
description: string | null;
|
|
23184
|
+
workspaceId: string;
|
|
23185
|
+
created_at: string;
|
|
23186
|
+
}[];
|
|
22100
23187
|
};
|
|
22101
23188
|
outputFormat: "json";
|
|
22102
|
-
status:
|
|
22103
|
-
}
|
|
22104
|
-
|
|
23189
|
+
status: 200;
|
|
23190
|
+
};
|
|
23191
|
+
};
|
|
23192
|
+
} & {
|
|
23193
|
+
"/list/:workspace": {
|
|
23194
|
+
$get: {
|
|
23195
|
+
input: {
|
|
23196
|
+
param: {
|
|
23197
|
+
workspace: string;
|
|
23198
|
+
};
|
|
23199
|
+
};
|
|
22105
23200
|
output: {
|
|
22106
23201
|
success: true;
|
|
22107
|
-
|
|
23202
|
+
reasons: {
|
|
22108
23203
|
updated_at: string | null;
|
|
22109
23204
|
deleted_at: string | null;
|
|
22110
23205
|
verified_at: string | null;
|
|
22111
23206
|
suspended_at: string | null;
|
|
22112
23207
|
created_at: string;
|
|
22113
23208
|
id: string;
|
|
22114
|
-
|
|
22115
|
-
collaboratorId: string;
|
|
22116
|
-
startDate: string | null;
|
|
22117
|
-
endDate: string | null;
|
|
23209
|
+
title: string;
|
|
22118
23210
|
description: string | null;
|
|
22119
23211
|
workspaceId: string;
|
|
22120
|
-
|
|
22121
|
-
};
|
|
23212
|
+
}[];
|
|
22122
23213
|
};
|
|
22123
23214
|
outputFormat: "json";
|
|
22124
23215
|
status: 200;
|
|
22125
23216
|
};
|
|
22126
23217
|
};
|
|
22127
|
-
}
|
|
22128
|
-
"/
|
|
23218
|
+
} & {
|
|
23219
|
+
"/get/:workspace/:failureReasonId": {
|
|
22129
23220
|
$get: {
|
|
22130
23221
|
input: {
|
|
22131
23222
|
param: {
|
|
22132
23223
|
workspace: string;
|
|
23224
|
+
} & {
|
|
23225
|
+
failureReasonId: string;
|
|
23226
|
+
};
|
|
23227
|
+
};
|
|
23228
|
+
output: {
|
|
23229
|
+
success: false;
|
|
23230
|
+
error: string;
|
|
23231
|
+
};
|
|
23232
|
+
outputFormat: "json";
|
|
23233
|
+
status: 404;
|
|
23234
|
+
} | {
|
|
23235
|
+
input: {
|
|
23236
|
+
param: {
|
|
23237
|
+
workspace: string;
|
|
23238
|
+
} & {
|
|
23239
|
+
failureReasonId: string;
|
|
22133
23240
|
};
|
|
22134
23241
|
};
|
|
22135
23242
|
output: {
|
|
22136
23243
|
success: true;
|
|
22137
|
-
|
|
22138
|
-
|
|
23244
|
+
reason: {
|
|
23245
|
+
updated_at: string | null;
|
|
23246
|
+
deleted_at: string | null;
|
|
23247
|
+
verified_at: string | null;
|
|
23248
|
+
suspended_at: string | null;
|
|
23249
|
+
created_at: string;
|
|
23250
|
+
id: string;
|
|
23251
|
+
title: string;
|
|
22139
23252
|
description: string | null;
|
|
22140
|
-
|
|
23253
|
+
workspaceId: string;
|
|
23254
|
+
};
|
|
22141
23255
|
};
|
|
22142
23256
|
outputFormat: "json";
|
|
22143
23257
|
status: 200;
|
|
@@ -22153,21 +23267,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22153
23267
|
};
|
|
22154
23268
|
outputFormat: "json";
|
|
22155
23269
|
status: 400;
|
|
23270
|
+
} | {
|
|
23271
|
+
input: {};
|
|
23272
|
+
output: {
|
|
23273
|
+
success: false;
|
|
23274
|
+
error: string;
|
|
23275
|
+
};
|
|
23276
|
+
outputFormat: "json";
|
|
23277
|
+
status: 409;
|
|
22156
23278
|
} | {
|
|
22157
23279
|
input: {};
|
|
22158
23280
|
output: {
|
|
22159
23281
|
success: true;
|
|
22160
|
-
|
|
23282
|
+
reason: {
|
|
22161
23283
|
id: string;
|
|
22162
23284
|
created_at: string;
|
|
22163
|
-
|
|
23285
|
+
title: string;
|
|
22164
23286
|
workspaceId: string;
|
|
22165
23287
|
description: string | null;
|
|
22166
23288
|
updated_at: string | null;
|
|
22167
23289
|
deleted_at: string | null;
|
|
22168
23290
|
verified_at: string | null;
|
|
22169
23291
|
suspended_at: string | null;
|
|
22170
|
-
}
|
|
23292
|
+
};
|
|
22171
23293
|
};
|
|
22172
23294
|
outputFormat: "json";
|
|
22173
23295
|
status: 201;
|
|
@@ -22184,39 +23306,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22184
23306
|
outputFormat: "json";
|
|
22185
23307
|
status: 400;
|
|
22186
23308
|
} | {
|
|
22187
|
-
input: {};
|
|
22188
|
-
output: {
|
|
22189
|
-
success: true;
|
|
22190
|
-
tag: {
|
|
22191
|
-
rows: never[];
|
|
22192
|
-
command: string;
|
|
22193
|
-
rowCount: number | null;
|
|
22194
|
-
oid: number;
|
|
22195
|
-
fields: {
|
|
22196
|
-
name: string;
|
|
22197
|
-
tableID: number;
|
|
22198
|
-
columnID: number;
|
|
22199
|
-
dataTypeID: number;
|
|
22200
|
-
dataTypeSize: number;
|
|
22201
|
-
dataTypeModifier: number;
|
|
22202
|
-
format: string;
|
|
22203
|
-
}[];
|
|
22204
|
-
};
|
|
22205
|
-
};
|
|
22206
|
-
outputFormat: "json";
|
|
22207
|
-
status: 200;
|
|
22208
|
-
};
|
|
22209
|
-
};
|
|
22210
|
-
} & {
|
|
22211
|
-
"/delete": {
|
|
22212
|
-
$post: {
|
|
22213
23309
|
input: {};
|
|
22214
23310
|
output: {
|
|
22215
23311
|
success: false;
|
|
22216
|
-
error:
|
|
23312
|
+
error: string;
|
|
22217
23313
|
};
|
|
22218
23314
|
outputFormat: "json";
|
|
22219
|
-
status:
|
|
23315
|
+
status: 404;
|
|
22220
23316
|
} | {
|
|
22221
23317
|
input: {};
|
|
22222
23318
|
output: {
|
|
@@ -22224,18 +23320,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22224
23320
|
error: string;
|
|
22225
23321
|
};
|
|
22226
23322
|
outputFormat: "json";
|
|
22227
|
-
status:
|
|
23323
|
+
status: 409;
|
|
22228
23324
|
} | {
|
|
22229
23325
|
input: {};
|
|
22230
23326
|
output: {
|
|
22231
23327
|
success: true;
|
|
23328
|
+
reason: {
|
|
23329
|
+
updated_at: string | null;
|
|
23330
|
+
deleted_at: string | null;
|
|
23331
|
+
verified_at: string | null;
|
|
23332
|
+
suspended_at: string | null;
|
|
23333
|
+
created_at: string;
|
|
23334
|
+
id: string;
|
|
23335
|
+
title: string;
|
|
23336
|
+
description: string | null;
|
|
23337
|
+
workspaceId: string;
|
|
23338
|
+
};
|
|
22232
23339
|
};
|
|
22233
23340
|
outputFormat: "json";
|
|
22234
23341
|
status: 200;
|
|
22235
23342
|
};
|
|
22236
23343
|
};
|
|
22237
23344
|
} & {
|
|
22238
|
-
"/
|
|
23345
|
+
"/delete": {
|
|
22239
23346
|
$post: {
|
|
22240
23347
|
input: {};
|
|
22241
23348
|
output: {
|
|
@@ -22262,35 +23369,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22262
23369
|
};
|
|
22263
23370
|
};
|
|
22264
23371
|
} & {
|
|
22265
|
-
"/assign-to-
|
|
23372
|
+
"/assign-to-task": {
|
|
22266
23373
|
$post: {
|
|
22267
23374
|
input: {};
|
|
22268
23375
|
output: {
|
|
22269
23376
|
success: false;
|
|
22270
|
-
error:
|
|
22271
|
-
};
|
|
22272
|
-
outputFormat: "json";
|
|
22273
|
-
status: 404;
|
|
22274
|
-
} | {
|
|
22275
|
-
input: {};
|
|
22276
|
-
output: {
|
|
22277
|
-
success: false;
|
|
22278
|
-
error: string;
|
|
23377
|
+
error: never;
|
|
22279
23378
|
};
|
|
22280
23379
|
outputFormat: "json";
|
|
22281
23380
|
status: 400;
|
|
22282
23381
|
} | {
|
|
22283
|
-
input: {};
|
|
22284
|
-
output: {
|
|
22285
|
-
success: true;
|
|
22286
|
-
};
|
|
22287
|
-
outputFormat: "json";
|
|
22288
|
-
status: 200;
|
|
22289
|
-
};
|
|
22290
|
-
};
|
|
22291
|
-
} & {
|
|
22292
|
-
"/remove-from-customer": {
|
|
22293
|
-
$post: {
|
|
22294
23382
|
input: {};
|
|
22295
23383
|
output: {
|
|
22296
23384
|
success: false;
|
|
@@ -22298,14 +23386,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22298
23386
|
};
|
|
22299
23387
|
outputFormat: "json";
|
|
22300
23388
|
status: 404;
|
|
22301
|
-
} | {
|
|
22302
|
-
input: {};
|
|
22303
|
-
output: {
|
|
22304
|
-
success: false;
|
|
22305
|
-
error: string;
|
|
22306
|
-
};
|
|
22307
|
-
outputFormat: "json";
|
|
22308
|
-
status: 400;
|
|
22309
23389
|
} | {
|
|
22310
23390
|
input: {};
|
|
22311
23391
|
output: {
|
|
@@ -22342,7 +23422,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22342
23422
|
status: 200;
|
|
22343
23423
|
};
|
|
22344
23424
|
};
|
|
22345
|
-
}, "/
|
|
23425
|
+
}, "/freason"> | import("hono/types").MergeSchemaPath<{
|
|
22346
23426
|
"/google/connect": {
|
|
22347
23427
|
$get: {
|
|
22348
23428
|
input: {};
|