@veruna/api-contracts 1.1.38 → 1.1.40

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 (176) hide show
  1. package/build/controllers/index.d.ts +2 -0
  2. package/build/controllers/index.js +5 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/kie-integration.controllers.d.ts +1 -0
  5. package/build/controllers/kie-integration.controllers.js +5 -0
  6. package/build/controllers/kie-integration.controllers.js.map +1 -0
  7. package/build/controllers/model-route.controllers.d.ts +1 -0
  8. package/build/controllers/model-route.controllers.js +5 -0
  9. package/build/controllers/model-route.controllers.js.map +1 -0
  10. package/build/rest-api.d.ts +12 -0
  11. package/build/rest-api.js +12 -0
  12. package/build/rest-api.js.map +1 -1
  13. package/build/routes/index.d.ts +2 -0
  14. package/build/routes/index.js +5 -1
  15. package/build/routes/index.js.map +1 -1
  16. package/build/routes/kie-integration.routes.d.ts +3 -0
  17. package/build/routes/kie-integration.routes.js +7 -0
  18. package/build/routes/kie-integration.routes.js.map +1 -0
  19. package/build/routes/model-route-admin.routes.d.ts +7 -0
  20. package/build/routes/model-route-admin.routes.js +11 -0
  21. package/build/routes/model-route-admin.routes.js.map +1 -0
  22. package/build/tsconfig.tsbuildinfo +1 -1
  23. package/build/v1/ai/index.d.ts +2 -0
  24. package/build/v1/ai/index.js +2 -0
  25. package/build/v1/ai/index.js.map +1 -1
  26. package/build/v1/ai/resolved-tool-settings.types.d.ts +32 -0
  27. package/build/v1/ai/resolved-tool-settings.types.js +12 -0
  28. package/build/v1/ai/resolved-tool-settings.types.js.map +1 -0
  29. package/build/v1/ai/retryable-ai-error-codes.d.ts +2 -0
  30. package/build/v1/ai/retryable-ai-error-codes.js +17 -0
  31. package/build/v1/ai/retryable-ai-error-codes.js.map +1 -0
  32. package/build/v1/ai/tool-id.enum.d.ts +2 -0
  33. package/build/v1/ai/tool-id.enum.js +2 -0
  34. package/build/v1/ai/tool-id.enum.js.map +1 -1
  35. package/build/v1/ai/tool.types.d.ts +0 -8
  36. package/build/v1/ai/tool.types.js +0 -2
  37. package/build/v1/ai/tool.types.js.map +1 -1
  38. package/build/v1/ai-model/admin/commands/create-model.command.d.ts +0 -22
  39. package/build/v1/ai-model/admin/commands/update-model.command.d.ts +0 -22
  40. package/build/v1/ai-model/admin/queries/get-model.query.d.ts +0 -11
  41. package/build/v1/ai-model/admin/queries/get-models.query.d.ts +0 -11
  42. package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +0 -23
  43. package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +0 -46
  44. package/build/v1/ai-model/schemas/api-provider.enum.d.ts +2 -1
  45. package/build/v1/ai-model/schemas/api-provider.enum.js +1 -0
  46. package/build/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
  47. package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +0 -13
  48. package/build/v1/ai-model/schemas/create-model-request.schema.js +0 -11
  49. package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
  50. package/build/v1/ai-model/schemas/model-response.schema.d.ts +0 -36
  51. package/build/v1/ai-model/schemas/model-response.schema.js +0 -12
  52. package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
  53. package/build/v1/ai-model/schemas/model-settings.schema.d.ts +66 -208
  54. package/build/v1/ai-model/schemas/model-settings.schema.js +38 -74
  55. package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
  56. package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +0 -115
  57. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +0 -46
  58. package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +0 -13
  59. package/build/v1/ai-model/schemas/update-model-request.schema.js +0 -12
  60. package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
  61. package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +0 -46
  62. package/build/v1/ai-provider/admin/commands/create-provider.command.d.ts +0 -4
  63. package/build/v1/ai-provider/admin/commands/update-provider.command.d.ts +0 -4
  64. package/build/v1/ai-provider/admin/queries/get-provider.query.d.ts +0 -2
  65. package/build/v1/ai-provider/admin/queries/get-providers.query.d.ts +0 -2
  66. package/build/v1/ai-provider/public/queries/get-active-providers.query.d.ts +0 -2
  67. package/build/v1/ai-provider/schemas/create-provider-request.schema.d.ts +0 -2
  68. package/build/v1/ai-provider/schemas/create-provider-request.schema.js +0 -4
  69. package/build/v1/ai-provider/schemas/create-provider-request.schema.js.map +1 -1
  70. package/build/v1/ai-provider/schemas/provider-response.schema.d.ts +0 -2
  71. package/build/v1/ai-provider/schemas/provider-response.schema.js +0 -2
  72. package/build/v1/ai-provider/schemas/provider-response.schema.js.map +1 -1
  73. package/build/v1/ai-provider/schemas/update-provider-request.schema.d.ts +0 -2
  74. package/build/v1/ai-provider/schemas/update-provider-request.schema.js +0 -4
  75. package/build/v1/ai-provider/schemas/update-provider-request.schema.js.map +1 -1
  76. package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +4 -4
  77. package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +4 -4
  78. package/build/v1/assistants/public/queries/get-tree.query.d.ts +4 -4
  79. package/build/v1/assistants/schemas/assistant-tree.schema.d.ts +12 -12
  80. package/build/v1/assistants/schemas/assistant-tree.schema.js +1 -1
  81. package/build/v1/assistants/schemas/assistant-tree.schema.js.map +1 -1
  82. package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +16 -16
  83. package/build/v1/assistants/schemas/catalog-short-response.schema.js +1 -1
  84. package/build/v1/assistants/schemas/catalog-short-response.schema.js.map +1 -1
  85. package/build/v1/index.d.ts +2 -0
  86. package/build/v1/index.js +2 -0
  87. package/build/v1/index.js.map +1 -1
  88. package/build/v1/kie-integration/index.d.ts +3 -0
  89. package/build/v1/kie-integration/index.js +23 -0
  90. package/build/v1/kie-integration/index.js.map +1 -0
  91. package/build/v1/kie-integration/kie-integration.errors.d.ts +23 -0
  92. package/build/v1/kie-integration/kie-integration.errors.js +104 -0
  93. package/build/v1/kie-integration/kie-integration.errors.js.map +1 -0
  94. package/build/v1/message/commands/create-message.command.d.ts +0 -4
  95. package/build/v1/message/schemas/create-message-request.schema.d.ts +0 -4
  96. package/build/v1/model-route/admin/commands/create-model-route.command.d.ts +87 -0
  97. package/build/v1/model-route/admin/commands/create-model-route.command.js +15 -0
  98. package/build/v1/model-route/admin/commands/create-model-route.command.js.map +1 -0
  99. package/build/v1/model-route/admin/commands/delete-model-route.command.d.ts +11 -0
  100. package/build/v1/model-route/admin/commands/delete-model-route.command.js +13 -0
  101. package/build/v1/model-route/admin/commands/delete-model-route.command.js.map +1 -0
  102. package/build/v1/model-route/admin/commands/index.d.ts +3 -0
  103. package/build/v1/model-route/admin/commands/index.js +20 -0
  104. package/build/v1/model-route/admin/commands/index.js.map +1 -0
  105. package/build/v1/model-route/admin/commands/update-model-route.command.d.ts +85 -0
  106. package/build/v1/model-route/admin/commands/update-model-route.command.js +13 -0
  107. package/build/v1/model-route/admin/commands/update-model-route.command.js.map +1 -0
  108. package/build/v1/model-route/admin/index.d.ts +2 -0
  109. package/build/v1/model-route/admin/index.js +19 -0
  110. package/build/v1/model-route/admin/index.js.map +1 -0
  111. package/build/v1/model-route/admin/queries/get-model-route.query.d.ts +49 -0
  112. package/build/v1/model-route/admin/queries/get-model-route.query.js +13 -0
  113. package/build/v1/model-route/admin/queries/get-model-route.query.js.map +1 -0
  114. package/build/v1/model-route/admin/queries/index.d.ts +2 -0
  115. package/build/v1/model-route/admin/queries/index.js +19 -0
  116. package/build/v1/model-route/admin/queries/index.js.map +1 -0
  117. package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.d.ts +51 -0
  118. package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.js +13 -0
  119. package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.js.map +1 -0
  120. package/build/v1/model-route/index.d.ts +3 -0
  121. package/build/v1/model-route/index.js +20 -0
  122. package/build/v1/model-route/index.js.map +1 -0
  123. package/build/v1/model-route/model-route.errors.d.ts +7 -0
  124. package/build/v1/model-route/model-route.errors.js +24 -0
  125. package/build/v1/model-route/model-route.errors.js.map +1 -0
  126. package/build/v1/model-route/schemas/create-model-route-request.schema.d.ts +42 -0
  127. package/build/v1/model-route/schemas/create-model-route-request.schema.js +29 -0
  128. package/build/v1/model-route/schemas/create-model-route-request.schema.js.map +1 -0
  129. package/build/v1/model-route/schemas/index.d.ts +6 -0
  130. package/build/v1/model-route/schemas/index.js +23 -0
  131. package/build/v1/model-route/schemas/index.js.map +1 -0
  132. package/build/v1/model-route/schemas/list-model-routes-response.schema.d.ts +45 -0
  133. package/build/v1/model-route/schemas/list-model-routes-response.schema.js +9 -0
  134. package/build/v1/model-route/schemas/list-model-routes-response.schema.js.map +1 -0
  135. package/build/v1/model-route/schemas/model-route-response.schema.d.ts +45 -0
  136. package/build/v1/model-route/schemas/model-route-response.schema.js +20 -0
  137. package/build/v1/model-route/schemas/model-route-response.schema.js.map +1 -0
  138. package/build/v1/model-route/schemas/model-route-status.enum.d.ts +4 -0
  139. package/build/v1/model-route/schemas/model-route-status.enum.js +9 -0
  140. package/build/v1/model-route/schemas/model-route-status.enum.js.map +1 -0
  141. package/build/v1/model-route/schemas/provider-generation-config.schema.d.ts +84 -0
  142. package/build/v1/model-route/schemas/provider-generation-config.schema.js +56 -0
  143. package/build/v1/model-route/schemas/provider-generation-config.schema.js.map +1 -0
  144. package/build/v1/model-route/schemas/update-model-route-request.schema.d.ts +41 -0
  145. package/build/v1/model-route/schemas/update-model-route-request.schema.js +23 -0
  146. package/build/v1/model-route/schemas/update-model-route-request.schema.js.map +1 -0
  147. package/build/v1/notifications/commands/update-notification-settings.command.d.ts +1 -0
  148. package/build/v1/notifications/queries/get-notification-settings.query.d.ts +1 -0
  149. package/build/v1/notifications/schemas/index.d.ts +1 -0
  150. package/build/v1/notifications/schemas/index.js +1 -0
  151. package/build/v1/notifications/schemas/index.js.map +1 -1
  152. package/build/v1/notifications/schemas/notification-disable-block-reason.enum.d.ts +3 -0
  153. package/build/v1/notifications/schemas/notification-disable-block-reason.enum.js +8 -0
  154. package/build/v1/notifications/schemas/notification-disable-block-reason.enum.js.map +1 -0
  155. package/build/v1/notifications/schemas/notification-setting.schema.d.ts +2 -0
  156. package/build/v1/notifications/schemas/notification-setting.schema.js +2 -0
  157. package/build/v1/notifications/schemas/notification-setting.schema.js.map +1 -1
  158. package/build/v1/notifications/schemas/notification-settings-response.schema.d.ts +1 -0
  159. package/build/v1/tool/admin/commands/create-model-tool-binding.command.d.ts +136 -104
  160. package/build/v1/tool/admin/commands/update-model-tool-binding.command.d.ts +136 -104
  161. package/build/v1/tool/admin/queries/get-model-tool-bindings.query.d.ts +80 -22
  162. package/build/v1/tool/public/queries/get-tool-availability.query.d.ts +0 -23
  163. package/build/v1/tool/schemas/index.d.ts +2 -0
  164. package/build/v1/tool/schemas/index.js +2 -0
  165. package/build/v1/tool/schemas/index.js.map +1 -1
  166. package/build/v1/tool/schemas/kie-body-mode.enum.d.ts +5 -0
  167. package/build/v1/tool/schemas/kie-body-mode.enum.js +10 -0
  168. package/build/v1/tool/schemas/kie-body-mode.enum.js.map +1 -0
  169. package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.d.ts +11 -0
  170. package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.js +42 -0
  171. package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.js.map +1 -0
  172. package/build/v1/tool/schemas/tool.schema.d.ts +327 -445
  173. package/build/v1/tool/schemas/tool.schema.js +13 -8
  174. package/build/v1/tool/schemas/tool.schema.js.map +1 -1
  175. package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.d.ts +0 -23
  176. package/package.json +1 -1
