@mestra-dev/contract 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +828 -43
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -26,8 +26,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
26
26
  readonly openapi: "3.0.3";
27
27
  readonly info: {
28
28
  readonly title: "Auth Service API";
29
- readonly version: "1.5.3";
30
- readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Tasks, Templates, Tags, Comments, Assignees, Chat, Events, Billings, Files, and Notifications endpoints exposed by the k3-core platform.";
29
+ readonly version: "1.5.4";
30
+ readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Tasks, Templates, Tags, Comments, Assignees, Chat, Events, Billings, 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
31
  };
32
32
  readonly servers: readonly [
33
33
  {
@@ -245,7 +245,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
245
245
  readonly required: readonly [
246
246
  "id",
247
247
  "userId",
248
- "workspaceId",
249
248
  "title",
250
249
  "message",
251
250
  "type",
@@ -265,6 +264,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
265
264
  readonly workspaceId: {
266
265
  readonly type: "string";
267
266
  readonly format: "uuid";
267
+ readonly nullable: true;
268
+ readonly description: "Workspace this notification belongs to. Null for account-level notices (e.g. first registration).";
268
269
  };
269
270
  readonly title: {
270
271
  readonly type: "string";
@@ -366,21 +367,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
366
367
  readonly ErrorResponse: {
367
368
  readonly type: "object";
368
369
  readonly required: readonly [
369
- "success"
370
+ "success",
371
+ "error"
370
372
  ];
373
+ readonly description: "Standard API error body. Route handlers and the global HTTPException handler return this shape. Validation failures may put Zod details in `error` instead of a string.";
371
374
  readonly properties: {
372
375
  readonly success: {
373
376
  readonly type: "boolean";
374
377
  readonly const: false;
375
378
  };
376
- readonly message: {
377
- readonly type: "string";
378
- readonly nullable: true;
379
- readonly description: "Human readable error message.";
380
- };
381
379
  readonly error: {
382
- readonly nullable: true;
383
- readonly description: "String message or Zod validation details, depending on the failure.";
380
+ readonly description: "Human-readable message, or Zod validation details for invalid payloads.";
384
381
  readonly oneOf: readonly [
385
382
  {
386
383
  readonly type: "string";
@@ -391,6 +388,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
391
388
  }
392
389
  ];
393
390
  };
391
+ readonly link: {
392
+ readonly type: "string";
393
+ readonly format: "uri";
394
+ readonly nullable: true;
395
+ readonly description: "Optional documentation link (used by the global 404 handler).";
396
+ readonly example: "https://api.mestra.chat/docs";
397
+ };
394
398
  };
395
399
  };
396
400
  readonly NotificationIdRequest: {
@@ -436,7 +440,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
436
440
  };
437
441
  readonly status: {
438
442
  readonly type: "string";
439
- readonly description: "Integration status value stored in the database.";
443
+ readonly description: "Integration status. `pending` while background calendar/watch setup is running after the OAuth callback, `active` once setup completed, `error` if setup failed.";
444
+ readonly enum: readonly [
445
+ "pending",
446
+ "active",
447
+ "error"
448
+ ];
440
449
  readonly example: "active";
441
450
  };
442
451
  };
@@ -3162,9 +3171,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3162
3171
  };
3163
3172
  readonly 401: {
3164
3173
  readonly description: "Unauthorized - Missing or invalid access token.";
3174
+ readonly content: {
3175
+ readonly "application/json": {
3176
+ readonly schema: {
3177
+ readonly $ref: "#/components/schemas/ErrorResponse";
3178
+ };
3179
+ };
3180
+ };
3165
3181
  };
3166
3182
  readonly 403: {
3167
3183
  readonly description: "Forbidden - Token issuer is not 'access'.";
3184
+ readonly content: {
3185
+ readonly "application/json": {
3186
+ readonly schema: {
3187
+ readonly $ref: "#/components/schemas/ErrorResponse";
3188
+ };
3189
+ };
3190
+ };
3168
3191
  };
3169
3192
  readonly 429: {
3170
3193
  readonly description: "Too Many Requests - Rate limit exceeded.";
@@ -3185,7 +3208,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3185
3208
  "Integrations"
3186
3209
  ];
3187
3210
  readonly summary: "Google Calendar integration OAuth callback";
3188
- readonly description: "Exchanges Google code for tokens (including userinfo scopes from connect); creates a dedicated secondary calendar (\"Mestra App Calendar\"); registers a push channel on that calendar; persists tokens, calendar id, and watch metadata (channel id, resource id, expiration). Requires a matching state cookie from the connect endpoint.";
3211
+ readonly description: "Exchanges Google code for tokens (including userinfo scopes from connect) and stores the integration with status `pending`, replacing any previous integration for the user. The remaining setup \u2014 creating the dedicated secondary calendar (\"Mestra App Calendar\") and registering a push channel on it \u2014 completes asynchronously after the response; the integration status then becomes `active` (or `error` if setup fails). Poll `/integrations/list` to observe the final status. Requires a matching state cookie from the connect endpoint.";
3189
3212
  readonly security: readonly [
3190
3213
  never
3191
3214
  ];
@@ -3211,7 +3234,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3211
3234
  ];
3212
3235
  readonly responses: {
3213
3236
  readonly 200: {
3214
- readonly description: "Integration successfully created.";
3237
+ readonly description: "Tokens exchanged and integration stored with status `pending`; calendar creation and watch registration continue in the background.";
3215
3238
  readonly content: {
3216
3239
  readonly "application/json": {
3217
3240
  readonly schema: {
@@ -3232,9 +3255,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3232
3255
  };
3233
3256
  readonly 401: {
3234
3257
  readonly description: "Unauthorized - Missing or invalid access token.";
3258
+ readonly content: {
3259
+ readonly "application/json": {
3260
+ readonly schema: {
3261
+ readonly $ref: "#/components/schemas/ErrorResponse";
3262
+ };
3263
+ };
3264
+ };
3235
3265
  };
3236
3266
  readonly 403: {
3237
3267
  readonly description: "Forbidden - Token issuer is not 'access'.";
3268
+ readonly content: {
3269
+ readonly "application/json": {
3270
+ readonly schema: {
3271
+ readonly $ref: "#/components/schemas/ErrorResponse";
3272
+ };
3273
+ };
3274
+ };
3238
3275
  };
3239
3276
  readonly 429: {
3240
3277
  readonly description: "Too Many Requests - Rate limit exceeded.";
@@ -3247,7 +3284,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3247
3284
  };
3248
3285
  };
3249
3286
  readonly 500: {
3250
- readonly description: "`GOOGLE_CLIENT_SECRET is not configured`, or calendar creation / watch registration / persistence failed (e.g. invalid watch response).";
3287
+ readonly description: "`GOOGLE_CLIENT_SECRET is not configured`, or persisting the pending integration failed. Calendar creation / watch registration failures no longer surface here; they mark the integration status `error` instead.";
3251
3288
  readonly content: {
3252
3289
  readonly "application/json": {
3253
3290
  readonly schema: {
@@ -3282,9 +3319,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3282
3319
  };
3283
3320
  readonly 401: {
3284
3321
  readonly description: "Unauthorized - Missing or invalid access token.";
3322
+ readonly content: {
3323
+ readonly "application/json": {
3324
+ readonly schema: {
3325
+ readonly $ref: "#/components/schemas/ErrorResponse";
3326
+ };
3327
+ };
3328
+ };
3285
3329
  };
3286
3330
  readonly 403: {
3287
3331
  readonly description: "Forbidden - Token issuer is not 'access'.";
3332
+ readonly content: {
3333
+ readonly "application/json": {
3334
+ readonly schema: {
3335
+ readonly $ref: "#/components/schemas/ErrorResponse";
3336
+ };
3337
+ };
3338
+ };
3288
3339
  };
3289
3340
  readonly 404: {
3290
3341
  readonly description: "Integration list empty or not found (when applicable).";
@@ -3322,9 +3373,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3322
3373
  };
3323
3374
  readonly 401: {
3324
3375
  readonly description: "Unauthorized - Missing or invalid access token.";
3376
+ readonly content: {
3377
+ readonly "application/json": {
3378
+ readonly schema: {
3379
+ readonly $ref: "#/components/schemas/ErrorResponse";
3380
+ };
3381
+ };
3382
+ };
3325
3383
  };
3326
3384
  readonly 403: {
3327
3385
  readonly description: "Forbidden - Token issuer is not 'access'.";
3386
+ readonly content: {
3387
+ readonly "application/json": {
3388
+ readonly schema: {
3389
+ readonly $ref: "#/components/schemas/ErrorResponse";
3390
+ };
3391
+ };
3392
+ };
3328
3393
  };
3329
3394
  readonly 404: {
3330
3395
  readonly description: "Integration not found.";
@@ -3382,6 +3447,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3382
3447
  };
3383
3448
  readonly 401: {
3384
3449
  readonly description: "Unauthorized - Missing or invalid access token.";
3450
+ readonly content: {
3451
+ readonly "application/json": {
3452
+ readonly schema: {
3453
+ readonly $ref: "#/components/schemas/ErrorResponse";
3454
+ };
3455
+ };
3456
+ };
3385
3457
  };
3386
3458
  readonly 404: {
3387
3459
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3450,6 +3522,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3450
3522
  };
3451
3523
  readonly 401: {
3452
3524
  readonly description: "Unauthorized - Missing or invalid access token.";
3525
+ readonly content: {
3526
+ readonly "application/json": {
3527
+ readonly schema: {
3528
+ readonly $ref: "#/components/schemas/ErrorResponse";
3529
+ };
3530
+ };
3531
+ };
3453
3532
  };
3454
3533
  readonly 404: {
3455
3534
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3507,6 +3586,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3507
3586
  };
3508
3587
  readonly 401: {
3509
3588
  readonly description: "Unauthorized - Missing or invalid access token.";
3589
+ readonly content: {
3590
+ readonly "application/json": {
3591
+ readonly schema: {
3592
+ readonly $ref: "#/components/schemas/ErrorResponse";
3593
+ };
3594
+ };
3595
+ };
3510
3596
  };
3511
3597
  readonly 404: {
3512
3598
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3564,6 +3650,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3564
3650
  };
3565
3651
  readonly 401: {
3566
3652
  readonly description: "Unauthorized - Missing or invalid access token.";
3653
+ readonly content: {
3654
+ readonly "application/json": {
3655
+ readonly schema: {
3656
+ readonly $ref: "#/components/schemas/ErrorResponse";
3657
+ };
3658
+ };
3659
+ };
3567
3660
  };
3568
3661
  readonly 404: {
3569
3662
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3621,6 +3714,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3621
3714
  };
3622
3715
  readonly 401: {
3623
3716
  readonly description: "Unauthorized - Missing or invalid access token.";
3717
+ readonly content: {
3718
+ readonly "application/json": {
3719
+ readonly schema: {
3720
+ readonly $ref: "#/components/schemas/ErrorResponse";
3721
+ };
3722
+ };
3723
+ };
3624
3724
  };
3625
3725
  readonly 404: {
3626
3726
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3692,6 +3792,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3692
3792
  };
3693
3793
  readonly 401: {
3694
3794
  readonly description: "Unauthorized - Missing or invalid access token.";
3795
+ readonly content: {
3796
+ readonly "application/json": {
3797
+ readonly schema: {
3798
+ readonly $ref: "#/components/schemas/ErrorResponse";
3799
+ };
3800
+ };
3801
+ };
3695
3802
  };
3696
3803
  readonly 404: {
3697
3804
  readonly description: "No Google Calendar integration linked to the account.";
@@ -3751,6 +3858,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
3751
3858
  };
3752
3859
  readonly 401: {
3753
3860
  readonly description: "Unauthorized - Missing or invalid access token.";
3861
+ readonly content: {
3862
+ readonly "application/json": {
3863
+ readonly schema: {
3864
+ readonly $ref: "#/components/schemas/ErrorResponse";
3865
+ };
3866
+ };
3867
+ };
3754
3868
  };
3755
3869
  readonly 403: {
3756
3870
  readonly description: "Token issuer is not 'access', collaborator invite not accepted, user lacks crm::calendar resource access, or user lacks write permission for calendar.";
@@ -3931,9 +4045,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3931
4045
  };
3932
4046
  readonly 401: {
3933
4047
  readonly description: "Unauthorized - Missing or invalid access token.";
4048
+ readonly content: {
4049
+ readonly "application/json": {
4050
+ readonly schema: {
4051
+ readonly $ref: "#/components/schemas/ErrorResponse";
4052
+ };
4053
+ };
4054
+ };
3934
4055
  };
3935
4056
  readonly 403: {
3936
4057
  readonly description: "Forbidden - Token issuer is not 'access'.";
4058
+ readonly content: {
4059
+ readonly "application/json": {
4060
+ readonly schema: {
4061
+ readonly $ref: "#/components/schemas/ErrorResponse";
4062
+ };
4063
+ };
4064
+ };
3937
4065
  };
3938
4066
  };
3939
4067
  };
@@ -3996,9 +4124,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
3996
4124
  };
3997
4125
  readonly 401: {
3998
4126
  readonly description: "Unauthorized - Missing or invalid access token.";
4127
+ readonly content: {
4128
+ readonly "application/json": {
4129
+ readonly schema: {
4130
+ readonly $ref: "#/components/schemas/ErrorResponse";
4131
+ };
4132
+ };
4133
+ };
3999
4134
  };
4000
4135
  readonly 403: {
4001
4136
  readonly description: "Forbidden - Token issuer is not 'access'.";
4137
+ readonly content: {
4138
+ readonly "application/json": {
4139
+ readonly schema: {
4140
+ readonly $ref: "#/components/schemas/ErrorResponse";
4141
+ };
4142
+ };
4143
+ };
4002
4144
  };
4003
4145
  };
4004
4146
  };
@@ -4039,9 +4181,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
4039
4181
  };
4040
4182
  readonly 401: {
4041
4183
  readonly description: "Unauthorized - Missing or invalid refresh token.";
4184
+ readonly content: {
4185
+ readonly "application/json": {
4186
+ readonly schema: {
4187
+ readonly $ref: "#/components/schemas/ErrorResponse";
4188
+ };
4189
+ };
4190
+ };
4042
4191
  };
4043
4192
  readonly 403: {
4044
4193
  readonly description: "Forbidden - Token issuer is not 'refresh' or jti is blocked.";
4194
+ readonly content: {
4195
+ readonly "application/json": {
4196
+ readonly schema: {
4197
+ readonly $ref: "#/components/schemas/ErrorResponse";
4198
+ };
4199
+ };
4200
+ };
4045
4201
  };
4046
4202
  };
