@ai-grator/api 0.1.30 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/endpoints/commands/register.command.ts +1 -0
- package/build/auth/endpoints/commands/register.command.d.ts +2 -0
- package/build/auth/endpoints/commands/register.command.d.ts.map +1 -1
- package/build/auth/endpoints/commands/register.command.js +1 -0
- package/build/errors/errors.d.ts +25 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +25 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/model-page/endpoints/index.d.ts +3 -0
- package/build/model-page/endpoints/index.d.ts.map +1 -0
- package/build/model-page/endpoints/index.js +18 -0
- package/build/model-page/endpoints/model-page.d.ts +6 -0
- package/build/model-page/endpoints/model-page.d.ts.map +1 -0
- package/build/model-page/endpoints/model-page.js +8 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts +90 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts.map +1 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.js +24 -0
- package/build/model-page/endpoints/queries/index.d.ts +3 -0
- package/build/model-page/endpoints/queries/index.d.ts.map +1 -0
- package/build/model-page/endpoints/queries/index.js +18 -0
- package/build/model-page/endpoints/queries/list-public-models.query.d.ts +39 -0
- package/build/model-page/endpoints/queries/list-public-models.query.d.ts.map +1 -0
- package/build/model-page/endpoints/queries/list-public-models.query.js +19 -0
- package/build/model-page/index.d.ts +3 -0
- package/build/model-page/index.d.ts.map +1 -0
- package/build/model-page/index.js +18 -0
- package/build/model-page/models/index.d.ts +3 -0
- package/build/model-page/models/index.d.ts.map +1 -0
- package/build/model-page/models/index.js +18 -0
- package/build/model-page/models/public-model-card.schema.d.ts +16 -0
- package/build/model-page/models/public-model-card.schema.d.ts.map +1 -0
- package/build/model-page/models/public-model-card.schema.js +15 -0
- package/build/model-page/models/public-model-detail.schema.d.ts +74 -0
- package/build/model-page/models/public-model-detail.schema.d.ts.map +1 -0
- package/build/model-page/models/public-model-detail.schema.js +36 -0
- package/build/referral/endpoints/referral.d.ts +6 -0
- package/build/referral/endpoints/referral.d.ts.map +1 -1
- package/build/referral/endpoints/referral.js +7 -1
- package/build/referral/enums/index.d.ts +1 -0
- package/build/referral/enums/index.d.ts.map +1 -1
- package/build/referral/enums/index.js +1 -0
- package/build/referral/enums/tool.enum.d.ts +6 -0
- package/build/referral/enums/tool.enum.d.ts.map +1 -0
- package/build/referral/enums/tool.enum.js +9 -0
- package/build/referral/models/index.d.ts +1 -0
- package/build/referral/models/index.d.ts.map +1 -1
- package/build/referral/models/index.js +1 -0
- package/build/referral/models/referral-link-response.schema.d.ts +95 -0
- package/build/referral/models/referral-link-response.schema.d.ts.map +1 -0
- package/build/referral/models/referral-link-response.schema.js +65 -0
- package/build/scripts/generate-openapi.js +36 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +25 -0
- package/index.ts +1 -0
- package/model-page/endpoints/index.ts +2 -0
- package/model-page/endpoints/model-page.ts +6 -0
- package/model-page/endpoints/queries/get-public-model-by-slug.query.ts +24 -0
- package/model-page/endpoints/queries/index.ts +2 -0
- package/model-page/endpoints/queries/list-public-models.query.ts +18 -0
- package/model-page/index.ts +2 -0
- package/model-page/models/index.ts +2 -0
- package/model-page/models/public-model-card.schema.ts +15 -0
- package/model-page/models/public-model-detail.schema.ts +45 -0
- package/package.json +1 -1
- package/referral/endpoints/referral.ts +8 -0
- package/referral/enums/index.ts +1 -0
- package/referral/enums/tool.enum.ts +5 -0
- package/referral/models/index.ts +1 -0
- package/referral/models/referral-link-response.schema.ts +92 -0
- package/scripts/generate-openapi.ts +45 -0
package/errors/errors.ts
CHANGED
|
@@ -702,6 +702,31 @@ export const ERRORS = {
|
|
|
702
702
|
code: 'REFERRAL.UPDATE_ERROR',
|
|
703
703
|
message: 'Не удалось обновить конфигурацию реферальной программы',
|
|
704
704
|
},
|
|
705
|
+
TOOL_REQUIRED_FOR_MODEL: {
|
|
706
|
+
httpCode: 400,
|
|
707
|
+
code: 'REFERRAL.TOOL_REQUIRED_FOR_MODEL',
|
|
708
|
+
message: 'Для выбора модели необходимо указать инструмент',
|
|
709
|
+
},
|
|
710
|
+
LINK_LIMIT_REACHED: {
|
|
711
|
+
httpCode: 400,
|
|
712
|
+
code: 'REFERRAL.LINK_LIMIT_REACHED',
|
|
713
|
+
message: 'Достигнут лимит реферальных ссылок',
|
|
714
|
+
},
|
|
715
|
+
LINK_HAS_REFERRALS: {
|
|
716
|
+
httpCode: 409,
|
|
717
|
+
code: 'REFERRAL.LINK_HAS_REFERRALS',
|
|
718
|
+
message: 'Нельзя удалить ссылку, по которой уже пришли рефералы',
|
|
719
|
+
},
|
|
720
|
+
LINK_NOT_FOUND: {
|
|
721
|
+
httpCode: 404,
|
|
722
|
+
code: 'REFERRAL.LINK_NOT_FOUND',
|
|
723
|
+
message: 'Реферальная ссылка не найдена',
|
|
724
|
+
},
|
|
725
|
+
MODEL_NOT_AVAILABLE_IN_TOOL: {
|
|
726
|
+
httpCode: 400,
|
|
727
|
+
code: 'REFERRAL.MODEL_NOT_AVAILABLE_IN_TOOL',
|
|
728
|
+
message: 'Выбранная модель недоступна в этом инструменте',
|
|
729
|
+
},
|
|
705
730
|
},
|
|
706
731
|
EMAIL: {
|
|
707
732
|
SEND_ERROR: {
|
package/index.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { PublicModelDetailSchema } from '../../models';
|
|
4
|
+
import { PUBLIC_MODEL_ROUTES } from '../model-page';
|
|
5
|
+
|
|
6
|
+
export const GetPublicModelBySlugQueryParams = z.object({
|
|
7
|
+
slug: z.string().min(1),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetPublicModelBySlugQueryResponse = PublicModelDetailSchema;
|
|
11
|
+
|
|
12
|
+
export const GetPublicModelBySlugQuery = defineContract({
|
|
13
|
+
method: HTTP_METHODS.GET,
|
|
14
|
+
path: PUBLIC_MODEL_ROUTES.GET_BY_SLUG(':slug'),
|
|
15
|
+
summary: 'Get published model by slug',
|
|
16
|
+
request: {
|
|
17
|
+
params: GetPublicModelBySlugQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: GetPublicModelBySlugQueryResponse,
|
|
21
|
+
404: HttpErrorResponseSchema,
|
|
22
|
+
500: HttpErrorResponseSchema,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { PublicModelCardSchema } from '../../models';
|
|
4
|
+
import { PUBLIC_MODEL_ROUTES } from '../model-page';
|
|
5
|
+
|
|
6
|
+
export const ListPublicModelsQueryResponse = z.object({
|
|
7
|
+
models: z.array(PublicModelCardSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const ListPublicModelsQuery = defineContract({
|
|
11
|
+
method: HTTP_METHODS.GET,
|
|
12
|
+
path: PUBLIC_MODEL_ROUTES.LIST,
|
|
13
|
+
summary: 'List published models (chat, image, video)',
|
|
14
|
+
responses: {
|
|
15
|
+
200: ListPublicModelsQueryResponse,
|
|
16
|
+
500: HttpErrorResponseSchema,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IconSchema } from '../../_common';
|
|
3
|
+
import { MODEL_CATEGORY } from '../../model-catalog';
|
|
4
|
+
|
|
5
|
+
export const PublicModelCardSchema = z.object({
|
|
6
|
+
slug: z.string().min(1),
|
|
7
|
+
title: z.string().min(1),
|
|
8
|
+
description: z.string().nullable(),
|
|
9
|
+
vendorName: z.string().min(1),
|
|
10
|
+
icons: IconSchema,
|
|
11
|
+
category: z.enum(MODEL_CATEGORY),
|
|
12
|
+
order: z.number().int(),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export type PublicModelCardSchemaType = z.infer<typeof PublicModelCardSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FILE_TYPE } from '../../file';
|
|
3
|
+
import { PublicModelCardSchema } from './public-model-card.schema';
|
|
4
|
+
|
|
5
|
+
export const PublicChatModelCapabilitiesSchema = z.object({
|
|
6
|
+
reasoning: z.boolean(),
|
|
7
|
+
webSearch: z.boolean(),
|
|
8
|
+
supportedFileTypes: z.array(z.enum(FILE_TYPE)),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const PublicChatModelDetailsSchema = z.object({
|
|
12
|
+
type: z.array(z.string()),
|
|
13
|
+
features: z.array(z.string()),
|
|
14
|
+
maxMessageLength: z.number().int().positive(),
|
|
15
|
+
maxContextWindow: z.number().int().positive(),
|
|
16
|
+
capabilities: PublicChatModelCapabilitiesSchema,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const PublicGenerationModelDetailsSchema = z.object({
|
|
20
|
+
supportedInputFileTypes: z.array(z.enum(FILE_TYPE)),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const PublicModelContentSectionSchema = z.object({
|
|
24
|
+
id: z.string().min(1),
|
|
25
|
+
heading: z.string().min(1),
|
|
26
|
+
body: z.string().min(1),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const PublicModelContentSchema = z.object({
|
|
30
|
+
sections: z.array(PublicModelContentSectionSchema),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const PublicModelDetailSchema = PublicModelCardSchema.extend({
|
|
34
|
+
seoTitle: z.string().min(1),
|
|
35
|
+
seoDescription: z.string().nullable(),
|
|
36
|
+
content: PublicModelContentSchema.nullable(),
|
|
37
|
+
chat: PublicChatModelDetailsSchema.nullable(),
|
|
38
|
+
generation: PublicGenerationModelDetailsSchema.nullable(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export type PublicModelContentSchemaType = z.infer<typeof PublicModelContentSchema>;
|
|
42
|
+
export type PublicChatModelCapabilitiesSchemaType = z.infer<typeof PublicChatModelCapabilitiesSchema>;
|
|
43
|
+
export type PublicChatModelDetailsSchemaType = z.infer<typeof PublicChatModelDetailsSchema>;
|
|
44
|
+
export type PublicGenerationModelDetailsSchemaType = z.infer<typeof PublicGenerationModelDetailsSchema>;
|
|
45
|
+
export type PublicModelDetailSchemaType = z.infer<typeof PublicModelDetailSchema>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export const REFERRAL_CONTROLLER = 'referral' as const;
|
|
2
2
|
|
|
3
|
+
export const REFERRAL_LINK_PATH = 'r' as const;
|
|
4
|
+
|
|
5
|
+
export const REFERRAL_UTM_MEDIUM = 'referral' as const;
|
|
6
|
+
|
|
3
7
|
export const REFERRAL_ROUTES = {
|
|
4
8
|
GET_CONFIG: 'config',
|
|
5
9
|
GET_STATS: 'stats',
|
|
6
10
|
GET_BONUS_HISTORY: 'bonus-history',
|
|
11
|
+
CREATE_LINK: 'link',
|
|
12
|
+
GET_LINKS: 'links',
|
|
13
|
+
DELETE_LINK: 'link/:code',
|
|
14
|
+
RESOLVE_LINK: 'resolve/:code',
|
|
7
15
|
} as const;
|
package/referral/enums/index.ts
CHANGED
package/referral/models/index.ts
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TOOL } from '../enums';
|
|
3
|
+
|
|
4
|
+
export const CreateReferralLinkBodySchema = z.object({
|
|
5
|
+
tool: z.enum(TOOL).optional(),
|
|
6
|
+
modelUuid: z.uuid().optional(),
|
|
7
|
+
source: z.string().trim().min(1).max(100).optional(),
|
|
8
|
+
description: z.string().trim().min(1).max(200).optional(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export type CreateReferralLinkBodySchemaType = z.infer<typeof CreateReferralLinkBodySchema>;
|
|
12
|
+
|
|
13
|
+
export const CreateReferralLinkResponseSchema = z.object({
|
|
14
|
+
link: z.url(),
|
|
15
|
+
code: z.string(),
|
|
16
|
+
description: z.string().nullable(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export type CreateReferralLinkResponseSchemaType = z.infer<typeof CreateReferralLinkResponseSchema>;
|
|
20
|
+
|
|
21
|
+
export const ReferralLinkListItemSchema = z.object({
|
|
22
|
+
code: z.string(),
|
|
23
|
+
link: z.url(),
|
|
24
|
+
tool: z.enum(TOOL).nullable(),
|
|
25
|
+
modelUuid: z.uuid().nullable(),
|
|
26
|
+
source: z.string().nullable(),
|
|
27
|
+
description: z.string().nullable(),
|
|
28
|
+
referralsCount: z.number().int().nonnegative(),
|
|
29
|
+
createdAt: z.iso.datetime(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export type ReferralLinkListItemSchemaType = z.infer<typeof ReferralLinkListItemSchema>;
|
|
33
|
+
|
|
34
|
+
export const GetReferralLinksResponseSchema = z.object({
|
|
35
|
+
links: z.array(ReferralLinkListItemSchema),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type GetReferralLinksResponseSchemaType = z.infer<typeof GetReferralLinksResponseSchema>;
|
|
39
|
+
|
|
40
|
+
export const DeleteReferralLinkParamsSchema = z.object({
|
|
41
|
+
code: z.string().min(1).max(32),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export type DeleteReferralLinkParamsSchemaType = z.infer<typeof DeleteReferralLinkParamsSchema>;
|
|
45
|
+
|
|
46
|
+
export const DeleteReferralLinkResponseSchema = z.object({
|
|
47
|
+
isDeleted: z.literal(true),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export type DeleteReferralLinkResponseSchemaType = z.infer<typeof DeleteReferralLinkResponseSchema>;
|
|
51
|
+
|
|
52
|
+
export const ResolveReferralLinkParamsSchema = z.object({
|
|
53
|
+
code: z.string().min(1).max(32),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export type ResolveReferralLinkParamsSchemaType = z.infer<typeof ResolveReferralLinkParamsSchema>;
|
|
57
|
+
|
|
58
|
+
export const ReferralLinkVisitParamsSchema = z.object({
|
|
59
|
+
referral: z.object({
|
|
60
|
+
code: z.string(),
|
|
61
|
+
refId: z.uuid(),
|
|
62
|
+
tool: z.enum(TOOL).nullable(),
|
|
63
|
+
model: z.string().nullable(),
|
|
64
|
+
source: z.string().nullable(),
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export type ReferralLinkVisitParamsSchemaType = z.infer<typeof ReferralLinkVisitParamsSchema>;
|
|
69
|
+
|
|
70
|
+
export const ReferralLinkUtmSchema = z.object({
|
|
71
|
+
utm_source: z.string(),
|
|
72
|
+
utm_medium: z.string(),
|
|
73
|
+
utm_campaign: z.string(),
|
|
74
|
+
utm_content: z.string().nullable(),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export type ReferralLinkUtmSchemaType = z.infer<typeof ReferralLinkUtmSchema>;
|
|
78
|
+
|
|
79
|
+
export const ResolveReferralLinkResponseSchema = z.object({
|
|
80
|
+
referrerId: z.uuid(),
|
|
81
|
+
tool: z.enum(TOOL).nullable(),
|
|
82
|
+
modelUuid: z.uuid().nullable(),
|
|
83
|
+
modelName: z.string().nullable(),
|
|
84
|
+
source: z.string().nullable(),
|
|
85
|
+
metrica: z.object({
|
|
86
|
+
params: ReferralLinkVisitParamsSchema,
|
|
87
|
+
utm: ReferralLinkUtmSchema,
|
|
88
|
+
utmQuery: z.string(),
|
|
89
|
+
}),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export type ResolveReferralLinkResponseSchemaType = z.infer<typeof ResolveReferralLinkResponseSchema>;
|
|
@@ -215,12 +215,22 @@ import {
|
|
|
215
215
|
CreatePaymentCommandResponse,
|
|
216
216
|
} from '../payment/endpoints/commands/create-payment.command';
|
|
217
217
|
import { AI_MODELS_CONTROLLER } from '../ai-model/endpoints/ai-model';
|
|
218
|
+
import { PUBLIC_MODEL_CONTROLLER } from '../model-page/endpoints/model-page';
|
|
218
219
|
import {
|
|
219
220
|
GetAiModelByUuidQuery,
|
|
220
221
|
GetAiModelByUuidQueryParams,
|
|
221
222
|
GetAiModelByUuidQueryResponse,
|
|
222
223
|
} from '../ai-model/endpoints/queries/get-ai-model-by-uuid.query';
|
|
223
224
|
import { GetAllAiModelsQuery, GetAllAiModelsQueryResponse } from '../ai-model/endpoints/queries/get-ai-models.query';
|
|
225
|
+
import {
|
|
226
|
+
GetPublicModelBySlugQuery,
|
|
227
|
+
GetPublicModelBySlugQueryParams,
|
|
228
|
+
GetPublicModelBySlugQueryResponse,
|
|
229
|
+
} from '../model-page/endpoints/queries/get-public-model-by-slug.query';
|
|
230
|
+
import {
|
|
231
|
+
ListPublicModelsQuery,
|
|
232
|
+
ListPublicModelsQueryResponse,
|
|
233
|
+
} from '../model-page/endpoints/queries/list-public-models.query';
|
|
224
234
|
import { MODEL_CATALOG_CONTROLLER } from '../model-catalog/endpoints/model-catalog';
|
|
225
235
|
import {
|
|
226
236
|
GetModelCatalogQuery,
|
|
@@ -466,6 +476,9 @@ async function main() {
|
|
|
466
476
|
registerSchema('AiModelsGetAllResponse', GetAllAiModelsQueryResponse);
|
|
467
477
|
registerSchema('AiModelsGetByUuidParams', GetAiModelByUuidQueryParams);
|
|
468
478
|
registerSchema('AiModelsGetByUuidResponse', GetAiModelByUuidQueryResponse);
|
|
479
|
+
registerSchema('PublicModelsListResponse', ListPublicModelsQueryResponse);
|
|
480
|
+
registerSchema('PublicModelsGetBySlugParams', GetPublicModelBySlugQueryParams);
|
|
481
|
+
registerSchema('PublicModelsGetBySlugResponse', GetPublicModelBySlugQueryResponse);
|
|
469
482
|
registerSchema('ModelCatalogGetAllResponse', GetModelCatalogQueryResponse);
|
|
470
483
|
registerSchema('GenerationModelGetAllResponse', GetGenerationModelsQueryResponse);
|
|
471
484
|
registerSchema('GenerationModelGetByTypeParams', GetGenerationModelsByTypeQueryParams);
|
|
@@ -612,6 +625,7 @@ async function main() {
|
|
|
612
625
|
DeleteMarketplaceCardCommand,
|
|
613
626
|
];
|
|
614
627
|
const aiModelContracts: HttpContract[] = [GetAllAiModelsQuery, GetAiModelByUuidQuery];
|
|
628
|
+
const publicModelContracts: HttpContract[] = [ListPublicModelsQuery, GetPublicModelBySlugQuery];
|
|
615
629
|
const modelCatalogContracts: HttpContract[] = [GetModelCatalogQuery];
|
|
616
630
|
const generationModelContracts: HttpContract[] = [
|
|
617
631
|
GetGenerationModelsQuery,
|
|
@@ -908,6 +922,37 @@ async function main() {
|
|
|
908
922
|
});
|
|
909
923
|
}
|
|
910
924
|
|
|
925
|
+
for (const contract of publicModelContracts) {
|
|
926
|
+
const method = contract.method.toLowerCase();
|
|
927
|
+
if (!supportedHttpMethods.has(method)) {
|
|
928
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
registry.registerPath({
|
|
932
|
+
method: method as 'get' | 'post' | 'put' | 'patch' | 'delete',
|
|
933
|
+
path: toOpenApiPath(PUBLIC_MODEL_CONTROLLER, contract.path),
|
|
934
|
+
summary: contract.summary,
|
|
935
|
+
tags: ['Models (public)'],
|
|
936
|
+
request: {
|
|
937
|
+
...(contract.request?.body
|
|
938
|
+
? {
|
|
939
|
+
body: {
|
|
940
|
+
required: true,
|
|
941
|
+
content: {
|
|
942
|
+
'application/json': {
|
|
943
|
+
schema: resolveSchema(contract.request.body),
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
|
+
},
|
|
947
|
+
}
|
|
948
|
+
: {}),
|
|
949
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
950
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
951
|
+
},
|
|
952
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
|
|
911
956
|
for (const contract of modelCatalogContracts) {
|
|
912
957
|
const method = contract.method.toLowerCase();
|
|
913
958
|
if (!supportedHttpMethods.has(method)) {
|