@@ -14,12 +14,12 @@ export declare namespace AssistantGetTreeQuery {
14
14
  seoName: z.ZodNullable<z.ZodString>;
15
15
  image: z.ZodString;
16
16
  marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
17
- page: z.ZodObject<{
17
+ page: z.ZodNullable<z.ZodObject<{
18
18
  type: z.ZodEnum<typeof import("../../..").PageType>;
19
19
  uuid: z.ZodString;
20
20
  title: z.ZodString;
21
21
  alias: z.ZodString;
22
- }, z.core.$strip>;
22
+ }, z.core.$strip>>;
23
23
  }, z.core.$strip>>;
24
24
  }, z.core.$strip>, z.ZodObject<{
25
25
  uuid: z.ZodString;
@@ -29,12 +29,12 @@ export declare namespace AssistantGetTreeQuery {
29
29
  seoName: z.ZodNullable<z.ZodString>;
30
30
  image: z.ZodString;
31
31
  marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
32
- page: z.ZodObject<{
32
+ page: z.ZodNullable<z.ZodObject<{
33
33
  type: z.ZodEnum<typeof import("../../..").PageType>;
34
34
  uuid: z.ZodString;
35
35
  title: z.ZodString;
36
36
  alias: z.ZodString;
37
- }, z.core.$strip>;
37
+ }, z.core.$strip>>;
38
38
  }, z.core.$strip>]>>;
