@mestra-dev/contract 0.0.205 → 0.0.206
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 +2130 -1056
- 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,61 @@ 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 a failure reason to a task";
|
|
16885
|
+
readonly description: "Links an existing workspace failure reason to a task. 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
|
+
"failureReasonId"
|
|
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 failureReasonId: {
|
|
16912
|
+
readonly type: "string";
|
|
16913
|
+
readonly format: "uuid";
|
|
16914
|
+
readonly description: "Failure reason identifier.";
|
|
16915
|
+
};
|
|
16916
|
+
};
|
|
16917
|
+
};
|
|
16740
16918
|
};
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
];
|
|
16919
|
+
};
|
|
16920
|
+
};
|
|
16744
16921
|
readonly responses: {
|
|
16745
16922
|
readonly 200: {
|
|
16746
|
-
readonly description: "
|
|
16923
|
+
readonly description: "Failure reason assigned to task successfully.";
|
|
16747
16924
|
readonly content: {
|
|
16748
16925
|
readonly "application/json": {
|
|
16749
16926
|
readonly schema: {
|
|
16750
|
-
readonly $ref: "#/components/schemas/
|
|
16927
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
16751
16928
|
};
|
|
16752
16929
|
};
|
|
16753
16930
|
};
|
|
16754
16931
|
};
|
|
16755
16932
|
readonly 400: {
|
|
16756
|
-
readonly description: "Invalid
|
|
16933
|
+
readonly description: "Invalid request payload.";
|
|
16757
16934
|
readonly content: {
|
|
16758
16935
|
readonly "application/json": {
|
|
16759
16936
|
readonly schema: {
|
|
@@ -16773,7 +16950,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16773
16950
|
};
|
|
16774
16951
|
};
|
|
16775
16952
|
readonly 403: {
|
|
16776
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
16953
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16777
16954
|
readonly content: {
|
|
16778
16955
|
readonly "application/json": {
|
|
16779
16956
|
readonly schema: {
|
|
@@ -16783,7 +16960,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16783
16960
|
};
|
|
16784
16961
|
};
|
|
16785
16962
|
readonly 404: {
|
|
16786
|
-
readonly description: "
|
|
16963
|
+
readonly description: "Failure reason or task not found.";
|
|
16787
16964
|
readonly content: {
|
|
16788
16965
|
readonly "application/json": {
|
|
16789
16966
|
readonly schema: {
|
|
@@ -16795,13 +16972,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16795
16972
|
};
|
|
16796
16973
|
};
|
|
16797
16974
|
};
|
|
16798
|
-
readonly "/
|
|
16975
|
+
readonly "/freason/remove-from-task": {
|
|
16799
16976
|
readonly post: {
|
|
16800
16977
|
readonly tags: readonly [
|
|
16801
|
-
"
|
|
16978
|
+
"Failure Reasons"
|
|
16802
16979
|
];
|
|
16803
|
-
readonly summary: "
|
|
16804
|
-
readonly description: "
|
|
16980
|
+
readonly summary: "Remove a failure reason from a task";
|
|
16981
|
+
readonly description: "Unlinks a failure reason from a task. Requires workspace access and write access to crm::tasks.";
|
|
16805
16982
|
readonly security: readonly [
|
|
16806
16983
|
never
|
|
16807
16984
|
];
|
|
@@ -16810,18 +16987,40 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16810
16987
|
readonly content: {
|
|
16811
16988
|
readonly "application/json": {
|
|
16812
16989
|
readonly schema: {
|
|
16813
|
-
readonly
|
|
16990
|
+
readonly type: "object";
|
|
16991
|
+
readonly required: readonly [
|
|
16992
|
+
"workspace",
|
|
16993
|
+
"taskId",
|
|
16994
|
+
"failureReasonId"
|
|
16995
|
+
];
|
|
16996
|
+
readonly properties: {
|
|
16997
|
+
readonly workspace: {
|
|
16998
|
+
readonly type: "string";
|
|
16999
|
+
readonly format: "uuid";
|
|
17000
|
+
readonly description: "Workspace identifier.";
|
|
17001
|
+
};
|
|
17002
|
+
readonly taskId: {
|
|
17003
|
+
readonly type: "string";
|
|
17004
|
+
readonly format: "uuid";
|
|
17005
|
+
readonly description: "Task identifier.";
|
|
17006
|
+
};
|
|
17007
|
+
readonly failureReasonId: {
|
|
17008
|
+
readonly type: "string";
|
|
17009
|
+
readonly format: "uuid";
|
|
17010
|
+
readonly description: "Failure reason identifier.";
|
|
17011
|
+
};
|
|
17012
|
+
};
|
|
16814
17013
|
};
|
|
16815
17014
|
};
|
|
16816
17015
|
};
|
|
16817
17016
|
};
|
|
16818
17017
|
readonly responses: {
|
|
16819
17018
|
readonly 200: {
|
|
16820
|
-
readonly description: "
|
|
17019
|
+
readonly description: "Failure reason removed from task successfully.";
|
|
16821
17020
|
readonly content: {
|
|
16822
17021
|
readonly "application/json": {
|
|
16823
17022
|
readonly schema: {
|
|
16824
|
-
readonly $ref: "#/components/schemas/
|
|
17023
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
16825
17024
|
};
|
|
16826
17025
|
};
|
|
16827
17026
|
};
|
|
@@ -16847,7 +17046,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16847
17046
|
};
|
|
16848
17047
|
};
|
|
16849
17048
|
readonly 403: {
|
|
16850
|
-
readonly description: "Forbidden - User lacks workspace access.";
|
|
17049
|
+
readonly description: "Forbidden - User lacks workspace access or write access to crm::tasks.";
|
|
16851
17050
|
readonly content: {
|
|
16852
17051
|
readonly "application/json": {
|
|
16853
17052
|
readonly schema: {
|
|
@@ -16857,7 +17056,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16857
17056
|
};
|
|
16858
17057
|
};
|
|
16859
17058
|
readonly 404: {
|
|
16860
|
-
readonly description: "
|
|
17059
|
+
readonly description: "Failure reason or task not found.";
|
|
16861
17060
|
readonly content: {
|
|
16862
17061
|
readonly "application/json": {
|
|
16863
17062
|
readonly schema: {
|
|
@@ -16869,13 +17068,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16869
17068
|
};
|
|
16870
17069
|
};
|
|
16871
17070
|
};
|
|
16872
|
-
readonly "/files/
|
|
17071
|
+
readonly "/files/upload": {
|
|
16873
17072
|
readonly post: {
|
|
16874
17073
|
readonly tags: readonly [
|
|
16875
17074
|
"Files"
|
|
16876
17075
|
];
|
|
16877
|
-
readonly summary: "
|
|
16878
|
-
readonly description: "
|
|
17076
|
+
readonly summary: "Create presigned S3 upload";
|
|
17077
|
+
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
17078
|
readonly security: readonly [
|
|
16880
17079
|
never
|
|
16881
17080
|
];
|
|
@@ -16884,24 +17083,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16884
17083
|
readonly content: {
|
|
16885
17084
|
readonly "application/json": {
|
|
16886
17085
|
readonly schema: {
|
|
16887
|
-
readonly $ref: "#/components/schemas/
|
|
17086
|
+
readonly $ref: "#/components/schemas/UploadFileRequest";
|
|
16888
17087
|
};
|
|
16889
17088
|
};
|
|
16890
17089
|
};
|
|
16891
17090
|
};
|
|
16892
17091
|
readonly responses: {
|
|
16893
17092
|
readonly 200: {
|
|
16894
|
-
readonly description: "
|
|
17093
|
+
readonly description: "Presigned upload created.";
|
|
16895
17094
|
readonly content: {
|
|
16896
17095
|
readonly "application/json": {
|
|
16897
17096
|
readonly schema: {
|
|
16898
|
-
readonly $ref: "#/components/schemas/
|
|
17097
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
16899
17098
|
};
|
|
16900
17099
|
};
|
|
16901
17100
|
};
|
|
16902
17101
|
};
|
|
16903
17102
|
readonly 400: {
|
|
16904
|
-
readonly description: "Invalid request payload.";
|
|
17103
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
16905
17104
|
readonly content: {
|
|
16906
17105
|
readonly "application/json": {
|
|
16907
17106
|
readonly schema: {
|
|
@@ -16931,21 +17130,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16931
17130
|
};
|
|
16932
17131
|
};
|
|
16933
17132
|
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).";
|
|
17133
|
+
readonly description: "Workspace or destination folder not found.";
|
|
16945
17134
|
readonly content: {
|
|
16946
17135
|
readonly "application/json": {
|
|
16947
17136
|
readonly schema: {
|
|
16948
|
-
readonly $ref: "#/components/schemas/
|
|
17137
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
16949
17138
|
};
|
|
16950
17139
|
};
|
|
16951
17140
|
};
|
|
@@ -16953,13 +17142,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16953
17142
|
};
|
|
16954
17143
|
};
|
|
16955
17144
|
};
|
|
16956
|
-
readonly "/files/
|
|
17145
|
+
readonly "/files/confirm": {
|
|
16957
17146
|
readonly post: {
|
|
16958
17147
|
readonly tags: readonly [
|
|
16959
17148
|
"Files"
|
|
16960
17149
|
];
|
|
16961
|
-
readonly summary: "
|
|
16962
|
-
readonly description: "
|
|
17150
|
+
readonly summary: "Confirm and promote a temporary upload";
|
|
17151
|
+
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
17152
|
readonly security: readonly [
|
|
16964
17153
|
never
|
|
16965
17154
|
];
|
|
@@ -16968,24 +17157,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16968
17157
|
readonly content: {
|
|
16969
17158
|
readonly "application/json": {
|
|
16970
17159
|
readonly schema: {
|
|
16971
|
-
readonly $ref: "#/components/schemas/
|
|
17160
|
+
readonly $ref: "#/components/schemas/ConfirmFileRequest";
|
|
16972
17161
|
};
|
|
16973
17162
|
};
|
|
16974
17163
|
};
|
|
16975
17164
|
};
|
|
16976
17165
|
readonly responses: {
|
|
16977
17166
|
readonly 200: {
|
|
16978
|
-
readonly description: "File
|
|
17167
|
+
readonly description: "File confirmed and promoted successfully.";
|
|
16979
17168
|
readonly content: {
|
|
16980
17169
|
readonly "application/json": {
|
|
16981
17170
|
readonly schema: {
|
|
16982
|
-
readonly $ref: "#/components/schemas/
|
|
17171
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
16983
17172
|
};
|
|
16984
17173
|
};
|
|
16985
17174
|
};
|
|
16986
17175
|
};
|
|
16987
17176
|
readonly 400: {
|
|
16988
|
-
readonly description: "
|
|
17177
|
+
readonly description: "Temporary object missing, file too large, invalid file type, or processing failed.";
|
|
16989
17178
|
readonly content: {
|
|
16990
17179
|
readonly "application/json": {
|
|
16991
17180
|
readonly schema: {
|
|
@@ -17015,17 +17204,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17015
17204
|
};
|
|
17016
17205
|
};
|
|
17017
17206
|
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.";
|
|
17207
|
+
readonly description: "Workspace or destination folder not found.";
|
|
17029
17208
|
readonly content: {
|
|
17030
17209
|
readonly "application/json": {
|
|
17031
17210
|
readonly schema: {
|
|
@@ -17037,13 +17216,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17037
17216
|
};
|
|
17038
17217
|
};
|
|
17039
17218
|
};
|
|
17040
|
-
readonly "/files/
|
|
17219
|
+
readonly "/files/create-folder": {
|
|
17041
17220
|
readonly post: {
|
|
17042
17221
|
readonly tags: readonly [
|
|
17043
17222
|
"Files"
|
|
17044
17223
|
];
|
|
17045
|
-
readonly summary: "Create
|
|
17046
|
-
readonly description: "
|
|
17224
|
+
readonly summary: "Create an empty S3 folder";
|
|
17225
|
+
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
17226
|
readonly security: readonly [
|
|
17048
17227
|
never
|
|
17049
17228
|
];
|
|
@@ -17052,24 +17231,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17052
17231
|
readonly content: {
|
|
17053
17232
|
readonly "application/json": {
|
|
17054
17233
|
readonly schema: {
|
|
17055
|
-
readonly $ref: "#/components/schemas/
|
|
17234
|
+
readonly $ref: "#/components/schemas/CreateFolderRequest";
|
|
17056
17235
|
};
|
|
17057
17236
|
};
|
|
17058
17237
|
};
|
|
17059
17238
|
};
|
|
17060
17239
|
readonly responses: {
|
|
17061
|
-
readonly
|
|
17062
|
-
readonly description: "
|
|
17240
|
+
readonly 201: {
|
|
17241
|
+
readonly description: "Folder created successfully.";
|
|
17063
17242
|
readonly content: {
|
|
17064
17243
|
readonly "application/json": {
|
|
17065
17244
|
readonly schema: {
|
|
17066
|
-
readonly $ref: "#/components/schemas/
|
|
17245
|
+
readonly $ref: "#/components/schemas/CreateFolderSuccess";
|
|
17067
17246
|
};
|
|
17068
17247
|
};
|
|
17069
17248
|
};
|
|
17070
17249
|
};
|
|
17071
17250
|
readonly 400: {
|
|
17072
|
-
readonly description: "Invalid request payload
|
|
17251
|
+
readonly description: "Invalid request payload.";
|
|
17073
17252
|
readonly content: {
|
|
17074
17253
|
readonly "application/json": {
|
|
17075
17254
|
readonly schema: {
|
|
@@ -17089,7 +17268,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17089
17268
|
};
|
|
17090
17269
|
};
|
|
17091
17270
|
readonly 403: {
|
|
17092
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17271
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17093
17272
|
readonly content: {
|
|
17094
17273
|
readonly "application/json": {
|
|
17095
17274
|
readonly schema: {
|
|
@@ -17099,7 +17278,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17099
17278
|
};
|
|
17100
17279
|
};
|
|
17101
17280
|
readonly 404: {
|
|
17102
|
-
readonly description: "Workspace
|
|
17281
|
+
readonly description: "Workspace not found.";
|
|
17103
17282
|
readonly content: {
|
|
17104
17283
|
readonly "application/json": {
|
|
17105
17284
|
readonly schema: {
|
|
@@ -17111,13 +17290,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17111
17290
|
};
|
|
17112
17291
|
};
|
|
17113
17292
|
};
|
|
17114
|
-
readonly "/files/
|
|
17293
|
+
readonly "/files/delete-folder": {
|
|
17115
17294
|
readonly post: {
|
|
17116
17295
|
readonly tags: readonly [
|
|
17117
17296
|
"Files"
|
|
17118
17297
|
];
|
|
17119
|
-
readonly summary: "
|
|
17120
|
-
readonly description: "
|
|
17298
|
+
readonly summary: "Delete an S3 folder and its contents";
|
|
17299
|
+
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
17300
|
readonly security: readonly [
|
|
17122
17301
|
never
|
|
17123
17302
|
];
|
|
@@ -17126,24 +17305,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17126
17305
|
readonly content: {
|
|
17127
17306
|
readonly "application/json": {
|
|
17128
17307
|
readonly schema: {
|
|
17129
|
-
readonly $ref: "#/components/schemas/
|
|
17308
|
+
readonly $ref: "#/components/schemas/CreateFolderRequest";
|
|
17130
17309
|
};
|
|
17131
17310
|
};
|
|
17132
17311
|
};
|
|
17133
17312
|
};
|
|
17134
17313
|
readonly responses: {
|
|
17135
17314
|
readonly 200: {
|
|
17136
|
-
readonly description: "
|
|
17315
|
+
readonly description: "Folder and all objects under its prefix deleted successfully.";
|
|
17137
17316
|
readonly content: {
|
|
17138
17317
|
readonly "application/json": {
|
|
17139
17318
|
readonly schema: {
|
|
17140
|
-
readonly $ref: "#/components/schemas/
|
|
17319
|
+
readonly $ref: "#/components/schemas/DeleteFolderSuccess";
|
|
17141
17320
|
};
|
|
17142
17321
|
};
|
|
17143
17322
|
};
|
|
17144
17323
|
};
|
|
17145
17324
|
readonly 400: {
|
|
17146
|
-
readonly description: "Invalid request payload
|
|
17325
|
+
readonly description: "Invalid request payload.";
|
|
17147
17326
|
readonly content: {
|
|
17148
17327
|
readonly "application/json": {
|
|
17149
17328
|
readonly schema: {
|
|
@@ -17163,7 +17342,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17163
17342
|
};
|
|
17164
17343
|
};
|
|
17165
17344
|
readonly 403: {
|
|
17166
|
-
readonly description: "Forbidden -
|
|
17345
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17167
17346
|
readonly content: {
|
|
17168
17347
|
readonly "application/json": {
|
|
17169
17348
|
readonly schema: {
|
|
@@ -17173,7 +17352,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17173
17352
|
};
|
|
17174
17353
|
};
|
|
17175
17354
|
readonly 404: {
|
|
17176
|
-
readonly description: "Workspace
|
|
17355
|
+
readonly description: "Workspace not found.";
|
|
17177
17356
|
readonly content: {
|
|
17178
17357
|
readonly "application/json": {
|
|
17179
17358
|
readonly schema: {
|
|
@@ -17185,39 +17364,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17185
17364
|
};
|
|
17186
17365
|
};
|
|
17187
17366
|
};
|
|
17188
|
-
readonly "/files/
|
|
17189
|
-
readonly
|
|
17367
|
+
readonly "/files/list/{workspace}": {
|
|
17368
|
+
readonly get: {
|
|
17190
17369
|
readonly tags: readonly [
|
|
17191
17370
|
"Files"
|
|
17192
17371
|
];
|
|
17193
|
-
readonly summary: "
|
|
17194
|
-
readonly description: "
|
|
17372
|
+
readonly summary: "List workspace files";
|
|
17373
|
+
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
17374
|
readonly security: readonly [
|
|
17196
17375
|
never
|
|
17197
17376
|
];
|
|
17198
|
-
readonly
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
readonly "
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17377
|
+
readonly parameters: readonly [
|
|
17378
|
+
{
|
|
17379
|
+
readonly name: "workspace";
|
|
17380
|
+
readonly in: "path";
|
|
17381
|
+
readonly required: true;
|
|
17382
|
+
readonly schema: {
|
|
17383
|
+
readonly type: "string";
|
|
17384
|
+
readonly format: "uuid";
|
|
17205
17385
|
};
|
|
17206
|
-
|
|
17207
|
-
|
|
17386
|
+
readonly description: "Workspace identifier.";
|
|
17387
|
+
}
|
|
17388
|
+
];
|
|
17208
17389
|
readonly responses: {
|
|
17209
17390
|
readonly 200: {
|
|
17210
|
-
readonly description: "
|
|
17391
|
+
readonly description: "Files listed successfully.";
|
|
17211
17392
|
readonly content: {
|
|
17212
17393
|
readonly "application/json": {
|
|
17213
17394
|
readonly schema: {
|
|
17214
|
-
readonly $ref: "#/components/schemas/
|
|
17395
|
+
readonly $ref: "#/components/schemas/ListFilesSuccess";
|
|
17215
17396
|
};
|
|
17216
17397
|
};
|
|
17217
17398
|
};
|
|
17218
17399
|
};
|
|
17219
17400
|
readonly 400: {
|
|
17220
|
-
readonly description: "Invalid
|
|
17401
|
+
readonly description: "Invalid workspace id.";
|
|
17221
17402
|
readonly content: {
|
|
17222
17403
|
readonly "application/json": {
|
|
17223
17404
|
readonly schema: {
|
|
@@ -17237,7 +17418,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17237
17418
|
};
|
|
17238
17419
|
};
|
|
17239
17420
|
readonly 403: {
|
|
17240
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17421
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17241
17422
|
readonly content: {
|
|
17242
17423
|
readonly "application/json": {
|
|
17243
17424
|
readonly schema: {
|
|
@@ -17247,7 +17428,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17247
17428
|
};
|
|
17248
17429
|
};
|
|
17249
17430
|
readonly 404: {
|
|
17250
|
-
readonly description: "Workspace
|
|
17431
|
+
readonly description: "Workspace not found.";
|
|
17251
17432
|
readonly content: {
|
|
17252
17433
|
readonly "application/json": {
|
|
17253
17434
|
readonly schema: {
|
|
@@ -17259,39 +17440,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17259
17440
|
};
|
|
17260
17441
|
};
|
|
17261
17442
|
};
|
|
17262
|
-
readonly "/files/
|
|
17263
|
-
readonly
|
|
17443
|
+
readonly "/files/usage/{workspace}": {
|
|
17444
|
+
readonly get: {
|
|
17264
17445
|
readonly tags: readonly [
|
|
17265
17446
|
"Files"
|
|
17266
17447
|
];
|
|
17267
|
-
readonly summary: "
|
|
17268
|
-
readonly description: "
|
|
17448
|
+
readonly summary: "Get workspace storage usage";
|
|
17449
|
+
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
17450
|
readonly security: readonly [
|
|
17270
17451
|
never
|
|
17271
17452
|
];
|
|
17272
|
-
readonly
|
|
17273
|
-
|
|
17274
|
-
|
|
17275
|
-
readonly "
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17453
|
+
readonly parameters: readonly [
|
|
17454
|
+
{
|
|
17455
|
+
readonly name: "workspace";
|
|
17456
|
+
readonly in: "path";
|
|
17457
|
+
readonly required: true;
|
|
17458
|
+
readonly schema: {
|
|
17459
|
+
readonly type: "string";
|
|
17460
|
+
readonly format: "uuid";
|
|
17279
17461
|
};
|
|
17280
|
-
|
|
17281
|
-
|
|
17462
|
+
readonly description: "Workspace identifier.";
|
|
17463
|
+
}
|
|
17464
|
+
];
|
|
17282
17465
|
readonly responses: {
|
|
17283
17466
|
readonly 200: {
|
|
17284
|
-
readonly description: "
|
|
17467
|
+
readonly description: "Storage usage returned.";
|
|
17285
17468
|
readonly content: {
|
|
17286
17469
|
readonly "application/json": {
|
|
17287
17470
|
readonly schema: {
|
|
17288
|
-
readonly $ref: "#/components/schemas/
|
|
17471
|
+
readonly $ref: "#/components/schemas/StorageUsageSuccess";
|
|
17289
17472
|
};
|
|
17290
17473
|
};
|
|
17291
17474
|
};
|
|
17292
17475
|
};
|
|
17293
|
-
readonly
|
|
17294
|
-
readonly description: "
|
|
17476
|
+
readonly 401: {
|
|
17477
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17295
17478
|
readonly content: {
|
|
17296
17479
|
readonly "application/json": {
|
|
17297
17480
|
readonly schema: {
|
|
@@ -17300,8 +17483,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17300
17483
|
};
|
|
17301
17484
|
};
|
|
17302
17485
|
};
|
|
17303
|
-
readonly
|
|
17304
|
-
readonly description: "
|
|
17486
|
+
readonly 403: {
|
|
17487
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17305
17488
|
readonly content: {
|
|
17306
17489
|
readonly "application/json": {
|
|
17307
17490
|
readonly schema: {
|
|
@@ -17310,8 +17493,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17310
17493
|
};
|
|
17311
17494
|
};
|
|
17312
17495
|
};
|
|
17313
|
-
readonly
|
|
17314
|
-
readonly description: "
|
|
17496
|
+
readonly 404: {
|
|
17497
|
+
readonly description: "Workspace not found.";
|
|
17315
17498
|
readonly content: {
|
|
17316
17499
|
readonly "application/json": {
|
|
17317
17500
|
readonly schema: {
|
|
@@ -17323,13 +17506,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17323
17506
|
};
|
|
17324
17507
|
};
|
|
17325
17508
|
};
|
|
17326
|
-
readonly "/files/download
|
|
17509
|
+
readonly "/files/download/{workspace}": {
|
|
17327
17510
|
readonly get: {
|
|
17328
17511
|
readonly tags: readonly [
|
|
17329
17512
|
"Files"
|
|
17330
17513
|
];
|
|
17331
|
-
readonly summary: "
|
|
17332
|
-
readonly description: "
|
|
17514
|
+
readonly summary: "Get presigned download URL";
|
|
17515
|
+
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
17516
|
readonly security: readonly [
|
|
17334
17517
|
never
|
|
17335
17518
|
];
|
|
@@ -17345,29 +17528,28 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17345
17528
|
readonly description: "Workspace identifier.";
|
|
17346
17529
|
},
|
|
17347
17530
|
{
|
|
17348
|
-
readonly name: "
|
|
17349
|
-
readonly in: "
|
|
17531
|
+
readonly name: "path";
|
|
17532
|
+
readonly in: "query";
|
|
17350
17533
|
readonly required: true;
|
|
17351
17534
|
readonly schema: {
|
|
17352
|
-
readonly
|
|
17353
|
-
readonly format: "uuid";
|
|
17535
|
+
readonly $ref: "#/components/schemas/WorkspaceRelativeFilePath";
|
|
17354
17536
|
};
|
|
17355
|
-
readonly description: "
|
|
17537
|
+
readonly description: "Workspace-relative file path after the workspace prefix.";
|
|
17356
17538
|
}
|
|
17357
17539
|
];
|
|
17358
17540
|
readonly responses: {
|
|
17359
17541
|
readonly 200: {
|
|
17360
|
-
readonly description: "
|
|
17542
|
+
readonly description: "Download URL created.";
|
|
17361
17543
|
readonly content: {
|
|
17362
17544
|
readonly "application/json": {
|
|
17363
17545
|
readonly schema: {
|
|
17364
|
-
readonly $ref: "#/components/schemas/
|
|
17546
|
+
readonly $ref: "#/components/schemas/DownloadFileSuccess";
|
|
17365
17547
|
};
|
|
17366
17548
|
};
|
|
17367
17549
|
};
|
|
17368
17550
|
};
|
|
17369
17551
|
readonly 400: {
|
|
17370
|
-
readonly description: "Invalid workspace or
|
|
17552
|
+
readonly description: "Invalid workspace id or file path.";
|
|
17371
17553
|
readonly content: {
|
|
17372
17554
|
readonly "application/json": {
|
|
17373
17555
|
readonly schema: {
|
|
@@ -17387,7 +17569,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17387
17569
|
};
|
|
17388
17570
|
};
|
|
17389
17571
|
readonly 403: {
|
|
17390
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17572
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17573
|
+
readonly content: {
|
|
17574
|
+
readonly "application/json": {
|
|
17575
|
+
readonly schema: {
|
|
17576
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17577
|
+
};
|
|
17578
|
+
};
|
|
17579
|
+
};
|
|
17580
|
+
};
|
|
17581
|
+
readonly 404: {
|
|
17582
|
+
readonly description: "Workspace not found.";
|
|
17391
17583
|
readonly content: {
|
|
17392
17584
|
readonly "application/json": {
|
|
17393
17585
|
readonly schema: {
|
|
@@ -17399,13 +17591,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17399
17591
|
};
|
|
17400
17592
|
};
|
|
17401
17593
|
};
|
|
17402
|
-
readonly "/files/
|
|
17594
|
+
readonly "/files/pin": {
|
|
17403
17595
|
readonly post: {
|
|
17404
17596
|
readonly tags: readonly [
|
|
17405
17597
|
"Files"
|
|
17406
17598
|
];
|
|
17407
|
-
readonly summary: "
|
|
17408
|
-
readonly description: "
|
|
17599
|
+
readonly summary: "Pin or unpin a file";
|
|
17600
|
+
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
17601
|
readonly security: readonly [
|
|
17410
17602
|
never
|
|
17411
17603
|
];
|
|
@@ -17414,18 +17606,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17414
17606
|
readonly content: {
|
|
17415
17607
|
readonly "application/json": {
|
|
17416
17608
|
readonly schema: {
|
|
17417
|
-
readonly $ref: "#/components/schemas/
|
|
17609
|
+
readonly $ref: "#/components/schemas/PinFileRequest";
|
|
17418
17610
|
};
|
|
17419
17611
|
};
|
|
17420
17612
|
};
|
|
17421
17613
|
};
|
|
17422
17614
|
readonly responses: {
|
|
17423
17615
|
readonly 200: {
|
|
17424
|
-
readonly description: "
|
|
17616
|
+
readonly description: "Pin metadata updated successfully.";
|
|
17425
17617
|
readonly content: {
|
|
17426
17618
|
readonly "application/json": {
|
|
17427
17619
|
readonly schema: {
|
|
17428
|
-
readonly $ref: "#/components/schemas/
|
|
17620
|
+
readonly $ref: "#/components/schemas/PinFileSuccess";
|
|
17429
17621
|
};
|
|
17430
17622
|
};
|
|
17431
17623
|
};
|
|
@@ -17451,7 +17643,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17451
17643
|
};
|
|
17452
17644
|
};
|
|
17453
17645
|
readonly 403: {
|
|
17454
|
-
readonly description: "Forbidden - User lacks workspace access
|
|
17646
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17455
17647
|
readonly content: {
|
|
17456
17648
|
readonly "application/json": {
|
|
17457
17649
|
readonly schema: {
|
|
@@ -17461,21 +17653,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17461
17653
|
};
|
|
17462
17654
|
};
|
|
17463
17655
|
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.";
|
|
17656
|
+
readonly description: "Workspace not found.";
|
|
17475
17657
|
readonly content: {
|
|
17476
17658
|
readonly "application/json": {
|
|
17477
17659
|
readonly schema: {
|
|
17478
|
-
readonly $ref: "#/components/schemas/
|
|
17660
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17479
17661
|
};
|
|
17480
17662
|
};
|
|
17481
17663
|
};
|
|
@@ -17483,13 +17665,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17483
17665
|
};
|
|
17484
17666
|
};
|
|
17485
17667
|
};
|
|
17486
|
-
readonly "/files/
|
|
17668
|
+
readonly "/files/delete": {
|
|
17487
17669
|
readonly post: {
|
|
17488
17670
|
readonly tags: readonly [
|
|
17489
17671
|
"Files"
|
|
17490
17672
|
];
|
|
17491
|
-
readonly summary: "
|
|
17492
|
-
readonly description: "
|
|
17673
|
+
readonly summary: "Delete a file by workspace-relative path";
|
|
17674
|
+
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
17675
|
readonly security: readonly [
|
|
17494
17676
|
never
|
|
17495
17677
|
];
|
|
@@ -17498,24 +17680,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17498
17680
|
readonly content: {
|
|
17499
17681
|
readonly "application/json": {
|
|
17500
17682
|
readonly schema: {
|
|
17501
|
-
readonly $ref: "#/components/schemas/
|
|
17683
|
+
readonly $ref: "#/components/schemas/DeleteFileRequest";
|
|
17502
17684
|
};
|
|
17503
17685
|
};
|
|
17504
17686
|
};
|
|
17505
17687
|
};
|
|
17506
17688
|
readonly responses: {
|
|
17507
17689
|
readonly 200: {
|
|
17508
|
-
readonly description: "
|
|
17690
|
+
readonly description: "File deleted successfully.";
|
|
17509
17691
|
readonly content: {
|
|
17510
17692
|
readonly "application/json": {
|
|
17511
17693
|
readonly schema: {
|
|
17512
|
-
readonly $ref: "#/components/schemas/
|
|
17694
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
17513
17695
|
};
|
|
17514
17696
|
};
|
|
17515
17697
|
};
|
|
17516
17698
|
};
|
|
17517
17699
|
readonly 400: {
|
|
17518
|
-
readonly description: "Invalid payload
|
|
17700
|
+
readonly description: "Invalid request payload.";
|
|
17519
17701
|
readonly content: {
|
|
17520
17702
|
readonly "application/json": {
|
|
17521
17703
|
readonly schema: {
|
|
@@ -17524,8 +17706,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17524
17706
|
};
|
|
17525
17707
|
};
|
|
17526
17708
|
};
|
|
17527
|
-
readonly
|
|
17528
|
-
readonly description: "
|
|
17709
|
+
readonly 401: {
|
|
17710
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17711
|
+
readonly content: {
|
|
17712
|
+
readonly "application/json": {
|
|
17713
|
+
readonly schema: {
|
|
17714
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17715
|
+
};
|
|
17716
|
+
};
|
|
17717
|
+
};
|
|
17718
|
+
};
|
|
17719
|
+
readonly 403: {
|
|
17720
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17529
17721
|
readonly content: {
|
|
17530
17722
|
readonly "application/json": {
|
|
17531
17723
|
readonly schema: {
|
|
@@ -17534,16 +17726,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17534
17726
|
};
|
|
17535
17727
|
};
|
|
17536
17728
|
};
|
|
17729
|
+
readonly 404: {
|
|
17730
|
+
readonly description: "File or workspace not found.";
|
|
17731
|
+
readonly content: {
|
|
17732
|
+
readonly "application/json": {
|
|
17733
|
+
readonly schema: {
|
|
17734
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17735
|
+
};
|
|
17736
|
+
};
|
|
17737
|
+
};
|
|
17738
|
+
};
|
|
17739
|
+
readonly 500: {
|
|
17740
|
+
readonly description: "Delete failed (object still present after delete).";
|
|
17741
|
+
readonly content: {
|
|
17742
|
+
readonly "application/json": {
|
|
17743
|
+
readonly schema: {
|
|
17744
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
17745
|
+
};
|
|
17746
|
+
};
|
|
17747
|
+
};
|
|
17748
|
+
};
|
|
17537
17749
|
};
|
|
17538
17750
|
};
|
|
17539
17751
|
};
|
|
17540
|
-
readonly "/files/
|
|
17752
|
+
readonly "/files/move": {
|
|
17541
17753
|
readonly post: {
|
|
17542
17754
|
readonly tags: readonly [
|
|
17543
17755
|
"Files"
|
|
17544
17756
|
];
|
|
17545
|
-
readonly summary: "
|
|
17546
|
-
readonly description: "
|
|
17757
|
+
readonly summary: "Move a file within a workspace";
|
|
17758
|
+
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.";
|
|
17547
17759
|
readonly security: readonly [
|
|
17548
17760
|
never
|
|
17549
17761
|
];
|
|
@@ -17552,24 +17764,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17552
17764
|
readonly content: {
|
|
17553
17765
|
readonly "application/json": {
|
|
17554
17766
|
readonly schema: {
|
|
17555
|
-
readonly $ref: "#/components/schemas/
|
|
17767
|
+
readonly $ref: "#/components/schemas/MoveFileRequest";
|
|
17556
17768
|
};
|
|
17557
17769
|
};
|
|
17558
17770
|
};
|
|
17559
17771
|
};
|
|
17560
17772
|
readonly responses: {
|
|
17561
17773
|
readonly 200: {
|
|
17562
|
-
readonly description: "
|
|
17774
|
+
readonly description: "File moved successfully.";
|
|
17563
17775
|
readonly content: {
|
|
17564
17776
|
readonly "application/json": {
|
|
17565
17777
|
readonly schema: {
|
|
17566
|
-
readonly $ref: "#/components/schemas/
|
|
17778
|
+
readonly $ref: "#/components/schemas/MoveFileSuccess";
|
|
17567
17779
|
};
|
|
17568
17780
|
};
|
|
17569
17781
|
};
|
|
17570
17782
|
};
|
|
17571
17783
|
readonly 400: {
|
|
17572
|
-
readonly description: "Invalid request
|
|
17784
|
+
readonly description: "Invalid request payload.";
|
|
17573
17785
|
readonly content: {
|
|
17574
17786
|
readonly "application/json": {
|
|
17575
17787
|
readonly schema: {
|
|
@@ -17578,54 +17790,38 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17578
17790
|
};
|
|
17579
17791
|
};
|
|
17580
17792
|
};
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17587
|
-
|
|
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";
|
|
17793
|
+
readonly 401: {
|
|
17794
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17795
|
+
readonly content: {
|
|
17796
|
+
readonly "application/json": {
|
|
17797
|
+
readonly schema: {
|
|
17798
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17799
|
+
};
|
|
17800
|
+
};
|
|
17602
17801
|
};
|
|
17603
|
-
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
readonly
|
|
17607
|
-
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17802
|
+
};
|
|
17803
|
+
readonly 403: {
|
|
17804
|
+
readonly description: "Forbidden - User lacks workspace access.";
|
|
17805
|
+
readonly content: {
|
|
17806
|
+
readonly "application/json": {
|
|
17807
|
+
readonly schema: {
|
|
17808
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17809
|
+
};
|
|
17810
|
+
};
|
|
17612
17811
|
};
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
readonly responses: {
|
|
17617
|
-
readonly 200: {
|
|
17618
|
-
readonly description: "Customer files listed.";
|
|
17812
|
+
};
|
|
17813
|
+
readonly 404: {
|
|
17814
|
+
readonly description: "Source file, destination folder, or workspace not found.";
|
|
17619
17815
|
readonly content: {
|
|
17620
17816
|
readonly "application/json": {
|
|
17621
17817
|
readonly schema: {
|
|
17622
|
-
readonly $ref: "#/components/schemas/
|
|
17818
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17623
17819
|
};
|
|
17624
17820
|
};
|
|
17625
17821
|
};
|
|
17626
17822
|
};
|
|
17627
|
-
readonly
|
|
17628
|
-
readonly description: "
|
|
17823
|
+
readonly 409: {
|
|
17824
|
+
readonly description: "Destination already exists.";
|
|
17629
17825
|
readonly content: {
|
|
17630
17826
|
readonly "application/json": {
|
|
17631
17827
|
readonly schema: {
|
|
@@ -17637,13 +17833,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17637
17833
|
};
|
|
17638
17834
|
};
|
|
17639
17835
|
};
|
|
17640
|
-
readonly "/files/
|
|
17836
|
+
readonly "/files/upload-to-comment": {
|
|
17641
17837
|
readonly post: {
|
|
17642
17838
|
readonly tags: readonly [
|
|
17643
17839
|
"Files"
|
|
17644
17840
|
];
|
|
17645
|
-
readonly summary: "
|
|
17646
|
-
readonly description: "
|
|
17841
|
+
readonly summary: "Create presigned upload for a comment attachment";
|
|
17842
|
+
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.";
|
|
17647
17843
|
readonly security: readonly [
|
|
17648
17844
|
never
|
|
17649
17845
|
];
|
|
@@ -17652,28 +17848,58 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17652
17848
|
readonly content: {
|
|
17653
17849
|
readonly "application/json": {
|
|
17654
17850
|
readonly schema: {
|
|
17655
|
-
readonly $ref: "#/components/schemas/
|
|
17851
|
+
readonly $ref: "#/components/schemas/UploadToCommentRequest";
|
|
17656
17852
|
};
|
|
17657
17853
|
};
|
|
17658
17854
|
};
|
|
17659
17855
|
};
|
|
17660
17856
|
readonly responses: {
|
|
17661
17857
|
readonly 200: {
|
|
17662
|
-
readonly description: "
|
|
17858
|
+
readonly description: "Presigned comment upload created.";
|
|
17663
17859
|
readonly content: {
|
|
17664
17860
|
readonly "application/json": {
|
|
17665
17861
|
readonly schema: {
|
|
17666
|
-
readonly $ref: "#/components/schemas/
|
|
17862
|
+
readonly $ref: "#/components/schemas/UploadToCommentSuccess";
|
|
17863
|
+
};
|
|
17864
|
+
};
|
|
17865
|
+
};
|
|
17866
|
+
};
|
|
17867
|
+
readonly 400: {
|
|
17868
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
17869
|
+
readonly content: {
|
|
17870
|
+
readonly "application/json": {
|
|
17871
|
+
readonly schema: {
|
|
17872
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17873
|
+
};
|
|
17874
|
+
};
|
|
17875
|
+
};
|
|
17876
|
+
};
|
|
17877
|
+
readonly 401: {
|
|
17878
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17879
|
+
readonly content: {
|
|
17880
|
+
readonly "application/json": {
|
|
17881
|
+
readonly schema: {
|
|
17882
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17883
|
+
};
|
|
17884
|
+
};
|
|
17885
|
+
};
|
|
17886
|
+
};
|
|
17887
|
+
readonly 403: {
|
|
17888
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::tasks.";
|
|
17889
|
+
readonly content: {
|
|
17890
|
+
readonly "application/json": {
|
|
17891
|
+
readonly schema: {
|
|
17892
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17667
17893
|
};
|
|
17668
17894
|
};
|
|
17669
17895
|
};
|
|
17670
17896
|
};
|
|
17671
17897
|
readonly 404: {
|
|
17672
|
-
readonly description: "
|
|
17898
|
+
readonly description: "Workspace, task, or comment not found.";
|
|
17673
17899
|
readonly content: {
|
|
17674
17900
|
readonly "application/json": {
|
|
17675
17901
|
readonly schema: {
|
|
17676
|
-
readonly $ref: "#/components/schemas/
|
|
17902
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17677
17903
|
};
|
|
17678
17904
|
};
|
|
17679
17905
|
};
|
|
@@ -17681,13 +17907,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17681
17907
|
};
|
|
17682
17908
|
};
|
|
17683
17909
|
};
|
|
17684
|
-
readonly "/files/
|
|
17910
|
+
readonly "/files/confirm-comment-file": {
|
|
17685
17911
|
readonly post: {
|
|
17686
17912
|
readonly tags: readonly [
|
|
17687
17913
|
"Files"
|
|
17688
17914
|
];
|
|
17689
|
-
readonly summary: "
|
|
17690
|
-
readonly description: "
|
|
17915
|
+
readonly summary: "Confirm a comment attachment upload";
|
|
17916
|
+
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.";
|
|
17691
17917
|
readonly security: readonly [
|
|
17692
17918
|
never
|
|
17693
17919
|
];
|
|
@@ -17696,24 +17922,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17696
17922
|
readonly content: {
|
|
17697
17923
|
readonly "application/json": {
|
|
17698
17924
|
readonly schema: {
|
|
17699
|
-
readonly $ref: "#/components/schemas/
|
|
17925
|
+
readonly $ref: "#/components/schemas/ConfirmCommentFileRequest";
|
|
17700
17926
|
};
|
|
17701
17927
|
};
|
|
17702
17928
|
};
|
|
17703
17929
|
};
|
|
17704
17930
|
readonly responses: {
|
|
17705
17931
|
readonly 200: {
|
|
17706
|
-
readonly description: "Comment file
|
|
17932
|
+
readonly description: "Comment file confirmed and promoted.";
|
|
17707
17933
|
readonly content: {
|
|
17708
17934
|
readonly "application/json": {
|
|
17709
17935
|
readonly schema: {
|
|
17710
|
-
readonly $ref: "#/components/schemas/
|
|
17936
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
17711
17937
|
};
|
|
17712
17938
|
};
|
|
17713
17939
|
};
|
|
17714
17940
|
};
|
|
17715
17941
|
readonly 400: {
|
|
17716
|
-
readonly description: "Invalid request payload.";
|
|
17942
|
+
readonly description: "Invalid request payload, missing temp object, oversized file, or invalid file type.";
|
|
17717
17943
|
readonly content: {
|
|
17718
17944
|
readonly "application/json": {
|
|
17719
17945
|
readonly schema: {
|
|
@@ -17733,7 +17959,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17733
17959
|
};
|
|
17734
17960
|
};
|
|
17735
17961
|
readonly 403: {
|
|
17736
|
-
readonly description: "Forbidden -
|
|
17962
|
+
readonly description: "Forbidden - Invite not accepted, user lacks workspace access, or user lacks write access to crm::tasks.";
|
|
17737
17963
|
readonly content: {
|
|
17738
17964
|
readonly "application/json": {
|
|
17739
17965
|
readonly schema: {
|
|
@@ -17743,21 +17969,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17743
17969
|
};
|
|
17744
17970
|
};
|
|
17745
17971
|
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.";
|
|
17972
|
+
readonly description: "Workspace, task, or comment not found.";
|
|
17757
17973
|
readonly content: {
|
|
17758
17974
|
readonly "application/json": {
|
|
17759
17975
|
readonly schema: {
|
|
17760
|
-
readonly $ref: "#/components/schemas/
|
|
17976
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17761
17977
|
};
|
|
17762
17978
|
};
|
|
17763
17979
|
};
|
|
@@ -17765,51 +17981,39 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17765
17981
|
};
|
|
17766
17982
|
};
|
|
17767
17983
|
};
|
|
17768
|
-
readonly "/files/
|
|
17769
|
-
readonly
|
|
17984
|
+
readonly "/files/upload-to-service": {
|
|
17985
|
+
readonly post: {
|
|
17770
17986
|
readonly tags: readonly [
|
|
17771
17987
|
"Files"
|
|
17772
17988
|
];
|
|
17773
|
-
readonly summary: "
|
|
17774
|
-
readonly description: "
|
|
17989
|
+
readonly summary: "Create presigned upload for a service file";
|
|
17990
|
+
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.";
|
|
17775
17991
|
readonly security: readonly [
|
|
17776
17992
|
never
|
|
17777
17993
|
];
|
|
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";
|
|
17994
|
+
readonly requestBody: {
|
|
17995
|
+
readonly required: true;
|
|
17996
|
+
readonly content: {
|
|
17997
|
+
readonly "application/json": {
|
|
17998
|
+
readonly schema: {
|
|
17999
|
+
readonly $ref: "#/components/schemas/UploadToServiceRequest";
|
|
18000
|
+
};
|
|
17796
18001
|
};
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
];
|
|
18002
|
+
};
|
|
18003
|
+
};
|
|
17800
18004
|
readonly responses: {
|
|
17801
18005
|
readonly 200: {
|
|
17802
|
-
readonly description: "
|
|
18006
|
+
readonly description: "Presigned service upload created.";
|
|
17803
18007
|
readonly content: {
|
|
17804
18008
|
readonly "application/json": {
|
|
17805
18009
|
readonly schema: {
|
|
17806
|
-
readonly $ref: "#/components/schemas/
|
|
18010
|
+
readonly $ref: "#/components/schemas/UploadToServiceSuccess";
|
|
17807
18011
|
};
|
|
17808
18012
|
};
|
|
17809
18013
|
};
|
|
17810
18014
|
};
|
|
17811
18015
|
readonly 400: {
|
|
17812
|
-
readonly description: "Invalid
|
|
18016
|
+
readonly description: "Invalid request payload, unsupported content type, or unsupported workspace category.";
|
|
17813
18017
|
readonly content: {
|
|
17814
18018
|
readonly "application/json": {
|
|
17815
18019
|
readonly schema: {
|
|
@@ -17829,7 +18033,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17829
18033
|
};
|
|
17830
18034
|
};
|
|
17831
18035
|
readonly 403: {
|
|
17832
|
-
readonly description: "Forbidden - User lacks workspace access,
|
|
18036
|
+
readonly description: "Forbidden - User lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
17833
18037
|
readonly content: {
|
|
17834
18038
|
readonly "application/json": {
|
|
17835
18039
|
readonly schema: {
|
|
@@ -17839,7 +18043,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17839
18043
|
};
|
|
17840
18044
|
};
|
|
17841
18045
|
readonly 404: {
|
|
17842
|
-
readonly description: "Workspace not found.";
|
|
18046
|
+
readonly description: "Workspace or real-estate service not found.";
|
|
17843
18047
|
readonly content: {
|
|
17844
18048
|
readonly "application/json": {
|
|
17845
18049
|
readonly schema: {
|
|
@@ -17851,13 +18055,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17851
18055
|
};
|
|
17852
18056
|
};
|
|
17853
18057
|
};
|
|
17854
|
-
readonly "/files/
|
|
18058
|
+
readonly "/files/confirm-service-file": {
|
|
17855
18059
|
readonly post: {
|
|
17856
18060
|
readonly tags: readonly [
|
|
17857
18061
|
"Files"
|
|
17858
18062
|
];
|
|
17859
|
-
readonly summary: "
|
|
17860
|
-
readonly description: "
|
|
18063
|
+
readonly summary: "Confirm a service file upload";
|
|
18064
|
+
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.";
|
|
17861
18065
|
readonly security: readonly [
|
|
17862
18066
|
never
|
|
17863
18067
|
];
|
|
@@ -17866,29 +18070,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17866
18070
|
readonly content: {
|
|
17867
18071
|
readonly "application/json": {
|
|
17868
18072
|
readonly schema: {
|
|
17869
|
-
readonly $ref: "#/components/schemas/
|
|
18073
|
+
readonly $ref: "#/components/schemas/ConfirmServiceFileRequest";
|
|
17870
18074
|
};
|
|
17871
18075
|
};
|
|
17872
18076
|
};
|
|
17873
18077
|
};
|
|
17874
18078
|
readonly responses: {
|
|
17875
18079
|
readonly 200: {
|
|
17876
|
-
readonly description: "
|
|
18080
|
+
readonly description: "Service file confirmed and promoted.";
|
|
17877
18081
|
readonly content: {
|
|
17878
18082
|
readonly "application/json": {
|
|
17879
18083
|
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).";
|
|
18084
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
17886
18085
|
};
|
|
17887
18086
|
};
|
|
17888
18087
|
};
|
|
17889
18088
|
};
|
|
17890
18089
|
readonly 400: {
|
|
17891
|
-
readonly description: "Invalid request payload or
|
|
18090
|
+
readonly description: "Invalid request payload, missing temp object, oversized file, or invalid file type.";
|
|
17892
18091
|
readonly content: {
|
|
17893
18092
|
readonly "application/json": {
|
|
17894
18093
|
readonly schema: {
|
|
@@ -17907,42 +18106,64 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17907
18106
|
};
|
|
17908
18107
|
};
|
|
17909
18108
|
};
|
|
18109
|
+
readonly 403: {
|
|
18110
|
+
readonly description: "Forbidden - Invite not accepted, user lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
18111
|
+
readonly content: {
|
|
18112
|
+
readonly "application/json": {
|
|
18113
|
+
readonly schema: {
|
|
18114
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18115
|
+
};
|
|
18116
|
+
};
|
|
18117
|
+
};
|
|
18118
|
+
};
|
|
17910
18119
|
};
|
|
17911
18120
|
};
|
|
17912
18121
|
};
|
|
17913
|
-
readonly "/files/
|
|
17914
|
-
readonly
|
|
18122
|
+
readonly "/files/download-from-service/{workspace}/{serviceId}": {
|
|
18123
|
+
readonly get: {
|
|
17915
18124
|
readonly tags: readonly [
|
|
17916
18125
|
"Files"
|
|
17917
18126
|
];
|
|
17918
|
-
readonly summary: "
|
|
17919
|
-
readonly description: "
|
|
18127
|
+
readonly summary: "List files for a service";
|
|
18128
|
+
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.";
|
|
17920
18129
|
readonly security: readonly [
|
|
17921
18130
|
never
|
|
17922
18131
|
];
|
|
18132
|
+
readonly parameters: readonly [
|
|
18133
|
+
{
|
|
18134
|
+
readonly name: "workspace";
|
|
18135
|
+
readonly in: "path";
|
|
18136
|
+
readonly required: true;
|
|
18137
|
+
readonly schema: {
|
|
18138
|
+
readonly type: "string";
|
|
18139
|
+
readonly format: "uuid";
|
|
18140
|
+
};
|
|
18141
|
+
readonly description: "Workspace identifier.";
|
|
18142
|
+
},
|
|
18143
|
+
{
|
|
18144
|
+
readonly name: "serviceId";
|
|
18145
|
+
readonly in: "path";
|
|
18146
|
+
readonly required: true;
|
|
18147
|
+
readonly schema: {
|
|
18148
|
+
readonly type: "string";
|
|
18149
|
+
readonly format: "uuid";
|
|
18150
|
+
};
|
|
18151
|
+
readonly description: "Service identifier whose files are listed.";
|
|
18152
|
+
}
|
|
18153
|
+
];
|
|
17923
18154
|
readonly responses: {
|
|
17924
18155
|
readonly 200: {
|
|
17925
|
-
readonly description: "
|
|
18156
|
+
readonly description: "Service files listed successfully.";
|
|
17926
18157
|
readonly content: {
|
|
17927
18158
|
readonly "application/json": {
|
|
17928
18159
|
readonly schema: {
|
|
17929
|
-
readonly $ref: "#/components/schemas/
|
|
18160
|
+
readonly $ref: "#/components/schemas/ListServiceFilesSuccess";
|
|
17930
18161
|
};
|
|
17931
18162
|
};
|
|
17932
18163
|
};
|
|
17933
18164
|
};
|
|
17934
18165
|
readonly 400: {
|
|
17935
|
-
readonly description: "
|
|
17936
|
-
readonly content: {
|
|
17937
|
-
readonly "application/json": {
|
|
17938
|
-
readonly schema: {
|
|
17939
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
17940
|
-
};
|
|
17941
|
-
};
|
|
17942
|
-
};
|
|
17943
|
-
};
|
|
17944
|
-
readonly 401: {
|
|
17945
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18166
|
+
readonly description: "Invalid workspace or service id.";
|
|
17946
18167
|
readonly content: {
|
|
17947
18168
|
readonly "application/json": {
|
|
17948
18169
|
readonly schema: {
|
|
@@ -17951,30 +18172,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17951
18172
|
};
|
|
17952
18173
|
};
|
|
17953
18174
|
};
|
|
17954
|
-
};
|
|
17955
|
-
};
|
|
17956
|
-
};
|
|
17957
|
-
readonly "/files/delete-profile-picture": {
|
|
17958
|
-
readonly post: {
|
|
17959
|
-
readonly tags: readonly [
|
|
17960
|
-
"Files"
|
|
17961
|
-
];
|
|
17962
|
-
readonly summary: "Delete the authenticated user's profile picture";
|
|
17963
|
-
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).";
|
|
17964
|
-
readonly security: readonly [
|
|
17965
|
-
never
|
|
17966
|
-
];
|
|
17967
|
-
readonly responses: {
|
|
17968
|
-
readonly 200: {
|
|
17969
|
-
readonly description: "Profile picture deleted, or already absent and cleared from the user profile.";
|
|
17970
|
-
readonly content: {
|
|
17971
|
-
readonly "application/json": {
|
|
17972
|
-
readonly schema: {
|
|
17973
|
-
readonly $ref: "#/components/schemas/DeleteProfilePictureSuccess";
|
|
17974
|
-
};
|
|
17975
|
-
};
|
|
17976
|
-
};
|
|
17977
|
-
};
|
|
17978
18175
|
readonly 401: {
|
|
17979
18176
|
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
17980
18177
|
readonly content: {
|
|
@@ -17985,8 +18182,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17985
18182
|
};
|
|
17986
18183
|
};
|
|
17987
18184
|
};
|
|
17988
|
-
readonly
|
|
17989
|
-
readonly description: "
|
|
18185
|
+
readonly 403: {
|
|
18186
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks read access to crm::services.";
|
|
17990
18187
|
readonly content: {
|
|
17991
18188
|
readonly "application/json": {
|
|
17992
18189
|
readonly schema: {
|
|
@@ -17998,13 +18195,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17998
18195
|
};
|
|
17999
18196
|
};
|
|
18000
18197
|
};
|
|
18001
|
-
readonly "/files/
|
|
18198
|
+
readonly "/files/delete-service-file": {
|
|
18002
18199
|
readonly post: {
|
|
18003
18200
|
readonly tags: readonly [
|
|
18004
18201
|
"Files"
|
|
18005
18202
|
];
|
|
18006
|
-
readonly summary: "
|
|
18007
|
-
readonly description: "
|
|
18203
|
+
readonly summary: "Delete a service file";
|
|
18204
|
+
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
18205
|
readonly security: readonly [
|
|
18009
18206
|
never
|
|
18010
18207
|
];
|
|
@@ -18013,29 +18210,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18013
18210
|
readonly content: {
|
|
18014
18211
|
readonly "application/json": {
|
|
18015
18212
|
readonly schema: {
|
|
18016
|
-
readonly $ref: "#/components/schemas/
|
|
18213
|
+
readonly $ref: "#/components/schemas/DeleteServiceFileRequest";
|
|
18017
18214
|
};
|
|
18018
18215
|
};
|
|
18019
18216
|
};
|
|
18020
18217
|
};
|
|
18021
18218
|
readonly responses: {
|
|
18022
18219
|
readonly 200: {
|
|
18023
|
-
readonly description: "
|
|
18220
|
+
readonly description: "Service file deleted successfully.";
|
|
18024
18221
|
readonly content: {
|
|
18025
18222
|
readonly "application/json": {
|
|
18026
18223
|
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).";
|
|
18224
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18033
18225
|
};
|
|
18034
18226
|
};
|
|
18035
18227
|
};
|
|
18036
18228
|
};
|
|
18037
18229
|
readonly 400: {
|
|
18038
|
-
readonly description: "Invalid request payload
|
|
18230
|
+
readonly description: "Invalid request payload.";
|
|
18039
18231
|
readonly content: {
|
|
18040
18232
|
readonly "application/json": {
|
|
18041
18233
|
readonly schema: {
|
|
@@ -18055,7 +18247,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18055
18247
|
};
|
|
18056
18248
|
};
|
|
18057
18249
|
readonly 403: {
|
|
18058
|
-
readonly description: "Forbidden - User lacks workspace access,
|
|
18250
|
+
readonly description: "Forbidden - User lacks workspace access, user lacks write access to crm::services, or billing access is missing.";
|
|
18059
18251
|
readonly content: {
|
|
18060
18252
|
readonly "application/json": {
|
|
18061
18253
|
readonly schema: {
|
|
@@ -18065,25 +18257,35 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18065
18257
|
};
|
|
18066
18258
|
};
|
|
18067
18259
|
readonly 404: {
|
|
18068
|
-
readonly description: "
|
|
18260
|
+
readonly description: "File not found at the given service file key.";
|
|
18069
18261
|
readonly content: {
|
|
18070
18262
|
readonly "application/json": {
|
|
18071
18263
|
readonly schema: {
|
|
18072
|
-
readonly $ref: "#/components/schemas/
|
|
18264
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18073
18265
|
};
|
|
18074
18266
|
};
|
|
18075
18267
|
};
|
|
18076
18268
|
};
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18269
|
+
readonly 500: {
|
|
18270
|
+
readonly description: "Delete command ran but the object still exists.";
|
|
18271
|
+
readonly content: {
|
|
18272
|
+
readonly "application/json": {
|
|
18273
|
+
readonly schema: {
|
|
18274
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18275
|
+
};
|
|
18276
|
+
};
|
|
18277
|
+
};
|
|
18278
|
+
};
|
|
18279
|
+
};
|
|
18280
|
+
};
|
|
18281
|
+
};
|
|
18282
|
+
readonly "/files/upload-to-customer": {
|
|
18283
|
+
readonly post: {
|
|
18284
|
+
readonly tags: readonly [
|
|
18285
|
+
"Files"
|
|
18084
18286
|
];
|
|
18085
|
-
readonly summary: "
|
|
18086
|
-
readonly description: "
|
|
18287
|
+
readonly summary: "Create presigned upload for a customer file";
|
|
18288
|
+
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
18289
|
readonly security: readonly [
|
|
18088
18290
|
never
|
|
18089
18291
|
];
|
|
@@ -18092,44 +18294,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18092
18294
|
readonly content: {
|
|
18093
18295
|
readonly "application/json": {
|
|
18094
18296
|
readonly schema: {
|
|
18095
|
-
readonly $ref: "#/components/schemas/
|
|
18297
|
+
readonly $ref: "#/components/schemas/UploadToCustomerRequest";
|
|
18096
18298
|
};
|
|
18097
18299
|
};
|
|
18098
18300
|
};
|
|
18099
18301
|
};
|
|
18100
18302
|
readonly responses: {
|
|
18101
18303
|
readonly 200: {
|
|
18102
|
-
readonly description: "
|
|
18304
|
+
readonly description: "Presigned customer upload created.";
|
|
18103
18305
|
readonly content: {
|
|
18104
18306
|
readonly "application/json": {
|
|
18105
18307
|
readonly schema: {
|
|
18106
|
-
readonly $ref: "#/components/schemas/
|
|
18308
|
+
readonly $ref: "#/components/schemas/UploadToCustomerSuccess";
|
|
18107
18309
|
};
|
|
18108
18310
|
};
|
|
18109
18311
|
};
|
|
18110
18312
|
};
|
|
18111
18313
|
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.";
|
|
18314
|
+
readonly description: "Invalid payload or unsupported workspace category.";
|
|
18133
18315
|
readonly content: {
|
|
18134
18316
|
readonly "application/json": {
|
|
18135
18317
|
readonly schema: {
|
|
@@ -18139,7 +18321,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18139
18321
|
};
|
|
18140
18322
|
};
|
|
18141
18323
|
readonly 404: {
|
|
18142
|
-
readonly description: "
|
|
18324
|
+
readonly description: "Real-estate customer not found.";
|
|
18143
18325
|
readonly content: {
|
|
18144
18326
|
readonly "application/json": {
|
|
18145
18327
|
readonly schema: {
|
|
@@ -18151,13 +18333,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18151
18333
|
};
|
|
18152
18334
|
};
|
|
18153
18335
|
};
|
|
18154
|
-
readonly "/files/
|
|
18336
|
+
readonly "/files/confirm-customer-file": {
|
|
18155
18337
|
readonly post: {
|
|
18156
18338
|
readonly tags: readonly [
|
|
18157
18339
|
"Files"
|
|
18158
18340
|
];
|
|
18159
|
-
readonly summary: "
|
|
18160
|
-
readonly description: "
|
|
18341
|
+
readonly summary: "Confirm a customer file upload";
|
|
18342
|
+
readonly description: "Validates and promotes `{workspace}_customers/{customerId}/{filename}.tmp` to its finalized key. Confirmed bytes contribute to `customerBytes`.";
|
|
18161
18343
|
readonly security: readonly [
|
|
18162
18344
|
never
|
|
18163
18345
|
];
|
|
@@ -18166,64 +18348,24 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18166
18348
|
readonly content: {
|
|
18167
18349
|
readonly "application/json": {
|
|
18168
18350
|
readonly schema: {
|
|
18169
|
-
readonly $ref: "#/components/schemas/
|
|
18351
|
+
readonly $ref: "#/components/schemas/ConfirmCustomerFileRequest";
|
|
18170
18352
|
};
|
|
18171
18353
|
};
|
|
18172
18354
|
};
|
|
18173
18355
|
};
|
|
18174
18356
|
readonly responses: {
|
|
18175
18357
|
readonly 200: {
|
|
18176
|
-
readonly description: "
|
|
18358
|
+
readonly description: "Customer file confirmed.";
|
|
18177
18359
|
readonly content: {
|
|
18178
18360
|
readonly "application/json": {
|
|
18179
18361
|
readonly schema: {
|
|
18180
|
-
readonly $ref: "#/components/schemas/
|
|
18362
|
+
readonly $ref: "#/components/schemas/ConfirmFileSuccess";
|
|
18181
18363
|
};
|
|
18182
18364
|
};
|
|
18183
18365
|
};
|
|
18184
18366
|
};
|
|
18185
18367
|
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.";
|
|
18368
|
+
readonly description: "Invalid request, missing temporary object, oversized file, or invalid file type.";
|
|
18227
18369
|
readonly content: {
|
|
18228
18370
|
readonly "application/json": {
|
|
18229
18371
|
readonly schema: {
|
|
@@ -18235,63 +18377,51 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18235
18377
|
};
|
|
18236
18378
|
};
|
|
18237
18379
|
};
|
|
18238
|
-
readonly "/
|
|
18380
|
+
readonly "/files/download-from-customer/{workspace}/{customerId}": {
|
|
18239
18381
|
readonly get: {
|
|
18240
18382
|
readonly tags: readonly [
|
|
18241
|
-
"
|
|
18383
|
+
"Files"
|
|
18242
18384
|
];
|
|
18243
|
-
readonly summary: "
|
|
18244
|
-
readonly description: "
|
|
18385
|
+
readonly summary: "List files for a customer";
|
|
18386
|
+
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
18387
|
readonly security: readonly [
|
|
18246
18388
|
never
|
|
18247
18389
|
];
|
|
18248
18390
|
readonly parameters: readonly [
|
|
18249
18391
|
{
|
|
18250
|
-
readonly name: "
|
|
18251
|
-
readonly in: "
|
|
18252
|
-
readonly required:
|
|
18392
|
+
readonly name: "workspace";
|
|
18393
|
+
readonly in: "path";
|
|
18394
|
+
readonly required: true;
|
|
18253
18395
|
readonly schema: {
|
|
18254
18396
|
readonly type: "string";
|
|
18255
|
-
readonly format: "
|
|
18397
|
+
readonly format: "uuid";
|
|
18256
18398
|
};
|
|
18257
|
-
readonly description: "
|
|
18399
|
+
readonly description: "Workspace identifier.";
|
|
18258
18400
|
},
|
|
18259
18401
|
{
|
|
18260
|
-
readonly name: "
|
|
18261
|
-
readonly in: "
|
|
18262
|
-
readonly required:
|
|
18402
|
+
readonly name: "customerId";
|
|
18403
|
+
readonly in: "path";
|
|
18404
|
+
readonly required: true;
|
|
18263
18405
|
readonly schema: {
|
|
18264
|
-
readonly type: "
|
|
18265
|
-
readonly
|
|
18266
|
-
readonly maximum: 200;
|
|
18267
|
-
readonly default: 100;
|
|
18406
|
+
readonly type: "string";
|
|
18407
|
+
readonly format: "uuid";
|
|
18268
18408
|
};
|
|
18269
|
-
readonly description: "
|
|
18409
|
+
readonly description: "Customer identifier.";
|
|
18270
18410
|
}
|
|
18271
18411
|
];
|
|
18272
18412
|
readonly responses: {
|
|
18273
18413
|
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.";
|
|
18414
|
+
readonly description: "Customer files listed.";
|
|
18285
18415
|
readonly content: {
|
|
18286
18416
|
readonly "application/json": {
|
|
18287
18417
|
readonly schema: {
|
|
18288
|
-
readonly $ref: "#/components/schemas/
|
|
18418
|
+
readonly $ref: "#/components/schemas/ListCustomerFilesSuccess";
|
|
18289
18419
|
};
|
|
18290
18420
|
};
|
|
18291
18421
|
};
|
|
18292
18422
|
};
|
|
18293
|
-
readonly
|
|
18294
|
-
readonly description: "
|
|
18423
|
+
readonly 403: {
|
|
18424
|
+
readonly description: "Workspace or customer read access is missing.";
|
|
18295
18425
|
readonly content: {
|
|
18296
18426
|
readonly "application/json": {
|
|
18297
18427
|
readonly schema: {
|
|
@@ -18303,13 +18433,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18303
18433
|
};
|
|
18304
18434
|
};
|
|
18305
18435
|
};
|
|
18306
|
-
readonly "/
|
|
18436
|
+
readonly "/files/delete-customer-file": {
|
|
18307
18437
|
readonly post: {
|
|
18308
18438
|
readonly tags: readonly [
|
|
18309
|
-
"
|
|
18439
|
+
"Files"
|
|
18310
18440
|
];
|
|
18311
|
-
readonly summary: "
|
|
18312
|
-
readonly description: "
|
|
18441
|
+
readonly summary: "Delete a customer file";
|
|
18442
|
+
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
18443
|
readonly security: readonly [
|
|
18314
18444
|
never
|
|
18315
18445
|
];
|
|
@@ -18318,82 +18448,28 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18318
18448
|
readonly content: {
|
|
18319
18449
|
readonly "application/json": {
|
|
18320
18450
|
readonly schema: {
|
|
18321
|
-
readonly $ref: "#/components/schemas/
|
|
18451
|
+
readonly $ref: "#/components/schemas/DeleteCustomerFileRequest";
|
|
18322
18452
|
};
|
|
18323
18453
|
};
|
|
18324
18454
|
};
|
|
18325
18455
|
};
|
|
18326
18456
|
readonly responses: {
|
|
18327
18457
|
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.";
|
|
18458
|
+
readonly description: "Customer file deleted.";
|
|
18349
18459
|
readonly content: {
|
|
18350
18460
|
readonly "application/json": {
|
|
18351
18461
|
readonly schema: {
|
|
18352
|
-
readonly $ref: "#/components/schemas/
|
|
18462
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18353
18463
|
};
|
|
18354
18464
|
};
|
|
18355
18465
|
};
|
|
18356
18466
|
};
|
|
18357
18467
|
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.";
|
|
18468
|
+
readonly description: "File not found.";
|
|
18393
18469
|
readonly content: {
|
|
18394
18470
|
readonly "application/json": {
|
|
18395
18471
|
readonly schema: {
|
|
18396
|
-
readonly $ref: "#/components/schemas/
|
|
18472
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18397
18473
|
};
|
|
18398
18474
|
};
|
|
18399
18475
|
};
|
|
@@ -18401,13 +18477,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18401
18477
|
};
|
|
18402
18478
|
};
|
|
18403
18479
|
};
|
|
18404
|
-
readonly "/
|
|
18480
|
+
readonly "/files/delete-comment-file": {
|
|
18405
18481
|
readonly post: {
|
|
18406
18482
|
readonly tags: readonly [
|
|
18407
|
-
"
|
|
18483
|
+
"Files"
|
|
18408
18484
|
];
|
|
18409
|
-
readonly summary: "
|
|
18410
|
-
readonly description: "
|
|
18485
|
+
readonly summary: "Delete a comment attachment";
|
|
18486
|
+
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
18487
|
readonly security: readonly [
|
|
18412
18488
|
never
|
|
18413
18489
|
];
|
|
@@ -18416,18 +18492,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18416
18492
|
readonly content: {
|
|
18417
18493
|
readonly "application/json": {
|
|
18418
18494
|
readonly schema: {
|
|
18419
|
-
readonly $ref: "#/components/schemas/
|
|
18495
|
+
readonly $ref: "#/components/schemas/DeleteCommentFileRequest";
|
|
18420
18496
|
};
|
|
18421
18497
|
};
|
|
18422
18498
|
};
|
|
18423
18499
|
};
|
|
18424
18500
|
readonly responses: {
|
|
18425
18501
|
readonly 200: {
|
|
18426
|
-
readonly description: "
|
|
18502
|
+
readonly description: "Comment file deleted successfully.";
|
|
18427
18503
|
readonly content: {
|
|
18428
18504
|
readonly "application/json": {
|
|
18429
18505
|
readonly schema: {
|
|
18430
|
-
readonly $ref: "#/components/schemas/
|
|
18506
|
+
readonly $ref: "#/components/schemas/DeleteFileSuccess";
|
|
18431
18507
|
};
|
|
18432
18508
|
};
|
|
18433
18509
|
};
|
|
@@ -18452,8 +18528,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18452
18528
|
};
|
|
18453
18529
|
};
|
|
18454
18530
|
};
|
|
18455
|
-
readonly
|
|
18456
|
-
readonly description: "
|
|
18531
|
+
readonly 403: {
|
|
18532
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::tasks.";
|
|
18457
18533
|
readonly content: {
|
|
18458
18534
|
readonly "application/json": {
|
|
18459
18535
|
readonly schema: {
|
|
@@ -18462,26 +18538,78 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18462
18538
|
};
|
|
18463
18539
|
};
|
|
18464
18540
|
};
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18541
|
+
readonly 404: {
|
|
18542
|
+
readonly description: "File not found at the given comment attachment key.";
|
|
18543
|
+
readonly content: {
|
|
18544
|
+
readonly "application/json": {
|
|
18545
|
+
readonly schema: {
|
|
18546
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18547
|
+
};
|
|
18548
|
+
};
|
|
18549
|
+
};
|
|
18550
|
+
};
|
|
18551
|
+
readonly 500: {
|
|
18552
|
+
readonly description: "Delete command ran but the object still exists.";
|
|
18553
|
+
readonly content: {
|
|
18554
|
+
readonly "application/json": {
|
|
18555
|
+
readonly schema: {
|
|
18556
|
+
readonly $ref: "#/components/schemas/DeleteFileFailure";
|
|
18557
|
+
};
|
|
18558
|
+
};
|
|
18559
|
+
};
|
|
18560
|
+
};
|
|
18561
|
+
};
|
|
18562
|
+
};
|
|
18563
|
+
};
|
|
18564
|
+
readonly "/files/download-from-task/{workspace}/{taskId}": {
|
|
18565
|
+
readonly get: {
|
|
18566
|
+
readonly tags: readonly [
|
|
18567
|
+
"Files"
|
|
18568
|
+
];
|
|
18569
|
+
readonly summary: "List comment files for a task";
|
|
18570
|
+
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.";
|
|
18571
|
+
readonly security: readonly [
|
|
18476
18572
|
never
|
|
18477
18573
|
];
|
|
18574
|
+
readonly parameters: readonly [
|
|
18575
|
+
{
|
|
18576
|
+
readonly name: "workspace";
|
|
18577
|
+
readonly in: "path";
|
|
18578
|
+
readonly required: true;
|
|
18579
|
+
readonly schema: {
|
|
18580
|
+
readonly type: "string";
|
|
18581
|
+
readonly format: "uuid";
|
|
18582
|
+
};
|
|
18583
|
+
readonly description: "Workspace identifier.";
|
|
18584
|
+
},
|
|
18585
|
+
{
|
|
18586
|
+
readonly name: "taskId";
|
|
18587
|
+
readonly in: "path";
|
|
18588
|
+
readonly required: true;
|
|
18589
|
+
readonly schema: {
|
|
18590
|
+
readonly type: "string";
|
|
18591
|
+
readonly format: "uuid";
|
|
18592
|
+
};
|
|
18593
|
+
readonly description: "Task identifier whose comment attachments are listed.";
|
|
18594
|
+
}
|
|
18595
|
+
];
|
|
18478
18596
|
readonly responses: {
|
|
18479
18597
|
readonly 200: {
|
|
18480
|
-
readonly description: "
|
|
18598
|
+
readonly description: "Task comment files listed successfully.";
|
|
18481
18599
|
readonly content: {
|
|
18482
18600
|
readonly "application/json": {
|
|
18483
18601
|
readonly schema: {
|
|
18484
|
-
readonly $ref: "#/components/schemas/
|
|
18602
|
+
readonly $ref: "#/components/schemas/ListTaskCommentFilesSuccess";
|
|
18603
|
+
};
|
|
18604
|
+
};
|
|
18605
|
+
};
|
|
18606
|
+
};
|
|
18607
|
+
readonly 400: {
|
|
18608
|
+
readonly description: "Invalid workspace or task id.";
|
|
18609
|
+
readonly content: {
|
|
18610
|
+
readonly "application/json": {
|
|
18611
|
+
readonly schema: {
|
|
18612
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18485
18613
|
};
|
|
18486
18614
|
};
|
|
18487
18615
|
};
|
|
@@ -18496,16 +18624,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18496
18624
|
};
|
|
18497
18625
|
};
|
|
18498
18626
|
};
|
|
18627
|
+
readonly 403: {
|
|
18628
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks read access to crm::tasks.";
|
|
18629
|
+
readonly content: {
|
|
18630
|
+
readonly "application/json": {
|
|
18631
|
+
readonly schema: {
|
|
18632
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18633
|
+
};
|
|
18634
|
+
};
|
|
18635
|
+
};
|
|
18636
|
+
};
|
|
18637
|
+
readonly 404: {
|
|
18638
|
+
readonly description: "Workspace not found.";
|
|
18639
|
+
readonly content: {
|
|
18640
|
+
readonly "application/json": {
|
|
18641
|
+
readonly schema: {
|
|
18642
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18643
|
+
};
|
|
18644
|
+
};
|
|
18645
|
+
};
|
|
18646
|
+
};
|
|
18499
18647
|
};
|
|
18500
18648
|
};
|
|
18501
18649
|
};
|
|
18502
|
-
readonly "/
|
|
18650
|
+
readonly "/files/upload-profile-picture": {
|
|
18503
18651
|
readonly post: {
|
|
18504
18652
|
readonly tags: readonly [
|
|
18505
|
-
"
|
|
18653
|
+
"Files"
|
|
18506
18654
|
];
|
|
18507
|
-
readonly summary: "
|
|
18508
|
-
readonly description: "
|
|
18655
|
+
readonly summary: "Create presigned upload for profile picture";
|
|
18656
|
+
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
18657
|
readonly security: readonly [
|
|
18510
18658
|
never
|
|
18511
18659
|
];
|
|
@@ -18514,34 +18662,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18514
18662
|
readonly content: {
|
|
18515
18663
|
readonly "application/json": {
|
|
18516
18664
|
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
|
-
};
|
|
18665
|
+
readonly $ref: "#/components/schemas/UploadProfilePictureRequest";
|
|
18528
18666
|
};
|
|
18529
18667
|
};
|
|
18530
18668
|
};
|
|
18531
18669
|
};
|
|
18532
18670
|
readonly responses: {
|
|
18533
|
-
readonly
|
|
18534
|
-
readonly description: "
|
|
18671
|
+
readonly 200: {
|
|
18672
|
+
readonly description: "Presigned profile picture upload created.";
|
|
18535
18673
|
readonly content: {
|
|
18536
18674
|
readonly "application/json": {
|
|
18537
18675
|
readonly schema: {
|
|
18538
|
-
readonly
|
|
18676
|
+
readonly allOf: readonly [
|
|
18677
|
+
{
|
|
18678
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
18679
|
+
}
|
|
18680
|
+
];
|
|
18681
|
+
readonly description: "key is `profiles/clients/{userId}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18539
18682
|
};
|
|
18540
18683
|
};
|
|
18541
18684
|
};
|
|
18542
18685
|
};
|
|
18543
18686
|
readonly 400: {
|
|
18544
|
-
readonly description: "Invalid request payload.";
|
|
18687
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
18545
18688
|
readonly content: {
|
|
18546
18689
|
readonly "application/json": {
|
|
18547
18690
|
readonly schema: {
|
|
@@ -18560,8 +18703,32 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18560
18703
|
};
|
|
18561
18704
|
};
|
|
18562
18705
|
};
|
|
18563
|
-
|
|
18564
|
-
|
|
18706
|
+
};
|
|
18707
|
+
};
|
|
18708
|
+
};
|
|
18709
|
+
readonly "/files/confirm-profile-picture": {
|
|
18710
|
+
readonly post: {
|
|
18711
|
+
readonly tags: readonly [
|
|
18712
|
+
"Files"
|
|
18713
|
+
];
|
|
18714
|
+
readonly summary: "Confirm and persist an uploaded profile picture";
|
|
18715
|
+
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.";
|
|
18716
|
+
readonly security: readonly [
|
|
18717
|
+
never
|
|
18718
|
+
];
|
|
18719
|
+
readonly responses: {
|
|
18720
|
+
readonly 200: {
|
|
18721
|
+
readonly description: "Profile picture confirmed and saved successfully.";
|
|
18722
|
+
readonly content: {
|
|
18723
|
+
readonly "application/json": {
|
|
18724
|
+
readonly schema: {
|
|
18725
|
+
readonly $ref: "#/components/schemas/ConfirmProfilePictureSuccess";
|
|
18726
|
+
};
|
|
18727
|
+
};
|
|
18728
|
+
};
|
|
18729
|
+
};
|
|
18730
|
+
readonly 400: {
|
|
18731
|
+
readonly description: "Temporary object missing, file too large, invalid image type, or processing failed.";
|
|
18565
18732
|
readonly content: {
|
|
18566
18733
|
readonly "application/json": {
|
|
18567
18734
|
readonly schema: {
|
|
@@ -18570,8 +18737,42 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18570
18737
|
};
|
|
18571
18738
|
};
|
|
18572
18739
|
};
|
|
18573
|
-
readonly
|
|
18574
|
-
readonly description: "
|
|
18740
|
+
readonly 401: {
|
|
18741
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18742
|
+
readonly content: {
|
|
18743
|
+
readonly "application/json": {
|
|
18744
|
+
readonly schema: {
|
|
18745
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18746
|
+
};
|
|
18747
|
+
};
|
|
18748
|
+
};
|
|
18749
|
+
};
|
|
18750
|
+
};
|
|
18751
|
+
};
|
|
18752
|
+
};
|
|
18753
|
+
readonly "/files/delete-profile-picture": {
|
|
18754
|
+
readonly post: {
|
|
18755
|
+
readonly tags: readonly [
|
|
18756
|
+
"Files"
|
|
18757
|
+
];
|
|
18758
|
+
readonly summary: "Delete the authenticated user's profile picture";
|
|
18759
|
+
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).";
|
|
18760
|
+
readonly security: readonly [
|
|
18761
|
+
never
|
|
18762
|
+
];
|
|
18763
|
+
readonly responses: {
|
|
18764
|
+
readonly 200: {
|
|
18765
|
+
readonly description: "Profile picture deleted, or already absent and cleared from the user profile.";
|
|
18766
|
+
readonly content: {
|
|
18767
|
+
readonly "application/json": {
|
|
18768
|
+
readonly schema: {
|
|
18769
|
+
readonly $ref: "#/components/schemas/DeleteProfilePictureSuccess";
|
|
18770
|
+
};
|
|
18771
|
+
};
|
|
18772
|
+
};
|
|
18773
|
+
};
|
|
18774
|
+
readonly 401: {
|
|
18775
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18575
18776
|
readonly content: {
|
|
18576
18777
|
readonly "application/json": {
|
|
18577
18778
|
readonly schema: {
|
|
@@ -18581,11 +18782,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18581
18782
|
};
|
|
18582
18783
|
};
|
|
18583
18784
|
readonly 500: {
|
|
18584
|
-
readonly description: "Failed to
|
|
18785
|
+
readonly description: "Failed to delete the profile picture object.";
|
|
18585
18786
|
readonly content: {
|
|
18586
18787
|
readonly "application/json": {
|
|
18587
18788
|
readonly schema: {
|
|
18588
|
-
readonly $ref: "#/components/schemas/
|
|
18789
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18589
18790
|
};
|
|
18590
18791
|
};
|
|
18591
18792
|
};
|
|
@@ -18593,41 +18794,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18593
18794
|
};
|
|
18594
18795
|
};
|
|
18595
18796
|
};
|
|
18596
|
-
readonly "/
|
|
18597
|
-
readonly
|
|
18797
|
+
readonly "/files/upload-workspace-picture": {
|
|
18798
|
+
readonly post: {
|
|
18598
18799
|
readonly tags: readonly [
|
|
18599
|
-
"
|
|
18800
|
+
"Files"
|
|
18600
18801
|
];
|
|
18601
|
-
readonly summary: "
|
|
18602
|
-
readonly description: "Returns
|
|
18802
|
+
readonly summary: "Create presigned upload for workspace picture";
|
|
18803
|
+
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
18804
|
readonly security: readonly [
|
|
18604
18805
|
never
|
|
18605
18806
|
];
|
|
18606
|
-
readonly
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
readonly
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
readonly format: "uuid";
|
|
18807
|
+
readonly requestBody: {
|
|
18808
|
+
readonly required: true;
|
|
18809
|
+
readonly content: {
|
|
18810
|
+
readonly "application/json": {
|
|
18811
|
+
readonly schema: {
|
|
18812
|
+
readonly $ref: "#/components/schemas/UploadWorkspacePictureRequest";
|
|
18813
|
+
};
|
|
18614
18814
|
};
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
];
|
|
18815
|
+
};
|
|
18816
|
+
};
|
|
18618
18817
|
readonly responses: {
|
|
18619
18818
|
readonly 200: {
|
|
18620
|
-
readonly description: "
|
|
18819
|
+
readonly description: "Presigned workspace picture upload created.";
|
|
18621
18820
|
readonly content: {
|
|
18622
18821
|
readonly "application/json": {
|
|
18623
18822
|
readonly schema: {
|
|
18624
|
-
readonly
|
|
18823
|
+
readonly allOf: readonly [
|
|
18824
|
+
{
|
|
18825
|
+
readonly $ref: "#/components/schemas/PresignedUploadSuccess";
|
|
18826
|
+
}
|
|
18827
|
+
];
|
|
18828
|
+
readonly description: "key is `profiles/workspaces/{workspace}/temp`; maxSize is 524288 (0.5 MB).";
|
|
18625
18829
|
};
|
|
18626
18830
|
};
|
|
18627
18831
|
};
|
|
18628
18832
|
};
|
|
18629
18833
|
readonly 400: {
|
|
18630
|
-
readonly description: "Invalid
|
|
18834
|
+
readonly description: "Invalid request payload or unsupported content type.";
|
|
18631
18835
|
readonly content: {
|
|
18632
18836
|
readonly "application/json": {
|
|
18633
18837
|
readonly schema: {
|
|
@@ -18647,7 +18851,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18647
18851
|
};
|
|
18648
18852
|
};
|
|
18649
18853
|
readonly 403: {
|
|
18650
|
-
readonly description: "Forbidden -
|
|
18854
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18651
18855
|
readonly content: {
|
|
18652
18856
|
readonly "application/json": {
|
|
18653
18857
|
readonly schema: {
|
|
@@ -18657,7 +18861,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18657
18861
|
};
|
|
18658
18862
|
};
|
|
18659
18863
|
readonly 404: {
|
|
18660
|
-
readonly description: "Workspace not found
|
|
18864
|
+
readonly description: "Workspace not found.";
|
|
18661
18865
|
readonly content: {
|
|
18662
18866
|
readonly "application/json": {
|
|
18663
18867
|
readonly schema: {
|
|
@@ -18669,27 +18873,619 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18669
18873
|
};
|
|
18670
18874
|
};
|
|
18671
18875
|
};
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
}
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18876
|
+
readonly "/files/confirm-workspace-picture": {
|
|
18877
|
+
readonly post: {
|
|
18878
|
+
readonly tags: readonly [
|
|
18879
|
+
"Files"
|
|
18880
|
+
];
|
|
18881
|
+
readonly summary: "Confirm and persist an uploaded workspace picture";
|
|
18882
|
+
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.";
|
|
18883
|
+
readonly security: readonly [
|
|
18884
|
+
never
|
|
18885
|
+
];
|
|
18886
|
+
readonly requestBody: {
|
|
18887
|
+
readonly required: true;
|
|
18888
|
+
readonly content: {
|
|
18889
|
+
readonly "application/json": {
|
|
18890
|
+
readonly schema: {
|
|
18891
|
+
readonly $ref: "#/components/schemas/WorkspacePictureWorkspaceRequest";
|
|
18892
|
+
};
|
|
18893
|
+
};
|
|
18894
|
+
};
|
|
18895
|
+
};
|
|
18896
|
+
readonly responses: {
|
|
18897
|
+
readonly 200: {
|
|
18898
|
+
readonly description: "Workspace picture confirmed and saved successfully.";
|
|
18899
|
+
readonly content: {
|
|
18900
|
+
readonly "application/json": {
|
|
18901
|
+
readonly schema: {
|
|
18902
|
+
readonly $ref: "#/components/schemas/ConfirmWorkspacePictureSuccess";
|
|
18903
|
+
};
|
|
18904
|
+
};
|
|
18905
|
+
};
|
|
18906
|
+
};
|
|
18907
|
+
readonly 400: {
|
|
18908
|
+
readonly description: "Temporary object missing, file too large, invalid image type, or processing failed.";
|
|
18909
|
+
readonly content: {
|
|
18910
|
+
readonly "application/json": {
|
|
18911
|
+
readonly schema: {
|
|
18912
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18913
|
+
};
|
|
18914
|
+
};
|
|
18915
|
+
};
|
|
18916
|
+
};
|
|
18917
|
+
readonly 401: {
|
|
18918
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18919
|
+
readonly content: {
|
|
18920
|
+
readonly "application/json": {
|
|
18921
|
+
readonly schema: {
|
|
18922
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18923
|
+
};
|
|
18924
|
+
};
|
|
18925
|
+
};
|
|
18926
|
+
};
|
|
18927
|
+
readonly 403: {
|
|
18928
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
18929
|
+
readonly content: {
|
|
18930
|
+
readonly "application/json": {
|
|
18931
|
+
readonly schema: {
|
|
18932
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18933
|
+
};
|
|
18934
|
+
};
|
|
18935
|
+
};
|
|
18936
|
+
};
|
|
18937
|
+
readonly 404: {
|
|
18938
|
+
readonly description: "Workspace not found.";
|
|
18939
|
+
readonly content: {
|
|
18940
|
+
readonly "application/json": {
|
|
18941
|
+
readonly schema: {
|
|
18942
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18943
|
+
};
|
|
18944
|
+
};
|
|
18945
|
+
};
|
|
18946
|
+
};
|
|
18947
|
+
};
|
|
18948
|
+
};
|
|
18949
|
+
};
|
|
18950
|
+
readonly "/files/delete-workspace-picture": {
|
|
18951
|
+
readonly post: {
|
|
18952
|
+
readonly tags: readonly [
|
|
18953
|
+
"Files"
|
|
18954
|
+
];
|
|
18955
|
+
readonly summary: "Delete a workspace picture";
|
|
18956
|
+
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.";
|
|
18957
|
+
readonly security: readonly [
|
|
18958
|
+
never
|
|
18959
|
+
];
|
|
18960
|
+
readonly requestBody: {
|
|
18961
|
+
readonly required: true;
|
|
18962
|
+
readonly content: {
|
|
18963
|
+
readonly "application/json": {
|
|
18964
|
+
readonly schema: {
|
|
18965
|
+
readonly $ref: "#/components/schemas/WorkspacePictureWorkspaceRequest";
|
|
18966
|
+
};
|
|
18967
|
+
};
|
|
18968
|
+
};
|
|
18969
|
+
};
|
|
18970
|
+
readonly responses: {
|
|
18971
|
+
readonly 200: {
|
|
18972
|
+
readonly description: "Workspace picture deleted, or already absent and cleared from the workspace.";
|
|
18973
|
+
readonly content: {
|
|
18974
|
+
readonly "application/json": {
|
|
18975
|
+
readonly schema: {
|
|
18976
|
+
readonly $ref: "#/components/schemas/DeleteWorkspacePictureSuccess";
|
|
18977
|
+
};
|
|
18978
|
+
};
|
|
18979
|
+
};
|
|
18980
|
+
};
|
|
18981
|
+
readonly 400: {
|
|
18982
|
+
readonly description: "Invalid request payload.";
|
|
18983
|
+
readonly content: {
|
|
18984
|
+
readonly "application/json": {
|
|
18985
|
+
readonly schema: {
|
|
18986
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18987
|
+
};
|
|
18988
|
+
};
|
|
18989
|
+
};
|
|
18990
|
+
};
|
|
18991
|
+
readonly 401: {
|
|
18992
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
18993
|
+
readonly content: {
|
|
18994
|
+
readonly "application/json": {
|
|
18995
|
+
readonly schema: {
|
|
18996
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
18997
|
+
};
|
|
18998
|
+
};
|
|
18999
|
+
};
|
|
19000
|
+
};
|
|
19001
|
+
readonly 403: {
|
|
19002
|
+
readonly description: "Forbidden - User lacks workspace access, or user lacks write access to crm::general.";
|
|
19003
|
+
readonly content: {
|
|
19004
|
+
readonly "application/json": {
|
|
19005
|
+
readonly schema: {
|
|
19006
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19007
|
+
};
|
|
19008
|
+
};
|
|
19009
|
+
};
|
|
19010
|
+
};
|
|
19011
|
+
readonly 404: {
|
|
19012
|
+
readonly description: "Workspace not found.";
|
|
19013
|
+
readonly content: {
|
|
19014
|
+
readonly "application/json": {
|
|
19015
|
+
readonly schema: {
|
|
19016
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19017
|
+
};
|
|
19018
|
+
};
|
|
19019
|
+
};
|
|
19020
|
+
};
|
|
19021
|
+
readonly 500: {
|
|
19022
|
+
readonly description: "Failed to delete the workspace picture object.";
|
|
19023
|
+
readonly content: {
|
|
19024
|
+
readonly "application/json": {
|
|
19025
|
+
readonly schema: {
|
|
19026
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19027
|
+
};
|
|
19028
|
+
};
|
|
19029
|
+
};
|
|
19030
|
+
};
|
|
19031
|
+
};
|
|
19032
|
+
};
|
|
19033
|
+
};
|
|
19034
|
+
readonly "/notifications/sync": {
|
|
19035
|
+
readonly get: {
|
|
19036
|
+
readonly tags: readonly [
|
|
19037
|
+
"Notifications"
|
|
19038
|
+
];
|
|
19039
|
+
readonly summary: "Sync notifications incrementally";
|
|
19040
|
+
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).";
|
|
19041
|
+
readonly security: readonly [
|
|
19042
|
+
never
|
|
19043
|
+
];
|
|
19044
|
+
readonly parameters: readonly [
|
|
19045
|
+
{
|
|
19046
|
+
readonly name: "cursor";
|
|
19047
|
+
readonly in: "query";
|
|
19048
|
+
readonly required: false;
|
|
19049
|
+
readonly schema: {
|
|
19050
|
+
readonly type: "string";
|
|
19051
|
+
readonly format: "date-time";
|
|
19052
|
+
};
|
|
19053
|
+
readonly description: "Change timestamp returned by the previous sync call (ISO 8601). Omit for a full initial sync.";
|
|
19054
|
+
},
|
|
19055
|
+
{
|
|
19056
|
+
readonly name: "limit";
|
|
19057
|
+
readonly in: "query";
|
|
19058
|
+
readonly required: false;
|
|
19059
|
+
readonly schema: {
|
|
19060
|
+
readonly type: "integer";
|
|
19061
|
+
readonly minimum: 1;
|
|
19062
|
+
readonly maximum: 200;
|
|
19063
|
+
readonly default: 100;
|
|
19064
|
+
};
|
|
19065
|
+
readonly description: "Maximum notifications per page.";
|
|
19066
|
+
}
|
|
19067
|
+
];
|
|
19068
|
+
readonly responses: {
|
|
19069
|
+
readonly 200: {
|
|
19070
|
+
readonly description: "Changed notifications with the next cursor.";
|
|
19071
|
+
readonly content: {
|
|
19072
|
+
readonly "application/json": {
|
|
19073
|
+
readonly schema: {
|
|
19074
|
+
readonly $ref: "#/components/schemas/NotificationSyncSuccess";
|
|
19075
|
+
};
|
|
19076
|
+
};
|
|
19077
|
+
};
|
|
19078
|
+
};
|
|
19079
|
+
readonly 400: {
|
|
19080
|
+
readonly description: "Invalid cursor or limit query parameter.";
|
|
19081
|
+
readonly content: {
|
|
19082
|
+
readonly "application/json": {
|
|
19083
|
+
readonly schema: {
|
|
19084
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19085
|
+
};
|
|
19086
|
+
};
|
|
19087
|
+
};
|
|
19088
|
+
};
|
|
19089
|
+
readonly 401: {
|
|
19090
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19091
|
+
readonly content: {
|
|
19092
|
+
readonly "application/json": {
|
|
19093
|
+
readonly schema: {
|
|
19094
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19095
|
+
};
|
|
19096
|
+
};
|
|
19097
|
+
};
|
|
19098
|
+
};
|
|
19099
|
+
};
|
|
19100
|
+
};
|
|
19101
|
+
};
|
|
19102
|
+
readonly "/notifications/read": {
|
|
19103
|
+
readonly post: {
|
|
19104
|
+
readonly tags: readonly [
|
|
19105
|
+
"Notifications"
|
|
19106
|
+
];
|
|
19107
|
+
readonly summary: "Mark a notification as read";
|
|
19108
|
+
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).";
|
|
19109
|
+
readonly security: readonly [
|
|
19110
|
+
never
|
|
19111
|
+
];
|
|
19112
|
+
readonly requestBody: {
|
|
19113
|
+
readonly required: true;
|
|
19114
|
+
readonly content: {
|
|
19115
|
+
readonly "application/json": {
|
|
19116
|
+
readonly schema: {
|
|
19117
|
+
readonly $ref: "#/components/schemas/NotificationIdRequest";
|
|
19118
|
+
};
|
|
19119
|
+
};
|
|
19120
|
+
};
|
|
19121
|
+
};
|
|
19122
|
+
readonly responses: {
|
|
19123
|
+
readonly 200: {
|
|
19124
|
+
readonly description: "Notification marked as read.";
|
|
19125
|
+
readonly content: {
|
|
19126
|
+
readonly "application/json": {
|
|
19127
|
+
readonly schema: {
|
|
19128
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19129
|
+
};
|
|
19130
|
+
};
|
|
19131
|
+
};
|
|
19132
|
+
};
|
|
19133
|
+
readonly 400: {
|
|
19134
|
+
readonly description: "Invalid request payload.";
|
|
19135
|
+
readonly content: {
|
|
19136
|
+
readonly "application/json": {
|
|
19137
|
+
readonly schema: {
|
|
19138
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19139
|
+
};
|
|
19140
|
+
};
|
|
19141
|
+
};
|
|
19142
|
+
};
|
|
19143
|
+
readonly 401: {
|
|
19144
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19145
|
+
readonly content: {
|
|
19146
|
+
readonly "application/json": {
|
|
19147
|
+
readonly schema: {
|
|
19148
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19149
|
+
};
|
|
19150
|
+
};
|
|
19151
|
+
};
|
|
19152
|
+
};
|
|
19153
|
+
readonly 404: {
|
|
19154
|
+
readonly description: "Notification not found for this user.";
|
|
19155
|
+
readonly content: {
|
|
19156
|
+
readonly "application/json": {
|
|
19157
|
+
readonly schema: {
|
|
19158
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19159
|
+
};
|
|
19160
|
+
};
|
|
19161
|
+
};
|
|
19162
|
+
};
|
|
19163
|
+
};
|
|
19164
|
+
};
|
|
19165
|
+
};
|
|
19166
|
+
readonly "/notifications/read-all": {
|
|
19167
|
+
readonly post: {
|
|
19168
|
+
readonly tags: readonly [
|
|
19169
|
+
"Notifications"
|
|
19170
|
+
];
|
|
19171
|
+
readonly summary: "Mark all notifications as read";
|
|
19172
|
+
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).";
|
|
19173
|
+
readonly security: readonly [
|
|
19174
|
+
never
|
|
19175
|
+
];
|
|
19176
|
+
readonly responses: {
|
|
19177
|
+
readonly 200: {
|
|
19178
|
+
readonly description: "All unread notifications marked as read.";
|
|
19179
|
+
readonly content: {
|
|
19180
|
+
readonly "application/json": {
|
|
19181
|
+
readonly schema: {
|
|
19182
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19183
|
+
};
|
|
19184
|
+
};
|
|
19185
|
+
};
|
|
19186
|
+
};
|
|
19187
|
+
readonly 401: {
|
|
19188
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19189
|
+
readonly content: {
|
|
19190
|
+
readonly "application/json": {
|
|
19191
|
+
readonly schema: {
|
|
19192
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19193
|
+
};
|
|
19194
|
+
};
|
|
19195
|
+
};
|
|
19196
|
+
};
|
|
19197
|
+
};
|
|
19198
|
+
};
|
|
19199
|
+
};
|
|
19200
|
+
readonly "/notifications/archive": {
|
|
19201
|
+
readonly post: {
|
|
19202
|
+
readonly tags: readonly [
|
|
19203
|
+
"Notifications"
|
|
19204
|
+
];
|
|
19205
|
+
readonly summary: "Archive a notification";
|
|
19206
|
+
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).";
|
|
19207
|
+
readonly security: readonly [
|
|
19208
|
+
never
|
|
19209
|
+
];
|
|
19210
|
+
readonly requestBody: {
|
|
19211
|
+
readonly required: true;
|
|
19212
|
+
readonly content: {
|
|
19213
|
+
readonly "application/json": {
|
|
19214
|
+
readonly schema: {
|
|
19215
|
+
readonly $ref: "#/components/schemas/NotificationIdRequest";
|
|
19216
|
+
};
|
|
19217
|
+
};
|
|
19218
|
+
};
|
|
19219
|
+
};
|
|
19220
|
+
readonly responses: {
|
|
19221
|
+
readonly 200: {
|
|
19222
|
+
readonly description: "Notification archived.";
|
|
19223
|
+
readonly content: {
|
|
19224
|
+
readonly "application/json": {
|
|
19225
|
+
readonly schema: {
|
|
19226
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19227
|
+
};
|
|
19228
|
+
};
|
|
19229
|
+
};
|
|
19230
|
+
};
|
|
19231
|
+
readonly 400: {
|
|
19232
|
+
readonly description: "Invalid request payload.";
|
|
19233
|
+
readonly content: {
|
|
19234
|
+
readonly "application/json": {
|
|
19235
|
+
readonly schema: {
|
|
19236
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19237
|
+
};
|
|
19238
|
+
};
|
|
19239
|
+
};
|
|
19240
|
+
};
|
|
19241
|
+
readonly 401: {
|
|
19242
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19243
|
+
readonly content: {
|
|
19244
|
+
readonly "application/json": {
|
|
19245
|
+
readonly schema: {
|
|
19246
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19247
|
+
};
|
|
19248
|
+
};
|
|
19249
|
+
};
|
|
19250
|
+
};
|
|
19251
|
+
readonly 404: {
|
|
19252
|
+
readonly description: "Notification not found for this user.";
|
|
19253
|
+
readonly content: {
|
|
19254
|
+
readonly "application/json": {
|
|
19255
|
+
readonly schema: {
|
|
19256
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19257
|
+
};
|
|
19258
|
+
};
|
|
19259
|
+
};
|
|
19260
|
+
};
|
|
19261
|
+
};
|
|
19262
|
+
};
|
|
19263
|
+
};
|
|
19264
|
+
readonly "/notifications/archive-all": {
|
|
19265
|
+
readonly post: {
|
|
19266
|
+
readonly tags: readonly [
|
|
19267
|
+
"Notifications"
|
|
19268
|
+
];
|
|
19269
|
+
readonly summary: "Archive all notifications";
|
|
19270
|
+
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).";
|
|
19271
|
+
readonly security: readonly [
|
|
19272
|
+
never
|
|
19273
|
+
];
|
|
19274
|
+
readonly responses: {
|
|
19275
|
+
readonly 200: {
|
|
19276
|
+
readonly description: "All unarchived notifications archived.";
|
|
19277
|
+
readonly content: {
|
|
19278
|
+
readonly "application/json": {
|
|
19279
|
+
readonly schema: {
|
|
19280
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
19281
|
+
};
|
|
19282
|
+
};
|
|
19283
|
+
};
|
|
19284
|
+
};
|
|
19285
|
+
readonly 401: {
|
|
19286
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19287
|
+
readonly content: {
|
|
19288
|
+
readonly "application/json": {
|
|
19289
|
+
readonly schema: {
|
|
19290
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19291
|
+
};
|
|
19292
|
+
};
|
|
19293
|
+
};
|
|
19294
|
+
};
|
|
19295
|
+
};
|
|
19296
|
+
};
|
|
19297
|
+
};
|
|
19298
|
+
readonly "/chat/start": {
|
|
19299
|
+
readonly post: {
|
|
19300
|
+
readonly tags: readonly [
|
|
19301
|
+
"Chat"
|
|
19302
|
+
];
|
|
19303
|
+
readonly summary: "Start Matrix chat session";
|
|
19304
|
+
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.";
|
|
19305
|
+
readonly security: readonly [
|
|
19306
|
+
never
|
|
19307
|
+
];
|
|
19308
|
+
readonly requestBody: {
|
|
19309
|
+
readonly required: true;
|
|
19310
|
+
readonly content: {
|
|
19311
|
+
readonly "application/json": {
|
|
19312
|
+
readonly schema: {
|
|
19313
|
+
readonly type: "object";
|
|
19314
|
+
readonly required: readonly [
|
|
19315
|
+
"workspace"
|
|
19316
|
+
];
|
|
19317
|
+
readonly properties: {
|
|
19318
|
+
readonly workspace: {
|
|
19319
|
+
readonly type: "string";
|
|
19320
|
+
readonly format: "uuid";
|
|
19321
|
+
readonly description: "Workspace identifier for chat tenancy.";
|
|
19322
|
+
};
|
|
19323
|
+
};
|
|
19324
|
+
};
|
|
19325
|
+
};
|
|
19326
|
+
};
|
|
19327
|
+
};
|
|
19328
|
+
readonly responses: {
|
|
19329
|
+
readonly 201: {
|
|
19330
|
+
readonly description: "Matrix login payload (fresh Synapse login or cached token response).";
|
|
19331
|
+
readonly content: {
|
|
19332
|
+
readonly "application/json": {
|
|
19333
|
+
readonly schema: {
|
|
19334
|
+
readonly $ref: "#/components/schemas/MatrixLoginResponse";
|
|
19335
|
+
};
|
|
19336
|
+
};
|
|
19337
|
+
};
|
|
19338
|
+
};
|
|
19339
|
+
readonly 400: {
|
|
19340
|
+
readonly description: "Invalid request payload.";
|
|
19341
|
+
readonly content: {
|
|
19342
|
+
readonly "application/json": {
|
|
19343
|
+
readonly schema: {
|
|
19344
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19345
|
+
};
|
|
19346
|
+
};
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
19349
|
+
readonly 401: {
|
|
19350
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19351
|
+
readonly content: {
|
|
19352
|
+
readonly "application/json": {
|
|
19353
|
+
readonly schema: {
|
|
19354
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19355
|
+
};
|
|
19356
|
+
};
|
|
19357
|
+
};
|
|
19358
|
+
};
|
|
19359
|
+
readonly 403: {
|
|
19360
|
+
readonly description: "Forbidden - Collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
|
|
19361
|
+
readonly content: {
|
|
19362
|
+
readonly "application/json": {
|
|
19363
|
+
readonly schema: {
|
|
19364
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19365
|
+
};
|
|
19366
|
+
};
|
|
19367
|
+
};
|
|
19368
|
+
};
|
|
19369
|
+
readonly 404: {
|
|
19370
|
+
readonly description: "Workspace not found.";
|
|
19371
|
+
readonly content: {
|
|
19372
|
+
readonly "application/json": {
|
|
19373
|
+
readonly schema: {
|
|
19374
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19375
|
+
};
|
|
19376
|
+
};
|
|
19377
|
+
};
|
|
19378
|
+
};
|
|
19379
|
+
readonly 500: {
|
|
19380
|
+
readonly description: "Failed to provision the Matrix user on Synapse.";
|
|
19381
|
+
readonly content: {
|
|
19382
|
+
readonly "application/json": {
|
|
19383
|
+
readonly schema: {
|
|
19384
|
+
readonly $ref: "#/components/schemas/ChatStartFailure";
|
|
19385
|
+
};
|
|
19386
|
+
};
|
|
19387
|
+
};
|
|
19388
|
+
};
|
|
19389
|
+
};
|
|
19390
|
+
};
|
|
19391
|
+
};
|
|
19392
|
+
readonly "/chat/collaborators/{workspace}": {
|
|
19393
|
+
readonly get: {
|
|
19394
|
+
readonly tags: readonly [
|
|
19395
|
+
"Chat"
|
|
19396
|
+
];
|
|
19397
|
+
readonly summary: "List chat tenants / collaborators";
|
|
19398
|
+
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.";
|
|
19399
|
+
readonly security: readonly [
|
|
19400
|
+
never
|
|
19401
|
+
];
|
|
19402
|
+
readonly parameters: readonly [
|
|
19403
|
+
{
|
|
19404
|
+
readonly name: "workspace";
|
|
19405
|
+
readonly in: "path";
|
|
19406
|
+
readonly required: true;
|
|
19407
|
+
readonly schema: {
|
|
19408
|
+
readonly type: "string";
|
|
19409
|
+
readonly format: "uuid";
|
|
19410
|
+
};
|
|
19411
|
+
readonly description: "Workspace identifier.";
|
|
19412
|
+
}
|
|
19413
|
+
];
|
|
19414
|
+
readonly responses: {
|
|
19415
|
+
readonly 200: {
|
|
19416
|
+
readonly description: "Chat collaborators listed successfully.";
|
|
19417
|
+
readonly content: {
|
|
19418
|
+
readonly "application/json": {
|
|
19419
|
+
readonly schema: {
|
|
19420
|
+
readonly $ref: "#/components/schemas/ListChatCollaboratorsSuccess";
|
|
19421
|
+
};
|
|
19422
|
+
};
|
|
19423
|
+
};
|
|
19424
|
+
};
|
|
19425
|
+
readonly 400: {
|
|
19426
|
+
readonly description: "Invalid workspace id.";
|
|
19427
|
+
readonly content: {
|
|
19428
|
+
readonly "application/json": {
|
|
19429
|
+
readonly schema: {
|
|
19430
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19431
|
+
};
|
|
19432
|
+
};
|
|
19433
|
+
};
|
|
19434
|
+
};
|
|
19435
|
+
readonly 401: {
|
|
19436
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
19437
|
+
readonly content: {
|
|
19438
|
+
readonly "application/json": {
|
|
19439
|
+
readonly schema: {
|
|
19440
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19441
|
+
};
|
|
19442
|
+
};
|
|
19443
|
+
};
|
|
19444
|
+
};
|
|
19445
|
+
readonly 403: {
|
|
19446
|
+
readonly description: "Forbidden - Collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
|
|
19447
|
+
readonly content: {
|
|
19448
|
+
readonly "application/json": {
|
|
19449
|
+
readonly schema: {
|
|
19450
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19451
|
+
};
|
|
19452
|
+
};
|
|
19453
|
+
};
|
|
19454
|
+
};
|
|
19455
|
+
readonly 404: {
|
|
19456
|
+
readonly description: "Workspace not found, or collaborators not found.";
|
|
19457
|
+
readonly content: {
|
|
19458
|
+
readonly "application/json": {
|
|
19459
|
+
readonly schema: {
|
|
19460
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
19461
|
+
};
|
|
19462
|
+
};
|
|
19463
|
+
};
|
|
19464
|
+
};
|
|
19465
|
+
};
|
|
19466
|
+
};
|
|
19467
|
+
};
|
|
19468
|
+
};
|
|
19469
|
+
};
|
|
19470
|
+
outputFormat: "json";
|
|
19471
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19472
|
+
};
|
|
19473
|
+
};
|
|
19474
|
+
} & {
|
|
19475
|
+
"/docs": {
|
|
19476
|
+
$get: {
|
|
19477
|
+
input: {};
|
|
19478
|
+
output: {};
|
|
19479
|
+
outputFormat: string;
|
|
19480
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
19481
|
+
};
|
|
19482
|
+
};
|
|
19483
|
+
} & {
|
|
19484
|
+
"/health": {
|
|
19485
|
+
$get: {
|
|
19486
|
+
input: {};
|
|
19487
|
+
output: {
|
|
19488
|
+
status: string;
|
|
18693
19489
|
};
|
|
18694
19490
|
outputFormat: "json";
|
|
18695
19491
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -20187,6 +20983,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20187
20983
|
birthDate: string | null;
|
|
20188
20984
|
notes: string | null;
|
|
20189
20985
|
}[];
|
|
20986
|
+
failureReasons: {
|
|
20987
|
+
id: string;
|
|
20988
|
+
title: string;
|
|
20989
|
+
description: string | null;
|
|
20990
|
+
workspaceId: string;
|
|
20991
|
+
created_at: string;
|
|
20992
|
+
}[];
|
|
20190
20993
|
};
|
|
20191
20994
|
outputFormat: "json";
|
|
20192
20995
|
status: 200;
|
|
@@ -21455,17 +22258,182 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21455
22258
|
}[];
|
|
21456
22259
|
};
|
|
21457
22260
|
outputFormat: "json";
|
|
21458
|
-
status: 200;
|
|
22261
|
+
status: 200;
|
|
22262
|
+
};
|
|
22263
|
+
};
|
|
22264
|
+
} & {
|
|
22265
|
+
"/get/:workspace/:billingId": {
|
|
22266
|
+
$get: {
|
|
22267
|
+
input: {
|
|
22268
|
+
param: {
|
|
22269
|
+
workspace: string;
|
|
22270
|
+
} & {
|
|
22271
|
+
billingId: string;
|
|
22272
|
+
};
|
|
22273
|
+
};
|
|
22274
|
+
output: {
|
|
22275
|
+
success: false;
|
|
22276
|
+
error: string;
|
|
22277
|
+
};
|
|
22278
|
+
outputFormat: "json";
|
|
22279
|
+
status: 404;
|
|
22280
|
+
} | {
|
|
22281
|
+
input: {
|
|
22282
|
+
param: {
|
|
22283
|
+
workspace: string;
|
|
22284
|
+
} & {
|
|
22285
|
+
billingId: string;
|
|
22286
|
+
};
|
|
22287
|
+
};
|
|
22288
|
+
output: {
|
|
22289
|
+
success: true;
|
|
22290
|
+
billing: {
|
|
22291
|
+
updated_at: string | null;
|
|
22292
|
+
deleted_at: string | null;
|
|
22293
|
+
verified_at: string | null;
|
|
22294
|
+
suspended_at: string | null;
|
|
22295
|
+
created_at: string;
|
|
22296
|
+
id: string;
|
|
22297
|
+
workspaceId: string;
|
|
22298
|
+
country: string;
|
|
22299
|
+
companyName: string;
|
|
22300
|
+
inn: string;
|
|
22301
|
+
kpp: string;
|
|
22302
|
+
bankBranch: string;
|
|
22303
|
+
bankAccountNumber: string;
|
|
22304
|
+
bankBik: string;
|
|
22305
|
+
bankKc: string;
|
|
22306
|
+
vat: boolean;
|
|
22307
|
+
vatRate: number;
|
|
22308
|
+
active: boolean | null;
|
|
22309
|
+
};
|
|
22310
|
+
};
|
|
22311
|
+
outputFormat: "json";
|
|
22312
|
+
status: 200;
|
|
22313
|
+
};
|
|
22314
|
+
};
|
|
22315
|
+
} & {
|
|
22316
|
+
"/edit": {
|
|
22317
|
+
$post: {
|
|
22318
|
+
input: {};
|
|
22319
|
+
output: {
|
|
22320
|
+
success: false;
|
|
22321
|
+
error: never;
|
|
22322
|
+
};
|
|
22323
|
+
outputFormat: "json";
|
|
22324
|
+
status: 400;
|
|
22325
|
+
} | {
|
|
22326
|
+
input: {};
|
|
22327
|
+
output: {
|
|
22328
|
+
success: false;
|
|
22329
|
+
error: string;
|
|
22330
|
+
};
|
|
22331
|
+
outputFormat: "json";
|
|
22332
|
+
status: 404;
|
|
22333
|
+
} | {
|
|
22334
|
+
input: {};
|
|
22335
|
+
output: {
|
|
22336
|
+
success: true;
|
|
22337
|
+
};
|
|
22338
|
+
outputFormat: "json";
|
|
22339
|
+
status: 200;
|
|
22340
|
+
};
|
|
22341
|
+
};
|
|
22342
|
+
} & {
|
|
22343
|
+
"/delete": {
|
|
22344
|
+
$post: {
|
|
22345
|
+
input: {};
|
|
22346
|
+
output: {
|
|
22347
|
+
success: false;
|
|
22348
|
+
error: never;
|
|
22349
|
+
};
|
|
22350
|
+
outputFormat: "json";
|
|
22351
|
+
status: 400;
|
|
22352
|
+
} | {
|
|
22353
|
+
input: {};
|
|
22354
|
+
output: {
|
|
22355
|
+
success: false;
|
|
22356
|
+
error: string;
|
|
22357
|
+
};
|
|
22358
|
+
outputFormat: "json";
|
|
22359
|
+
status: 404;
|
|
22360
|
+
} | {
|
|
22361
|
+
input: {};
|
|
22362
|
+
output: {
|
|
22363
|
+
success: true;
|
|
22364
|
+
};
|
|
22365
|
+
outputFormat: "json";
|
|
22366
|
+
status: 200;
|
|
22367
|
+
};
|
|
22368
|
+
};
|
|
22369
|
+
}, "/billings"> | import("hono/types").MergeSchemaPath<{
|
|
22370
|
+
"/create": {
|
|
22371
|
+
$post: {
|
|
22372
|
+
input: {};
|
|
22373
|
+
output: {
|
|
22374
|
+
success: false;
|
|
22375
|
+
error: string;
|
|
22376
|
+
};
|
|
22377
|
+
outputFormat: "json";
|
|
22378
|
+
status: 404;
|
|
22379
|
+
} | {
|
|
22380
|
+
input: {};
|
|
22381
|
+
output: {
|
|
22382
|
+
success: false;
|
|
22383
|
+
error: string;
|
|
22384
|
+
};
|
|
22385
|
+
outputFormat: "json";
|
|
22386
|
+
status: 400;
|
|
22387
|
+
} | {
|
|
22388
|
+
input: {};
|
|
22389
|
+
output: {
|
|
22390
|
+
success: true;
|
|
22391
|
+
cinvoice: {
|
|
22392
|
+
id: string;
|
|
22393
|
+
created_at: string;
|
|
22394
|
+
invoiceId: string;
|
|
22395
|
+
status: string;
|
|
22396
|
+
workspaceId: string;
|
|
22397
|
+
created_by: string;
|
|
22398
|
+
customerId: string;
|
|
22399
|
+
serviceId: string;
|
|
22400
|
+
installment: boolean | null;
|
|
22401
|
+
vatRate: number | null;
|
|
22402
|
+
SellerBillingId: string;
|
|
22403
|
+
date: string;
|
|
22404
|
+
language: string;
|
|
22405
|
+
currency: string;
|
|
22406
|
+
vatOption: string;
|
|
22407
|
+
unitName: string;
|
|
22408
|
+
unitPrice: number;
|
|
22409
|
+
unitQuantity: number;
|
|
22410
|
+
subscription: boolean | null;
|
|
22411
|
+
updated_at: string | null;
|
|
22412
|
+
deleted_at: string | null;
|
|
22413
|
+
verified_at: string | null;
|
|
22414
|
+
suspended_at: string | null;
|
|
22415
|
+
paidAt: string | null;
|
|
22416
|
+
fullPayment: boolean | null;
|
|
22417
|
+
notes: string | null;
|
|
22418
|
+
buyerInn: string | null;
|
|
22419
|
+
buyerKpp: string | null;
|
|
22420
|
+
discount: number | null;
|
|
22421
|
+
subscriptionStartDate: string | null;
|
|
22422
|
+
subscriptionEndDate: string | null;
|
|
22423
|
+
}[];
|
|
22424
|
+
};
|
|
22425
|
+
outputFormat: "json";
|
|
22426
|
+
status: 201;
|
|
21459
22427
|
};
|
|
21460
22428
|
};
|
|
21461
22429
|
} & {
|
|
21462
|
-
"/
|
|
22430
|
+
"/list/:workspace/:customerId": {
|
|
21463
22431
|
$get: {
|
|
21464
22432
|
input: {
|
|
21465
22433
|
param: {
|
|
21466
22434
|
workspace: string;
|
|
21467
22435
|
} & {
|
|
21468
|
-
|
|
22436
|
+
customerId: string;
|
|
21469
22437
|
};
|
|
21470
22438
|
};
|
|
21471
22439
|
output: {
|
|
@@ -21479,12 +22447,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21479
22447
|
param: {
|
|
21480
22448
|
workspace: string;
|
|
21481
22449
|
} & {
|
|
21482
|
-
|
|
22450
|
+
customerId: string;
|
|
22451
|
+
};
|
|
22452
|
+
};
|
|
22453
|
+
output: {
|
|
22454
|
+
success: false;
|
|
22455
|
+
error: string;
|
|
22456
|
+
};
|
|
22457
|
+
outputFormat: "json";
|
|
22458
|
+
status: 400;
|
|
22459
|
+
} | {
|
|
22460
|
+
input: {
|
|
22461
|
+
param: {
|
|
22462
|
+
workspace: string;
|
|
22463
|
+
} & {
|
|
22464
|
+
customerId: string;
|
|
21483
22465
|
};
|
|
21484
22466
|
};
|
|
21485
22467
|
output: {
|
|
21486
22468
|
success: true;
|
|
21487
|
-
|
|
22469
|
+
cinvoices: {
|
|
21488
22470
|
updated_at: string | null;
|
|
21489
22471
|
deleted_at: string | null;
|
|
21490
22472
|
verified_at: string | null;
|
|
@@ -21492,33 +22474,46 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21492
22474
|
created_at: string;
|
|
21493
22475
|
id: string;
|
|
21494
22476
|
workspaceId: string;
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
22477
|
+
invoiceId: string;
|
|
22478
|
+
serviceId: string;
|
|
22479
|
+
SellerBillingId: string;
|
|
22480
|
+
customerId: string;
|
|
22481
|
+
date: string;
|
|
22482
|
+
language: string;
|
|
22483
|
+
currency: string;
|
|
22484
|
+
vatOption: string;
|
|
22485
|
+
vatRate: number | null;
|
|
22486
|
+
buyerInn: string | null;
|
|
22487
|
+
buyerKpp: string | null;
|
|
22488
|
+
unitName: string;
|
|
22489
|
+
unitPrice: number;
|
|
22490
|
+
unitQuantity: number;
|
|
22491
|
+
notes: string | null;
|
|
22492
|
+
discount: number | null;
|
|
22493
|
+
fullPayment: boolean | null;
|
|
22494
|
+
installment: boolean | null;
|
|
22495
|
+
subscription: boolean | null;
|
|
22496
|
+
subscriptionStartDate: string | null;
|
|
22497
|
+
subscriptionEndDate: string | null;
|
|
22498
|
+
status: string;
|
|
22499
|
+
paidAt: string | null;
|
|
22500
|
+
created_by: string;
|
|
22501
|
+
}[];
|
|
21507
22502
|
};
|
|
21508
22503
|
outputFormat: "json";
|
|
21509
22504
|
status: 200;
|
|
21510
22505
|
};
|
|
21511
22506
|
};
|
|
21512
22507
|
} & {
|
|
21513
|
-
"/
|
|
22508
|
+
"/update": {
|
|
21514
22509
|
$post: {
|
|
21515
22510
|
input: {};
|
|
21516
22511
|
output: {
|
|
21517
22512
|
success: false;
|
|
21518
|
-
error:
|
|
22513
|
+
error: string;
|
|
21519
22514
|
};
|
|
21520
22515
|
outputFormat: "json";
|
|
21521
|
-
status:
|
|
22516
|
+
status: 404;
|
|
21522
22517
|
} | {
|
|
21523
22518
|
input: {};
|
|
21524
22519
|
output: {
|
|
@@ -21526,11 +22521,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21526
22521
|
error: string;
|
|
21527
22522
|
};
|
|
21528
22523
|
outputFormat: "json";
|
|
21529
|
-
status:
|
|
22524
|
+
status: 400;
|
|
21530
22525
|
} | {
|
|
21531
22526
|
input: {};
|
|
21532
22527
|
output: {
|
|
21533
22528
|
success: true;
|
|
22529
|
+
cinvoice: {
|
|
22530
|
+
id: string;
|
|
22531
|
+
created_at: string;
|
|
22532
|
+
invoiceId: string;
|
|
22533
|
+
status: string;
|
|
22534
|
+
workspaceId: string;
|
|
22535
|
+
created_by: string;
|
|
22536
|
+
customerId: string;
|
|
22537
|
+
serviceId: string;
|
|
22538
|
+
installment: boolean | null;
|
|
22539
|
+
vatRate: number | null;
|
|
22540
|
+
SellerBillingId: string;
|
|
22541
|
+
date: string;
|
|
22542
|
+
language: string;
|
|
22543
|
+
currency: string;
|
|
22544
|
+
vatOption: string;
|
|
22545
|
+
unitName: string;
|
|
22546
|
+
unitPrice: number;
|
|
22547
|
+
unitQuantity: number;
|
|
22548
|
+
subscription: boolean | null;
|
|
22549
|
+
updated_at: string | null;
|
|
22550
|
+
deleted_at: string | null;
|
|
22551
|
+
verified_at: string | null;
|
|
22552
|
+
suspended_at: string | null;
|
|
22553
|
+
paidAt: string | null;
|
|
22554
|
+
fullPayment: boolean | null;
|
|
22555
|
+
notes: string | null;
|
|
22556
|
+
buyerInn: string | null;
|
|
22557
|
+
buyerKpp: string | null;
|
|
22558
|
+
discount: number | null;
|
|
22559
|
+
subscriptionStartDate: string | null;
|
|
22560
|
+
subscriptionEndDate: string | null;
|
|
22561
|
+
}[];
|
|
21534
22562
|
};
|
|
21535
22563
|
outputFormat: "json";
|
|
21536
22564
|
status: 200;
|
|
@@ -21542,10 +22570,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21542
22570
|
input: {};
|
|
21543
22571
|
output: {
|
|
21544
22572
|
success: false;
|
|
21545
|
-
error:
|
|
22573
|
+
error: string;
|
|
21546
22574
|
};
|
|
21547
22575
|
outputFormat: "json";
|
|
21548
|
-
status:
|
|
22576
|
+
status: 404;
|
|
21549
22577
|
} | {
|
|
21550
22578
|
input: {};
|
|
21551
22579
|
output: {
|
|
@@ -21553,7 +22581,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21553
22581
|
error: string;
|
|
21554
22582
|
};
|
|
21555
22583
|
outputFormat: "json";
|
|
21556
|
-
status:
|
|
22584
|
+
status: 400;
|
|
21557
22585
|
} | {
|
|
21558
22586
|
input: {};
|
|
21559
22587
|
output: {
|
|
@@ -21563,7 +22591,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21563
22591
|
status: 200;
|
|
21564
22592
|
};
|
|
21565
22593
|
};
|
|
21566
|
-
}, "/
|
|
22594
|
+
}, "/cinvoices"> | import("hono/types").MergeSchemaPath<{
|
|
21567
22595
|
"/create": {
|
|
21568
22596
|
$post: {
|
|
21569
22597
|
input: {};
|
|
@@ -21585,38 +22613,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21585
22613
|
input: {};
|
|
21586
22614
|
output: {
|
|
21587
22615
|
success: true;
|
|
21588
|
-
|
|
22616
|
+
history: {
|
|
21589
22617
|
id: string;
|
|
21590
22618
|
created_at: string;
|
|
21591
|
-
invoiceId: string;
|
|
21592
|
-
status: string;
|
|
21593
22619
|
workspaceId: string;
|
|
21594
22620
|
created_by: string;
|
|
21595
22621
|
customerId: string;
|
|
21596
22622
|
serviceId: string;
|
|
21597
|
-
installment: boolean | null;
|
|
21598
|
-
vatRate: number | null;
|
|
21599
|
-
SellerBillingId: string;
|
|
21600
22623
|
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
22624
|
updated_at: string | null;
|
|
21609
22625
|
deleted_at: string | null;
|
|
21610
22626
|
verified_at: string | null;
|
|
21611
22627
|
suspended_at: string | null;
|
|
21612
|
-
paidAt: string | null;
|
|
21613
|
-
fullPayment: boolean | null;
|
|
21614
22628
|
notes: string | null;
|
|
21615
|
-
buyerInn: string | null;
|
|
21616
|
-
buyerKpp: string | null;
|
|
21617
|
-
discount: number | null;
|
|
21618
|
-
subscriptionStartDate: string | null;
|
|
21619
|
-
subscriptionEndDate: string | null;
|
|
21620
22629
|
}[];
|
|
21621
22630
|
};
|
|
21622
22631
|
outputFormat: "json";
|
|
@@ -21643,58 +22652,164 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21643
22652
|
input: {
|
|
21644
22653
|
param: {
|
|
21645
22654
|
workspace: string;
|
|
21646
|
-
} & {
|
|
21647
|
-
customerId: string;
|
|
22655
|
+
} & {
|
|
22656
|
+
customerId: string;
|
|
22657
|
+
};
|
|
22658
|
+
};
|
|
22659
|
+
output: {
|
|
22660
|
+
success: false;
|
|
22661
|
+
error: string;
|
|
22662
|
+
};
|
|
22663
|
+
outputFormat: "json";
|
|
22664
|
+
status: 400;
|
|
22665
|
+
} | {
|
|
22666
|
+
input: {
|
|
22667
|
+
param: {
|
|
22668
|
+
workspace: string;
|
|
22669
|
+
} & {
|
|
22670
|
+
customerId: string;
|
|
22671
|
+
};
|
|
22672
|
+
};
|
|
22673
|
+
output: {
|
|
22674
|
+
success: true;
|
|
22675
|
+
history: {
|
|
22676
|
+
createdBy: {
|
|
22677
|
+
id: string;
|
|
22678
|
+
firstName: string | null;
|
|
22679
|
+
lastName: string | null;
|
|
22680
|
+
profilePicture: string | null;
|
|
22681
|
+
} | null;
|
|
22682
|
+
updated_at: string | null;
|
|
22683
|
+
deleted_at: string | null;
|
|
22684
|
+
verified_at: string | null;
|
|
22685
|
+
suspended_at: string | null;
|
|
22686
|
+
created_at: string;
|
|
22687
|
+
id: string;
|
|
22688
|
+
workspaceId: string;
|
|
22689
|
+
customerId: string;
|
|
22690
|
+
serviceId: string;
|
|
22691
|
+
notes: string | null;
|
|
22692
|
+
date: string;
|
|
22693
|
+
created_by: string;
|
|
22694
|
+
}[];
|
|
22695
|
+
};
|
|
22696
|
+
outputFormat: "json";
|
|
22697
|
+
status: 200;
|
|
22698
|
+
};
|
|
22699
|
+
};
|
|
22700
|
+
} & {
|
|
22701
|
+
"/update": {
|
|
22702
|
+
$post: {
|
|
22703
|
+
input: {};
|
|
22704
|
+
output: {
|
|
22705
|
+
success: false;
|
|
22706
|
+
error: string;
|
|
22707
|
+
};
|
|
22708
|
+
outputFormat: "json";
|
|
22709
|
+
status: 404;
|
|
22710
|
+
} | {
|
|
22711
|
+
input: {};
|
|
22712
|
+
output: {
|
|
22713
|
+
success: false;
|
|
22714
|
+
error: string;
|
|
22715
|
+
};
|
|
22716
|
+
outputFormat: "json";
|
|
22717
|
+
status: 400;
|
|
22718
|
+
} | {
|
|
22719
|
+
input: {};
|
|
22720
|
+
output: {
|
|
22721
|
+
success: true;
|
|
22722
|
+
history: {
|
|
22723
|
+
updated_at: string | null;
|
|
22724
|
+
deleted_at: string | null;
|
|
22725
|
+
verified_at: string | null;
|
|
22726
|
+
suspended_at: string | null;
|
|
22727
|
+
created_at: string;
|
|
22728
|
+
id: string;
|
|
22729
|
+
workspaceId: string;
|
|
22730
|
+
customerId: string;
|
|
22731
|
+
serviceId: string;
|
|
22732
|
+
notes: string | null;
|
|
22733
|
+
date: string;
|
|
22734
|
+
created_by: string;
|
|
22735
|
+
}[];
|
|
22736
|
+
};
|
|
22737
|
+
outputFormat: "json";
|
|
22738
|
+
status: 200;
|
|
22739
|
+
};
|
|
22740
|
+
};
|
|
22741
|
+
} & {
|
|
22742
|
+
"/delete": {
|
|
22743
|
+
$post: {
|
|
22744
|
+
input: {};
|
|
22745
|
+
output: {
|
|
22746
|
+
success: false;
|
|
22747
|
+
error: string;
|
|
22748
|
+
};
|
|
22749
|
+
outputFormat: "json";
|
|
22750
|
+
status: 404;
|
|
22751
|
+
} | {
|
|
22752
|
+
input: {};
|
|
22753
|
+
output: {
|
|
22754
|
+
success: false;
|
|
22755
|
+
error: string;
|
|
22756
|
+
};
|
|
22757
|
+
outputFormat: "json";
|
|
22758
|
+
status: 400;
|
|
22759
|
+
} | {
|
|
22760
|
+
input: {};
|
|
22761
|
+
output: {
|
|
22762
|
+
success: true;
|
|
22763
|
+
};
|
|
22764
|
+
outputFormat: "json";
|
|
22765
|
+
status: 200;
|
|
22766
|
+
};
|
|
22767
|
+
};
|
|
22768
|
+
}, "/chistory"> | import("hono/types").MergeSchemaPath<{
|
|
22769
|
+
"/list/:workspace": {
|
|
22770
|
+
$get: {
|
|
22771
|
+
input: {
|
|
22772
|
+
param: {
|
|
22773
|
+
workspace: string;
|
|
21648
22774
|
};
|
|
21649
22775
|
};
|
|
21650
22776
|
output: {
|
|
21651
|
-
success:
|
|
21652
|
-
|
|
22777
|
+
success: true;
|
|
22778
|
+
collaborators: {
|
|
22779
|
+
collaboratorId: string;
|
|
22780
|
+
role: string;
|
|
22781
|
+
profilePicture: string | null;
|
|
22782
|
+
firstName: string | null;
|
|
22783
|
+
lastName: string | null;
|
|
22784
|
+
}[];
|
|
21653
22785
|
};
|
|
21654
22786
|
outputFormat: "json";
|
|
21655
|
-
status:
|
|
21656
|
-
}
|
|
22787
|
+
status: 200;
|
|
22788
|
+
};
|
|
22789
|
+
};
|
|
22790
|
+
} & {
|
|
22791
|
+
"/list/:workspace/:taskId": {
|
|
22792
|
+
$get: {
|
|
21657
22793
|
input: {
|
|
21658
22794
|
param: {
|
|
21659
22795
|
workspace: string;
|
|
21660
22796
|
} & {
|
|
21661
|
-
|
|
22797
|
+
taskId: string;
|
|
21662
22798
|
};
|
|
21663
22799
|
};
|
|
21664
22800
|
output: {
|
|
21665
22801
|
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;
|
|
22802
|
+
assignees: {
|
|
22803
|
+
assigneeId: string;
|
|
21673
22804
|
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;
|
|
22805
|
+
collaboratorId: string;
|
|
22806
|
+
taskId: string;
|
|
22807
|
+
startDate: string | null;
|
|
22808
|
+
endDate: string | null;
|
|
22809
|
+
description: string | null;
|
|
22810
|
+
profilePicture: string | null;
|
|
22811
|
+
firstName: string | null;
|
|
22812
|
+
lastName: string | null;
|
|
21698
22813
|
}[];
|
|
21699
22814
|
};
|
|
21700
22815
|
outputFormat: "json";
|
|
@@ -21702,7 +22817,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21702
22817
|
};
|
|
21703
22818
|
};
|
|
21704
22819
|
} & {
|
|
21705
|
-
"/
|
|
22820
|
+
"/create": {
|
|
21706
22821
|
$post: {
|
|
21707
22822
|
input: {};
|
|
21708
22823
|
output: {
|
|
@@ -21723,54 +22838,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21723
22838
|
input: {};
|
|
21724
22839
|
output: {
|
|
21725
22840
|
success: true;
|
|
21726
|
-
|
|
22841
|
+
assignee: {
|
|
21727
22842
|
id: string;
|
|
21728
22843
|
created_at: string;
|
|
21729
|
-
|
|
21730
|
-
|
|
22844
|
+
startDate: string | null;
|
|
22845
|
+
endDate: string | null;
|
|
22846
|
+
collaboratorId: string;
|
|
21731
22847
|
workspaceId: string;
|
|
22848
|
+
description: string | null;
|
|
21732
22849
|
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;
|
|
22850
|
+
taskId: string;
|
|
21746
22851
|
updated_at: string | null;
|
|
21747
22852
|
deleted_at: string | null;
|
|
21748
22853
|
verified_at: string | null;
|
|
21749
22854
|
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
|
-
}[];
|
|
22855
|
+
};
|
|
21759
22856
|
};
|
|
21760
22857
|
outputFormat: "json";
|
|
21761
|
-
status:
|
|
22858
|
+
status: 201;
|
|
21762
22859
|
};
|
|
21763
22860
|
};
|
|
21764
22861
|
} & {
|
|
21765
|
-
"/
|
|
22862
|
+
"/remove": {
|
|
21766
22863
|
$post: {
|
|
21767
22864
|
input: {};
|
|
21768
22865
|
output: {
|
|
21769
22866
|
success: false;
|
|
21770
|
-
error:
|
|
22867
|
+
error: never;
|
|
21771
22868
|
};
|
|
21772
22869
|
outputFormat: "json";
|
|
21773
|
-
status:
|
|
22870
|
+
status: 400;
|
|
21774
22871
|
} | {
|
|
21775
22872
|
input: {};
|
|
21776
22873
|
output: {
|
|
@@ -21778,7 +22875,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21778
22875
|
error: string;
|
|
21779
22876
|
};
|
|
21780
22877
|
outputFormat: "json";
|
|
21781
|
-
status:
|
|
22878
|
+
status: 404;
|
|
21782
22879
|
} | {
|
|
21783
22880
|
input: {};
|
|
21784
22881
|
output: {
|
|
@@ -21788,8 +22885,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21788
22885
|
status: 200;
|
|
21789
22886
|
};
|
|
21790
22887
|
};
|
|
21791
|
-
}
|
|
21792
|
-
"/
|
|
22888
|
+
} & {
|
|
22889
|
+
"/update": {
|
|
21793
22890
|
$post: {
|
|
21794
22891
|
input: {};
|
|
21795
22892
|
output: {
|
|
@@ -21810,88 +22907,73 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21810
22907
|
input: {};
|
|
21811
22908
|
output: {
|
|
21812
22909
|
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;
|
|
22910
|
+
result: {
|
|
21821
22911
|
updated_at: string | null;
|
|
21822
22912
|
deleted_at: string | null;
|
|
21823
22913
|
verified_at: string | null;
|
|
21824
22914
|
suspended_at: string | null;
|
|
21825
|
-
|
|
21826
|
-
|
|
22915
|
+
created_at: string;
|
|
22916
|
+
id: string;
|
|
22917
|
+
taskId: string;
|
|
22918
|
+
collaboratorId: string;
|
|
22919
|
+
startDate: string | null;
|
|
22920
|
+
endDate: string | null;
|
|
22921
|
+
description: string | null;
|
|
22922
|
+
workspaceId: string;
|
|
22923
|
+
created_by: string;
|
|
22924
|
+
};
|
|
21827
22925
|
};
|
|
21828
22926
|
outputFormat: "json";
|
|
21829
|
-
status:
|
|
22927
|
+
status: 200;
|
|
21830
22928
|
};
|
|
21831
22929
|
};
|
|
21832
|
-
}
|
|
21833
|
-
"/list/:workspace
|
|
22930
|
+
}, "/assignees"> | import("hono/types").MergeSchemaPath<{
|
|
22931
|
+
"/list/:workspace": {
|
|
21834
22932
|
$get: {
|
|
21835
22933
|
input: {
|
|
21836
22934
|
param: {
|
|
21837
22935
|
workspace: string;
|
|
21838
|
-
} & {
|
|
21839
|
-
customerId: string;
|
|
21840
22936
|
};
|
|
21841
22937
|
};
|
|
21842
22938
|
output: {
|
|
21843
|
-
success:
|
|
21844
|
-
|
|
22939
|
+
success: true;
|
|
22940
|
+
tags: {
|
|
22941
|
+
name: string;
|
|
22942
|
+
description: string | null;
|
|
22943
|
+
}[];
|
|
21845
22944
|
};
|
|
21846
22945
|
outputFormat: "json";
|
|
21847
|
-
status:
|
|
21848
|
-
}
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
};
|
|
21855
|
-
};
|
|
22946
|
+
status: 200;
|
|
22947
|
+
};
|
|
22948
|
+
};
|
|
22949
|
+
} & {
|
|
22950
|
+
"/create": {
|
|
22951
|
+
$post: {
|
|
22952
|
+
input: {};
|
|
21856
22953
|
output: {
|
|
21857
22954
|
success: false;
|
|
21858
|
-
error:
|
|
22955
|
+
error: never;
|
|
21859
22956
|
};
|
|
21860
22957
|
outputFormat: "json";
|
|
21861
22958
|
status: 400;
|
|
21862
22959
|
} | {
|
|
21863
|
-
input: {
|
|
21864
|
-
param: {
|
|
21865
|
-
workspace: string;
|
|
21866
|
-
} & {
|
|
21867
|
-
customerId: string;
|
|
21868
|
-
};
|
|
21869
|
-
};
|
|
22960
|
+
input: {};
|
|
21870
22961
|
output: {
|
|
21871
22962
|
success: true;
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
21878
|
-
} | null;
|
|
22963
|
+
tag: {
|
|
22964
|
+
id: string;
|
|
22965
|
+
created_at: string;
|
|
22966
|
+
name: string;
|
|
22967
|
+
workspaceId: string;
|
|
22968
|
+
description: string | null;
|
|
21879
22969
|
updated_at: string | null;
|
|
21880
22970
|
deleted_at: string | null;
|
|
21881
22971
|
verified_at: string | null;
|
|
21882
22972
|
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
22973
|
}[];
|
|
21892
22974
|
};
|
|
21893
22975
|
outputFormat: "json";
|
|
21894
|
-
status:
|
|
22976
|
+
status: 201;
|
|
21895
22977
|
};
|
|
21896
22978
|
};
|
|
21897
22979
|
} & {
|
|
@@ -21900,10 +22982,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21900
22982
|
input: {};
|
|
21901
22983
|
output: {
|
|
21902
22984
|
success: false;
|
|
21903
|
-
error:
|
|
22985
|
+
error: never;
|
|
21904
22986
|
};
|
|
21905
22987
|
outputFormat: "json";
|
|
21906
|
-
status:
|
|
22988
|
+
status: 400;
|
|
22989
|
+
} | {
|
|
22990
|
+
input: {};
|
|
22991
|
+
output: {
|
|
22992
|
+
success: true;
|
|
22993
|
+
tag: {
|
|
22994
|
+
rows: never[];
|
|
22995
|
+
command: string;
|
|
22996
|
+
rowCount: number | null;
|
|
22997
|
+
oid: number;
|
|
22998
|
+
fields: {
|
|
22999
|
+
name: string;
|
|
23000
|
+
tableID: number;
|
|
23001
|
+
columnID: number;
|
|
23002
|
+
dataTypeID: number;
|
|
23003
|
+
dataTypeSize: number;
|
|
23004
|
+
dataTypeModifier: number;
|
|
23005
|
+
format: string;
|
|
23006
|
+
}[];
|
|
23007
|
+
};
|
|
23008
|
+
};
|
|
23009
|
+
outputFormat: "json";
|
|
23010
|
+
status: 200;
|
|
23011
|
+
};
|
|
23012
|
+
};
|
|
23013
|
+
} & {
|
|
23014
|
+
"/delete": {
|
|
23015
|
+
$post: {
|
|
23016
|
+
input: {};
|
|
23017
|
+
output: {
|
|
23018
|
+
success: false;
|
|
23019
|
+
error: never;
|
|
23020
|
+
};
|
|
23021
|
+
outputFormat: "json";
|
|
23022
|
+
status: 400;
|
|
21907
23023
|
} | {
|
|
21908
23024
|
input: {};
|
|
21909
23025
|
output: {
|
|
@@ -21911,40 +23027,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21911
23027
|
error: string;
|
|
21912
23028
|
};
|
|
21913
23029
|
outputFormat: "json";
|
|
21914
|
-
status:
|
|
23030
|
+
status: 404;
|
|
21915
23031
|
} | {
|
|
21916
23032
|
input: {};
|
|
21917
23033
|
output: {
|
|
21918
23034
|
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
23035
|
};
|
|
21934
23036
|
outputFormat: "json";
|
|
21935
23037
|
status: 200;
|
|
21936
23038
|
};
|
|
21937
23039
|
};
|
|
21938
23040
|
} & {
|
|
21939
|
-
"/
|
|
23041
|
+
"/assign-to-task": {
|
|
21940
23042
|
$post: {
|
|
21941
23043
|
input: {};
|
|
21942
23044
|
output: {
|
|
21943
23045
|
success: false;
|
|
21944
|
-
error:
|
|
23046
|
+
error: never;
|
|
21945
23047
|
};
|
|
21946
23048
|
outputFormat: "json";
|
|
21947
|
-
status:
|
|
23049
|
+
status: 400;
|
|
21948
23050
|
} | {
|
|
21949
23051
|
input: {};
|
|
21950
23052
|
output: {
|
|
@@ -21952,7 +23054,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21952
23054
|
error: string;
|
|
21953
23055
|
};
|
|
21954
23056
|
outputFormat: "json";
|
|
21955
|
-
status:
|
|
23057
|
+
status: 404;
|
|
21956
23058
|
} | {
|
|
21957
23059
|
input: {};
|
|
21958
23060
|
output: {
|
|
@@ -21962,59 +23064,35 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
21962
23064
|
status: 200;
|
|
21963
23065
|
};
|
|
21964
23066
|
};
|
|
21965
|
-
}
|
|
21966
|
-
"/
|
|
21967
|
-
$
|
|
21968
|
-
input: {
|
|
21969
|
-
param: {
|
|
21970
|
-
workspace: string;
|
|
21971
|
-
};
|
|
21972
|
-
};
|
|
23067
|
+
} & {
|
|
23068
|
+
"/assign-to-customer": {
|
|
23069
|
+
$post: {
|
|
23070
|
+
input: {};
|
|
21973
23071
|
output: {
|
|
21974
|
-
success:
|
|
21975
|
-
|
|
21976
|
-
collaboratorId: string;
|
|
21977
|
-
role: string;
|
|
21978
|
-
profilePicture: string | null;
|
|
21979
|
-
firstName: string | null;
|
|
21980
|
-
lastName: string | null;
|
|
21981
|
-
}[];
|
|
23072
|
+
success: false;
|
|
23073
|
+
error: string;
|
|
21982
23074
|
};
|
|
21983
23075
|
outputFormat: "json";
|
|
21984
|
-
status:
|
|
21985
|
-
}
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
input: {
|
|
21991
|
-
param: {
|
|
21992
|
-
workspace: string;
|
|
21993
|
-
} & {
|
|
21994
|
-
taskId: string;
|
|
21995
|
-
};
|
|
23076
|
+
status: 404;
|
|
23077
|
+
} | {
|
|
23078
|
+
input: {};
|
|
23079
|
+
output: {
|
|
23080
|
+
success: false;
|
|
23081
|
+
error: string;
|
|
21996
23082
|
};
|
|
23083
|
+
outputFormat: "json";
|
|
23084
|
+
status: 400;
|
|
23085
|
+
} | {
|
|
23086
|
+
input: {};
|
|
21997
23087
|
output: {
|
|
21998
23088
|
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
23089
|
};
|
|
22012
23090
|
outputFormat: "json";
|
|
22013
23091
|
status: 200;
|
|
22014
23092
|
};
|
|
22015
23093
|
};
|
|
22016
23094
|
} & {
|
|
22017
|
-
"/
|
|
23095
|
+
"/remove-from-customer": {
|
|
22018
23096
|
$post: {
|
|
22019
23097
|
input: {};
|
|
22020
23098
|
output: {
|
|
@@ -22035,28 +23113,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22035
23113
|
input: {};
|
|
22036
23114
|
output: {
|
|
22037
23115
|
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
23116
|
};
|
|
22054
23117
|
outputFormat: "json";
|
|
22055
|
-
status:
|
|
23118
|
+
status: 200;
|
|
22056
23119
|
};
|
|
22057
23120
|
};
|
|
22058
23121
|
} & {
|
|
22059
|
-
"/remove": {
|
|
23122
|
+
"/remove-from-task": {
|
|
22060
23123
|
$post: {
|
|
22061
23124
|
input: {};
|
|
22062
23125
|
output: {
|
|
@@ -22082,10 +23145,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22082
23145
|
status: 200;
|
|
22083
23146
|
};
|
|
22084
23147
|
};
|
|
22085
|
-
}
|
|
22086
|
-
"/
|
|
22087
|
-
$
|
|
22088
|
-
input: {
|
|
23148
|
+
}, "/tags"> | import("hono/types").MergeSchemaPath<{
|
|
23149
|
+
"/list/:workspace/:taskId": {
|
|
23150
|
+
$get: {
|
|
23151
|
+
input: {
|
|
23152
|
+
param: {
|
|
23153
|
+
workspace: string;
|
|
23154
|
+
} & {
|
|
23155
|
+
taskId: string;
|
|
23156
|
+
};
|
|
23157
|
+
};
|
|
22089
23158
|
output: {
|
|
22090
23159
|
success: false;
|
|
22091
23160
|
error: string;
|
|
@@ -22093,51 +23162,90 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22093
23162
|
outputFormat: "json";
|
|
22094
23163
|
status: 404;
|
|
22095
23164
|
} | {
|
|
22096
|
-
input: {
|
|
23165
|
+
input: {
|
|
23166
|
+
param: {
|
|
23167
|
+
workspace: string;
|
|
23168
|
+
} & {
|
|
23169
|
+
taskId: string;
|
|
23170
|
+
};
|
|
23171
|
+
};
|
|
22097
23172
|
output: {
|
|
22098
|
-
success:
|
|
22099
|
-
|
|
23173
|
+
success: true;
|
|
23174
|
+
reasons: {
|
|
23175
|
+
id: string;
|
|
23176
|
+
title: string;
|
|
23177
|
+
description: string | null;
|
|
23178
|
+
workspaceId: string;
|
|
23179
|
+
created_at: string;
|
|
23180
|
+
}[];
|
|
22100
23181
|
};
|
|
22101
23182
|
outputFormat: "json";
|
|
22102
|
-
status:
|
|
22103
|
-
}
|
|
22104
|
-
|
|
23183
|
+
status: 200;
|
|
23184
|
+
};
|
|
23185
|
+
};
|
|
23186
|
+
} & {
|
|
23187
|
+
"/list/:workspace": {
|
|
23188
|
+
$get: {
|
|
23189
|
+
input: {
|
|
23190
|
+
param: {
|
|
23191
|
+
workspace: string;
|
|
23192
|
+
};
|
|
23193
|
+
};
|
|
22105
23194
|
output: {
|
|
22106
23195
|
success: true;
|
|
22107
|
-
|
|
23196
|
+
reasons: {
|
|
22108
23197
|
updated_at: string | null;
|
|
22109
23198
|
deleted_at: string | null;
|
|
22110
23199
|
verified_at: string | null;
|
|
22111
23200
|
suspended_at: string | null;
|
|
22112
23201
|
created_at: string;
|
|
22113
23202
|
id: string;
|
|
22114
|
-
|
|
22115
|
-
collaboratorId: string;
|
|
22116
|
-
startDate: string | null;
|
|
22117
|
-
endDate: string | null;
|
|
23203
|
+
title: string;
|
|
22118
23204
|
description: string | null;
|
|
22119
23205
|
workspaceId: string;
|
|
22120
|
-
|
|
22121
|
-
};
|
|
23206
|
+
}[];
|
|
22122
23207
|
};
|
|
22123
23208
|
outputFormat: "json";
|
|
22124
23209
|
status: 200;
|
|
22125
23210
|
};
|
|
22126
23211
|
};
|
|
22127
|
-
}
|
|
22128
|
-
"/
|
|
23212
|
+
} & {
|
|
23213
|
+
"/get/:workspace/:failureReasonId": {
|
|
22129
23214
|
$get: {
|
|
22130
23215
|
input: {
|
|
22131
23216
|
param: {
|
|
22132
23217
|
workspace: string;
|
|
23218
|
+
} & {
|
|
23219
|
+
failureReasonId: string;
|
|
23220
|
+
};
|
|
23221
|
+
};
|
|
23222
|
+
output: {
|
|
23223
|
+
success: false;
|
|
23224
|
+
error: string;
|
|
23225
|
+
};
|
|
23226
|
+
outputFormat: "json";
|
|
23227
|
+
status: 404;
|
|
23228
|
+
} | {
|
|
23229
|
+
input: {
|
|
23230
|
+
param: {
|
|
23231
|
+
workspace: string;
|
|
23232
|
+
} & {
|
|
23233
|
+
failureReasonId: string;
|
|
22133
23234
|
};
|
|
22134
23235
|
};
|
|
22135
23236
|
output: {
|
|
22136
23237
|
success: true;
|
|
22137
|
-
|
|
22138
|
-
|
|
23238
|
+
reason: {
|
|
23239
|
+
updated_at: string | null;
|
|
23240
|
+
deleted_at: string | null;
|
|
23241
|
+
verified_at: string | null;
|
|
23242
|
+
suspended_at: string | null;
|
|
23243
|
+
created_at: string;
|
|
23244
|
+
id: string;
|
|
23245
|
+
title: string;
|
|
22139
23246
|
description: string | null;
|
|
22140
|
-
|
|
23247
|
+
workspaceId: string;
|
|
23248
|
+
};
|
|
22141
23249
|
};
|
|
22142
23250
|
outputFormat: "json";
|
|
22143
23251
|
status: 200;
|
|
@@ -22153,21 +23261,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22153
23261
|
};
|
|
22154
23262
|
outputFormat: "json";
|
|
22155
23263
|
status: 400;
|
|
23264
|
+
} | {
|
|
23265
|
+
input: {};
|
|
23266
|
+
output: {
|
|
23267
|
+
success: false;
|
|
23268
|
+
error: string;
|
|
23269
|
+
};
|
|
23270
|
+
outputFormat: "json";
|
|
23271
|
+
status: 409;
|
|
22156
23272
|
} | {
|
|
22157
23273
|
input: {};
|
|
22158
23274
|
output: {
|
|
22159
23275
|
success: true;
|
|
22160
|
-
|
|
23276
|
+
reason: {
|
|
22161
23277
|
id: string;
|
|
22162
23278
|
created_at: string;
|
|
22163
|
-
|
|
23279
|
+
title: string;
|
|
22164
23280
|
workspaceId: string;
|
|
22165
23281
|
description: string | null;
|
|
22166
23282
|
updated_at: string | null;
|
|
22167
23283
|
deleted_at: string | null;
|
|
22168
23284
|
verified_at: string | null;
|
|
22169
23285
|
suspended_at: string | null;
|
|
22170
|
-
}
|
|
23286
|
+
};
|
|
22171
23287
|
};
|
|
22172
23288
|
outputFormat: "json";
|
|
22173
23289
|
status: 201;
|
|
@@ -22184,39 +23300,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22184
23300
|
outputFormat: "json";
|
|
22185
23301
|
status: 400;
|
|
22186
23302
|
} | {
|
|
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
23303
|
input: {};
|
|
22214
23304
|
output: {
|
|
22215
23305
|
success: false;
|
|
22216
|
-
error:
|
|
23306
|
+
error: string;
|
|
22217
23307
|
};
|
|
22218
23308
|
outputFormat: "json";
|
|
22219
|
-
status:
|
|
23309
|
+
status: 404;
|
|
22220
23310
|
} | {
|
|
22221
23311
|
input: {};
|
|
22222
23312
|
output: {
|
|
@@ -22224,18 +23314,29 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22224
23314
|
error: string;
|
|
22225
23315
|
};
|
|
22226
23316
|
outputFormat: "json";
|
|
22227
|
-
status:
|
|
23317
|
+
status: 409;
|
|
22228
23318
|
} | {
|
|
22229
23319
|
input: {};
|
|
22230
23320
|
output: {
|
|
22231
23321
|
success: true;
|
|
23322
|
+
reason: {
|
|
23323
|
+
updated_at: string | null;
|
|
23324
|
+
deleted_at: string | null;
|
|
23325
|
+
verified_at: string | null;
|
|
23326
|
+
suspended_at: string | null;
|
|
23327
|
+
created_at: string;
|
|
23328
|
+
id: string;
|
|
23329
|
+
title: string;
|
|
23330
|
+
description: string | null;
|
|
23331
|
+
workspaceId: string;
|
|
23332
|
+
};
|
|
22232
23333
|
};
|
|
22233
23334
|
outputFormat: "json";
|
|
22234
23335
|
status: 200;
|
|
22235
23336
|
};
|
|
22236
23337
|
};
|
|
22237
23338
|
} & {
|
|
22238
|
-
"/
|
|
23339
|
+
"/delete": {
|
|
22239
23340
|
$post: {
|
|
22240
23341
|
input: {};
|
|
22241
23342
|
output: {
|
|
@@ -22262,35 +23363,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22262
23363
|
};
|
|
22263
23364
|
};
|
|
22264
23365
|
} & {
|
|
22265
|
-
"/assign-to-
|
|
23366
|
+
"/assign-to-task": {
|
|
22266
23367
|
$post: {
|
|
22267
23368
|
input: {};
|
|
22268
23369
|
output: {
|
|
22269
23370
|
success: false;
|
|
22270
|
-
error:
|
|
22271
|
-
};
|
|
22272
|
-
outputFormat: "json";
|
|
22273
|
-
status: 404;
|
|
22274
|
-
} | {
|
|
22275
|
-
input: {};
|
|
22276
|
-
output: {
|
|
22277
|
-
success: false;
|
|
22278
|
-
error: string;
|
|
23371
|
+
error: never;
|
|
22279
23372
|
};
|
|
22280
23373
|
outputFormat: "json";
|
|
22281
23374
|
status: 400;
|
|
22282
23375
|
} | {
|
|
22283
|
-
input: {};
|
|
22284
|
-
output: {
|
|
22285
|
-
success: true;
|
|
22286
|
-
};
|
|
22287
|
-
outputFormat: "json";
|
|
22288
|
-
status: 200;
|
|
22289
|
-
};
|
|
22290
|
-
};
|
|
22291
|
-
} & {
|
|
22292
|
-
"/remove-from-customer": {
|
|
22293
|
-
$post: {
|
|
22294
23376
|
input: {};
|
|
22295
23377
|
output: {
|
|
22296
23378
|
success: false;
|
|
@@ -22298,14 +23380,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22298
23380
|
};
|
|
22299
23381
|
outputFormat: "json";
|
|
22300
23382
|
status: 404;
|
|
22301
|
-
} | {
|
|
22302
|
-
input: {};
|
|
22303
|
-
output: {
|
|
22304
|
-
success: false;
|
|
22305
|
-
error: string;
|
|
22306
|
-
};
|
|
22307
|
-
outputFormat: "json";
|
|
22308
|
-
status: 400;
|
|
22309
23383
|
} | {
|
|
22310
23384
|
input: {};
|
|
22311
23385
|
output: {
|
|
@@ -22342,7 +23416,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
22342
23416
|
status: 200;
|
|
22343
23417
|
};
|
|
22344
23418
|
};
|
|
22345
|
-
}, "/
|
|
23419
|
+
}, "/freason"> | import("hono/types").MergeSchemaPath<{
|
|
22346
23420
|
"/google/connect": {
|
|
22347
23421
|
$get: {
|
|
22348
23422
|
input: {};
|