4047
4203
  };
@@ -4107,9 +4263,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
4107
4263
  };
4108
4264
  readonly 401: {
4109
4265
  readonly description: "Unauthorized - Missing or invalid access token.";
4266
+ readonly content: {
4267
+ readonly "application/json": {
4268
+ readonly schema: {
4269
+ readonly $ref: "#/components/schemas/ErrorResponse";
4270
+ };
4271
+ };
4272
+ };
4110
4273
  };
4111
4274
  readonly 403: {
4112
4275
  readonly description: "Forbidden - Token issuer is not 'access' or token expired.";
4276
+ readonly content: {
4277
+ readonly "application/json": {
4278
+ readonly schema: {
4279
+ readonly $ref: "#/components/schemas/ErrorResponse";
4280
+ };
4281
+ };
4282
+ };
4113
4283
  };
4114
4284
  };
4115
4285
  };
@@ -4175,9 +4345,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
4175
4345
  };
4176
4346
  readonly 401: {
4177
4347
  readonly description: "Unauthorized - Missing or invalid access token.";
4348
+ readonly content: {
4349
+ readonly "application/json": {
4350
+ readonly schema: {
4351
+ readonly $ref: "#/components/schemas/ErrorResponse";
4352
+ };
4353
+ };
4354
+ };
4178
4355
  };
4179
4356
  readonly 403: {
4180
4357
  readonly description: "Forbidden - Token issuer is not 'access' or token expired.";
4358
+ readonly content: {
4359
+ readonly "application/json": {
4360
+ readonly schema: {
4361
+ readonly $ref: "#/components/schemas/ErrorResponse";
4362
+ };
4363
+ };
4364
+ };
4181
4365
  };