39
39
  const URL: "/api/v1/assistants/";
40
40
  const METHOD = HttpMethod.GET;
@@ -8,12 +8,12 @@ export declare const AssistantTreeChildSchema: z.ZodObject<{
8
8
  seoName: z.ZodNullable<z.ZodString>;
9
9
  image: z.ZodString;
10
10
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
11
- page: z.ZodObject<{
11
+ page: z.ZodNullable<z.ZodObject<{
12
12
  type: z.ZodEnum<typeof import("../..").PageType>;
13
13
  uuid: z.ZodString;
14
14
  title: z.ZodString;
15
15
  alias: z.ZodString;
16
- }, z.core.$strip>;
16
+ }, z.core.$strip>>;
17
17
  }, z.core.$strip>;
18
18
  export declare const AssistantTreeNodeSchema: z.ZodObject<{
19
19
  uuid: z.ZodString;
@@ -27,12 +27,12 @@ export declare const AssistantTreeNodeSchema: z.ZodObject<{
27
27
  seoName: z.ZodNullable<z.ZodString>;
28
28
  image: z.ZodString;
29
29
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
30
- page: z.ZodObject<{
30
+ page: z.ZodNullable<z.ZodObject<{
31
31
  type: z.ZodEnum<typeof import("../..").PageType>;
32
32
  uuid: z.ZodString;
33
33
  title: z.ZodString;
34
34
  alias: z.ZodString;
35
- }, z.core.$strip>;
35
+ }, z.core.$strip>>;
36
36
  }, z.core.$strip>>;
37
37
  }, z.core.$strip>;
