feat(platform): I5 callback inbox, internal ingest, and M6 catalog APIs

Made-with: Cursor
This commit is contained in:
2026-04-06 22:40:21 +08:00
parent b6e110acaf
commit fc0c4b1930
30 changed files with 2646 additions and 3 deletions
+576 -1
View File
@@ -1184,6 +1184,80 @@
}
}
},
"/api/v1/callback-inbox/{id}/status" : {
"patch" : {
"tags" : [ "callback-inbox-controller" ],
"operationId" : "patchStatus_3",
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CallbackInboxStatusPatchRequest"
}
}
},
"required" : true
},
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/CallbackInboxResponse"
}
}
}
}
}
}
},
"/api/v1/callback-inbox/{id}/link" : {
"patch" : {
"tags" : [ "callback-inbox-controller" ],
"operationId" : "patchLink",
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CallbackInboxLinkPatchRequest"
}
}
},
"required" : true
},
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/CallbackInboxResponse"
}
}
}
}
}
}
},
"/api/v1/ping" : {
"get" : {
"tags" : [ "ping-controller" ],
@@ -1205,6 +1279,140 @@
}
}
},
"/api/v1/integration/product-lines" : {
"get" : {
"tags" : [ "integration-catalog-controller" ],
"operationId" : "listProductLines",
"parameters" : [ {
"name" : "page",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 0,
"minimum" : 0
}
}, {
"name" : "size",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 50,
"maximum" : 200,
"minimum" : 1
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/PageResponseProductLineResponse"
}
}
}
}
}
}
},
"/api/v1/integration/product-lines/{id}" : {
"get" : {
"tags" : [ "integration-catalog-controller" ],
"operationId" : "getProductLine",
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ProductLineResponse"
}
}
}
}
}
}
},
"/api/v1/integration/environments" : {
"get" : {
"tags" : [ "integration-catalog-controller" ],
"operationId" : "listEnvironments",
"parameters" : [ {
"name" : "page",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 0,
"minimum" : 0
}
}, {
"name" : "size",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 50,
"maximum" : 200,
"minimum" : 1
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/PageResponseIntegrationEnvironmentResponse"
}
}
}
}
}
}
},
"/api/v1/integration/environments/{id}" : {
"get" : {
"tags" : [ "integration-catalog-controller" ],
"operationId" : "getEnvironment",
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/IntegrationEnvironmentResponse"
}
}
}
}
}
}
},
"/api/v1/dictionaries/{type}" : {
"get" : {
"tags" : [ "dictionary-controller" ],
@@ -1234,10 +1442,138 @@
}
}
},
"/api/v1/callback-inbox" : {
"get" : {
"tags" : [ "callback-inbox-controller" ],
"operationId" : "list_5",
"parameters" : [ {
"name" : "page",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 0,
"minimum" : 0
}
}, {
"name" : "size",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int32",
"default" : 20,
"maximum" : 200,
"minimum" : 1
}
}, {
"name" : "status",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "eventType",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "snCode",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string"
}
}, {
"name" : "projectId",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "productLineId",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "environmentId",
"in" : "query",
"required" : false,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "receivedFrom",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "date-time"
}
}, {
"name" : "receivedTo",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"format" : "date-time"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/PageResponseCallbackInboxResponse"
}
}
}
}
}
}
},
"/api/v1/callback-inbox/{id}" : {
"get" : {
"tags" : [ "callback-inbox-controller" ],
"operationId" : "get_5",
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/CallbackInboxResponse"
}
}
}
}
}
}
},
"/api/v1/audit-events" : {
"get" : {
"tags" : [ "audit-controller" ],
"operationId" : "list_5",
"operationId" : "list_6",
"parameters" : [ {
"name" : "entityType",
"in" : "query",
@@ -1790,6 +2126,114 @@
},
"required" : [ "status" ]
},
"CallbackInboxStatusPatchRequest" : {
"type" : "object",
"properties" : {
"status" : {
"type" : "string",
"minLength" : 1
}
},
"required" : [ "status" ]
},
"CallbackInboxResponse" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64"
},
"sourceSystem" : {
"type" : "string"
},
"externalMessageId" : {
"type" : "string"
},
"schemaVersion" : {
"type" : "string"
},
"eventType" : {
"type" : "string"
},
"status" : {
"type" : "string"
},
"rawPayload" : {
"type" : "string"
},
"idempotencyKey" : {
"type" : "string"
},
"licenseSnId" : {
"type" : "integer",
"format" : "int64"
},
"projectId" : {
"type" : "integer",
"format" : "int64"
},
"contractId" : {
"type" : "integer",
"format" : "int64"
},
"snCode" : {
"type" : "string"
},
"productLineId" : {
"type" : "integer",
"format" : "int64"
},
"integrationEnvironmentId" : {
"type" : "integer",
"format" : "int64"
},
"receivedAt" : {
"type" : "string",
"format" : "date-time"
},
"processedAt" : {
"type" : "string",
"format" : "date-time"
},
"processedByUserId" : {
"type" : "string"
},
"failureReason" : {
"type" : "string"
},
"operatorNote" : {
"type" : "string"
},
"webhookReceiptId" : {
"type" : "string"
},
"createdAt" : {
"type" : "string",
"format" : "date-time"
},
"updatedAt" : {
"type" : "string",
"format" : "date-time"
}
}
},
"CallbackInboxLinkPatchRequest" : {
"type" : "object",
"properties" : {
"licenseSnId" : {
"type" : "integer",
"format" : "int64"
},
"projectId" : {
"type" : "integer",
"format" : "int64"
},
"contractId" : {
"type" : "integer",
"format" : "int64"
}
}
},
"PageResponseProjectResponse" : {
"type" : "object",
"properties" : {
@@ -1836,6 +2280,114 @@
}
}
},
"PageResponseProductLineResponse" : {
"type" : "object",
"properties" : {
"content" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/ProductLineResponse"
}
},
"totalElements" : {
"type" : "integer",
"format" : "int64"
},
"number" : {
"type" : "integer",
"format" : "int32"
},
"size" : {
"type" : "integer",
"format" : "int32"
}
}
},
"ProductLineResponse" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64"
},
"code" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"enabled" : {
"type" : "boolean"
},
"createdAt" : {
"type" : "string",
"format" : "date-time"
},
"updatedAt" : {
"type" : "string",
"format" : "date-time"
}
}
},
"IntegrationEnvironmentResponse" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64"
},
"code" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"bitanswerBaseUrl" : {
"type" : "string"
},
"kind" : {
"type" : "string"
},
"productLineId" : {
"type" : "integer",
"format" : "int64"
},
"createdAt" : {
"type" : "string",
"format" : "date-time"
},
"updatedAt" : {
"type" : "string",
"format" : "date-time"
}
}
},
"PageResponseIntegrationEnvironmentResponse" : {
"type" : "object",
"properties" : {
"content" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/IntegrationEnvironmentResponse"
}
},
"totalElements" : {
"type" : "integer",
"format" : "int64"
},
"number" : {
"type" : "integer",
"format" : "int32"
},
"size" : {
"type" : "integer",
"format" : "int32"
}
}
},
"DictionaryItemResponse" : {
"type" : "object",
"properties" : {
@@ -1920,6 +2472,29 @@
}
}
},
"PageResponseCallbackInboxResponse" : {
"type" : "object",
"properties" : {
"content" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/CallbackInboxResponse"
}
},
"totalElements" : {
"type" : "integer",
"format" : "int64"
},
"number" : {
"type" : "integer",
"format" : "int32"
},
"size" : {
"type" : "integer",
"format" : "int32"
}
}
},
"AuditEventResponse" : {
"type" : "object",
"properties" : {