4182
4366
  };
4183
4367
  };
@@ -4246,9 +4430,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
4246
4430
  };
4247
4431
  readonly 401: {
4248
4432
  readonly description: "Unauthorized - Missing or invalid access token.";
4433
+ readonly content: {
4434
+ readonly "application/json": {
4435
+ readonly schema: {
4436
+ readonly $ref: "#/components/schemas/ErrorResponse";
4437
+ };
4438
+ };
4439
+ };
4249
4440
  };
4250
4441
  readonly 403: {
4251
4442
  readonly description: "Forbidden - Token issuer is not 'access'.";
4443
+ readonly content: {
4444
+ readonly "application/json": {
4445
+ readonly schema: {
4446
+ readonly $ref: "#/components/schemas/ErrorResponse";
4447
+ };
4448
+ };
4449
+ };
4252
4450
  };
4253
4451
  };
4254
4452
  };
@@ -4296,9 +4494,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
4296
4494
  };
4297
4495
  readonly 401: {
4298
4496
  readonly description: "Unauthorized - Missing or invalid access token.";
4497
+ readonly content: {
4498
+ readonly "application/json": {
4499
+ readonly schema: {
4500
+ readonly $ref: "#/components/schemas/ErrorResponse";
4501
+ };
4502
+ };
4503
+ };
4299
4504
  };
4300
4505
  readonly 403: {
4301
4506
  readonly description: "Forbidden - Token issuer is not 'access'.";
4507
+ readonly content: {
4508
+ readonly "application/json": {
4509
+ readonly schema: {
4510
+ readonly $ref: "#/components/schemas/ErrorResponse";
4511
+ };
4512
+ };
4513
+ };
4302
4514
  };
4303
4515
  };
4304
4516
  };
@@ -4486,6 +4698,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
4486
4698
  };
4487
4699
  readonly 401: {
4488
4700
  readonly description: "Unauthorized - Missing or invalid access token.";
4701
+ readonly content: {
4702
+ readonly "application/json": {
4703
+ readonly schema: {
4704
+ readonly $ref: "#/components/schemas/ErrorResponse";
4705
+ };
4706
+ };
4707
+ };
4489
4708
  };
4490
4709
  readonly 403: {
4491
4710
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -4579,6 +4798,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
4579
4798
  };
4580
4799
  readonly 401: {
4581
4800
  readonly description: "Unauthorized - Missing or invalid access token.";
4801
+ readonly content: {
4802
+ readonly "application/json": {
4803
+ readonly schema: {
4804
+ readonly $ref: "#/components/schemas/ErrorResponse";
4805
+ };
4806
+ };
4807
+ };
4582
4808
  };
4583
4809
  readonly 403: {
4584
4810
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::general resource.";
@@ -4692,6 +4918,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
4692
4918
  };
4693
4919
  readonly 401: {
4694
4920
  readonly description: "Unauthorized - Missing or invalid access token.";
4921
+ readonly content: {
4922
+ readonly "application/json": {
4923
+ readonly schema: {
4924
+ readonly $ref: "#/components/schemas/ErrorResponse";
4925
+ };
4926
+ };
4927
+ };
4695
4928
  };
4696
4929
  readonly 403: {
4697
4930
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -4782,6 +5015,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
4782
5015
  };
4783
5016
  readonly 401: {
4784
5017
  readonly description: "Unauthorized - Missing or invalid access token.";
5018
+ readonly content: {
5019
+ readonly "application/json": {
5020
+ readonly schema: {
5021
+ readonly $ref: "#/components/schemas/ErrorResponse";
5022
+ };
5023
+ };
5024
+ };
4785
5025
  };
4786
5026
  readonly 403: {
4787
5027
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -4870,6 +5110,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
4870
5110
  };
4871
5111
  readonly 401: {
4872
5112
  readonly description: "Unauthorized - Missing or invalid access token.";
5113
+ readonly content: {
5114
+ readonly "application/json": {
5115
+ readonly schema: {
5116
+ readonly $ref: "#/components/schemas/ErrorResponse";
5117
+ };
5118
+ };
5119
+ };
4873
5120
  };
4874
5121
  readonly 403: {
4875
5122
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -4990,8 +5237,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
4990
5237
  };
4991
5238
  readonly 401: {
4992
5239
  readonly description: "Unauthorized - Missing or invalid access token.";
4993
- };
4994
- readonly 403: {
5240
+ readonly content: {
5241
+ readonly "application/json": {
5242
+ readonly schema: {
5243
+ readonly $ref: "#/components/schemas/ErrorResponse";
5244
+ };
5245
+ };
5246
+ };
5247
+ };
5248
+ readonly 403: {
4995
5249
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
4996
5250
  readonly content: {
4997
5251
  readonly "application/json": {
@@ -5073,6 +5327,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5073
5327
  };
5074
5328
  readonly 401: {
5075
5329
  readonly description: "Unauthorized - Missing or invalid access token.";
5330
+ readonly content: {
5331
+ readonly "application/json": {
5332
+ readonly schema: {
5333
+ readonly $ref: "#/components/schemas/ErrorResponse";
5334
+ };
5335
+ };
5336
+ };
5076
5337
  };
5077
5338
  readonly 403: {
5078
5339
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -5155,6 +5416,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5155
5416
  };
5156
5417
  readonly 401: {
5157
5418
  readonly description: "Unauthorized - Missing or invalid access token.";
5419
+ readonly content: {
5420
+ readonly "application/json": {
5421
+ readonly schema: {
5422
+ readonly $ref: "#/components/schemas/ErrorResponse";
5423
+ };
5424
+ };
5425
+ };
5158
5426
  };
5159
5427
  readonly 403: {
5160
5428
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -5224,6 +5492,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5224
5492
  };
5225
5493
  readonly 401: {
5226
5494
  readonly description: "Unauthorized - Missing or invalid access token.";
5495
+ readonly content: {
5496
+ readonly "application/json": {
5497
+ readonly schema: {
5498
+ readonly $ref: "#/components/schemas/ErrorResponse";
5499
+ };
5500
+ };
5501
+ };
5227
5502
  };
5228
5503
  readonly 403: {
5229
5504
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -5254,7 +5529,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5254
5529
  "Tasks"
5255
5530
  ];
5256
5531
  readonly summary: "Create a new task";
5257
- readonly description: "Creates a task in the specified workspace. Requires workspace access and write access to crm::tasks resource.";
5532
+ readonly description: "Creates a task in the specified workspace. When `assignees` is provided, each listed collaborator is assigned to the task and the assigned user receives an in-app \"New task assigned\" notification; collaborator IDs that don't belong to the workspace are skipped. Requires workspace access and write access to crm::tasks resource.";
5258
5533
  readonly security: readonly [
5259
5534
  never
5260
5535
  ];
@@ -5316,7 +5591,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5316
5591
  readonly format: "uuid";
5317
5592
  };
5318
5593
  readonly nullable: true;
5319
- readonly description: "Array of collaborator IDs to assign to the task.";
5594
+ readonly description: "Collaborator IDs to assign to the task. Each assigned user gets an in-app \"New task assigned\" notification. IDs outside the workspace are skipped.";
5320
5595
  };
5321
5596
  readonly comments: {
5322
5597
  readonly type: "array";
@@ -5371,6 +5646,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5371
5646
  };
5372
5647
  readonly 401: {
5373
5648
  readonly description: "Unauthorized - Missing or invalid access token.";
5649
+ readonly content: {
5650
+ readonly "application/json": {
5651
+ readonly schema: {
5652
+ readonly $ref: "#/components/schemas/ErrorResponse";
5653
+ };
5654
+ };
5655
+ };
5374
5656
  };
5375
5657
  readonly 403: {
5376
5658
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -5430,6 +5712,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5430
5712
  };
5431
5713
  readonly 401: {
5432
5714
  readonly description: "Unauthorized - Missing or invalid access token.";
5715
+ readonly content: {
5716
+ readonly "application/json": {
5717
+ readonly schema: {
5718
+ readonly $ref: "#/components/schemas/ErrorResponse";
5719
+ };
5720
+ };
5721
+ };
5433
5722
  };
5434
5723
  readonly 403: {
5435
5724
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -5499,6 +5788,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5499
5788
  };