38
38
  export declare const AssistantTreeResponseItemSchema: z.ZodUnion<readonly [z.ZodObject<{
@@ -47,12 +47,12 @@ export declare const AssistantTreeResponseItemSchema: z.ZodUnion<readonly [z.Zod
47
47
  seoName: z.ZodNullable<z.ZodString>;
48
48
  image: z.ZodString;
49
49
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
50
- page: z.ZodObject<{
50
+ page: z.ZodNullable<z.ZodObject<{
51
51
  type: z.ZodEnum<typeof import("../..").PageType>;
52
52
  uuid: z.ZodString;
53
53
  title: z.ZodString;
54
54
  alias: z.ZodString;
55
- }, z.core.$strip>;
55
+ }, z.core.$strip>>;
56
56
  }, z.core.$strip>>;
57
57
  }, z.core.$strip>, z.ZodObject<{
58
58
  uuid: z.ZodString;
@@ -62,12 +62,12 @@ export declare const AssistantTreeResponseItemSchema: z.ZodUnion<readonly [z.Zod
62
62
  seoName: z.ZodNullable<z.ZodString>;
63
63
  image: z.ZodString;
64
64
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
65
- page: z.ZodObject<{
65
+ page: z.ZodNullable<z.ZodObject<{
66
66
  type: z.ZodEnum<typeof import("../..").PageType>;
67
67
  uuid: z.ZodString;
68
68
  title: z.ZodString;
69
69
  alias: z.ZodString;
70
- }, z.core.$strip>;
70
+ }, z.core.$strip>>;
71
71
  }, z.core.$strip>]>;
72
72
  export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
73
73
  uuid: z.ZodString;
@@ -81,12 +81,12 @@ export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonl
81
81
  seoName: z.ZodNullable<z.ZodString>;
82
82
  image: z.ZodString;
83
83
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
84
- page: z.ZodObject<{
84
+ page: z.ZodNullable<z.ZodObject<{
85
85
  type: z.ZodEnum<typeof import("../..").PageType>;
86
86
  uuid: z.ZodString;
87
87
  title: z.ZodString;
88
88
  alias: z.ZodString;
89
- }, z.core.$strip>;
89
+ }, z.core.$strip>>;
90
90
  }, z.core.$strip>>;
91
91
  }, z.core.$strip>, z.ZodObject<{
92
92
  uuid: z.ZodString;
@@ -96,12 +96,12 @@ export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonl
96
96
  seoName: z.ZodNullable<z.ZodString>;
97
97
  image: z.ZodString;
98
98
  marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
99
- page: z.ZodObject<{
99
+ page: z.ZodNullable<z.ZodObject<{
100
100
  type: z.ZodEnum<typeof import("../..").PageType>;
101
101
  uuid: z.ZodString;
102
102
  title: z.ZodString;
103
103
  alias: z.ZodString;
104
- }, z.core.$strip>;
104
+ }, z.core.$strip>>;
105
105
  }, z.core.$strip>]>>;
106
106
  export type AssistantTreeChildType = z.infer<typeof AssistantTreeChildSchema>;
107
107
  export type AssistantTreeNodeType = z.infer<typeof AssistantTreeNodeSchema>;
@@ -13,7 +13,7 @@ exports.AssistantTreeChildSchema = zod_1.z.object({
13
13
  seoName: zod_1.z.string().nullable(),
14
14
  image: zod_1.z.string(),
15
15
  marks: zod_1.z.array(zod_1.z.nativeEnum(assistant_mark_enum_1.AssistantMark)),
16
- page: assistant_linked_page_schema_1.AssistantTreePageSchema,
16
+ page: assistant_linked_page_schema_1.AssistantTreePageSchema.nullable(),
17
17
  });
18
18
  exports.AssistantTreeNodeSchema = zod_1.z.object({
19
19
  uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-tree.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/assistant-tree.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4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AE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,mCAAa,CAAC,CAAC;IAM3C,IAAI,EAAE,sDAAuB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;CAC9C,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,OAAC,CAAC,KAAK,CAAC;IACnD,+BAAuB;IACvB,gCAAwB;CAC3B,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,KAAK,CAAC,uCAA+B,CAAC,CAAC"}
@@ -26,12 +26,12 @@ export declare const CatalogShortTreeChildSchema: z.ZodObject<{
26
26
  title: z.ZodString;
27
27
  link: z.ZodOptional<z.ZodString>;
28
28
  }, z.core.$strip>>;
29
- page: z.ZodObject<{
29
+ page: z.ZodNullable<z.ZodObject<{
30
30
  type: z.ZodEnum<typeof import("../..").PageType>;
31
31
  uuid: z.ZodString;
32
32
  title: z.ZodString;
33
33
  alias: z.ZodString;
34
- }, z.core.$strip>;
34
+ }, z.core.$strip>>;
35
35
  }, z.core.$strip>;
36
36
  export declare const CatalogShortTreeNodeSchema: z.ZodObject<{
37
37
  uuid: z.ZodString;
@@ -49,12 +49,12 @@ export declare const CatalogShortTreeNodeSchema: z.ZodObject<{
49
49
  title: z.ZodString;
50
50
  link: z.ZodOptional<z.ZodString>;
51
51
  }, z.core.$strip>>;
52
- page: z.ZodObject<{
52
+ page: z.ZodNullable<z.ZodObject<{
53
53
  type: z.ZodEnum<typeof import("../..").PageType>;
54
54
  uuid: z.ZodString;
55
55
  title: z.ZodString;
56
56
  alias: z.ZodString;
57
- }, z.core.$strip>;
57
+ }, z.core.$strip>>;
58
58
  }, z.core.$strip>>;
59
59
  }, z.core.$strip>;
60
60
  export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodObject<{
@@ -73,12 +73,12 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
73
73
  title: z.ZodString;
74
74
  link: z.ZodOptional<z.ZodString>;
75
75
  }, z.core.$strip>>;
76
- page: z.ZodObject<{
76
+ page: z.ZodNullable<z.ZodObject<{
77
77
  type: z.ZodEnum<typeof import("../..").PageType>;
78
78
  uuid: z.ZodString;
79
79
  title: z.ZodString;
80
80
  alias: z.ZodString;
81
- }, z.core.$strip>;
81
+ }, z.core.$strip>>;
82
82
  }, z.core.$strip>>;
