@purpleschool/gptbot 0.19.16 → 0.19.18-stage-2

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 (120) hide show
  1. package/build/api/controllers/http/payment.d.ts +1 -0
  2. package/build/api/controllers/http/payment.js +1 -0
  3. package/build/api/controllers/http/subscription.d.ts +1 -0
  4. package/build/api/controllers/http/subscription.js +1 -0
  5. package/build/api/partner-code-routes.d.ts +31 -0
  6. package/build/api/partner-code-routes.js +33 -1
  7. package/build/api/routes.d.ts +6 -0
  8. package/build/api/routes.js +7 -0
  9. package/build/commands/agents/agent-dialog/find-agent-dialogs.command.d.ts +1 -0
  10. package/build/commands/agents/agent-dialog/get-agent-dialog-by-id.command.d.ts +1 -0
  11. package/build/commands/agents/agent-dialog/rename-agent-dialog.command.d.ts +1 -0
  12. package/build/commands/agents/agent-dialog/update-agent-dialog-status.command.d.ts +1 -0
  13. package/build/commands/agents/agent-lead/create-agent-lead.command.d.ts +1 -0
  14. package/build/commands/agents/agent-lead/find-agent-leads.command.d.ts +1 -0
  15. package/build/commands/agents/agent-lead/get-agent-lead-by-id.command.d.ts +1 -0
  16. package/build/commands/agents/agent-lead/update-agent-lead.command.d.ts +1 -0
  17. package/build/commands/agents/agent-lead-form/upsert-agent-lead-form.command.js +4 -1
  18. package/build/commands/agents/agents/activate-agent.command.d.ts +1 -0
  19. package/build/commands/agents/agents/create-agent.command.d.ts +2 -0
  20. package/build/commands/agents/agents/create-agent.command.js +1 -0
  21. package/build/commands/agents/agents/find-agents.command.d.ts +1 -0
  22. package/build/commands/agents/agents/get-agent-aggregate.command.d.ts +1 -0
  23. package/build/commands/agents/agents/get-agent-by-id.command.d.ts +1 -0
  24. package/build/commands/agents/agents/stop-agent.command.d.ts +1 -0
  25. package/build/commands/agents/agents/update-agent.command.d.ts +2 -0
  26. package/build/commands/agents/agents/update-agent.command.js +1 -0
  27. package/build/commands/ai-studio/canvas/save-canvas.command.d.ts +1 -1
  28. package/build/commands/auth/register-user.command.d.ts +1 -0
  29. package/build/commands/auth/register-user.command.js +2 -0
  30. package/build/commands/auth/vk-login.command.d.ts +1 -0
  31. package/build/commands/auth/vk-login.command.js +2 -0
  32. package/build/commands/auth/yandex-login.command.d.ts +1 -0
  33. package/build/commands/auth/yandex-login.command.js +2 -0
  34. package/build/commands/chat/find-chats.command.d.ts +3 -3
  35. package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +1 -1
  36. package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +1 -1
  37. package/build/commands/community/get-my-favorite-community-posts.command.d.ts +1 -1
  38. package/build/commands/folder/find-folder-by-uuid-with-chats.command.d.ts +1 -1
  39. package/build/commands/folder/find-folders-by-user.command.d.ts +1 -1
  40. package/build/commands/model-page/base/find-model-pages-admin.command.d.ts +2 -2
  41. package/build/commands/model-page/common.schemas.d.ts +1 -1
  42. package/build/commands/model-page/public/find-model-page-hub.command.d.ts +3 -3
  43. package/build/commands/partner-codes/administration.d.ts +650 -0
  44. package/build/commands/partner-codes/administration.js +138 -0
  45. package/build/commands/partner-codes/index.d.ts +50 -3
  46. package/build/commands/partner-codes/index.js +28 -3
  47. package/build/commands/payment/find-payments-by-criteria.command.d.ts +1 -1
  48. package/build/commands/payment/get-purchase-history.command.d.ts +90 -0
  49. package/build/commands/payment/get-purchase-history.command.js +22 -0
  50. package/build/commands/payment/index.d.ts +1 -0
  51. package/build/commands/payment/index.js +1 -0
  52. package/build/commands/product/buy-product.command.d.ts +1 -1
  53. package/build/commands/subscription/buy-subscription.command.d.ts +1 -1
  54. package/build/commands/subscription/downgrade-subscription.command.d.ts +28 -5
  55. package/build/commands/subscription/downgrade-subscription.command.js +32 -9
  56. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +32 -0
  57. package/build/commands/subscription/get-subscriptions-summary.command.js +2 -0
  58. package/build/commands/subscription/index.d.ts +1 -0
  59. package/build/commands/subscription/index.js +1 -0
  60. package/build/commands/subscription/payment-incident-diagnostics.d.ts +445 -0
  61. package/build/commands/subscription/payment-incident-diagnostics.js +173 -0
  62. package/build/commands/telegram-profile/auth-with-telegram-web-app.command.d.ts +1 -1
  63. package/build/commands/tools/diagrams/find-diagrams-jobs.command.d.ts +1 -1
  64. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +1 -1
  65. package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +1 -1
  66. package/build/commands/tools/image-generation/find-image-generation-jobs.command.d.ts +1 -1
  67. package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +1 -1
  68. package/build/commands/tools/interior-design/find-interior-design-generation-groups.command.d.ts +1 -1
  69. package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +1 -1
  70. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.d.ts +1 -1
  71. package/build/commands/tools/motion-control/index.d.ts +1 -1
  72. package/build/commands/tools/music/find-music-jobs.command.d.ts +1 -1
  73. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +1 -1
  74. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +1 -1
  75. package/build/commands/tools/presentation/find-presentations.command.d.ts +1 -1
  76. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +1 -1
  77. package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.d.ts +1 -1
  78. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +1 -1
  79. package/build/commands/tools/stt/find-stt-jobs.command.d.ts +1 -1
  80. package/build/commands/tools/tool-workspace/find-tool-workspaces.command.d.ts +1 -1
  81. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -1
  82. package/build/commands/tools/video/find-video-jobs.command.d.ts +1 -1
  83. package/build/commands/tools/video-editor/find-video-editor-jobs.command.d.ts +1 -1
  84. package/build/commands/tools/writer/find-writer-documents.command.d.ts +1 -1
  85. package/build/commands/user/find-users-by-criteria.command.d.ts +1 -1
  86. package/build/commands/user/get-me.command.d.ts +3 -0
  87. package/build/commands/user/get-me.command.js +1 -0
  88. package/build/helpers/query-boolean.schema.d.ts +1 -1
  89. package/build/models/agents/agent-aggregate.schema.d.ts +1 -0
  90. package/build/models/agents/agent-dialog-lead.schema.d.ts +1 -0
  91. package/build/models/agents/agent-dialog-lead.schema.js +1 -0
  92. package/build/models/agents/agent-lead-find-result.schema.d.ts +1 -0
  93. package/build/models/agents/agent-lead-form-field.schema.js +8 -3
  94. package/build/models/agents/agent-lead.schema.d.ts +1 -0
  95. package/build/models/agents/agent-lead.schema.js +1 -0
  96. package/build/models/agents/agent.schema.d.ts +1 -0
  97. package/build/models/agents/agent.schema.js +1 -0
  98. package/build/models/agents/dialog-find-result.schema.d.ts +1 -0
  99. package/build/models/agents/dialog-with-messages.schema.d.ts +1 -0
  100. package/build/models/agents/dialog.schema.d.ts +1 -0
  101. package/build/models/index.d.ts +1 -0
  102. package/build/models/index.js +1 -0
  103. package/build/models/partner-codes/index.d.ts +4 -0
  104. package/build/models/partner-codes/index.js +4 -0
  105. package/build/models/partner-codes/partner-administration.schema.d.ts +183 -0
  106. package/build/models/partner-codes/partner-administration.schema.js +72 -0
  107. package/build/models/partner-codes/partner-cabinet-context.schema.d.ts +24 -0
  108. package/build/models/partner-codes/partner-cabinet-context.schema.js +8 -0
  109. package/build/models/partner-codes/partner-cabinet.schema.d.ts +362 -0
  110. package/build/models/partner-codes/partner-cabinet.schema.js +84 -0
  111. package/build/models/partner-codes/partner-codes.schema.d.ts +78 -2
  112. package/build/models/partner-codes/partner-codes.schema.js +73 -5
  113. package/build/models/partner-codes/partner-leak-create.schema.d.ts +6 -0
  114. package/build/models/partner-codes/partner-leak-create.schema.js +8 -0
  115. package/build/models/partner-registration-context.schema.d.ts +3 -0
  116. package/build/models/partner-registration-context.schema.js +6 -0
  117. package/build/models/purchase-history.schema.d.ts +112 -0
  118. package/build/models/purchase-history.schema.js +38 -0
  119. package/build/models/tools/diagrams/diagrams-job.schema.d.ts +2 -2
  120. package/package.json +3 -3