5500
5789
  readonly 401: {
5501
5790
  readonly description: "Unauthorized - Missing or invalid access token.";
5791
+ readonly content: {
5792
+ readonly "application/json": {
5793
+ readonly schema: {
5794
+ readonly $ref: "#/components/schemas/ErrorResponse";
5795
+ };
5796
+ };
5797
+ };
5502
5798
  };
5503
5799
  readonly 403: {
5504
5800
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -5529,7 +5825,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5529
5825
  "Tasks"
5530
5826
  ];
5531
5827
  readonly summary: "Update a task";
5532
- readonly description: "Updates a task in the specified workspace. Only the task creator can update the task. Requires workspace access and write access to crm::tasks resource.";
5828
+ readonly description: "Updates a task in the specified workspace. When `assignees` is provided it is treated as the full desired set of assigned collaborators: collaborators missing from the list are unassigned (their user gets a \"Removed from task\" notification) and newly listed collaborators are assigned (their user gets a \"New task assigned\" notification). Omit the field to leave assignments untouched. Only the task creator can update the task. Requires workspace access and write access to crm::tasks resource.";
5533
5829
  readonly security: readonly [
5534
5830
  never
5535
5831
  ];
@@ -5591,7 +5887,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5591
5887
  readonly format: "uuid";
5592
5888
  };
5593
5889
  readonly nullable: true;
5594
- readonly description: "Array of collaborator IDs to assign to the task.";
5890
+ readonly description: "Full desired set of assigned collaborator IDs. Missing collaborators are unassigned, new ones assigned (both with in-app notifications). Omit to leave assignments unchanged. IDs outside the workspace are skipped.";
5595
5891
  };
5596
5892
  readonly visibility: {
5597
5893
  readonly type: "string";
@@ -5630,6 +5926,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5630
5926
  };
5631
5927
  readonly 401: {
5632
5928
  readonly description: "Unauthorized - Missing or invalid access token.";
5929
+ readonly content: {
5930
+ readonly "application/json": {
5931
+ readonly schema: {
5932
+ readonly $ref: "#/components/schemas/ErrorResponse";
5933
+ };
5934
+ };
5935
+ };
5633
5936
  };
5634
5937
  readonly 403: {
5635
5938
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, user lacks write access to crm::tasks resource, or user is not the creator of the task.";
@@ -5723,6 +6026,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5723
6026
  };
5724
6027
  readonly 401: {
5725
6028
  readonly description: "Unauthorized - Missing or invalid access token.";
6029
+ readonly content: {
6030
+ readonly "application/json": {
6031
+ readonly schema: {
6032
+ readonly $ref: "#/components/schemas/ErrorResponse";
6033
+ };
6034
+ };
6035
+ };
5726
6036
  };
5727
6037
  readonly 403: {
5728
6038
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -5802,6 +6112,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5802
6112
  };
5803
6113
  readonly 401: {
5804
6114
  readonly description: "Unauthorized - Missing or invalid access token.";
6115
+ readonly content: {
6116
+ readonly "application/json": {
6117
+ readonly schema: {
6118
+ readonly $ref: "#/components/schemas/ErrorResponse";
6119
+ };
6120
+ };
6121
+ };
5805
6122
  };
5806
6123
  readonly 403: {
5807
6124
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -5891,6 +6208,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5891
6208
  };
5892
6209
  readonly 401: {
5893
6210
  readonly description: "Unauthorized - Missing or invalid access token.";
6211
+ readonly content: {
6212
+ readonly "application/json": {
6213
+ readonly schema: {
6214
+ readonly $ref: "#/components/schemas/ErrorResponse";
6215
+ };
6216
+ };
6217
+ };
5894
6218
  };
5895
6219
  readonly 403: {
5896
6220
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -5978,6 +6302,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
5978
6302
  };
5979
6303
  readonly 401: {
5980
6304
  readonly description: "Unauthorized - Missing or invalid access token.";
6305
+ readonly content: {
6306
+ readonly "application/json": {
6307
+ readonly schema: {
6308
+ readonly $ref: "#/components/schemas/ErrorResponse";
6309
+ };
6310
+ };
6311
+ };
5981
6312
  };
5982
6313
  readonly 403: {
5983
6314
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -6047,6 +6378,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6047
6378
  };
6048
6379
  readonly 401: {
6049
6380
  readonly description: "Unauthorized - Missing or invalid access token.";
6381
+ readonly content: {
6382
+ readonly "application/json": {
6383
+ readonly schema: {
6384
+ readonly $ref: "#/components/schemas/ErrorResponse";
6385
+ };
6386
+ };
6387
+ };
6050
6388
  };
6051
6389
  readonly 403: {
6052
6390
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -6140,6 +6478,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6140
6478
  };
6141
6479
  readonly 401: {
6142
6480
  readonly description: "Unauthorized - Missing or invalid access token.";
6481
+ readonly content: {
6482
+ readonly "application/json": {
6483
+ readonly schema: {
6484
+ readonly $ref: "#/components/schemas/ErrorResponse";
6485
+ };
6486
+ };
6487
+ };
6143
6488
  };
6144
6489
  readonly 403: {
6145
6490
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -6225,6 +6570,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6225
6570
  };
6226
6571
  readonly 401: {
6227
6572
  readonly description: "Unauthorized - Missing or invalid access token.";
6573
+ readonly content: {
6574
+ readonly "application/json": {
6575
+ readonly schema: {
6576
+ readonly $ref: "#/components/schemas/ErrorResponse";
6577
+ };
6578
+ };
6579
+ };
6228
6580
  };
6229
6581
  readonly 403: {
6230
6582
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -6304,6 +6656,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6304
6656
  };
6305
6657
  readonly 401: {
6306
6658
  readonly description: "Unauthorized - Missing or invalid access token.";
6659
+ readonly content: {
6660
+ readonly "application/json": {
6661
+ readonly schema: {
6662
+ readonly $ref: "#/components/schemas/ErrorResponse";
6663
+ };
6664
+ };
6665
+ };
6307
6666
  };
6308
6667
  readonly 403: {
6309
6668
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -6393,6 +6752,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6393
6752
  };
6394
6753
  readonly 401: {
6395
6754
  readonly description: "Unauthorized - Missing or invalid access token.";
6755
+ readonly content: {
6756
+ readonly "application/json": {
6757
+ readonly schema: {
6758
+ readonly $ref: "#/components/schemas/ErrorResponse";
6759
+ };
6760
+ };
6761
+ };
6396
6762
  };
6397
6763
  readonly 403: {
6398
6764
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -6487,6 +6853,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6487
6853
  };
6488
6854
  readonly 401: {
6489
6855
  readonly description: "Unauthorized - Missing or invalid access token.";
6856
+ readonly content: {
6857
+ readonly "application/json": {
6858
+ readonly schema: {
6859
+ readonly $ref: "#/components/schemas/ErrorResponse";
6860
+ };
6861
+ };
6862
+ };
6490
6863
  };
6491
6864
  readonly 403: {
6492
6865
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -6517,7 +6890,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6517
6890
  "Events"
6518
6891
  ];
6519
6892
  readonly summary: "Subscribe to Server-Sent Events stream";
6520
- readonly description: "Establishes a Server-Sent Events (SSE) connection for real-time event streaming. The connection sends keepalive messages every 30 seconds and broadcasts events from NATS when available. Events are filtered by the authenticated user's email.";
6893
+ readonly description: "Establishes an authenticated Server-Sent Events (SSE) connection for real-time event streaming. The connection sends a connected event immediately, keepalive events every 30 seconds, and stream events published through NATS. Stream events are filtered by the authenticated user's userId.";
6521
6894
  readonly security: readonly [
6522
6895
  never
6523
6896
  ];
@@ -6528,7 +6901,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6528
6901
  readonly "text/event-stream": {
6529
6902
  readonly schema: {
6530
6903
  readonly type: "string";
6531
- readonly description: "Server-Sent Events stream. Events include 'connected' and 'keepalive' types, plus custom events from NATS.";
6904
+ readonly description: "Server-Sent Events stream. Events include 'connected', 'keepalive', and 'stream' event types.";
6532
6905
  readonly example: "event: connected\ndata: {\"message\":\"Connected\",\"time\":1234567890}\n\n";
6533
6906
  };
6534
6907
  };