83
83
  }, z.core.$strip>, z.ZodObject<{
84
84
  uuid: z.ZodString;
@@ -92,12 +92,12 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
92
92
  title: z.ZodString;
93
93
  link: z.ZodOptional<z.ZodString>;
94
94
  }, z.core.$strip>>;
95
- page: z.ZodObject<{
95
+ page: z.ZodNullable<z.ZodObject<{
96
96
  type: z.ZodEnum<typeof import("../..").PageType>;
97
97
  uuid: z.ZodString;
98
98
  title: z.ZodString;
99
99
  alias: z.ZodString;
100
- }, z.core.$strip>;
100
+ }, z.core.$strip>>;
101
101
  }, z.core.$strip>]>;
102
102
  export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
103
103
  all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -116,12 +116,12 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
116
116
  title: z.ZodString;
117
117
  link: z.ZodOptional<z.ZodString>;
118
118
  }, z.core.$strip>>;
119
- page: z.ZodObject<{
119
+ page: z.ZodNullable<z.ZodObject<{
120
120
  type: z.ZodEnum<typeof import("../..").PageType>;
121
121
  uuid: z.ZodString;
122
122
  title: z.ZodString;
123
123
  alias: z.ZodString;
124
- }, z.core.$strip>;
124
+ }, z.core.$strip>>;
125
125
  }, z.core.$strip>>;
126
126
  }, z.core.$strip>, z.ZodObject<{
127
127
  uuid: z.ZodString;
@@ -135,12 +135,12 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
135
135
  title: z.ZodString;
136
136
  link: z.ZodOptional<z.ZodString>;
137
137
  }, z.core.$strip>>;
138
- page: z.ZodObject<{
138
+ page: z.ZodNullable<z.ZodObject<{
139
139
  type: z.ZodEnum<typeof import("../..").PageType>;
140
140
  uuid: z.ZodString;
141
141
  title: z.ZodString;
142
142
  alias: z.ZodString;
143
- }, z.core.$strip>;
143
+ }, z.core.$strip>>;
144
144
  }, z.core.$strip>]>>;
145
145
  }, z.core.$strip>;
146
146
  export declare const CatalogShortRegResponseSchema: z.ZodObject<{
@@ -188,12 +188,12 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
188
188
  title: z.ZodString;
189
189
  link: z.ZodOptional<z.ZodString>;
190
190
  }, z.core.$strip>>;
191
- page: z.ZodObject<{
191
+ page: z.ZodNullable<z.ZodObject<{
192
192
  type: z.ZodEnum<typeof import("../..").PageType>;
193
193
  uuid: z.ZodString;
194
194
  title: z.ZodString;
195
195
  alias: z.ZodString;
196
- }, z.core.$strip>;
196
+ }, z.core.$strip>>;
197
197
  }, z.core.$strip>>;
198
198
  }, z.core.$strip>, z.ZodObject<{
199
199
  uuid: z.ZodString;
@@ -207,11 +207,11 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
207
207
  title: z.ZodString;
208
208
  link: z.ZodOptional<z.ZodString>;
209
209
  }, z.core.$strip>>;
210
- page: z.ZodObject<{
210
+ page: z.ZodNullable<z.ZodObject<{
211
211
  type: z.ZodEnum<typeof import("../..").PageType>;
212
212
  uuid: z.ZodString;
213
213
  title: z.ZodString;
214
214
  alias: z.ZodString;
215
- }, z.core.$strip>;
215
+ }, z.core.$strip>>;
216
216
  }, z.core.$strip>]>>;
217
217
  }, z.core.$strip>;
@@ -26,7 +26,7 @@ exports.CatalogShortTreeChildSchema = zod_1.z.object({
26
26
  tags: zod_1.z.array(zod_1.z.string()),
27
27
  usageCount: zod_1.z.number().int().min(0),
28
28
  author: assistant_author_schema_1.AssistantAuthorSchema.nullable(),
29
- page: assistant_linked_page_schema_1.AssistantTreePageSchema,
29
+ page: assistant_linked_page_schema_1.AssistantTreePageSchema.nullable(),
30
30
  });