@@ -4,6 +4,31 @@ export declare const PartnerCommissionMoneySchema: z.ZodString;
4
4
  export declare const PartnerReportMoneySchema: z.ZodString;
5
5
  export declare const PartnerCommissionValueSchema: z.ZodString;
6
6
  export declare const PartnerMonthSchema: z.ZodString;
7
+ export declare const PartnerPeriodSequenceSchema: z.ZodNumber;
8
+ export declare const PartnerReportQuerySchema: z.ZodObject<{
9
+ month: z.ZodString;
10
+ sequence: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strict>;
12
+ export declare const PartnerReportPeriodSchema: z.ZodObject<{
13
+ sequence: z.ZodNumber;
14
+ status: z.ZodEnum<{
15
+ closed: "closed";
16
+ open: "open";
17
+ }>;
18
+ openedAt: z.ZodNullable<z.ZodISODateTime>;
19
+ closedAt: z.ZodNullable<z.ZodISODateTime>;
20
+ }, z.core.$strict>;
21
+ export declare const PartnerReportPeriodsResponseSchema: z.ZodObject<{
22
+ data: z.ZodArray<z.ZodObject<{
23
+ sequence: z.ZodNumber;
24
+ status: z.ZodEnum<{
25
+ closed: "closed";
26
+ open: "open";
27
+ }>;
28
+ openedAt: z.ZodNullable<z.ZodISODateTime>;
29
+ closedAt: z.ZodNullable<z.ZodISODateTime>;
30
+ }, z.core.$strict>>;
31
+ }, z.core.$strict>;
7
32
  export declare const PartnerRoleSchema: z.ZodEnum<{
8
33
  manager: "manager";
9
34
  owner: "owner";
@@ -35,9 +60,15 @@ export declare const PartnerBatchStatusSchema: z.ZodEnum<{
35
60
  revoked: "revoked";
36
61
  }>;
37
62
  export declare const PartnerAttemptResultSchema: z.ZodEnum<{
63
+ auto_renewal_enabled: "auto_renewal_enabled";
64
+ captcha_required: "captcha_required";
65
+ disabled: "disabled";
66
+ error: "error";
38
67
  expired: "expired";
68
+ invalid_input: "invalid_input";
39
69
  not_found: "not_found";
40
70
  ok: "ok";
71
+ pending: "pending";
41
72
  rate_limited: "rate_limited";
42
73
  revoked: "revoked";
43
74
  used: "used";
@@ -50,6 +81,7 @@ export declare const PartnerProductSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
50
81
  }, z.core.$strict>, z.ZodObject<{
51
82
  kind: z.ZodLiteral<"stars">;
52
83
  title: z.ZodString;
84
+ productId: z.ZodUUID;
53
85
  starsAmount: z.ZodString;
54
86
  }, z.core.$strict>], "kind">;
55
87
  export declare const PartnerCompanySchema: z.ZodObject<{
@@ -83,6 +115,7 @@ export declare const PartnerOfferSchema: z.ZodObject<{
83
115
  }, z.core.$strict>, z.ZodObject<{
84
116
  kind: z.ZodLiteral<"stars">;
85
117
  title: z.ZodString;
118
+ productId: z.ZodUUID;
86
119
  starsAmount: z.ZodString;
87
120
  }, z.core.$strict>], "kind">;
88
121
  retailPrice: z.ZodString;
@@ -94,6 +127,7 @@ export declare const PartnerOfferSchema: z.ZodObject<{
94
127
  maxOutstanding: z.ZodNumber;
95
128
  codeTtlDays: z.ZodNumber;
96
129
  active: z.ZodBoolean;
130
+ activatedCount: z.ZodNumber;
97
131
  outstanding: z.ZodNumber;
98
132
  availableQuantity: z.ZodNumber;
99
133
  }, z.core.$strict>;
@@ -113,6 +147,7 @@ export declare const PartnerBatchSchema: z.ZodObject<{
113
147
  }, z.core.$strict>, z.ZodObject<{
114
148
  kind: z.ZodLiteral<"stars">;
115
149
  title: z.ZodString;
150
+ productId: z.ZodUUID;
116
151
  starsAmount: z.ZodString;
117
152
  }, z.core.$strict>], "kind">;