@@ -6559,6 +6932,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6559
6932
  };
6560
6933
  readonly 401: {
6561
6934
  readonly description: "Unauthorized - Missing or invalid access token.";
6935
+ readonly content: {
6936
+ readonly "application/json": {
6937
+ readonly schema: {
6938
+ readonly $ref: "#/components/schemas/ErrorResponse";
6939
+ };
6940
+ };
6941
+ };
6562
6942
  };
6563
6943
  readonly 403: {
6564
6944
  readonly description: "Forbidden - Token issuer is not 'access'.";
@@ -6678,6 +7058,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6678
7058
  };
6679
7059
  readonly 401: {
6680
7060
  readonly description: "Unauthorized - Missing or invalid access token.";
7061
+ readonly content: {
7062
+ readonly "application/json": {
7063
+ readonly schema: {
7064
+ readonly $ref: "#/components/schemas/ErrorResponse";
7065
+ };
7066
+ };
7067
+ };
6681
7068
  };
6682
7069
  readonly 403: {
6683
7070
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
@@ -6737,6 +7124,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6737
7124
  };
6738
7125
  readonly 401: {
6739
7126
  readonly description: "Unauthorized - Missing or invalid access token.";
7127
+ readonly content: {
7128
+ readonly "application/json": {
7129
+ readonly schema: {
7130
+ readonly $ref: "#/components/schemas/ErrorResponse";
7131
+ };
7132
+ };
7133
+ };
6740
7134
  };
6741
7135
  readonly 403: {
6742
7136
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::customers resource.";
@@ -6806,6 +7200,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6806
7200
  };
6807
7201
  readonly 401: {
6808
7202
  readonly description: "Unauthorized - Missing or invalid access token.";
7203
+ readonly content: {
7204
+ readonly "application/json": {
7205
+ readonly schema: {
7206
+ readonly $ref: "#/components/schemas/ErrorResponse";
7207
+ };
7208
+ };
7209
+ };
6809
7210
  };
6810
7211
  readonly 403: {
6811
7212
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::customers resource.";
@@ -6889,6 +7290,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
6889
7290
  };
6890
7291
  readonly 401: {
6891
7292
  readonly description: "Unauthorized - Missing or invalid access token.";
7293
+ readonly content: {
7294
+ readonly "application/json": {
7295
+ readonly schema: {
7296
+ readonly $ref: "#/components/schemas/ErrorResponse";
7297
+ };
7298
+ };
7299
+ };
6892
7300
  };
6893
7301
  readonly 403: {
6894
7302
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
@@ -7021,6 +7429,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7021
7429
  };
7022
7430
  readonly 401: {
7023
7431
  readonly description: "Unauthorized - Missing or invalid access token.";
7432
+ readonly content: {
7433
+ readonly "application/json": {
7434
+ readonly schema: {
7435
+ readonly $ref: "#/components/schemas/ErrorResponse";
7436
+ };
7437
+ };
7438
+ };
7024
7439
  };
7025
7440
  readonly 403: {
7026
7441
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
@@ -7104,6 +7519,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7104
7519
  };
7105
7520
  readonly 401: {
7106
7521
  readonly description: "Unauthorized - Missing or invalid access token.";
7522
+ readonly content: {
7523
+ readonly "application/json": {
7524
+ readonly schema: {
7525
+ readonly $ref: "#/components/schemas/ErrorResponse";
7526
+ };
7527
+ };
7528
+ };
7107
7529
  };
7108
7530
  readonly 403: {
7109
7531
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -7219,6 +7641,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7219
7641
  };
7220
7642
  readonly 401: {
7221
7643
  readonly description: "Unauthorized - Missing or invalid access token.";
7644
+ readonly content: {
7645
+ readonly "application/json": {
7646
+ readonly schema: {
7647
+ readonly $ref: "#/components/schemas/ErrorResponse";
7648
+ };
7649
+ };
7650
+ };
7222
7651
  };
7223
7652
  readonly 403: {
7224
7653
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::services resource.";
@@ -7288,6 +7717,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7288
7717
  };
7289
7718
  readonly 401: {
7290
7719
  readonly description: "Unauthorized - Missing or invalid access token.";
7720
+ readonly content: {
7721
+ readonly "application/json": {
7722
+ readonly schema: {
7723
+ readonly $ref: "#/components/schemas/ErrorResponse";
7724
+ };
7725
+ };
7726
+ };
7291
7727
  };
7292
7728
  readonly 403: {
7293
7729
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::services resource.";
@@ -7337,6 +7773,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7337
7773
  };
7338
7774
  readonly 401: {
7339
7775
  readonly description: "Unauthorized - Missing or invalid access token.";
7776
+ readonly content: {
7777
+ readonly "application/json": {
7778
+ readonly schema: {
7779
+ readonly $ref: "#/components/schemas/ErrorResponse";
7780
+ };
7781
+ };
7782
+ };
7340
7783
  };
7341
7784
  readonly 403: {
7342
7785
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::services resource.";
@@ -7443,6 +7886,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7443
7886
  };
7444
7887
  readonly 401: {
7445
7888
  readonly description: "Unauthorized - Missing or invalid access token.";
7889
+ readonly content: {
7890
+ readonly "application/json": {
7891
+ readonly schema: {
7892
+ readonly $ref: "#/components/schemas/ErrorResponse";
7893
+ };
7894
+ };
7895
+ };
7446
7896
  };
7447
7897
  readonly 403: {
7448
7898
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::services resource.";
@@ -7536,6 +7986,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7536
7986
  };
7537
7987
  readonly 401: {
7538
7988
  readonly description: "Unauthorized - Missing or invalid access token.";
7989
+ readonly content: {
7990
+ readonly "application/json": {
7991
+ readonly schema: {
7992
+ readonly $ref: "#/components/schemas/ErrorResponse";
7993
+ };
7994
+ };
7995
+ };
7539
7996
  };
7540
7997
  readonly 403: {
7541
7998
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::services resource.";
@@ -7629,6 +8086,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7629
8086
  };
7630
8087
  readonly 401: {
7631
8088
  readonly description: "Unauthorized - Missing or invalid access token.";
8089
+ readonly content: {
8090
+ readonly "application/json": {
8091
+ readonly schema: {
8092
+ readonly $ref: "#/components/schemas/ErrorResponse";
8093
+ };
8094
+ };
8095
+ };
7632
8096
  };
7633
8097
  readonly 403: {
7634
8098
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -7688,6 +8152,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7688
8152
  };
7689
8153
  readonly 401: {
7690
8154
  readonly description: "Unauthorized - Missing or invalid access token.";
8155
+ readonly content: {
8156
+ readonly "application/json": {
8157
+ readonly schema: {
8158
+ readonly $ref: "#/components/schemas/ErrorResponse";
8159
+ };
8160
+ };
8161
+ };
7691
8162
  };
7692
8163
  readonly 403: {
7693
8164
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -7747,6 +8218,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7747
8218
  };
7748
8219
  readonly 401: {
7749
8220
  readonly description: "Unauthorized - Missing or invalid access token.";
8221
+ readonly content: {
8222
+ readonly "application/json": {
8223
+ readonly schema: {
8224
+ readonly $ref: "#/components/schemas/ErrorResponse";
8225
+ };
8226
+ };
8227
+ };
7750
8228
  };
7751
8229
  readonly 403: {
7752
8230
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
@@ -7826,6 +8304,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7826
8304
  };
7827
8305
  readonly 401: {
7828
8306
  readonly description: "Unauthorized - Missing or invalid access token.";
8307
+ readonly content: {
8308
+ readonly "application/json": {
8309
+ readonly schema: {
8310
+ readonly $ref: "#/components/schemas/ErrorResponse";
8311
+ };
8312
+ };
8313
+ };
7829
8314
  };
7830
8315
  readonly 403: {
7831
8316
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -7929,6 +8414,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
7929
8414
  };
7930
8415
  readonly 401: {
7931
8416
  readonly description: "Unauthorized - Missing or invalid access token.";
8417
+ readonly content: {
8418
+ readonly "application/json": {
8419
+ readonly schema: {
8420
+ readonly $ref: "#/components/schemas/ErrorResponse";
8421
+ };
8422
+ };
8423
+ };
7932
8424
  };