31
31
  exports.CatalogShortTreeNodeSchema = zod_1.z.object({
32
32
  uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-short-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-short-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,uEAAkE;AAClE,2EAAkE;AAClE,iFAAyE;AAE5D,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC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AAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACnD,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
1
+ {"version":3,"file":"catalog-short-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-short-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,uEAAkE;AAClE,2EAAkE;AAClE,iFAAyE;AAE5D,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC7C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,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CAAC,sCAA8B,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
@@ -38,3 +38,5 @@ export * from './forms';
38
38
  export * from './open-graph';
39
39
  export * from './daily-rewards';
40
40
  export * from './tasks';
41
+ export * from './kie-integration';
42
+ export * from './model-route';
package/build/v1/index.js CHANGED
@@ -54,4 +54,6 @@ __exportStar(require("./forms"), exports);
54
54
  __exportStar(require("./open-graph"), exports);
55
55
  __exportStar(require("./daily-rewards"), exports);
56
56
  __exportStar(require("./tasks"), exports);
57
+ __exportStar(require("./kie-integration"), exports);
58
+ __exportStar(require("./model-route"), exports);
57
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,oDAAkC;AAClC,gDAA8B"}
@@ -0,0 +1,3 @@
1
+ export * from './kie-integration.errors';
2
+ export { KIE_INTEGRATION_CONTROLLER } from '../../controllers';
3
+ export { KIE_INTEGRATION_ROUTES } from '../../routes';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.KIE_INTEGRATION_ROUTES = exports.KIE_INTEGRATION_CONTROLLER = void 0;
18
+ __exportStar(require("./kie-integration.errors"), exports);
19
+ var controllers_1 = require("../../controllers");
20
+ Object.defineProperty(exports, "KIE_INTEGRATION_CONTROLLER", { enumerable: true, get: function () { return controllers_1.KIE_INTEGRATION_CONTROLLER; } });
21
+ var routes_1 = require("../../routes");
22
+ Object.defineProperty(exports, "KIE_INTEGRATION_ROUTES", { enumerable: true, get: function () { return routes_1.KIE_INTEGRATION_ROUTES; } });
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/kie-integration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyC;AAEzC,iDAA+D;AAAtD,yHAAA,0BAA0B,OAAA;AACnC,uCAAsD;AAA7C,gHAAA,sBAAsB,OAAA"}
@@ -0,0 +1,23 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum KieErrorCode {
3
+ INVALID_SIGNATURE = "KIE_INVALID_SIGNATURE",
4
+ STALE_TIMESTAMP = "KIE_STALE_TIMESTAMP",
5
+ URL_NOT_WHITELISTED = "KIE_URL_NOT_WHITELISTED",
6
+ TASK_NOT_FOUND = "KIE_TASK_NOT_FOUND",
7
+ TASK_TIMEOUT = "KIE_TASK_TIMEOUT",
8
+ TASK_FAILED = "KIE_TASK_FAILED",
9
+ CONTENT_FILTERED = "KIE_CONTENT_FILTERED",
10
+ TASK_ALREADY_TERMINAL = "KIE_TASK_ALREADY_TERMINAL",
11
+ TASK_ALREADY_LINKED = "KIE_TASK_ALREADY_LINKED",
12
+ REPLAYED_WEBHOOK = "KIE_REPLAYED_WEBHOOK",
13
+ EMPTY_RESULT = "KIE_EMPTY_RESULT",
14
+ UNSUPPORTED_MODEL = "KIE_UNSUPPORTED_MODEL",
15
+ UNSUPPORTED_OPERATION = "KIE_UNSUPPORTED_OPERATION",
16
+ INVALID_PARAMETERS = "KIE_INVALID_PARAMETERS",
17
+ NO_MODELS_AVAILABLE = "KIE_NO_MODELS_AVAILABLE",
18
+ API_ERROR = "KIE_API_ERROR",
19
+ API_UNAUTHORIZED = "KIE_API_UNAUTHORIZED",
20
+ INSUFFICIENT_CREDITS = "KIE_INSUFFICIENT_CREDITS",
21
+ RATE_LIMITED = "KIE_RATE_LIMITED"
22
+ }
23
+ export declare const KIE_ERRORS: Record<KieErrorCode, ErrorMetadata>;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KIE_ERRORS = exports.KieErrorCode = void 0;
4
+ var KieErrorCode;
5
+ (function (KieErrorCode) {
6
+ KieErrorCode["INVALID_SIGNATURE"] = "KIE_INVALID_SIGNATURE";
7
+ KieErrorCode["STALE_TIMESTAMP"] = "KIE_STALE_TIMESTAMP";
8
+ KieErrorCode["URL_NOT_WHITELISTED"] = "KIE_URL_NOT_WHITELISTED";
9
+ KieErrorCode["TASK_NOT_FOUND"] = "KIE_TASK_NOT_FOUND";
10
+ KieErrorCode["TASK_TIMEOUT"] = "KIE_TASK_TIMEOUT";
11
+ KieErrorCode["TASK_FAILED"] = "KIE_TASK_FAILED";
12
+ KieErrorCode["CONTENT_FILTERED"] = "KIE_CONTENT_FILTERED";
13
+ KieErrorCode["TASK_ALREADY_TERMINAL"] = "KIE_TASK_ALREADY_TERMINAL";
14
+ KieErrorCode["TASK_ALREADY_LINKED"] = "KIE_TASK_ALREADY_LINKED";
15
+ KieErrorCode["REPLAYED_WEBHOOK"] = "KIE_REPLAYED_WEBHOOK";
16
+ KieErrorCode["EMPTY_RESULT"] = "KIE_EMPTY_RESULT";
17
+ KieErrorCode["UNSUPPORTED_MODEL"] = "KIE_UNSUPPORTED_MODEL";
18
+ KieErrorCode["UNSUPPORTED_OPERATION"] = "KIE_UNSUPPORTED_OPERATION";
19
+ KieErrorCode["INVALID_PARAMETERS"] = "KIE_INVALID_PARAMETERS";
20
+ KieErrorCode["NO_MODELS_AVAILABLE"] = "KIE_NO_MODELS_AVAILABLE";
21
+ KieErrorCode["API_ERROR"] = "KIE_API_ERROR";
22
+ KieErrorCode["API_UNAUTHORIZED"] = "KIE_API_UNAUTHORIZED";
23
+ KieErrorCode["INSUFFICIENT_CREDITS"] = "KIE_INSUFFICIENT_CREDITS";
24
+ KieErrorCode["RATE_LIMITED"] = "KIE_RATE_LIMITED";
25
+ })(KieErrorCode || (exports.KieErrorCode = KieErrorCode = {}));
26
+ exports.KIE_ERRORS = {
27
+ [KieErrorCode.INVALID_SIGNATURE]: {
28
+ code: KieErrorCode.INVALID_SIGNATURE,
29
+ statusCode: 401,
30
+ },
31
+ [KieErrorCode.STALE_TIMESTAMP]: {
32
+ code: KieErrorCode.STALE_TIMESTAMP,
33
+ statusCode: 401,
34
+ },
35
+ [KieErrorCode.URL_NOT_WHITELISTED]: {
36
+ code: KieErrorCode.URL_NOT_WHITELISTED,
37
+ statusCode: 400,
38
+ },
39
+ [KieErrorCode.TASK_NOT_FOUND]: {
40
+ code: KieErrorCode.TASK_NOT_FOUND,
41
+ statusCode: 404,
42
+ },
43
+ [KieErrorCode.TASK_TIMEOUT]: {
44
+ code: KieErrorCode.TASK_TIMEOUT,
45
+ statusCode: 504,
46
+ },
47
+ [KieErrorCode.TASK_FAILED]: {
48
+ code: KieErrorCode.TASK_FAILED,
49
+ statusCode: 502,
50
+ },
51
+ [KieErrorCode.CONTENT_FILTERED]: {
52
+ code: KieErrorCode.CONTENT_FILTERED,
53
+ statusCode: 422,
54
+ },
55
+ [KieErrorCode.TASK_ALREADY_LINKED]: {
56
+ code: KieErrorCode.TASK_ALREADY_LINKED,
57
+ statusCode: 409,
58
+ },
59
+ [KieErrorCode.REPLAYED_WEBHOOK]: {
60
+ code: KieErrorCode.REPLAYED_WEBHOOK,
61
+ statusCode: 200,
62
+ },
63
+ [KieErrorCode.TASK_ALREADY_TERMINAL]: {
64
+ code: KieErrorCode.TASK_ALREADY_TERMINAL,
65
+ statusCode: 409,
66
+ },
67
+ [KieErrorCode.EMPTY_RESULT]: {
68
+ code: KieErrorCode.EMPTY_RESULT,
69
+ statusCode: 502,
70
+ },
71
+ [KieErrorCode.UNSUPPORTED_MODEL]: {
72
+ code: KieErrorCode.UNSUPPORTED_MODEL,
73
+ statusCode: 400,
74
+ },
75
+ [KieErrorCode.UNSUPPORTED_OPERATION]: {
76
+ code: KieErrorCode.UNSUPPORTED_OPERATION,
77
+ statusCode: 400,
78
+ },
79
+ [KieErrorCode.INVALID_PARAMETERS]: {
80
+ code: KieErrorCode.INVALID_PARAMETERS,
81
+ statusCode: 400,
82
+ },
83
+ [KieErrorCode.NO_MODELS_AVAILABLE]: {
84
+ code: KieErrorCode.NO_MODELS_AVAILABLE,
85
+ statusCode: 503,
86
+ },
87
+ [KieErrorCode.API_ERROR]: {
88
+ code: KieErrorCode.API_ERROR,
89
+ statusCode: 502,
90
+ },
91
+ [KieErrorCode.API_UNAUTHORIZED]: {
92
+ code: KieErrorCode.API_UNAUTHORIZED,
93
+ statusCode: 502,
94
+ },
95
+ [KieErrorCode.INSUFFICIENT_CREDITS]: {
96
+ code: KieErrorCode.INSUFFICIENT_CREDITS,
97
+ statusCode: 402,
98
+ },
99
+ [KieErrorCode.RATE_LIMITED]: {
100
+ code: KieErrorCode.RATE_LIMITED,
101
+ statusCode: 429,
102
+ },
103
+ };
104
+ //# sourceMappingURL=kie-integration.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kie-integration.errors.js","sourceRoot":"","sources":["../../../v1/kie-integration/kie-integration.errors.ts"],"names":[],"mappings":";;;AAUA,IAAY,YAgCX;AAhCD,WAAY,YAAY;IAEpB,2DAA2C,CAAA;IAC3C,uDAAuC,CAAA;IACvC,+DAA+C,CAAA;IAG/C,qDAAqC,CAAA;IACrC,iDAAiC,CAAA;IACjC,+CAA+B,CAAA;IAE/B,yDAAyC,CAAA;IAEzC,mEAAmD,CAAA;IAEnD,+DAA+C,CAAA;IAE/C,yDAAyC,CAAA;IACzC,iDAA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15
  toolUuid: z.ZodString;
16
16
  modelId: z.ZodString;
17
- settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
- key: z.ZodEnum<typeof import("../..").SettingKey>;
19
- optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
20
- }, z.core.$strip>>>;
21
17
  }, z.core.$strip>>>;
22
18
  attachPendingFiles: z.ZodOptional<z.ZodBoolean>;
23
19
  assistantId: z.ZodOptional<z.ZodString>;
@@ -12,10 +12,6 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
12
12
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
13
  toolUuid: z.ZodString;
14
14
  modelId: z.ZodString;
15
- settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
- key: z.ZodEnum<typeof import("../..").SettingKey>;
17
- optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
18
- }, z.core.$strip>>>;
19
15
  }, z.core.$strip>>>;