118
153
  quantity: z.ZodNumber;
@@ -124,6 +159,9 @@ export declare const PartnerBatchSchema: z.ZodObject<{
124
159
  expiresAt: z.ZodISODateTime;
125
160
  createdAt: z.ZodISODateTime;
126
161
  createdByUserId: z.ZodNullable<z.ZodUUID>;
162
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ name: z.ZodNullable<z.ZodString>;
164
+ }, z.core.$strict>>>;
127
165
  exportCount: z.ZodNumber;
128
166
  lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
129
167
  activatedCount: z.ZodNumber;
@@ -192,7 +230,7 @@ export declare const PartnerInviteSchema: z.ZodObject<{
192
230
  pending: "pending";
193
231
  revoked: "revoked";
194
232
  }>;
195
- expiresAt: z.ZodISODateTime;
233
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
196
234
  acceptedAt: z.ZodNullable<z.ZodISODateTime>;
197
235
  revokedAt: z.ZodNullable<z.ZodISODateTime>;
198
236
  createdAt: z.ZodISODateTime;
@@ -228,7 +266,7 @@ export declare const PartnerInviteListSchema: z.ZodObject<{
228
266
  pending: "pending";
229
267
  revoked: "revoked";
230
268
  }>;
231
- expiresAt: z.ZodISODateTime;
269
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
232
270
  acceptedAt: z.ZodNullable<z.ZodISODateTime>;
233
271
  revokedAt: z.ZodNullable<z.ZodISODateTime>;
234
272
  createdAt: z.ZodISODateTime;
@@ -270,6 +308,7 @@ export declare const PartnerLeakRequestSchema: z.ZodObject<{
270
308
  export declare const PartnerLeakCreateSchema: z.ZodObject<{
271
309
  batchId: z.ZodUUID;
272
310
  comment: z.ZodString;
311
+ requestId: z.ZodOptional<z.ZodUUID>;
273
312
  }, z.core.$strict>;
274
313
  export declare const PartnerCodeInputSchema: z.ZodObject<{
275
314
  code: z.ZodString;
@@ -297,6 +336,7 @@ export declare const PartnerCodeGrantSchema: z.ZodObject<{
297
336
  }, z.core.$strict>, z.ZodObject<{
298
337
  kind: z.ZodLiteral<"stars">;
299
338
  title: z.ZodString;
339
+ productId: z.ZodUUID;
300
340
  starsAmount: z.ZodString;
301
341
  }, z.core.$strict>], "kind">;
302
342
  state: z.ZodEnum<{
@@ -319,6 +359,7 @@ export declare const PartnerCodeEligibilitySchema: z.ZodDiscriminatedUnion<[z.Zo
319
359
  }, z.core.$strict>, z.ZodObject<{
320
360
  kind: z.ZodLiteral<"stars">;
321
361
  title: z.ZodString;
362
+ productId: z.ZodUUID;
322
363
  starsAmount: z.ZodString;
323
364
  }, z.core.$strict>], "kind">;
324
365
  state: z.ZodEnum<{
@@ -340,6 +381,7 @@ export declare const PartnerCodeEligibilitySchema: z.ZodDiscriminatedUnion<[z.Zo
340
381
  }, z.core.$strict>, z.ZodObject<{
341
382
  kind: z.ZodLiteral<"stars">;
342
383
  title: z.ZodString;
384
+ productId: z.ZodUUID;
343
385
  starsAmount: z.ZodString;
344
386
  }, z.core.$strict>], "kind">;
345
387
  state: z.ZodEnum<{
@@ -360,8 +402,10 @@ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
360
402
  }, z.core.$strict>, z.ZodObject<{
361
403
  kind: z.ZodLiteral<"stars">;
362
404
  title: z.ZodString;
405
+ productId: z.ZodUUID;
363
406
  starsAmount: z.ZodString;
364
407
  }, z.core.$strict>], "kind">;
408
+ starsPerMonth: z.ZodOptional<z.ZodNumber>;
365
409
  eligibility: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
410
  state: z.ZodLiteral<"guest">;
367
411
  }, z.core.$strict>, z.ZodObject<{
@@ -375,6 +419,7 @@ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
375
419
  }, z.core.$strict>, z.ZodObject<{
376
420
  kind: z.ZodLiteral<"stars">;
377
421
  title: z.ZodString;
422
+ productId: z.ZodUUID;
378
423
  starsAmount: z.ZodString;
379
424
  }, z.core.$strict>], "kind">;
380
425
  state: z.ZodEnum<{
@@ -396,6 +441,7 @@ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
396
441
  }, z.core.$strict>, z.ZodObject<{
397
442
  kind: z.ZodLiteral<"stars">;
398
443
  title: z.ZodString;
444
+ productId: z.ZodUUID;
399
445
  starsAmount: z.ZodString;
400
446
  }, z.core.$strict>], "kind">;