7933
8425
  readonly 403: {
7934
8426
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -8061,6 +8553,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8061
8553
  };
8062
8554
  readonly 401: {
8063
8555
  readonly description: "Unauthorized - Missing or invalid access token.";
8556
+ readonly content: {
8557
+ readonly "application/json": {
8558
+ readonly schema: {
8559
+ readonly $ref: "#/components/schemas/ErrorResponse";
8560
+ };
8561
+ };
8562
+ };
8064
8563
  };
8065
8564
  readonly 403: {
8066
8565
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -8120,6 +8619,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8120
8619
  };
8121
8620
  readonly 401: {
8122
8621
  readonly description: "Unauthorized - Missing or invalid access token.";
8622
+ readonly content: {
8623
+ readonly "application/json": {
8624
+ readonly schema: {
8625
+ readonly $ref: "#/components/schemas/ErrorResponse";
8626
+ };
8627
+ };
8628
+ };
8123
8629
  };
8124
8630
  readonly 403: {
8125
8631
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::general resource.";
@@ -8189,6 +8695,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8189
8695
  };
8190
8696
  readonly 401: {
8191
8697
  readonly description: "Unauthorized - Missing or invalid access token.";
8698
+ readonly content: {
8699
+ readonly "application/json": {
8700
+ readonly schema: {
8701
+ readonly $ref: "#/components/schemas/ErrorResponse";
8702
+ };
8703
+ };
8704
+ };
8192
8705
  };
8193
8706
  readonly 403: {
8194
8707
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::general resource.";
@@ -8319,6 +8832,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8319
8832
  };
8320
8833
  readonly 401: {
8321
8834
  readonly description: "Unauthorized - Missing or invalid access token.";
8835
+ readonly content: {
8836
+ readonly "application/json": {
8837
+ readonly schema: {
8838
+ readonly $ref: "#/components/schemas/ErrorResponse";
8839
+ };
8840
+ };
8841
+ };
8322
8842
  };
8323
8843
  readonly 403: {
8324
8844
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -8402,6 +8922,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8402
8922
  };
8403
8923
  readonly 401: {
8404
8924
  readonly description: "Unauthorized - Missing or invalid access token.";
8925
+ readonly content: {
8926
+ readonly "application/json": {
8927
+ readonly schema: {
8928
+ readonly $ref: "#/components/schemas/ErrorResponse";
8929
+ };
8930
+ };
8931
+ };
8405
8932
  };
8406
8933
  readonly 403: {
8407
8934
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
@@ -8461,6 +8988,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8461
8988
  };
8462
8989
  readonly 401: {
8463
8990
  readonly description: "Unauthorized - Missing or invalid access token.";
8991
+ readonly content: {
8992
+ readonly "application/json": {
8993
+ readonly schema: {
8994
+ readonly $ref: "#/components/schemas/ErrorResponse";
8995
+ };
8996
+ };
8997
+ };
8464
8998
  };
8465
8999
  readonly 403: {
8466
9000
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to both crm::tasks and crm::customers.";
@@ -8537,6 +9071,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8537
9071
  };
8538
9072
  readonly 401: {
8539
9073
  readonly description: "Unauthorized - Missing or invalid access token.";
9074
+ readonly content: {
9075
+ readonly "application/json": {
9076
+ readonly schema: {
9077
+ readonly $ref: "#/components/schemas/ErrorResponse";
9078
+ };
9079
+ };
9080
+ };
8540
9081
  };
8541
9082
  readonly 403: {
8542
9083
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to both crm::tasks and crm::customers.";
@@ -8618,6 +9159,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8618
9159
  };
8619
9160
  readonly 401: {
8620
9161
  readonly description: "Unauthorized - Missing or invalid access token.";
9162
+ readonly content: {
9163
+ readonly "application/json": {
9164
+ readonly schema: {
9165
+ readonly $ref: "#/components/schemas/ErrorResponse";
9166
+ };
9167
+ };
9168
+ };
8621
9169
  };
8622
9170
  readonly 403: {
8623
9171
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general.";
@@ -8691,6 +9239,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8691
9239
  };
8692
9240
  readonly 401: {
8693
9241
  readonly description: "Unauthorized - Missing or invalid access token.";
9242
+ readonly content: {
9243
+ readonly "application/json": {
9244
+ readonly schema: {
9245
+ readonly $ref: "#/components/schemas/ErrorResponse";
9246
+ };
9247
+ };
9248
+ };
8694
9249
  };
8695
9250
  readonly 403: {
8696
9251
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general.";
@@ -8780,6 +9335,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8780
9335
  };
8781
9336
  readonly 401: {
8782
9337
  readonly description: "Unauthorized - Missing or invalid access token.";
9338
+ readonly content: {
9339
+ readonly "application/json": {
9340
+ readonly schema: {
9341
+ readonly $ref: "#/components/schemas/ErrorResponse";
9342
+ };
9343
+ };
9344
+ };
8783
9345
  };
8784
9346
  readonly 403: {
8785
9347
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -8869,6 +9431,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8869
9431
  };
8870
9432
  readonly 401: {
8871
9433
  readonly description: "Unauthorized - Missing or invalid access token.";
9434
+ readonly content: {
9435
+ readonly "application/json": {
9436
+ readonly schema: {
9437
+ readonly $ref: "#/components/schemas/ErrorResponse";
9438
+ };
9439
+ };
9440
+ };
8872
9441
  };
8873
9442
  readonly 403: {
8874
9443
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
@@ -8958,6 +9527,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
8958
9527
  };
8959
9528
  readonly 401: {
8960
9529
  readonly description: "Unauthorized - Missing or invalid access token.";
9530
+ readonly content: {
9531
+ readonly "application/json": {
9532
+ readonly schema: {
9533
+ readonly $ref: "#/components/schemas/ErrorResponse";
9534
+ };
9535
+ };
9536
+ };
8961
9537
  };
8962
9538
  readonly 403: {
8963
9539
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
@@ -9047,6 +9623,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9047
9623
  };
9048
9624
  readonly 401: {
9049
9625
  readonly description: "Unauthorized - Missing or invalid access token.";
9626
+ readonly content: {
9627
+ readonly "application/json": {
9628
+ readonly schema: {
9629
+ readonly $ref: "#/components/schemas/ErrorResponse";
9630
+ };
9631
+ };
9632
+ };
9050
9633
  };
9051
9634
  readonly 403: {
9052
9635
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks resource.";
@@ -9114,6 +9697,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9114
9697
  };
9115
9698
  readonly 401: {
9116
9699
  readonly description: "Unauthorized - Missing or invalid access token.";
9700
+ readonly content: {
9701
+ readonly "application/json": {
9702
+ readonly schema: {
9703
+ readonly $ref: "#/components/schemas/ErrorResponse";
9704
+ };
9705
+ };
9706
+ };
9117
9707
  };
9118
9708
  readonly 403: {
9119
9709
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9181,6 +9771,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9181
9771
  };
9182
9772
  readonly 401: {
9183
9773
  readonly description: "Unauthorized - Missing or invalid access token.";
9774
+ readonly content: {
9775
+ readonly "application/json": {
9776
+ readonly schema: {
9777
+ readonly $ref: "#/components/schemas/ErrorResponse";
9778
+ };
9779
+ };
9780
+ };
9184
9781
  };
9185
9782
  readonly 403: {
9186
9783
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9248,6 +9845,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9248
9845
  };
9249
9846
  readonly 401: {
9250
9847
  readonly description: "Unauthorized - Missing or invalid access token.";
9848
+ readonly content: {
9849
+ readonly "application/json": {
9850
+ readonly schema: {
9851
+ readonly $ref: "#/components/schemas/ErrorResponse";
9852
+ };
9853
+ };
9854
+ };
9251
9855
  };
9252
9856
  readonly 403: {
9253
9857
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9317,6 +9921,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9317
9921
  };
9318
9922
  readonly 401: {
9319
9923
  readonly description: "Unauthorized - Missing or invalid access token.";
9924
+ readonly content: {
9925
+ readonly "application/json": {
9926
+ readonly schema: {
9927
+ readonly $ref: "#/components/schemas/ErrorResponse";
9928
+ };
9929
+ };
9930
+ };
9320
9931
  };