20
16
  attachPendingFiles: z.ZodOptional<z.ZodBoolean>;
21
17
  assistantId: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminModelRouteCreateCommand {
4
+ const Request: z.ZodObject<{
5
+ modelUuid: z.ZodString;
6
+ apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
7
+ externalSlug: z.ZodString;
8
+ priority: z.ZodDefault<z.ZodNumber>;
9
+ status: z.ZodDefault<z.ZodEnum<typeof import("../..").ModelRouteStatus>>;
10
+ runtimeOverrides: z.ZodDefault<z.ZodOptional<z.ZodObject<{
11
+ openrouter: z.ZodOptional<z.ZodObject<{
12
+ useProxy: z.ZodOptional<z.ZodBoolean>;
13
+ imageConfig: z.ZodOptional<z.ZodObject<{
14
+ aspect_ratio: z.ZodOptional<z.ZodString>;
15
+ image_size: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strict>>;
17
+ provider: z.ZodOptional<z.ZodObject<{
18
+ only: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ order: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
22
+ require_parameters: z.ZodOptional<z.ZodBoolean>;
23
+ }, z.core.$strict>>;
24
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
+ }, z.core.$strict>>;
26
+ kie: z.ZodOptional<z.ZodObject<{
27
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
+ inputUrlsKey: z.ZodOptional<z.ZodString>;
29
+ inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
30
+ endpoint: z.ZodOptional<z.ZodString>;
31
+ bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
32
+ promptMaxLen: z.ZodOptional<z.ZodNumber>;
33
+ pricing: z.ZodOptional<z.ZodObject<{
34
+ base: z.ZodNumber;
35
+ modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
36
+ fallback: z.ZodOptional<z.ZodNumber>;
37
+ }, z.core.$strict>>;
38
+ selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39
+ }, z.core.$strict>>;
40
+ }, z.core.$strict>>>;
41
+ }, z.core.$strip>;
42
+ const Response: z.ZodObject<{
43
+ uuid: z.ZodString;
44
+ modelUuid: z.ZodString;
45
+ apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
46
+ externalSlug: z.ZodString;
47
+ priority: z.ZodNumber;
48
+ status: z.ZodEnum<typeof import("../..").ModelRouteStatus>;
49
+ runtimeOverrides: z.ZodObject<{
50
+ openrouter: z.ZodOptional<z.ZodObject<{
51
+ useProxy: z.ZodOptional<z.ZodBoolean>;
52
+ imageConfig: z.ZodOptional<z.ZodObject<{
53
+ aspect_ratio: z.ZodOptional<z.ZodString>;
54
+ image_size: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strict>>;
56
+ provider: z.ZodOptional<z.ZodObject<{
57
+ only: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ order: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
61
+ require_parameters: z.ZodOptional<z.ZodBoolean>;
62
+ }, z.core.$strict>>;
63
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ }, z.core.$strict>>;
65
+ kie: z.ZodOptional<z.ZodObject<{
66
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
67
+ inputUrlsKey: z.ZodOptional<z.ZodString>;
68
+ inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
69
+ endpoint: z.ZodOptional<z.ZodString>;
70
+ bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
71
+ promptMaxLen: z.ZodOptional<z.ZodNumber>;
72
+ pricing: z.ZodOptional<z.ZodObject<{
73
+ base: z.ZodNumber;
74
+ modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
75
+ fallback: z.ZodOptional<z.ZodNumber>;
76
+ }, z.core.$strict>>;
77
+ selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
78
+ }, z.core.$strict>>;
79
+ }, z.core.$strict>;
80
+ createdAt: z.ZodString;
81
+ updatedAt: z.ZodString;
82
+ }, z.core.$strip>;
83
+ const URL: "/api/v1/admin/model-routes";
84
+ const METHOD = HttpMethod.POST;
85
+ type RequestType = z.infer<typeof Request>;
86
+ type ResponseType = z.infer<typeof Response>;
87
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminModelRouteCreateCommand = void 0;
4
+ const create_model_route_request_schema_1 = require("../../schemas/create-model-route-request.schema");
5
+ const model_route_response_schema_1 = require("../../schemas/model-route-response.schema");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ const http_method_1 = require("../../../../shared/http-method");
8
+ var AdminModelRouteCreateCommand;
9
+ (function (AdminModelRouteCreateCommand) {
10
+ AdminModelRouteCreateCommand.Request = create_model_route_request_schema_1.CreateModelRouteRequestSchema;
11
+ AdminModelRouteCreateCommand.Response = model_route_response_schema_1.ModelRouteResponseSchema;
12
+ AdminModelRouteCreateCommand.URL = rest_api_1.REST_API.V1.MODEL_ROUTES.CREATE;
13
+ AdminModelRouteCreateCommand.METHOD = http_method_1.HttpMethod.POST;
14
+ })(AdminModelRouteCreateCommand || (exports.AdminModelRouteCreateCommand = AdminModelRouteCreateCommand = {}));
15
+ //# sourceMappingURL=create-model-route.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-model-route.command.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/create-model-route.command.ts"],"names":[],"mappings":";;;AACA,uGAAgG;AAChG,2FAAqF;AACrF,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,iEAA6B,CAAC;IACxC,qCAAQ,GAAG,sDAAwB,CAAC;IACpC,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;IACtC,mCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminModelRouteDeleteCommand {
4
+ const Request: z.ZodVoid;
5
+ const Response: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const METHOD = HttpMethod.DELETE;
9
+ type RequestType = z.infer<typeof Request>;
10
+ type ResponseType = z.infer<typeof Response>;
11
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminModelRouteDeleteCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const shared_1 = require("../../../../shared");
6
+ const http_method_1 = require("../../../../shared/http-method");
7
+ var AdminModelRouteDeleteCommand;
8
+ (function (AdminModelRouteDeleteCommand) {
9
+ AdminModelRouteDeleteCommand.Request = zod_1.z.void();
10
+ AdminModelRouteDeleteCommand.Response = shared_1.DeleteResponseSchema;
11
+ AdminModelRouteDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
12
+ })(AdminModelRouteDeleteCommand || (exports.AdminModelRouteDeleteCommand = AdminModelRouteDeleteCommand = {}));
13
+ //# sourceMappingURL=delete-model-route.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-model-route.command.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/delete-model-route.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAA0D;AAC1D,gEAA4D;AAE5D,IAAiB,4BAA4B,CAM5C;AAND,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,qCAAQ,GAAG,6BAAoB,CAAC;IAChC,mCAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EANgB,4BAA4B,4CAA5B,4BAA4B,QAM5C"}
@@ -0,0 +1,3 @@
1
+ export * from './create-model-route.command';
2
+ export * from './update-model-route.command';
3
+ export * from './delete-model-route.command';