401
447
  state: z.ZodEnum<{
@@ -406,6 +452,7 @@ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
406
452
  endsAt: z.ZodISODateTime;
407
453
  }, z.core.$strict>;
408
454
  }, z.core.$strict>], "state">;
455
+ partnerRegistrationContext: z.ZodOptional<z.ZodString>;
409
456
  }, z.core.$strict>, z.ZodObject<{
410
457
  validity: z.ZodEnum<{
411
458
  disabled: "disabled";
@@ -417,6 +464,15 @@ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
417
464
  captchaRequired: z.ZodBoolean;
418
465
  retryAfter: z.ZodOptional<z.ZodNumber>;
419
466
  }, z.core.$strict>], "validity">;
467
+ export declare const PartnerCodeCheckProtectionErrorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
468
+ statusCode: z.ZodLiteral<429>;
469
+ reason: z.ZodLiteral<"rate_limited">;
470
+ retryAfter: z.ZodNumber;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ statusCode: z.ZodLiteral<403>;
473
+ reason: z.ZodLiteral<"captcha_required">;
474
+ captchaRequired: z.ZodLiteral<true>;
475
+ }, z.core.$strict>], "reason">;
420
476
  export declare const PartnerCodeActivateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
421
477
  result: z.ZodLiteral<"ok">;
422
478
  grant: z.ZodObject<{
@@ -435,6 +491,7 @@ export declare const PartnerCodeActivateSchema: z.ZodDiscriminatedUnion<[z.ZodOb
435
491
  }, z.core.$strict>, z.ZodObject<{
436
492
  kind: z.ZodLiteral<"stars">;
437
493
  title: z.ZodString;
494
+ productId: z.ZodUUID;
438
495
  starsAmount: z.ZodString;
439
496
  }, z.core.$strict>], "kind">;
440
497
  state: z.ZodEnum<{
@@ -445,6 +502,7 @@ export declare const PartnerCodeActivateSchema: z.ZodDiscriminatedUnion<[z.ZodOb
445
502
  endsAt: z.ZodISODateTime;
446
503
  }, z.core.$strict>;
447
504
  idempotent: z.ZodBoolean;
505
+ starsPerMonth: z.ZodOptional<z.ZodNumber>;
448
506
  }, z.core.$strict>, z.ZodObject<{
449
507
  result: z.ZodLiteral<"error">;
450
508
  reason: z.ZodEnum<{
@@ -462,10 +520,20 @@ export declare const PartnerAttemptSchema: z.ZodObject<{
462
520
  uuid: z.ZodUUID;
463
521
  ip: z.ZodString;
464
522
  userId: z.ZodNullable<z.ZodUUID>;
523
+ operation: z.ZodEnum<{
524
+ activate: "activate";
525
+ check: "check";
526
+ }>;
465
527
  result: z.ZodEnum<{
528
+ auto_renewal_enabled: "auto_renewal_enabled";
529
+ captcha_required: "captcha_required";
530
+ disabled: "disabled";
531
+ error: "error";
466
532
  expired: "expired";
533
+ invalid_input: "invalid_input";
467
534
  not_found: "not_found";
468
535
  ok: "ok";
536
+ pending: "pending";
469
537
  rate_limited: "rate_limited";
470
538
  revoked: "revoked";
471
539
  used: "used";
@@ -488,6 +556,7 @@ export declare const PartnerReportRowSchema: z.ZodObject<{
488
556
  }, z.core.$strict>, z.ZodObject<{
489
557
  kind: z.ZodLiteral<"stars">;
490
558
  title: z.ZodString;
559
+ productId: z.ZodUUID;
491
560
  starsAmount: z.ZodString;
492
561
  }, z.core.$strict>], "kind">;
493
562
  activatedAt: z.ZodISODateTime;
@@ -511,6 +580,7 @@ export declare const PartnerReportGroupSchema: z.ZodObject<{
511
580
  }, z.core.$strict>, z.ZodObject<{
512
581
  kind: z.ZodLiteral<"stars">;
513
582
  title: z.ZodString;
583
+ productId: z.ZodUUID;
514
584
  starsAmount: z.ZodString;
515
585
  }, z.core.$strict>], "kind">;
516
586
  retailPrice: z.ZodString;
@@ -548,6 +618,7 @@ export declare const PartnerClosedSnapshotSchema: z.ZodObject<{
548
618
  }, z.core.$strict>, z.ZodObject<{
549
619
  kind: z.ZodLiteral<"stars">;
550
620
  title: z.ZodString;
621
+ productId: z.ZodUUID;
551
622
  starsAmount: z.ZodString;
552
623
  }, z.core.$strict>], "kind">;
553
624
  retailPrice: z.ZodString;
@@ -575,6 +646,7 @@ export declare const PartnerClosedSnapshotSchema: z.ZodObject<{
575
646
  }, z.core.$strict>, z.ZodObject<{
576
647
  kind: z.ZodLiteral<"stars">;
577
648
  title: z.ZodString;
649
+ productId: z.ZodUUID;
578
650
  starsAmount: z.ZodString;
579
651
  }, z.core.$strict>], "kind">;
580
652
  activatedAt: z.ZodISODateTime;
@@ -608,6 +680,7 @@ export declare const PartnerReportSchema: z.ZodObject<{
608
680
  }, z.core.$strict>, z.ZodObject<{
609
681
  kind: z.ZodLiteral<"stars">;
610
682
  title: z.ZodString;
683
+ productId: z.ZodUUID;
611
684
  starsAmount: z.ZodString;
612
685
  }, z.core.$strict>], "kind">;
613
686
  retailPrice: z.ZodString;
@@ -635,6 +708,7 @@ export declare const PartnerReportSchema: z.ZodObject<{
635
708
  }, z.core.$strict>, z.ZodObject<{
636
709
  kind: z.ZodLiteral<"stars">;
637
710
  title: z.ZodString;
711
+ productId: z.ZodUUID;
638
712
  starsAmount: z.ZodString;
639
713
  }, z.core.$strict>], "kind">;