9321
9932
  readonly 403: {
9322
9933
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9395,6 +10006,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9395
10006
  };
9396
10007
  readonly 401: {
9397
10008
  readonly description: "Unauthorized - Missing or invalid access token.";
10009
+ readonly content: {
10010
+ readonly "application/json": {
10011
+ readonly schema: {
10012
+ readonly $ref: "#/components/schemas/ErrorResponse";
10013
+ };
10014
+ };
10015
+ };
9398
10016
  };
9399
10017
  readonly 403: {
9400
10018
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9462,6 +10080,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9462
10080
  };
9463
10081
  readonly 401: {
9464
10082
  readonly description: "Unauthorized - Missing or invalid access token.";
10083
+ readonly content: {
10084
+ readonly "application/json": {
10085
+ readonly schema: {
10086
+ readonly $ref: "#/components/schemas/ErrorResponse";
10087
+ };
10088
+ };
10089
+ };
9465
10090
  };
9466
10091
  readonly 403: {
9467
10092
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9529,6 +10154,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9529
10154
  };
9530
10155
  readonly 401: {
9531
10156
  readonly description: "Unauthorized - Missing or invalid access token.";
10157
+ readonly content: {
10158
+ readonly "application/json": {
10159
+ readonly schema: {
10160
+ readonly $ref: "#/components/schemas/ErrorResponse";
10161
+ };
10162
+ };
10163
+ };
9532
10164
  };
9533
10165
  readonly 403: {
9534
10166
  readonly description: "Forbidden - Token issuer is not 'access' or user lacks workspace access.";
@@ -9606,6 +10238,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9606
10238
  };
9607
10239
  readonly 401: {
9608
10240
  readonly description: "Unauthorized - Missing or invalid access token.";
10241
+ readonly content: {
10242
+ readonly "application/json": {
10243
+ readonly schema: {
10244
+ readonly $ref: "#/components/schemas/ErrorResponse";
10245
+ };
10246
+ };
10247
+ };
9609
10248
  };
9610
10249
  readonly 403: {
9611
10250
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::tasks.";
@@ -9685,6 +10324,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9685
10324
  };
9686
10325
  readonly 401: {
9687
10326
  readonly description: "Unauthorized - Missing or invalid access token.";
10327
+ readonly content: {
10328
+ readonly "application/json": {
10329
+ readonly schema: {
10330
+ readonly $ref: "#/components/schemas/ErrorResponse";
10331
+ };
10332
+ };
10333
+ };
9688
10334
  };
9689
10335
  readonly 403: {
9690
10336
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks.";
@@ -9757,9 +10403,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
9757
10403
  };
9758
10404
  readonly 401: {
9759
10405
  readonly description: "Unauthorized - Missing or invalid access token.";
10406
+ readonly content: {
10407
+ readonly "application/json": {
10408
+ readonly schema: {
10409
+ readonly $ref: "#/components/schemas/ErrorResponse";
10410
+ };
10411
+ };
10412
+ };
9760
10413
  };
9761
10414
  readonly 403: {
9762
10415
  readonly description: "Forbidden - Token issuer is not 'access'.";
10416
+ readonly content: {
10417
+ readonly "application/json": {
10418
+ readonly schema: {
10419
+ readonly $ref: "#/components/schemas/ErrorResponse";
10420
+ };
10421
+ };
10422
+ };
9763
10423
  };
9764
10424
  };
9765
10425
  };
@@ -9797,9 +10457,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
9797
10457
  };
9798
10458
  readonly 401: {
9799
10459
  readonly description: "Unauthorized - Missing or invalid access token.";
10460
+ readonly content: {
10461
+ readonly "application/json": {
10462
+ readonly schema: {
10463
+ readonly $ref: "#/components/schemas/ErrorResponse";
10464
+ };
10465
+ };
10466
+ };
9800
10467
  };
9801
10468
  readonly 403: {
9802
10469
  readonly description: "Forbidden - Token issuer is not 'access'.";
10470
+ readonly content: {
10471
+ readonly "application/json": {
10472
+ readonly schema: {
10473
+ readonly $ref: "#/components/schemas/ErrorResponse";
10474
+ };
10475
+ };
10476
+ };
9803
10477
  };
9804
10478
  };
9805
10479
  };
@@ -9827,9 +10501,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
9827
10501
  };
9828
10502
  readonly 401: {
9829
10503
  readonly description: "Unauthorized - Missing or invalid access token.";
10504
+ readonly content: {
10505
+ readonly "application/json": {
10506
+ readonly schema: {
10507
+ readonly $ref: "#/components/schemas/ErrorResponse";
10508
+ };
10509
+ };
10510
+ };
9830
10511
  };
9831
10512
  readonly 403: {
9832
10513
  readonly description: "Forbidden - Token issuer is not 'access'.";
10514
+ readonly content: {
10515
+ readonly "application/json": {
10516
+ readonly schema: {
10517
+ readonly $ref: "#/components/schemas/ErrorResponse";
10518
+ };
10519
+ };
10520
+ };
9833
10521
  };
9834
10522
  readonly 500: {
9835
10523
  readonly description: "Failed to delete the profile picture object.";
@@ -9892,6 +10580,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9892
10580
  };
9893
10581
  readonly 401: {
9894
10582
  readonly description: "Unauthorized - Missing or invalid access token.";
10583
+ readonly content: {
10584
+ readonly "application/json": {
10585
+ readonly schema: {
10586
+ readonly $ref: "#/components/schemas/ErrorResponse";
10587
+ };
10588
+ };
10589
+ };
9895
10590
  };
9896
10591
  readonly 403: {
9897
10592
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general.";
@@ -9959,6 +10654,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9959
10654
  };
9960
10655
  readonly 401: {
9961
10656
  readonly description: "Unauthorized - Missing or invalid access token.";
10657
+ readonly content: {
10658
+ readonly "application/json": {
10659
+ readonly schema: {
10660
+ readonly $ref: "#/components/schemas/ErrorResponse";
10661
+ };
10662
+ };
10663
+ };
9962
10664
  };
9963
10665
  readonly 403: {
9964
10666
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general.";
@@ -10026,6 +10728,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10026
10728
  };
10027
10729
  readonly 401: {
10028
10730
  readonly description: "Unauthorized - Missing or invalid access token.";
10731
+ readonly content: {
10732
+ readonly "application/json": {
10733
+ readonly schema: {
10734
+ readonly $ref: "#/components/schemas/ErrorResponse";
10735
+ };
10736
+ };
10737
+ };
10029
10738
  };
10030
10739
  readonly 403: {
10031
10740
  readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general.";
@@ -10117,9 +10826,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
10117
10826
  };
10118
10827
  readonly 401: {
10119
10828
  readonly description: "Unauthorized - Missing or invalid access token.";
10829
+ readonly content: {
10830
+ readonly "application/json": {
10831
+ readonly schema: {
10832
+ readonly $ref: "#/components/schemas/ErrorResponse";
10833
+ };
10834
+ };
10835
+ };
10120
10836
  };
10121
10837
  readonly 403: {
10122
10838
  readonly description: "Forbidden - Token issuer is not 'access'.";
10839
+ readonly content: {
10840
+ readonly "application/json": {
10841
+ readonly schema: {
10842
+ readonly $ref: "#/components/schemas/ErrorResponse";
10843
+ };
10844
+ };
10845
+ };
10123
10846
  };
10124
10847
  };
10125
10848
  };
@@ -10167,9 +10890,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
10167
10890
  };
10168
10891
  readonly 401: {
10169
10892
  readonly description: "Unauthorized - Missing or invalid access token.";
10893
+ readonly content: {
10894
+ readonly "application/json": {
10895
+ readonly schema: {
10896
+ readonly $ref: "#/components/schemas/ErrorResponse";
10897
+ };
10898
+ };
10899
+ };
10170
10900
  };
10171
10901
  readonly 403: {
10172
10902
  readonly description: "Forbidden - Token issuer is not 'access'.";
10903
+ readonly content: {
10904
+ readonly "application/json": {
10905
+ readonly schema: {
10906
+ readonly $ref: "#/components/schemas/ErrorResponse";
10907
+ };
10908
+ };
10909
+ };
10173
10910
  };
