@empathyco/x-adapter-platform 1.4.0 → 1.4.1
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/dist/cjs/endpoint-adapters/index.js +0 -3
- package/dist/cjs/endpoint-adapters/index.js.map +1 -1
- package/dist/cjs/mappers/requests/ai/index.js +0 -2
- package/dist/cjs/mappers/requests/ai/index.js.map +1 -1
- package/dist/cjs/mappers/responses/ai/index.js +0 -2
- package/dist/cjs/mappers/responses/ai/index.js.map +1 -1
- package/dist/cjs/platform.adapter.js +0 -6
- package/dist/cjs/platform.adapter.js.map +1 -1
- package/dist/cjs/schemas/models/ai/index.js +0 -2
- package/dist/cjs/schemas/models/ai/index.js.map +1 -1
- package/dist/cjs/schemas/requests/ai/index.js +0 -2
- package/dist/cjs/schemas/requests/ai/index.js.map +1 -1
- package/dist/cjs/schemas/responses/ai/index.js +0 -2
- package/dist/cjs/schemas/responses/ai/index.js.map +1 -1
- package/dist/cjs/types/platform-adapter.types.js.map +1 -1
- package/dist/cjs/types/requests/ai/index.js +0 -2
- package/dist/cjs/types/requests/ai/index.js.map +1 -1
- package/dist/cjs/types/responses/ai/index.js +0 -2
- package/dist/cjs/types/responses/ai/index.js.map +1 -1
- package/dist/esm/endpoint-adapters/index.js +0 -3
- package/dist/esm/endpoint-adapters/index.js.map +1 -1
- package/dist/esm/mappers/requests/ai/index.js +0 -2
- package/dist/esm/mappers/requests/ai/index.js.map +1 -1
- package/dist/esm/mappers/responses/ai/index.js +0 -2
- package/dist/esm/mappers/responses/ai/index.js.map +1 -1
- package/dist/esm/platform.adapter.js +0 -6
- package/dist/esm/platform.adapter.js.map +1 -1
- package/dist/esm/schemas/models/ai/index.js +0 -2
- package/dist/esm/schemas/models/ai/index.js.map +1 -1
- package/dist/esm/schemas/requests/ai/index.js +0 -2
- package/dist/esm/schemas/requests/ai/index.js.map +1 -1
- package/dist/esm/schemas/responses/ai/index.js +0 -2
- package/dist/esm/schemas/responses/ai/index.js.map +1 -1
- package/dist/esm/types/platform-adapter.types.js.map +1 -1
- package/dist/esm/types/requests/ai/index.js +0 -2
- package/dist/esm/types/requests/ai/index.js.map +1 -1
- package/dist/esm/types/responses/ai/index.js +0 -2
- package/dist/esm/types/responses/ai/index.js.map +1 -1
- package/dist/types/endpoint-adapters/index.d.ts +0 -3
- package/dist/types/mappers/requests/ai/index.d.ts +0 -2
- package/dist/types/mappers/responses/ai/index.d.ts +0 -2
- package/dist/types/schemas/models/ai/index.d.ts +0 -2
- package/dist/types/schemas/requests/ai/index.d.ts +0 -2
- package/dist/types/schemas/responses/ai/index.d.ts +0 -2
- package/dist/types/types/platform-adapter.types.d.ts +1 -4
- package/dist/types/types/requests/ai/index.d.ts +0 -2
- package/dist/types/types/responses/ai/index.d.ts +0 -2
- package/package.json +3 -3
- package/report/x-adapter-platform.api.json +117 -1078
- package/report/x-adapter-platform.api.md +0 -76
- package/dist/cjs/endpoint-adapters/ai/questions.endpoint-adapter.js +0 -31
- package/dist/cjs/endpoint-adapters/ai/questions.endpoint-adapter.js.map +0 -1
- package/dist/cjs/endpoint-adapters/ai/summarize.endpoint-adapter.js +0 -33
- package/dist/cjs/endpoint-adapters/ai/summarize.endpoint-adapter.js.map +0 -1
- package/dist/cjs/endpoint-adapters/ai/tasks.endpoint-adapter.js +0 -24
- package/dist/cjs/endpoint-adapters/ai/tasks.endpoint-adapter.js.map +0 -1
- package/dist/cjs/mappers/requests/ai/questions-request.mapper.js +0 -12
- package/dist/cjs/mappers/requests/ai/questions-request.mapper.js.map +0 -1
- package/dist/cjs/mappers/requests/ai/tasks-request.mapper.js +0 -12
- package/dist/cjs/mappers/requests/ai/tasks-request.mapper.js.map +0 -1
- package/dist/cjs/mappers/responses/ai/questions-response.mapper.js +0 -12
- package/dist/cjs/mappers/responses/ai/questions-response.mapper.js.map +0 -1
- package/dist/cjs/mappers/responses/ai/tasks-response.mapper.js +0 -12
- package/dist/cjs/mappers/responses/ai/tasks-response.mapper.js.map +0 -1
- package/dist/cjs/schemas/models/ai/questions.schema.js +0 -18
- package/dist/cjs/schemas/models/ai/questions.schema.js.map +0 -1
- package/dist/cjs/schemas/models/ai/tasks.schema.js +0 -18
- package/dist/cjs/schemas/models/ai/tasks.schema.js.map +0 -1
- package/dist/cjs/schemas/requests/ai/questions-request.schema.js +0 -24
- package/dist/cjs/schemas/requests/ai/questions-request.schema.js.map +0 -1
- package/dist/cjs/schemas/requests/ai/tasks-request.schema.js +0 -13
- package/dist/cjs/schemas/requests/ai/tasks-request.schema.js.map +0 -1
- package/dist/cjs/schemas/responses/ai/questions-response.schema.js +0 -12
- package/dist/cjs/schemas/responses/ai/questions-response.schema.js.map +0 -1
- package/dist/cjs/schemas/responses/ai/tasks-response.schema.js +0 -12
- package/dist/cjs/schemas/responses/ai/tasks-response.schema.js.map +0 -1
- package/dist/cjs/types/requests/ai/questions-request.model.js +0 -3
- package/dist/cjs/types/requests/ai/questions-request.model.js.map +0 -1
- package/dist/cjs/types/requests/ai/tasks-request.model.js +0 -3
- package/dist/cjs/types/requests/ai/tasks-request.model.js.map +0 -1
- package/dist/cjs/types/responses/ai/questions-response.model.js +0 -3
- package/dist/cjs/types/responses/ai/questions-response.model.js.map +0 -1
- package/dist/cjs/types/responses/ai/tasks-response.model.js +0 -3
- package/dist/cjs/types/responses/ai/tasks-response.model.js.map +0 -1
- package/dist/esm/endpoint-adapters/ai/questions.endpoint-adapter.js +0 -28
- package/dist/esm/endpoint-adapters/ai/questions.endpoint-adapter.js.map +0 -1
- package/dist/esm/endpoint-adapters/ai/summarize.endpoint-adapter.js +0 -30
- package/dist/esm/endpoint-adapters/ai/summarize.endpoint-adapter.js.map +0 -1
- package/dist/esm/endpoint-adapters/ai/tasks.endpoint-adapter.js +0 -21
- package/dist/esm/endpoint-adapters/ai/tasks.endpoint-adapter.js.map +0 -1
- package/dist/esm/mappers/requests/ai/questions-request.mapper.js +0 -9
- package/dist/esm/mappers/requests/ai/questions-request.mapper.js.map +0 -1
- package/dist/esm/mappers/requests/ai/tasks-request.mapper.js +0 -9
- package/dist/esm/mappers/requests/ai/tasks-request.mapper.js.map +0 -1
- package/dist/esm/mappers/responses/ai/questions-response.mapper.js +0 -9
- package/dist/esm/mappers/responses/ai/questions-response.mapper.js.map +0 -1
- package/dist/esm/mappers/responses/ai/tasks-response.mapper.js +0 -9
- package/dist/esm/mappers/responses/ai/tasks-response.mapper.js.map +0 -1
- package/dist/esm/schemas/models/ai/questions.schema.js +0 -15
- package/dist/esm/schemas/models/ai/questions.schema.js.map +0 -1
- package/dist/esm/schemas/models/ai/tasks.schema.js +0 -15
- package/dist/esm/schemas/models/ai/tasks.schema.js.map +0 -1
- package/dist/esm/schemas/requests/ai/questions-request.schema.js +0 -21
- package/dist/esm/schemas/requests/ai/questions-request.schema.js.map +0 -1
- package/dist/esm/schemas/requests/ai/tasks-request.schema.js +0 -10
- package/dist/esm/schemas/requests/ai/tasks-request.schema.js.map +0 -1
- package/dist/esm/schemas/responses/ai/questions-response.schema.js +0 -9
- package/dist/esm/schemas/responses/ai/questions-response.schema.js.map +0 -1
- package/dist/esm/schemas/responses/ai/tasks-response.schema.js +0 -9
- package/dist/esm/schemas/responses/ai/tasks-response.schema.js.map +0 -1
- package/dist/esm/types/requests/ai/questions-request.model.js +0 -2
- package/dist/esm/types/requests/ai/questions-request.model.js.map +0 -1
- package/dist/esm/types/requests/ai/tasks-request.model.js +0 -2
- package/dist/esm/types/requests/ai/tasks-request.model.js.map +0 -1
- package/dist/esm/types/responses/ai/questions-response.model.js +0 -2
- package/dist/esm/types/responses/ai/questions-response.model.js.map +0 -1
- package/dist/esm/types/responses/ai/tasks-response.model.js +0 -2
- package/dist/esm/types/responses/ai/tasks-response.model.js.map +0 -1
- package/dist/types/endpoint-adapters/ai/questions.endpoint-adapter.d.ts +0 -7
- package/dist/types/endpoint-adapters/ai/summarize.endpoint-adapter.d.ts +0 -9
- package/dist/types/endpoint-adapters/ai/tasks.endpoint-adapter.d.ts +0 -7
- package/dist/types/mappers/requests/ai/questions-request.mapper.d.ts +0 -8
- package/dist/types/mappers/requests/ai/tasks-request.mapper.d.ts +0 -8
- package/dist/types/mappers/responses/ai/questions-response.mapper.d.ts +0 -8
- package/dist/types/mappers/responses/ai/tasks-response.mapper.d.ts +0 -8
- package/dist/types/schemas/models/ai/questions.schema.d.ts +0 -8
- package/dist/types/schemas/models/ai/tasks.schema.d.ts +0 -8
- package/dist/types/schemas/requests/ai/questions-request.schema.d.ts +0 -8
- package/dist/types/schemas/requests/ai/tasks-request.schema.d.ts +0 -8
- package/dist/types/schemas/responses/ai/questions-response.schema.d.ts +0 -8
- package/dist/types/schemas/responses/ai/tasks-response.schema.d.ts +0 -8
- package/dist/types/types/requests/ai/questions-request.model.d.ts +0 -13
- package/dist/types/types/requests/ai/tasks-request.model.d.ts +0 -8
- package/dist/types/types/responses/ai/questions-response.model.d.ts +0 -8
- package/dist/types/types/responses/ai/tasks-response.model.d.ts +0 -8
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions-response.mapper.js","sourceRoot":"","sources":["../../../../../src/mappers/responses/ai/questions-response.mapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAG1D,yBAAyB,CAAC,CAAA","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsResponse } from '../../../types'\nimport { schemaMapperFactory } from '@empathyco/x-adapter'\nimport { aiQuestionsResponseSchema } from '../../../schemas'\n\n/**\n * Default implementation for the AiQuestionsResponseMapper.\n *\n * @public\n */\nexport const aiQuestionsResponseMapper = schemaMapperFactory<\n PlatformAiQuestionsResponse,\n AiQuestionsResponse\n>(aiQuestionsResponseSchema)\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { schemaMapperFactory } from '@empathyco/x-adapter';
|
|
2
|
-
import { aiTasksResponseSchema } from '../../../schemas';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiTasksResponseMapper.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export const aiTasksResponseMapper = schemaMapperFactory(aiTasksResponseSchema);
|
|
9
|
-
//# sourceMappingURL=tasks-response.mapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-response.mapper.js","sourceRoot":"","sources":["../../../../../src/mappers/responses/ai/tasks-response.mapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,qBAAqB,CACtB,CAAA","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\nimport type { PlatformAiTasksResponse } from '../../../types'\nimport { schemaMapperFactory } from '@empathyco/x-adapter'\nimport { aiTasksResponseSchema } from '../../../schemas'\n\n/**\n * Default implementation for the AiTasksResponseMapper.\n *\n * @public\n */\nexport const aiTasksResponseMapper = schemaMapperFactory<PlatformAiTasksResponse, AiTasksResponse>(\n aiTasksResponseSchema,\n)\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
/**
|
|
3
|
-
* Default implementation for the AIQuestionsSchema.
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export const aiQuestionsSchema = createMutableSchema({
|
|
8
|
-
context: 'context',
|
|
9
|
-
items: 'items',
|
|
10
|
-
taskId: 'taskId',
|
|
11
|
-
numItems: 'numItems',
|
|
12
|
-
totalItems: 'totalItems',
|
|
13
|
-
resolved: 'resolved',
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=questions.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/questions.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAGlD;IACA,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAA","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AIQuestionsSchema.\n *\n * @public\n */\nexport const aiQuestionsSchema = createMutableSchema<\n PlatformAiQuestionsResponse,\n AiQuestionsResponse\n>({\n context: 'context',\n items: 'items',\n taskId: 'taskId',\n numItems: 'numItems',\n totalItems: 'totalItems',\n resolved: 'resolved',\n})\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
import { aiQuestionsSchema } from './questions.schema';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AITasksSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export const aiTasksSchema = createMutableSchema({
|
|
9
|
-
result: {
|
|
10
|
-
$path: 'result',
|
|
11
|
-
$subSchema: aiQuestionsSchema,
|
|
12
|
-
},
|
|
13
|
-
steps: 'steps',
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=tasks.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/tasks.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAA2C;IACzF,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,iBAAiB;KAC9B;IACD,KAAK,EAAE,OAAO;CACf,CAAC,CAAA","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\nimport type { PlatformAiTasksResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { aiQuestionsSchema } from './questions.schema'\n\n/**\n * Default implementation for the AITasksSchema.\n *\n * @public\n */\nexport const aiTasksSchema = createMutableSchema<PlatformAiTasksResponse, AiTasksResponse>({\n result: {\n $path: 'result',\n $subSchema: aiQuestionsSchema,\n },\n steps: 'steps',\n})\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
/**
|
|
3
|
-
* Default implementation for the AiQuestionsRequestSchema.
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export const aiQuestionsRequestSchema = createMutableSchema({
|
|
8
|
-
context: ({ lang, query, extraParams }) => {
|
|
9
|
-
const context = { lang, query };
|
|
10
|
-
if (extraParams && typeof extraParams === 'object') {
|
|
11
|
-
if ('instance' in extraParams) {
|
|
12
|
-
context.instance = extraParams.instance;
|
|
13
|
-
}
|
|
14
|
-
if ('filters' in extraParams) {
|
|
15
|
-
context.filters = extraParams.filters;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return context;
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=questions-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/questions-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAyC,EAAE;QAC/E,MAAM,OAAO,GAA0C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtE,IAAI,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACnD,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;gBAC9B,OAAO,CAAC,QAAQ,GAAI,WAAqC,CAAC,QAAQ,CAAA;YACpE,CAAC;YACD,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,OAAO,CAAC,OAAO,GAAI,WAAqD,CAAC,OAAO,CAAA;YAClF,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA","sourcesContent":["import type { AiQuestionsRequest } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiQuestionsRequestSchema.\n *\n * @public\n */\nexport const aiQuestionsRequestSchema = createMutableSchema<\n AiQuestionsRequest,\n PlatformAiQuestionsRequest\n>({\n context: ({ lang, query, extraParams }): PlatformAiQuestionsRequest['context'] => {\n const context: PlatformAiQuestionsRequest['context'] = { lang, query }\n if (extraParams && typeof extraParams === 'object') {\n if ('instance' in extraParams) {\n context.instance = (extraParams as { instance?: string }).instance\n }\n if ('filters' in extraParams) {\n context.filters = (extraParams as { filters?: Record<string, unknown> }).filters\n }\n }\n return context\n },\n})\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
/**
|
|
3
|
-
* Default implementation for the AiTasksRequestSchema.
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export const aiTasksRequestSchema = createMutableSchema({
|
|
8
|
-
taskId: 'taskId',
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=tasks-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/tasks-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAyC;IAC9F,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAA","sourcesContent":["import type { AiTasksRequest } from '@empathyco/x-types'\nimport type { PlatformAiTasksRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiTasksRequestSchema.\n *\n * @public\n */\nexport const aiTasksRequestSchema = createMutableSchema<AiTasksRequest, PlatformAiTasksRequest>({\n taskId: 'taskId',\n})\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
import { aiQuestionsSchema } from '../../models/ai/questions.schema';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AIQuestionsResponseSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export const aiQuestionsResponseSchema = createMutableSchema(aiQuestionsSchema);
|
|
9
|
-
//# sourceMappingURL=questions-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions-response.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/responses/ai/questions-response.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEpE;;;;GAIG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAG1D,iBAAiB,CAAC,CAAA","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsResponse } from '../../../types/responses'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { aiQuestionsSchema } from '../../models/ai/questions.schema'\n\n/**\n * Default implementation for the AIQuestionsResponseSchema.\n *\n * @public\n */\n\nexport const aiQuestionsResponseSchema = createMutableSchema<\n PlatformAiQuestionsResponse,\n AiQuestionsResponse\n>(aiQuestionsSchema)\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
import { aiTasksSchema } from '../../models/ai/tasks.schema';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AITasksResponseSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export const aiTasksResponseSchema = createMutableSchema(aiTasksSchema);
|
|
9
|
-
//# sourceMappingURL=tasks-response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-response.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/responses/ai/tasks-response.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAE5D;;;;GAIG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,aAAa,CACd,CAAA","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\nimport type { PlatformAiTasksResponse } from '../../../types/responses'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { aiTasksSchema } from '../../models/ai/tasks.schema'\n\n/**\n * Default implementation for the AITasksResponseSchema.\n *\n * @public\n */\n\nexport const aiTasksResponseSchema = createMutableSchema<PlatformAiTasksResponse, AiTasksResponse>(\n aiTasksSchema,\n)\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions-request.model.js","sourceRoot":"","sources":["../../../../../src/types/requests/ai/questions-request.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Request for the `Questions v1` endpoint.\n *\n * @public\n */\nexport interface PlatformAiQuestionsRequest {\n context: {\n lang: string\n instance?: string\n filters?: Record<string, unknown>\n query?: string\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-request.model.js","sourceRoot":"","sources":["../../../../../src/types/requests/ai/tasks-request.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Request for the `Tasks v1` endpoint.\n *\n * @public\n */\nexport interface PlatformAiTasksRequest {\n taskId: string\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/questions-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `questions` endpoint.\n *\n * @public\n */\nexport interface PlatformAiQuestionsResponse extends AiQuestionsResponse {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/tasks-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `tasks` endpoint.\n *\n * @public\n */\nexport interface PlatformAiTasksResponse extends AiTasksResponse {}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsRequest, AiQuestionsResponse } from '@empathyco/x-types';
|
|
2
|
-
/**
|
|
3
|
-
* Default adapter for the questions v1 endpoint.
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare const aiQuestionsEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<AiQuestionsRequest, AiQuestionsResponse>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AiSuggestionsRequest } from '@empathyco/x-types';
|
|
2
|
-
/**
|
|
3
|
-
* Default adapter for the Overview summarize streaming endpoint.
|
|
4
|
-
*
|
|
5
|
-
* Mirrors the aiSuggestions endpoint adapter.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare const aiSummarizeEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<AiSuggestionsRequest, Response>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AiTasksRequest, AiTasksResponse } from '@empathyco/x-types';
|
|
2
|
-
/**
|
|
3
|
-
* Default adapter for the questions v1 endpoint.
|
|
4
|
-
*
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare const aiTasksEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<AiTasksRequest, AiTasksResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsRequest } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiQuestionsRequest } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AIQuestionsRequestMapper.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiQuestionsRequestMapper: import("@empathyco/x-adapter").Mapper<AiQuestionsRequest, PlatformAiQuestionsRequest>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiTasksRequest } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiTasksRequest } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiTasksRequestMapper.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiTasksRequestMapper: import("@empathyco/x-adapter").Mapper<AiTasksRequest, PlatformAiTasksRequest>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiQuestionsResponse } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiQuestionsResponseMapper.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiQuestionsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformAiQuestionsResponse, AiQuestionsResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiTasksResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiTasksResponse } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiTasksResponseMapper.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiTasksResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformAiTasksResponse, AiTasksResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiQuestionsResponse } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AIQuestionsSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiQuestionsSchema: import("@empathyco/x-adapter").MutableSchema<PlatformAiQuestionsResponse, AiQuestionsResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiTasksResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiTasksResponse } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AITasksSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiTasksSchema: import("@empathyco/x-adapter").MutableSchema<PlatformAiTasksResponse, AiTasksResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsRequest } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiQuestionsRequest } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiQuestionsRequestSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiQuestionsRequestSchema: import("@empathyco/x-adapter").MutableSchema<AiQuestionsRequest, PlatformAiQuestionsRequest>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiTasksRequest } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiTasksRequest } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AiTasksRequestSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiTasksRequestSchema: import("@empathyco/x-adapter").MutableSchema<AiTasksRequest, PlatformAiTasksRequest>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiQuestionsResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiQuestionsResponse } from '../../../types/responses';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AIQuestionsResponseSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiQuestionsResponseSchema: import("@empathyco/x-adapter").MutableSchema<PlatformAiQuestionsResponse, AiQuestionsResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AiTasksResponse } from '@empathyco/x-types';
|
|
2
|
-
import type { PlatformAiTasksResponse } from '../../../types/responses';
|
|
3
|
-
/**
|
|
4
|
-
* Default implementation for the AITasksResponseSchema.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const aiTasksResponseSchema: import("@empathyco/x-adapter").MutableSchema<PlatformAiTasksResponse, AiTasksResponse>;
|