640
714
  activatedAt: z.ZodISODateTime;
@@ -677,6 +751,7 @@ export declare const PartnerCloseResultSchema: z.ZodObject<{
677
751
  }, z.core.$strict>, z.ZodObject<{
678
752
  kind: z.ZodLiteral<"stars">;
679
753
  title: z.ZodString;
754
+ productId: z.ZodUUID;
680
755
  starsAmount: z.ZodString;
681
756
  }, z.core.$strict>], "kind">;
682
757
  retailPrice: z.ZodString;
@@ -704,6 +779,7 @@ export declare const PartnerCloseResultSchema: z.ZodObject<{
704
779
  }, z.core.$strict>, z.ZodObject<{
705
780
  kind: z.ZodLiteral<"stars">;
706
781
  title: z.ZodString;
782
+ productId: z.ZodUUID;
707
783
  starsAmount: z.ZodString;
708
784
  }, z.core.$strict>], "kind">;
709
785
  activatedAt: z.ZodISODateTime;
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartnerCloseResultSchema = exports.PartnerReportSchema = exports.PartnerClosedSnapshotSchema = exports.PartnerReportDaySchema = exports.PartnerReportGroupSchema = exports.PartnerReportRowSchema = exports.PartnerReportTotalsSchema = exports.PartnerAttemptSchema = exports.PartnerCodeActivateSchema = exports.PartnerCodeCheckSchema = exports.PartnerCodeEligibilitySchema = exports.PartnerCodeGrantSchema = exports.PartnerCodeOriginSchema = exports.PartnerCodeInputSchema = exports.PartnerLeakCreateSchema = exports.PartnerLeakRequestSchema = exports.PartnerExportChallengeVerifySchema = exports.PartnerExportChallengeRequestSchema = exports.PartnerExportChallengeSchema = exports.PartnerInviteErrorSchema = exports.PartnerInviteListSchema = exports.PartnerInviteRevokeSchema = exports.PartnerInviteAcceptSchema = exports.PartnerInviteSendSchema = exports.PartnerInviteSchema = exports.PartnerCodeListQuerySchema = exports.PartnerBatchListQuerySchema = exports.PartnerPageQuerySchema = exports.PartnerExportHistorySchema = exports.PartnerExportAuditSchema = exports.PartnerCodeSchema = exports.PartnerBatchSchema = exports.PartnerIssueRequestSchema = exports.PartnerOfferSchema = exports.PartnerMembershipSchema = exports.PartnerCompanySchema = exports.PartnerProductSchema = exports.PartnerAttemptResultSchema = exports.PartnerBatchStatusSchema = exports.PartnerCodeStatusSchema = exports.PartnerCommissionConditionsSchema = exports.PartnerCommissionTypeSchema = exports.PartnerRoleSchema = exports.PartnerMonthSchema = exports.PartnerCommissionValueSchema = exports.PartnerReportMoneySchema = exports.PartnerCommissionMoneySchema = exports.PartnerMoneySchema = void 0;
3
+ exports.PartnerReportDaySchema = exports.PartnerReportGroupSchema = exports.PartnerReportRowSchema = exports.PartnerReportTotalsSchema = exports.PartnerAttemptSchema = exports.PartnerCodeActivateSchema = exports.PartnerCodeCheckProtectionErrorSchema = exports.PartnerCodeCheckSchema = exports.PartnerCodeEligibilitySchema = exports.PartnerCodeGrantSchema = exports.PartnerCodeOriginSchema = exports.PartnerCodeInputSchema = exports.PartnerLeakCreateSchema = exports.PartnerLeakRequestSchema = exports.PartnerExportChallengeVerifySchema = exports.PartnerExportChallengeRequestSchema = exports.PartnerExportChallengeSchema = exports.PartnerInviteErrorSchema = exports.PartnerInviteListSchema = exports.PartnerInviteRevokeSchema = exports.PartnerInviteAcceptSchema = exports.PartnerInviteSendSchema = exports.PartnerInviteSchema = exports.PartnerCodeListQuerySchema = exports.PartnerBatchListQuerySchema = exports.PartnerPageQuerySchema = exports.PartnerExportHistorySchema = exports.PartnerExportAuditSchema = exports.PartnerCodeSchema = exports.PartnerBatchSchema = exports.PartnerIssueRequestSchema = exports.PartnerOfferSchema = exports.PartnerMembershipSchema = exports.PartnerCompanySchema = exports.PartnerProductSchema = exports.PartnerAttemptResultSchema = exports.PartnerBatchStatusSchema = exports.PartnerCodeStatusSchema = exports.PartnerCommissionConditionsSchema = exports.PartnerCommissionTypeSchema = exports.PartnerRoleSchema = exports.PartnerReportPeriodsResponseSchema = exports.PartnerReportPeriodSchema = exports.PartnerReportQuerySchema = exports.PartnerPeriodSequenceSchema = exports.PartnerMonthSchema = exports.PartnerCommissionValueSchema = exports.PartnerReportMoneySchema = exports.PartnerCommissionMoneySchema = exports.PartnerMoneySchema = void 0;
4
+ exports.PartnerCloseResultSchema = exports.PartnerReportSchema = exports.PartnerClosedSnapshotSchema = void 0;
4
5
  exports.validPartnerCommission = validPartnerCommission;
5
6
  const zod_1 = require("zod");
7
+ const partner_registration_context_schema_1 = require("../partner-registration-context.schema");
6
8
  exports.PartnerMoneySchema = zod_1.z.string().regex(/^(0|[1-9]\d{0,21})\.\d{2}$/);
7
9
  // Financial storage widths remain independent of the percent range (0–100).
8
10
  exports.PartnerCommissionMoneySchema = zod_1.z.string().regex(/^(0|[1-9]\d{0,25})\.\d{2}$/);