10174
10911
  readonly 404: {
10175
10912
  readonly description: "Notification not found for this user.";
@@ -10207,9 +10944,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
10207
10944
  };
10208
10945
  readonly 401: {
10209
10946
  readonly description: "Unauthorized - Missing or invalid access token.";
10947
+ readonly content: {
10948
+ readonly "application/json": {
10949
+ readonly schema: {
10950
+ readonly $ref: "#/components/schemas/ErrorResponse";
10951
+ };
10952
+ };
10953
+ };
10210
10954
  };
10211
10955
  readonly 403: {
10212
10956
  readonly description: "Forbidden - Token issuer is not 'access'.";
10957
+ readonly content: {
10958
+ readonly "application/json": {
10959
+ readonly schema: {
10960
+ readonly $ref: "#/components/schemas/ErrorResponse";
10961
+ };
10962
+ };
10963
+ };
10213
10964
  };
10214
10965
  };
10215
10966
  };
@@ -10257,9 +11008,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
10257
11008
  };
10258
11009
  readonly 401: {
10259
11010
  readonly description: "Unauthorized - Missing or invalid access token.";
11011
+ readonly content: {
11012
+ readonly "application/json": {
11013
+ readonly schema: {
11014
+ readonly $ref: "#/components/schemas/ErrorResponse";
11015
+ };
11016
+ };
11017
+ };
10260
11018
  };
10261
11019
  readonly 403: {
10262
11020
  readonly description: "Forbidden - Token issuer is not 'access'.";
11021
+ readonly content: {
11022
+ readonly "application/json": {
11023
+ readonly schema: {
11024
+ readonly $ref: "#/components/schemas/ErrorResponse";
11025
+ };
11026
+ };
11027
+ };
10263
11028
  };
10264
11029
  readonly 404: {
10265
11030
  readonly description: "Notification not found for this user.";
@@ -10297,9 +11062,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
10297
11062
  };
10298
11063
  readonly 401: {
10299
11064
  readonly description: "Unauthorized - Missing or invalid access token.";
11065
+ readonly content: {
11066
+ readonly "application/json": {
11067
+ readonly schema: {
11068
+ readonly $ref: "#/components/schemas/ErrorResponse";
11069
+ };
11070
+ };
11071
+ };
10300
11072
  };
10301
11073
  readonly 403: {
10302
11074
  readonly description: "Forbidden - Token issuer is not 'access'.";
11075
+ readonly content: {
11076
+ readonly "application/json": {
11077
+ readonly schema: {
11078
+ readonly $ref: "#/components/schemas/ErrorResponse";
11079
+ };
11080
+ };
11081
+ };
10303
11082
  };
10304
11083
  };
10305
11084
  };
@@ -10357,6 +11136,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10357
11136
  };
10358
11137
  readonly 401: {
10359
11138
  readonly description: "Unauthorized - Missing or invalid access token.";
11139
+ readonly content: {
11140
+ readonly "application/json": {
11141
+ readonly schema: {
11142
+ readonly $ref: "#/components/schemas/ErrorResponse";
11143
+ };
11144
+ };
11145
+ };
10360
11146
  };
10361
11147
  readonly 403: {
10362
11148
  readonly description: "Forbidden - Token issuer is not 'access', collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
@@ -10436,6 +11222,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10436
11222
  };
10437
11223
  readonly 401: {
10438
11224
  readonly description: "Unauthorized - Missing or invalid access token.";
11225
+ readonly content: {
11226
+ readonly "application/json": {
11227
+ readonly schema: {
11228
+ readonly $ref: "#/components/schemas/ErrorResponse";
11229
+ };
11230
+ };
11231
+ };
10439
11232
  };
10440
11233
  readonly 403: {
10441
11234
  readonly description: "Forbidden - Token issuer is not 'access', collaborator invite not accepted, user lacks workspace access, or user lacks read access to crm::chats.";
@@ -11207,9 +12000,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11207
12000
  success: true;
11208
12001
  task: {
11209
12002
  id: string;
11210
- workspaceId: string;
11211
12003
  created_at: string;
11212
12004
  status: string | null;
12005
+ workspaceId: string;
11213
12006
  description: string | null;
11214
12007
  subject: string;
11215
12008
  created_by: string;
@@ -11468,9 +12261,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11468
12261
  success: true;
11469
12262
  template: {
11470
12263
  id: string;
11471
- workspaceId: string;
11472
12264
  title: string;
11473
12265
  created_at: string;
12266
+ workspaceId: string;
11474
12267
  created_by: string;
11475
12268
  content: string;
11476
12269
  updated_at: string | null;
@@ -11526,11 +12319,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
11526
12319
  success: true;
11527
12320
  service: {
11528
12321
  id: string;
11529
- workspaceId: string;
11530
12322
  type: string | null;
11531
12323
  created_at: string;
11532
12324
  name: string;
11533
12325
  active: boolean | null;
12326
+ workspaceId: string;
11534
12327
  description: string | null;
11535
12328
  price: number | null;
11536
12329
  stock: number | null;
@@ -11696,12 +12489,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
11696
12489
  success: true;
11697
12490
  customer: {
11698
12491
  id: string;
11699
- workspaceId: string;
11700
12492
  type: string | null;
11701
12493
  created_at: string;
11702
12494
  name: string;
11703
12495
  active: boolean | null;
11704
12496
  email: string | null;
12497
+ workspaceId: string;
11705
12498
  description: string | null;
11706
12499
  phone: string | null;
11707
12500
  updated_at: string | null;
@@ -11928,9 +12721,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11928
12721
  success: true;
11929
12722
  billing: {
11930
12723
  id: string;
11931
- workspaceId: string;
11932
12724
  created_at: string;
11933
12725
  active: boolean | null;
12726
+ workspaceId: string;
11934
12727
  country: string;
11935
12728
  companyName: string;
11936
12729
  inn: string;
@@ -12166,11 +12959,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
12166
12959
  success: true;
12167
12960
  assignee: {
12168
12961
  id: string;
12169
- workspaceId: string;
12170
12962
  created_at: string;
12171
12963
  startDate: string | null;
12172
12964
  endDate: string | null;
12173
12965
  collaboratorId: string;
12966
+ workspaceId: string;
12174
12967
  description: string | null;
12175
12968
  created_by: string;
12176
12969
  taskId: string;
@@ -12288,9 +13081,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
12288
13081
  success: true;
12289
13082
  tag: {
12290
13083
  id: string;
12291
- workspaceId: string;
12292
13084
  created_at: string;
12293
13085
  name: string;
13086
+ workspaceId: string;
12294
13087
  description: string | null;
12295
13088
  updated_at: string | null;
12296
13089
  deleted_at: string | null;
@@ -13494,14 +14287,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
13494
14287
  removeListener: never;
13495
14288
  pipe: never;
13496
14289
  setMaxListeners: never;
14290
+ } | {
14291
+ type: "Buffer";
14292
+ data: number[];
13497
14293
  } | {
13498
14294
  readonly locked: boolean;
13499
14295
  pipeThrough: never;
13500
14296
  pipeTo: never;
13501
14297
  values: never;
13502
- } | {
13503
- type: "Buffer";
13504
- data: number[];
13505
14298
  } | {
13506
14299
  [x: string]: string;
13507
14300
  } | {
@@ -16046,15 +16839,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
16046
16839
  output: {
16047
16840
  success: false;
16048
16841
  error: {
16049
- _errors: string[];
16050
- limit?: {
16051
- [x: string]: any;
16052
- _errors: string[];
16053
- } | undefined;
16054
- cursor?: {
16055
- [x: string]: any;
16056
- _errors: string[];
16057
- } | undefined;
16842
+ [x: string]: import("hono/utils/types").JSONValue;
16058
16843
  };
16059
16844
  };
16060
16845
  outputFormat: "json";
@@ -16071,7 +16856,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
16071
16856
  created_at: string;
16072
16857
  id: string;
16073
16858
  userId: string;
16074
- workspaceId: string;
16859
+ workspaceId: string | null;
16075
16860
  title: string;
16076
16861
  message: string;
16077
16862
  type: "success" | "info" | "warning" | "failure";