@@ -10,6 +12,24 @@ exports.PartnerCommissionMoneySchema = zod_1.z.string().regex(/^(0|[1-9]\d{0,25}
10
12
  exports.PartnerReportMoneySchema = zod_1.z.string().regex(/^(0|[1-9]\d{0,35})\.\d{2}$/);
11
13
  exports.PartnerCommissionValueSchema = zod_1.z.string().regex(/^(0|[1-9]\d{0,11})(\.\d{1,6})?$/);
12
14
  exports.PartnerMonthSchema = zod_1.z.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/);
15
+ exports.PartnerPeriodSequenceSchema = zod_1.z.number().int().min(0).max(2147483647);
16
+ exports.PartnerReportQuerySchema = zod_1.z
17
+ .object({
18
+ month: exports.PartnerMonthSchema,
19
+ sequence: exports.PartnerPeriodSequenceSchema.optional(),
20
+ })
21
+ .strict();
22
+ exports.PartnerReportPeriodSchema = zod_1.z
23
+ .object({
24
+ sequence: exports.PartnerPeriodSequenceSchema,
25
+ status: zod_1.z.enum(['open', 'closed']),
26
+ openedAt: zod_1.z.iso.datetime().nullable(),
27
+ closedAt: zod_1.z.iso.datetime().nullable(),
28
+ })
29
+ .strict();
30
+ exports.PartnerReportPeriodsResponseSchema = zod_1.z
31
+ .object({ data: zod_1.z.array(exports.PartnerReportPeriodSchema) })
32
+ .strict();
13
33
  exports.PartnerRoleSchema = zod_1.z.enum(['owner', 'manager']);
14
34
  exports.PartnerCommissionTypeSchema = zod_1.z.enum(['fixed', 'percent']);
15
35
  function validPartnerCommission(conditions) {
@@ -39,6 +59,12 @@ exports.PartnerAttemptResultSchema = zod_1.z.enum([
39
59
  'revoked',
40
60
  'expired',
41
61
  'rate_limited',
62
+ 'pending',
63
+ 'disabled',
64
+ 'captcha_required',
65
+ 'invalid_input',
66
+ 'error',
67
+ 'auto_renewal_enabled',
42
68
  ]);
43
69
  exports.PartnerProductSchema = zod_1.z.discriminatedUnion('kind', [
44
70
  zod_1.z
@@ -53,6 +79,7 @@ exports.PartnerProductSchema = zod_1.z.discriminatedUnion('kind', [
53
79
  .object({
54
80
  kind: zod_1.z.literal('stars'),
55
81
  title: zod_1.z.string(),
82
+ productId: zod_1.z.uuid(),
56
83
  starsAmount: exports.PartnerMoneySchema,
57
84
  })
58
85
  .strict(),
@@ -86,6 +113,7 @@ exports.PartnerOfferSchema = zod_1.z
86
113
  maxOutstanding: zod_1.z.number().int().nonnegative(),
87
114
  codeTtlDays: zod_1.z.number().int().positive(),
88
115
  active: zod_1.z.boolean(),
116
+ activatedCount: zod_1.z.number().int().nonnegative(),
89
117
  outstanding: zod_1.z.number().int().nonnegative(),
90
118
  availableQuantity: zod_1.z.number().int().nonnegative(),
91
119
  })
@@ -108,6 +136,7 @@ exports.PartnerBatchSchema = zod_1.z
108
136
  expiresAt: zod_1.z.iso.datetime(),
109
137
  createdAt: zod_1.z.iso.datetime(),
110
138
  createdByUserId: zod_1.z.uuid().nullable(),
139
+ createdBy: zod_1.z.object({ name: zod_1.z.string().nullable() }).strict().nullable().optional(),
111
140
  exportCount: zod_1.z.number().int().nonnegative(),
112
141
  lastExportedAt: zod_1.z.iso.datetime().nullable(),
113
142
  activatedCount: zod_1.z.number().int().nonnegative(),
@@ -157,7 +186,7 @@ exports.PartnerInviteSchema = zod_1.z
157
186
  sentByUserId: zod_1.z.uuid().nullable(),
158
187
  role: exports.PartnerRoleSchema,
159
188
  status: zod_1.z.enum(['pending', 'accepted', 'revoked', 'expired']),
160
- expiresAt: zod_1.z.iso.datetime(),
189
+ expiresAt: zod_1.z.iso.datetime().nullable(),
161
190
  acceptedAt: zod_1.z.iso.datetime().nullable(),
162
191
  revokedAt: zod_1.z.iso.datetime().nullable(),
163
192
  createdAt: zod_1.z.iso.datetime(),
@@ -207,7 +236,11 @@ exports.PartnerLeakRequestSchema = zod_1.z
207
236
  })
208
237
  .strict();
209
238
  exports.PartnerLeakCreateSchema = zod_1.z
210
- .object({ batchId: zod_1.z.uuid(), comment: zod_1.z.string().min(1).max(5000) })
239
+ .object({
240
+ batchId: zod_1.z.uuid(),
241
+ comment: zod_1.z.string().min(1).max(5000),
242
+ requestId: zod_1.z.uuid().optional(),
243
+ })
211
244
  .strict();
212
245
  exports.PartnerCodeInputSchema = zod_1.z
213
246
  .object({ code: zod_1.z.string().max(128), captchaToken: zod_1.z.string().max(4096).optional() })
@@ -252,9 +285,19 @@ exports.PartnerCodeCheckSchema = zod_1.z.discriminatedUnion('validity', [
252
285
  .object({
253
286
  validity: zod_1.z.literal('valid'),
254
287
  product: exports.PartnerProductSchema,
288
+ starsPerMonth: zod_1.z.number().int().nonnegative().optional(),
255
289
  eligibility: exports.PartnerCodeEligibilitySchema,
290
+ partnerRegistrationContext: partner_registration_context_schema_1.PartnerRegistrationContextSchema.optional(),
256
291
  })
257
- .strict(),
292
+ .strict()
293
+ .superRefine((value, context) => {
294
+ if ((value.product.kind === 'subscription') !== (value.starsPerMonth !== undefined))
295
+ context.addIssue({
296
+ code: 'custom',
297
+ path: ['starsPerMonth'],
298
+ message: 'Invalid subscription preview nominal',
299
+ });
300
+ }),
258
301
  zod_1.z
259
302
  .object({
260
303
  validity: zod_1.z.enum(['not_found', 'used', 'revoked', 'expired', 'disabled']),
@@ -263,9 +306,33 @@ exports.PartnerCodeCheckSchema = zod_1.z.discriminatedUnion('validity', [
263
306
  })
264
307
  .strict(),
265
308
  ]);
309
+ // Check protection failures happen BEFORE code inspection. They are HTTP errors,
310
+ // not code-validity responses, and therefore never imply that a code is absent.
311
+ exports.PartnerCodeCheckProtectionErrorSchema = zod_1.z.discriminatedUnion('reason', [
312
+ zod_1.z
313
+ .object({
314
+ statusCode: zod_1.z.literal(429),
315
+ reason: zod_1.z.literal('rate_limited'),
316
+ retryAfter: zod_1.z.number().int().positive(),
317
+ })
318
+ .strict(),
319
+ zod_1.z
320
+ .object({
321
+ statusCode: zod_1.z.literal(403),
322
+ reason: zod_1.z.literal('captcha_required'),
323
+ captchaRequired: zod_1.z.literal(true),
324
+ })
325
+ .strict(),
326
+ ]);
266
327
  exports.PartnerCodeActivateSchema = zod_1.z.discriminatedUnion('result', [
267
328
  zod_1.z
268
- .object({ result: zod_1.z.literal('ok'), grant: exports.PartnerCodeGrantSchema, idempotent: zod_1.z.boolean() })
329
+ .object({
330
+ result: zod_1.z.literal('ok'),
331
+ grant: exports.PartnerCodeGrantSchema,
332
+ idempotent: zod_1.z.boolean(),
333
+ // Presentation metadata, not part of the immutable saved receipt.
334
+ starsPerMonth: zod_1.z.number().int().nonnegative().optional(),
335
+ })
269
336
  .strict(),
270
337
  zod_1.z
271
338
  .object({
@@ -288,6 +355,7 @@ exports.PartnerAttemptSchema = zod_1.z
288
355
  uuid: zod_1.z.uuid(),
289
356
  ip: zod_1.z.string(),
290
357
  userId: zod_1.z.uuid().nullable(),
358
+ operation: zod_1.z.enum(['check', 'activate']),
291
359
  result: exports.PartnerAttemptResultSchema,
292
360
  createdAt: zod_1.z.iso.datetime(),
293
361
  })
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const PartnerCabinetLeakCreateSchema: z.ZodObject<{
3
+ batchId: z.ZodUUID;
4
+ comment: z.ZodString;
5
+ requestId: z.ZodUUID;
6
+ }, z.core.$strict>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartnerCabinetLeakCreateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const partner_codes_schema_1 = require("./partner-codes.schema");
6
+ exports.PartnerCabinetLeakCreateSchema = partner_codes_schema_1.PartnerLeakCreateSchema.extend({
7
+ requestId: zod_1.z.uuid(),
8
+ });
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ /** Opaque attribution proof, not an activation secret or an authentication token. */
3
+ export declare const PartnerRegistrationContextSchema: z.ZodString;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartnerRegistrationContextSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Opaque attribution proof, not an activation secret or an authentication token. */
6
+ exports.PartnerRegistrationContextSchema = zod_1.z.string().min(1).max(2048);
@@ -0,0 +1,112 @@
1
+ import { z } from 'zod';
2
+ import { SUBSCRIPTION_STATUS } from '../constants';
3
+ export declare const CodeGrantedEntitlementSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ origin: z.ZodObject<{
6
+ type: z.ZodLiteral<"activation_code">;
7
+ codeId: z.ZodUUID;
8
+ serial: z.ZodString;
9
+ partnerId: z.ZodUUID;
10
+ }, z.core.$strict>;
11
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ kind: z.ZodLiteral<"subscription">;
13
+ title: z.ZodString;
14
+ subscriptionId: z.ZodUUID;
15
+ durationMonths: z.ZodNumber;
16
+ }, z.core.$strict>, z.ZodObject<{
17
+ kind: z.ZodLiteral<"stars">;
18
+ title: z.ZodString;
19
+ productId: z.ZodUUID;
20
+ starsAmount: z.ZodString;
21
+ }, z.core.$strict>], "kind">;
22
+ startsAt: z.ZodISODateTime;
23
+ endsAt: z.ZodISODateTime;
24
+ currentEntitlementId: z.ZodUUID;
25
+ state: z.ZodEnum<{
26
+ active: "active";
27
+ canceled: "canceled";
28
+ depleted: "depleted";
29
+ expired: "expired";
30
+ queued: "queued";
31
+ }>;
32
+ autoRenewal: z.ZodBoolean;
33
+ status: z.ZodUnion<readonly [z.ZodEnum<typeof SUBSCRIPTION_STATUS>, z.ZodLiteral<"depleted">]>;
34
+ }, z.core.$strict>;
35
+ export type CodeGrantedEntitlement = z.infer<typeof CodeGrantedEntitlementSchema>;
36
+ export declare const PurchaseHistoryItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ kind: z.ZodLiteral<"payment">;
38
+ uuid: z.ZodUUID;
39
+ occurredAt: z.ZodISODateTime;
40
+ payment: z.ZodObject<{
41
+ uuid: z.ZodUUID;
42
+ status: z.ZodEnum<typeof import("..").PAYMENT_STATUS>;
43
+ sum: z.ZodNumber;
44
+ description: z.ZodString;
45
+ type: z.ZodEnum<typeof import("..").PAYMENT_HISTORY_ITEM_TYPE>;
46
+ createdAt: z.ZodISODateTime;
47
+ updatedAt: z.ZodISODateTime;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"activation">;
51
+ uuid: z.ZodUUID;
52
+ occurredAt: z.ZodISODateTime;
53
+ grant: z.ZodObject<{
54
+ uuid: z.ZodUUID;
55
+ origin: z.ZodObject<{
56
+ type: z.ZodLiteral<"activation_code">;
57
+ codeId: z.ZodUUID;
58
+ serial: z.ZodString;
59
+ partnerId: z.ZodUUID;
60
+ }, z.core.$strict>;
61
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ kind: z.ZodLiteral<"subscription">;
63
+ title: z.ZodString;
64
+ subscriptionId: z.ZodUUID;
65
+ durationMonths: z.ZodNumber;
66
+ }, z.core.$strict>, z.ZodObject<{
67
+ kind: z.ZodLiteral<"stars">;
68
+ title: z.ZodString;
69
+ productId: z.ZodUUID;
70
+ starsAmount: z.ZodString;
71
+ }, z.core.$strict>], "kind">;
72
+ state: z.ZodEnum<{
73
+ active: "active";
74
+ queued: "queued";
75
+ }>;
76
+ startsAt: z.ZodISODateTime;
77
+ endsAt: z.ZodISODateTime;
78
+ }, z.core.$strict>;
79
+ entitlement: z.ZodNullable<z.ZodObject<{
80
+ uuid: z.ZodUUID;
81
+ origin: z.ZodObject<{
82
+ type: z.ZodLiteral<"activation_code">;
83
+ codeId: z.ZodUUID;
84
+ serial: z.ZodString;
85
+ partnerId: z.ZodUUID;
86
+ }, z.core.$strict>;
87
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
88
+ kind: z.ZodLiteral<"subscription">;
89
+ title: z.ZodString;
90
+ subscriptionId: z.ZodUUID;
91
+ durationMonths: z.ZodNumber;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ kind: z.ZodLiteral<"stars">;
94
+ title: z.ZodString;
95
+ productId: z.ZodUUID;
96
+ starsAmount: z.ZodString;
97
+ }, z.core.$strict>], "kind">;
98
+ startsAt: z.ZodISODateTime;
99
+ endsAt: z.ZodISODateTime;
100
+ currentEntitlementId: z.ZodUUID;
101
+ state: z.ZodEnum<{
102
+ active: "active";
103
+ canceled: "canceled";
104
+ depleted: "depleted";
105
+ expired: "expired";
106
+ queued: "queued";
107
+ }>;
108
+ autoRenewal: z.ZodBoolean;
109
+ status: z.ZodUnion<readonly [z.ZodEnum<typeof SUBSCRIPTION_STATUS>, z.ZodLiteral<"depleted">]>;
110
+ }, z.core.$strict>>;
111
+ }, z.core.$strict>], "kind">;
112
+ export type PurchaseHistoryItem = z.infer<typeof PurchaseHistoryItemSchema>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PurchaseHistoryItemSchema = exports.CodeGrantedEntitlementSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const payment_history_item_schema_1 = require("./payment-history-item.schema");
6
+ const partner_codes_1 = require("./partner-codes");
7
+ const constants_1 = require("../constants");
8
+ // Current entitlement dates are not the immutable activation result returned on retry.
9
+ exports.CodeGrantedEntitlementSchema = partner_codes_1.PartnerCodeGrantSchema.omit({ state: true })
10
+ .extend({
11
+ currentEntitlementId: zod_1.z.uuid(),
12
+ state: zod_1.z.enum(['active', 'queued', 'expired', 'canceled', 'depleted']),
13
+ autoRenewal: zod_1.z.boolean(),
14
+ status: zod_1.z.union([zod_1.z.enum(constants_1.SUBSCRIPTION_STATUS), zod_1.z.literal('depleted')]),
15
+ })
16
+ .strict();
17
+ exports.PurchaseHistoryItemSchema = zod_1.z.discriminatedUnion('kind', [
18
+ zod_1.z
19
+ .object({
20
+ kind: zod_1.z.literal('payment'),
21
+ uuid: zod_1.z.uuid(),
22
+ occurredAt: zod_1.z.iso.datetime(),
23
+ payment: payment_history_item_schema_1.PaymentHistoryItemSchema.extend({
24
+ createdAt: zod_1.z.iso.datetime(),
25
+ updatedAt: zod_1.z.iso.datetime(),
26
+ }),
27
+ })
28
+ .strict(),
29
+ zod_1.z
30
+ .object({
31
+ kind: zod_1.z.literal('activation'),
32
+ uuid: zod_1.z.uuid(),
33
+ occurredAt: zod_1.z.iso.datetime(),
34
+ grant: partner_codes_1.PartnerCodeGrantSchema,
35
+ entitlement: exports.CodeGrantedEntitlementSchema.nullable(),
36
+ })
37
+ .strict(),
38
+ ]);
@@ -71,7 +71,7 @@ export declare const DiagramsJobParamsSchema: z.ZodPreprocess<z.ZodDiscriminated
71
71
  fileId: z.ZodUUID;
72
72
  url: z.ZodString;
73
73
  }, z.core.$strip>>>;
74
- }, z.core.$strip>], "mode">>;
74
+ }, z.core.$strip>], "mode">, unknown>;
75
75
  export type DiagramsJobParams = z.infer<typeof DiagramsJobParamsSchema>;
76
76
  export declare const DiagramsJobParamsUpdateSchema: z.ZodObject<{
77
77
  mode: z.ZodOptional<z.ZodEnum<{
@@ -190,7 +190,7 @@ export declare const DiagramsJobSchema: z.ZodObject<{
190
190
  fileId: z.ZodUUID;
191
191
  url: z.ZodString;
192
192
  }, z.core.$strip>>>;
193
- }, z.core.$strip>], "mode">>;
193
+ }, z.core.$strip>], "mode">, unknown>;
194
194
  output: z.ZodObject<{
195
195
  versions: z.ZodArray<z.ZodObject<{
196
196
  uuid: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.19.16",
3
+ "version": "0.19.18-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@purpleschool/rugpt-lib-common": "0.0.100",
19
- "zod": "^4.4.3"
18
+ "@purpleschool/rugpt-lib-common": "0.0.101",
19
+ "zod": "4.6.5"
20
20
  }
21
21
  }