@adcp/client 2.6.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/adcp-async-handler.js +10 -8
- package/bin/adcp-config.js +13 -6
- package/bin/adcp.js +33 -34
- package/dist/lib/auth/index.js +7 -7
- package/dist/lib/auth/index.js.map +1 -1
- package/dist/lib/core/ADCPClient.d.ts +9 -1
- package/dist/lib/core/ADCPClient.d.ts.map +1 -1
- package/dist/lib/core/ADCPClient.js +111 -91
- package/dist/lib/core/ADCPClient.js.map +1 -1
- package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -1
- package/dist/lib/core/ADCPMultiAgentClient.js +6 -9
- package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/core/AgentClient.js +44 -11
- package/dist/lib/core/AgentClient.js.map +1 -1
- package/dist/lib/core/AsyncHandler.d.ts +2 -1
- package/dist/lib/core/AsyncHandler.d.ts.map +1 -1
- package/dist/lib/core/AsyncHandler.js +3 -3
- package/dist/lib/core/AsyncHandler.js.map +1 -1
- package/dist/lib/core/ConfigurationManager.d.ts.map +1 -1
- package/dist/lib/core/ConfigurationManager.js +8 -17
- package/dist/lib/core/ConfigurationManager.js.map +1 -1
- package/dist/lib/core/ConversationTypes.d.ts.map +1 -1
- package/dist/lib/core/CreativeAgentClient.d.ts.map +1 -1
- package/dist/lib/core/CreativeAgentClient.js +3 -3
- package/dist/lib/core/CreativeAgentClient.js.map +1 -1
- package/dist/lib/core/ProtocolResponseParser.d.ts +1 -1
- package/dist/lib/core/ProtocolResponseParser.d.ts.map +1 -1
- package/dist/lib/core/ProtocolResponseParser.js +4 -4
- package/dist/lib/core/ProtocolResponseParser.js.map +1 -1
- package/dist/lib/core/ResponseValidator.d.ts.map +1 -1
- package/dist/lib/core/ResponseValidator.js +1 -1
- package/dist/lib/core/ResponseValidator.js.map +1 -1
- package/dist/lib/core/TaskEventTypes.js +1 -1
- package/dist/lib/core/TaskExecutor.d.ts +3 -0
- package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
- package/dist/lib/core/TaskExecutor.js +110 -54
- package/dist/lib/core/TaskExecutor.js.map +1 -1
- package/dist/lib/discovery/property-crawler.d.ts.map +1 -1
- package/dist/lib/discovery/property-crawler.js +22 -19
- package/dist/lib/discovery/property-crawler.js.map +1 -1
- package/dist/lib/discovery/property-index.d.ts.map +1 -1
- package/dist/lib/discovery/property-index.js +5 -5
- package/dist/lib/discovery/property-index.js.map +1 -1
- package/dist/lib/discovery/types.d.ts.map +1 -1
- package/dist/lib/errors/index.d.ts.map +1 -1
- package/dist/lib/errors/index.js +3 -3
- package/dist/lib/errors/index.js.map +1 -1
- package/dist/lib/handlers/types.d.ts.map +1 -1
- package/dist/lib/handlers/types.js.map +1 -1
- package/dist/lib/index.d.ts +11 -11
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +21 -7
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/protocols/a2a.js +20 -20
- package/dist/lib/protocols/a2a.js.map +1 -1
- package/dist/lib/protocols/index.d.ts.map +1 -1
- package/dist/lib/protocols/index.js +5 -5
- package/dist/lib/protocols/index.js.map +1 -1
- package/dist/lib/protocols/mcp.d.ts.map +1 -1
- package/dist/lib/protocols/mcp.js +30 -69
- package/dist/lib/protocols/mcp.js.map +1 -1
- package/dist/lib/storage/MemoryStorage.d.ts.map +1 -1
- package/dist/lib/storage/MemoryStorage.js +4 -4
- package/dist/lib/storage/MemoryStorage.js.map +1 -1
- package/dist/lib/storage/interfaces.d.ts.map +1 -1
- package/dist/lib/types/adcp.d.ts.map +1 -1
- package/dist/lib/types/core.generated.d.ts +46 -0
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js +2 -2
- package/dist/lib/types/index.d.ts +1 -1
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.d.ts +800 -316
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +97 -90
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +225 -175
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/types/tools.generated.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +15 -10
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/logger.js +6 -6
- package/dist/lib/utils/preview-utils.d.ts +87 -0
- package/dist/lib/utils/preview-utils.d.ts.map +1 -0
- package/dist/lib/utils/preview-utils.js +322 -0
- package/dist/lib/utils/preview-utils.js.map +1 -0
- package/dist/lib/utils/protocol-detection.d.ts.map +1 -1
- package/dist/lib/utils/protocol-detection.js +4 -4
- package/dist/lib/utils/protocol-detection.js.map +1 -1
- package/dist/lib/validation/index.d.ts.map +1 -1
- package/dist/lib/validation/index.js +5 -5
- package/dist/lib/validation/index.js.map +1 -1
- package/dist/lib/version.d.ts +5 -5
- package/dist/lib/version.js +5 -5
- package/package.json +9 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.generated.js","sourceRoot":"","sources":["../../../src/lib/types/tools.generated.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,uCAAuC;;
|
|
1
|
+
{"version":3,"file":"tools.generated.js","sourceRoot":"","sources":["../../../src/lib/types/tools.generated.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,uCAAuC;;AAq7GvC;;GAEG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CreativeFormat } from '../types';
|
|
2
2
|
export { logger, createLogger, type LogLevel, type LoggerConfig } from './logger';
|
|
3
|
+
export { batchPreviewProducts, batchPreviewFormats, clearPreviewCache, type PreviewResult, type BatchPreviewOptions, } from './preview-utils';
|
|
3
4
|
export declare const REQUEST_TIMEOUT: number;
|
|
4
5
|
export declare const MAX_CONCURRENT: number;
|
|
5
6
|
export declare const STANDARD_FORMATS: CreativeFormat[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAIlF,eAAO,MAAM,eAAe,QAAmD,CAAC;AAChF,eAAO,MAAM,cAAc,QAA8C,CAAC;AAG1E,eAAO,MAAM,gBAAgB,EAAE,cAAc,EA8C5C,CAAC;AAEF;;GAEG;AACH,qBAAa,cAAc;IAOb,OAAO,CAAC,OAAO;IAN3B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAK;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;gBAElB,OAAO,EAAE,MAAM;IAE7B,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAoB/C,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,SAAS;CASlB;AAKD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAKjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,cAAc,EAAE,CAErD"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAIlF,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AAGzB,eAAO,MAAM,eAAe,QAAmD,CAAC;AAChF,eAAO,MAAM,cAAc,QAA8C,CAAC;AAG1E,eAAO,MAAM,gBAAgB,EAAE,cAAc,EA8C5C,CAAC;AAEF;;GAEG;AACH,qBAAa,cAAc;IAOb,OAAO,CAAC,OAAO;IAN3B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAK;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;gBAElB,OAAO,EAAE,MAAM;IAE7B,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAoB/C,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,SAAS;CASlB;AAKD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAKjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,cAAc,EAAE,CAErD"}
|
package/dist/lib/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CircuitBreaker = exports.STANDARD_FORMATS = exports.MAX_CONCURRENT = exports.REQUEST_TIMEOUT = exports.createLogger = exports.logger = void 0;
|
|
3
|
+
exports.CircuitBreaker = exports.STANDARD_FORMATS = exports.MAX_CONCURRENT = exports.REQUEST_TIMEOUT = exports.clearPreviewCache = exports.batchPreviewFormats = exports.batchPreviewProducts = exports.createLogger = exports.logger = void 0;
|
|
4
4
|
exports.getCircuitBreaker = getCircuitBreaker;
|
|
5
5
|
exports.getStandardFormats = getStandardFormats;
|
|
6
6
|
// Re-export logger utilities
|
|
@@ -8,6 +8,11 @@ var logger_1 = require("./logger");
|
|
|
8
8
|
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
|
|
9
9
|
Object.defineProperty(exports, "createLogger", { enumerable: true, get: function () { return logger_1.createLogger; } });
|
|
10
10
|
const logger_2 = require("./logger");
|
|
11
|
+
// Re-export preview utilities
|
|
12
|
+
var preview_utils_1 = require("./preview-utils");
|
|
13
|
+
Object.defineProperty(exports, "batchPreviewProducts", { enumerable: true, get: function () { return preview_utils_1.batchPreviewProducts; } });
|
|
14
|
+
Object.defineProperty(exports, "batchPreviewFormats", { enumerable: true, get: function () { return preview_utils_1.batchPreviewFormats; } });
|
|
15
|
+
Object.defineProperty(exports, "clearPreviewCache", { enumerable: true, get: function () { return preview_utils_1.clearPreviewCache; } });
|
|
11
16
|
// Configuration constants
|
|
12
17
|
exports.REQUEST_TIMEOUT = parseInt(process.env.REQUEST_TIMEOUT || '30000'); // 30 seconds
|
|
13
18
|
exports.MAX_CONCURRENT = parseInt(process.env.MAX_CONCURRENT || '5');
|
|
@@ -16,48 +21,48 @@ exports.STANDARD_FORMATS = [
|
|
|
16
21
|
{
|
|
17
22
|
format_id: {
|
|
18
23
|
agent_url: 'https://creatives.adcontextprotocol.org',
|
|
19
|
-
id: 'banner_728x90'
|
|
24
|
+
id: 'banner_728x90',
|
|
20
25
|
},
|
|
21
26
|
name: 'Leaderboard',
|
|
22
27
|
dimensions: { width: 728, height: 90 },
|
|
23
28
|
aspect_ratio: '8:1',
|
|
24
29
|
file_types: ['jpg', 'jpeg', 'png', 'gif'],
|
|
25
|
-
max_file_size: 150000
|
|
30
|
+
max_file_size: 150000,
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
33
|
format_id: {
|
|
29
34
|
agent_url: 'https://creatives.adcontextprotocol.org',
|
|
30
|
-
id: 'banner_300x250'
|
|
35
|
+
id: 'banner_300x250',
|
|
31
36
|
},
|
|
32
37
|
name: 'Medium Rectangle',
|
|
33
38
|
dimensions: { width: 300, height: 250 },
|
|
34
39
|
aspect_ratio: '6:5',
|
|
35
40
|
file_types: ['jpg', 'jpeg', 'png', 'gif'],
|
|
36
|
-
max_file_size: 150000
|
|
41
|
+
max_file_size: 150000,
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
format_id: {
|
|
40
45
|
agent_url: 'https://creatives.adcontextprotocol.org',
|
|
41
|
-
id: 'banner_320x50'
|
|
46
|
+
id: 'banner_320x50',
|
|
42
47
|
},
|
|
43
48
|
name: 'Mobile Banner',
|
|
44
49
|
dimensions: { width: 320, height: 50 },
|
|
45
50
|
aspect_ratio: '32:5',
|
|
46
51
|
file_types: ['jpg', 'jpeg', 'png', 'gif'],
|
|
47
|
-
max_file_size: 40000
|
|
52
|
+
max_file_size: 40000,
|
|
48
53
|
},
|
|
49
54
|
{
|
|
50
55
|
format_id: {
|
|
51
56
|
agent_url: 'https://creatives.adcontextprotocol.org',
|
|
52
|
-
id: 'video_1920x1080'
|
|
57
|
+
id: 'video_1920x1080',
|
|
53
58
|
},
|
|
54
59
|
name: 'Full HD Video',
|
|
55
60
|
dimensions: { width: 1920, height: 1080 },
|
|
56
61
|
aspect_ratio: '16:9',
|
|
57
62
|
file_types: ['mp4', 'webm'],
|
|
58
63
|
max_file_size: 10000000,
|
|
59
|
-
duration_range: { min: 6, max: 30 }
|
|
60
|
-
}
|
|
64
|
+
duration_range: { min: 6, max: 30 },
|
|
65
|
+
},
|
|
61
66
|
];
|
|
62
67
|
/**
|
|
63
68
|
* Circuit Breaker for handling agent failures
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":";;;AA0HA,8CAKC;AAKD,gDAEC;AApID,6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dist/lib/utils/logger.js
CHANGED
|
@@ -11,7 +11,7 @@ const LOG_LEVELS = {
|
|
|
11
11
|
debug: 0,
|
|
12
12
|
info: 1,
|
|
13
13
|
warn: 2,
|
|
14
|
-
error: 3
|
|
14
|
+
error: 3,
|
|
15
15
|
};
|
|
16
16
|
class Logger {
|
|
17
17
|
config;
|
|
@@ -23,8 +23,8 @@ class Logger {
|
|
|
23
23
|
debug: (msg, meta) => console.log(msg, meta ? meta : ''),
|
|
24
24
|
info: (msg, meta) => console.log(msg, meta ? meta : ''),
|
|
25
25
|
warn: (msg, meta) => console.warn(msg, meta ? meta : ''),
|
|
26
|
-
error: (msg, meta) => console.error(msg, meta ? meta : '')
|
|
27
|
-
}
|
|
26
|
+
error: (msg, meta) => console.error(msg, meta ? meta : ''),
|
|
27
|
+
},
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
shouldLog(level) {
|
|
@@ -75,8 +75,8 @@ class Logger {
|
|
|
75
75
|
debug: (msg, meta) => parentHandler.debug(`[${context}] ${msg}`, meta),
|
|
76
76
|
info: (msg, meta) => parentHandler.info(`[${context}] ${msg}`, meta),
|
|
77
77
|
warn: (msg, meta) => parentHandler.warn(`[${context}] ${msg}`, meta),
|
|
78
|
-
error: (msg, meta) => parentHandler.error(`[${context}] ${msg}`, meta)
|
|
79
|
-
}
|
|
78
|
+
error: (msg, meta) => parentHandler.error(`[${context}] ${msg}`, meta),
|
|
79
|
+
},
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
@@ -89,7 +89,7 @@ class Logger {
|
|
|
89
89
|
// Default global logger instance
|
|
90
90
|
exports.logger = new Logger({
|
|
91
91
|
level: process.env.LOG_LEVEL || 'info',
|
|
92
|
-
enabled: process.env.LOG_ENABLED !== 'false'
|
|
92
|
+
enabled: process.env.LOG_ENABLED !== 'false',
|
|
93
93
|
});
|
|
94
94
|
/**
|
|
95
95
|
* Create a new logger instance with custom configuration
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { ADCPClient } from '../core/ADCPClient';
|
|
2
|
+
import type { Format, Product } from '../types/tools.generated';
|
|
3
|
+
/**
|
|
4
|
+
* Preview result for a single item (product or format)
|
|
5
|
+
*/
|
|
6
|
+
export interface PreviewResult {
|
|
7
|
+
/** The item being previewed (Product or Format) */
|
|
8
|
+
item: Product | Format;
|
|
9
|
+
/** Preview URL for the rendered card */
|
|
10
|
+
previewUrl?: string;
|
|
11
|
+
/** Preview ID from the creative agent */
|
|
12
|
+
previewId?: string;
|
|
13
|
+
/** Error message if preview failed */
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Options for batch preview generation
|
|
18
|
+
*/
|
|
19
|
+
export interface BatchPreviewOptions {
|
|
20
|
+
/** Cache TTL in milliseconds (defaults to 1 hour) */
|
|
21
|
+
cacheTtl?: number;
|
|
22
|
+
/** Whether to skip cache and force fresh previews (defaults to false) */
|
|
23
|
+
skipCache?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Clear all cached previews
|
|
27
|
+
*/
|
|
28
|
+
export declare function clearPreviewCache(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Generate batch previews for products with product_card manifests
|
|
31
|
+
*
|
|
32
|
+
* Products with product_card fields will have their cards rendered via the creative agent.
|
|
33
|
+
* Products without product_card will be returned with no preview.
|
|
34
|
+
*
|
|
35
|
+
* @param products - Array of products to preview
|
|
36
|
+
* @param creativeAgentClient - ADCP client configured for creative agent
|
|
37
|
+
* @param options - Preview generation options
|
|
38
|
+
* @returns Array of preview results matching input products
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const creativeAgent = new ADCPClient({
|
|
43
|
+
* id: 'creative',
|
|
44
|
+
* name: 'Creative Agent',
|
|
45
|
+
* agent_uri: 'https://creative.adcontextprotocol.org/mcp',
|
|
46
|
+
* protocol: 'mcp'
|
|
47
|
+
* });
|
|
48
|
+
*
|
|
49
|
+
* const previews = await batchPreviewProducts(products, creativeAgent);
|
|
50
|
+
* previews.forEach(p => {
|
|
51
|
+
* if (p.previewUrl) {
|
|
52
|
+
* console.log(`${p.item.name}: ${p.previewUrl}`);
|
|
53
|
+
* }
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare function batchPreviewProducts(products: Product[], creativeAgentClient: ADCPClient, options?: BatchPreviewOptions): Promise<PreviewResult[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate batch previews for formats with format_card manifests
|
|
60
|
+
*
|
|
61
|
+
* Formats with format_card fields will have their cards rendered via the creative agent.
|
|
62
|
+
* Formats without format_card will be returned with no preview.
|
|
63
|
+
*
|
|
64
|
+
* @param formats - Array of formats to preview
|
|
65
|
+
* @param creativeAgentClient - ADCP client configured for creative agent
|
|
66
|
+
* @param options - Preview generation options
|
|
67
|
+
* @returns Array of preview results matching input formats
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const creativeAgent = new ADCPClient({
|
|
72
|
+
* id: 'creative',
|
|
73
|
+
* name: 'Creative Agent',
|
|
74
|
+
* agent_uri: 'https://creative.adcontextprotocol.org/mcp',
|
|
75
|
+
* protocol: 'mcp'
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* const previews = await batchPreviewFormats(formats, creativeAgent);
|
|
79
|
+
* previews.forEach(p => {
|
|
80
|
+
* if (p.previewUrl) {
|
|
81
|
+
* console.log(`${(p.item as Format).name}: ${p.previewUrl}`);
|
|
82
|
+
* }
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function batchPreviewFormats(formats: Format[], creativeAgentClient: ADCPClient, options?: BatchPreviewOptions): Promise<PreviewResult[]>;
|
|
87
|
+
//# sourceMappingURL=preview-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/preview-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAY,MAAM,0BAA0B,CAAC;AAG1E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAyDD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,OAAO,EAAE,EACnB,mBAAmB,EAAE,UAAU,EAC/B,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,aAAa,EAAE,CAAC,CAyH1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,EAAE,EACjB,mBAAmB,EAAE,UAAU,EAC/B,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,aAAa,EAAE,CAAC,CA0H1B"}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Preview utilities for rendering product/format cards with creative agent
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.clearPreviewCache = clearPreviewCache;
|
|
5
|
+
exports.batchPreviewProducts = batchPreviewProducts;
|
|
6
|
+
exports.batchPreviewFormats = batchPreviewFormats;
|
|
7
|
+
/**
|
|
8
|
+
* Simple in-memory cache for preview results
|
|
9
|
+
* Key format: `${itemType}:${formatId.agent_url}:${formatId.id}:${manifestHash}`
|
|
10
|
+
*/
|
|
11
|
+
const previewCache = new Map();
|
|
12
|
+
/**
|
|
13
|
+
* Generate a cache key for a preview request
|
|
14
|
+
*/
|
|
15
|
+
function getCacheKey(formatId, manifest) {
|
|
16
|
+
// Simple hash of manifest for cache key
|
|
17
|
+
const manifestStr = JSON.stringify(manifest);
|
|
18
|
+
const manifestHash = Array.from(manifestStr)
|
|
19
|
+
.reduce((hash, char) => (hash << 5) - hash + char.charCodeAt(0), 0)
|
|
20
|
+
.toString(36);
|
|
21
|
+
return `${formatId.agent_url}:${formatId.id}:${manifestHash}`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get cached preview if available and not expired
|
|
25
|
+
*/
|
|
26
|
+
function getCachedPreview(cacheKey, ttl) {
|
|
27
|
+
const entry = previewCache.get(cacheKey);
|
|
28
|
+
if (!entry)
|
|
29
|
+
return null;
|
|
30
|
+
const now = Date.now();
|
|
31
|
+
if (now - entry.timestamp > ttl) {
|
|
32
|
+
previewCache.delete(cacheKey);
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return entry;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Set cached preview
|
|
39
|
+
*/
|
|
40
|
+
function setCachedPreview(cacheKey, previewUrl, previewId) {
|
|
41
|
+
previewCache.set(cacheKey, {
|
|
42
|
+
previewUrl,
|
|
43
|
+
previewId,
|
|
44
|
+
timestamp: Date.now(),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Clear all cached previews
|
|
49
|
+
*/
|
|
50
|
+
function clearPreviewCache() {
|
|
51
|
+
previewCache.clear();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Generate batch previews for products with product_card manifests
|
|
55
|
+
*
|
|
56
|
+
* Products with product_card fields will have their cards rendered via the creative agent.
|
|
57
|
+
* Products without product_card will be returned with no preview.
|
|
58
|
+
*
|
|
59
|
+
* @param products - Array of products to preview
|
|
60
|
+
* @param creativeAgentClient - ADCP client configured for creative agent
|
|
61
|
+
* @param options - Preview generation options
|
|
62
|
+
* @returns Array of preview results matching input products
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const creativeAgent = new ADCPClient({
|
|
67
|
+
* id: 'creative',
|
|
68
|
+
* name: 'Creative Agent',
|
|
69
|
+
* agent_uri: 'https://creative.adcontextprotocol.org/mcp',
|
|
70
|
+
* protocol: 'mcp'
|
|
71
|
+
* });
|
|
72
|
+
*
|
|
73
|
+
* const previews = await batchPreviewProducts(products, creativeAgent);
|
|
74
|
+
* previews.forEach(p => {
|
|
75
|
+
* if (p.previewUrl) {
|
|
76
|
+
* console.log(`${p.item.name}: ${p.previewUrl}`);
|
|
77
|
+
* }
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
async function batchPreviewProducts(products, creativeAgentClient, options = {}) {
|
|
82
|
+
const cacheTtl = options.cacheTtl ?? 3600000; // 1 hour default
|
|
83
|
+
const skipCache = options.skipCache ?? false;
|
|
84
|
+
// Collect all products that have product_card manifests
|
|
85
|
+
const previewRequests = [];
|
|
86
|
+
const results = [];
|
|
87
|
+
products.forEach(product => {
|
|
88
|
+
if (product.product_card) {
|
|
89
|
+
const cacheKey = getCacheKey(product.product_card.format_id, product.product_card.manifest);
|
|
90
|
+
// Check cache first
|
|
91
|
+
if (!skipCache) {
|
|
92
|
+
const cached = getCachedPreview(cacheKey, cacheTtl);
|
|
93
|
+
if (cached) {
|
|
94
|
+
results.push({
|
|
95
|
+
item: product,
|
|
96
|
+
previewUrl: cached.previewUrl,
|
|
97
|
+
previewId: cached.previewId,
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
previewRequests.push({
|
|
103
|
+
product,
|
|
104
|
+
formatId: product.product_card.format_id,
|
|
105
|
+
manifest: product.product_card.manifest,
|
|
106
|
+
cacheKey,
|
|
107
|
+
inputName: product.name || 'Product Card',
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
// No product_card, return product with no preview
|
|
112
|
+
results.push({
|
|
113
|
+
item: product,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
// If all were cached or none have product_card, return early
|
|
118
|
+
if (previewRequests.length === 0) {
|
|
119
|
+
return results;
|
|
120
|
+
}
|
|
121
|
+
// Batch preview using preview_creative with inputs array
|
|
122
|
+
// Group by format_id since preview_creative takes one format_id
|
|
123
|
+
const groupedByFormat = new Map();
|
|
124
|
+
previewRequests.forEach(req => {
|
|
125
|
+
const formatKey = `${req.formatId.agent_url}:${req.formatId.id}`;
|
|
126
|
+
if (!groupedByFormat.has(formatKey)) {
|
|
127
|
+
groupedByFormat.set(formatKey, []);
|
|
128
|
+
}
|
|
129
|
+
groupedByFormat.get(formatKey).push(req);
|
|
130
|
+
});
|
|
131
|
+
// Process each product individually
|
|
132
|
+
// Note: Each product has different manifest data, so we can't truly batch them
|
|
133
|
+
// We process them sequentially but could parallelize in the future
|
|
134
|
+
for (const req of previewRequests) {
|
|
135
|
+
try {
|
|
136
|
+
// Build preview_creative request for this product
|
|
137
|
+
const previewRequest = {
|
|
138
|
+
format_id: req.formatId,
|
|
139
|
+
creative_manifest: {
|
|
140
|
+
format_id: req.formatId,
|
|
141
|
+
assets: req.manifest, // manifest contains the asset map (product_image, product_name, etc)
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
// Call preview_creative
|
|
145
|
+
const response = await creativeAgentClient.previewCreative(previewRequest);
|
|
146
|
+
// Check for data even if validation failed (response.success may be false due to schema warnings)
|
|
147
|
+
// Handle both single request (previews) and batch request (results) response formats
|
|
148
|
+
const responseData = response.data;
|
|
149
|
+
if (responseData && 'previews' in responseData && responseData.previews && responseData.previews.length > 0) {
|
|
150
|
+
const preview = responseData.previews[0];
|
|
151
|
+
if (preview.renders && preview.renders.length > 0) {
|
|
152
|
+
const render = preview.renders[0];
|
|
153
|
+
const previewUrl = render.preview_url;
|
|
154
|
+
const previewId = preview.preview_id;
|
|
155
|
+
// Cache the result
|
|
156
|
+
setCachedPreview(req.cacheKey, previewUrl, previewId);
|
|
157
|
+
results.push({
|
|
158
|
+
item: req.product,
|
|
159
|
+
previewUrl,
|
|
160
|
+
previewId,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
results.push({
|
|
165
|
+
item: req.product,
|
|
166
|
+
error: 'No renders in preview response',
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
// Only treat as error if we have no data at all
|
|
172
|
+
results.push({
|
|
173
|
+
item: req.product,
|
|
174
|
+
error: response.error || 'Preview generation failed',
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
results.push({
|
|
180
|
+
item: req.product,
|
|
181
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return results;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Generate batch previews for formats with format_card manifests
|
|
189
|
+
*
|
|
190
|
+
* Formats with format_card fields will have their cards rendered via the creative agent.
|
|
191
|
+
* Formats without format_card will be returned with no preview.
|
|
192
|
+
*
|
|
193
|
+
* @param formats - Array of formats to preview
|
|
194
|
+
* @param creativeAgentClient - ADCP client configured for creative agent
|
|
195
|
+
* @param options - Preview generation options
|
|
196
|
+
* @returns Array of preview results matching input formats
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* const creativeAgent = new ADCPClient({
|
|
201
|
+
* id: 'creative',
|
|
202
|
+
* name: 'Creative Agent',
|
|
203
|
+
* agent_uri: 'https://creative.adcontextprotocol.org/mcp',
|
|
204
|
+
* protocol: 'mcp'
|
|
205
|
+
* });
|
|
206
|
+
*
|
|
207
|
+
* const previews = await batchPreviewFormats(formats, creativeAgent);
|
|
208
|
+
* previews.forEach(p => {
|
|
209
|
+
* if (p.previewUrl) {
|
|
210
|
+
* console.log(`${(p.item as Format).name}: ${p.previewUrl}`);
|
|
211
|
+
* }
|
|
212
|
+
* });
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
async function batchPreviewFormats(formats, creativeAgentClient, options = {}) {
|
|
216
|
+
const cacheTtl = options.cacheTtl ?? 3600000; // 1 hour default
|
|
217
|
+
const skipCache = options.skipCache ?? false;
|
|
218
|
+
// Collect all formats that have format_card manifests
|
|
219
|
+
const previewRequests = [];
|
|
220
|
+
const results = [];
|
|
221
|
+
formats.forEach(format => {
|
|
222
|
+
if (format.format_card) {
|
|
223
|
+
const cacheKey = getCacheKey(format.format_card.format_id, format.format_card.manifest);
|
|
224
|
+
// Check cache first
|
|
225
|
+
if (!skipCache) {
|
|
226
|
+
const cached = getCachedPreview(cacheKey, cacheTtl);
|
|
227
|
+
if (cached) {
|
|
228
|
+
results.push({
|
|
229
|
+
item: format,
|
|
230
|
+
previewUrl: cached.previewUrl,
|
|
231
|
+
previewId: cached.previewId,
|
|
232
|
+
});
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
previewRequests.push({
|
|
237
|
+
format,
|
|
238
|
+
formatId: format.format_card.format_id,
|
|
239
|
+
manifest: format.format_card.manifest,
|
|
240
|
+
cacheKey,
|
|
241
|
+
inputName: format.name || 'Format Card',
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
// No format_card, return format with no preview
|
|
246
|
+
results.push({
|
|
247
|
+
item: format,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
// If all were cached or none have format_card, return early
|
|
252
|
+
if (previewRequests.length === 0) {
|
|
253
|
+
return results;
|
|
254
|
+
}
|
|
255
|
+
// Batch preview using preview_creative with inputs array
|
|
256
|
+
// Group by format_id since preview_creative takes one format_id
|
|
257
|
+
const groupedByFormat = new Map();
|
|
258
|
+
previewRequests.forEach(req => {
|
|
259
|
+
const formatKey = `${req.formatId.agent_url}:${req.formatId.id}`;
|
|
260
|
+
if (!groupedByFormat.has(formatKey)) {
|
|
261
|
+
groupedByFormat.set(formatKey, []);
|
|
262
|
+
}
|
|
263
|
+
groupedByFormat.get(formatKey).push(req);
|
|
264
|
+
});
|
|
265
|
+
// Process each format individually
|
|
266
|
+
// Note: Each format has different manifest data, so we can't truly batch them
|
|
267
|
+
// We process them sequentially but could parallelize in the future
|
|
268
|
+
for (const req of previewRequests) {
|
|
269
|
+
try {
|
|
270
|
+
// Build preview_creative request for this format
|
|
271
|
+
// For format cards, the manifest typically contains the format object as JSON
|
|
272
|
+
const previewRequest = {
|
|
273
|
+
format_id: req.formatId,
|
|
274
|
+
creative_manifest: {
|
|
275
|
+
format_id: req.formatId,
|
|
276
|
+
assets: req.manifest, // manifest contains the asset map (format, etc)
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
// Call preview_creative
|
|
280
|
+
const response = await creativeAgentClient.previewCreative(previewRequest);
|
|
281
|
+
// Check for data even if validation failed (response.success may be false due to schema warnings)
|
|
282
|
+
// Handle both single request (previews) and batch request (results) response formats
|
|
283
|
+
const responseData = response.data;
|
|
284
|
+
if (responseData && 'previews' in responseData && responseData.previews && responseData.previews.length > 0) {
|
|
285
|
+
const preview = responseData.previews[0];
|
|
286
|
+
if (preview.renders && preview.renders.length > 0) {
|
|
287
|
+
const render = preview.renders[0];
|
|
288
|
+
const previewUrl = render.preview_url;
|
|
289
|
+
const previewId = preview.preview_id;
|
|
290
|
+
// Cache the result
|
|
291
|
+
setCachedPreview(req.cacheKey, previewUrl, previewId);
|
|
292
|
+
results.push({
|
|
293
|
+
item: req.format,
|
|
294
|
+
previewUrl,
|
|
295
|
+
previewId,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
results.push({
|
|
300
|
+
item: req.format,
|
|
301
|
+
error: 'No renders in preview response',
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
// Only treat as error if we have no data at all
|
|
307
|
+
results.push({
|
|
308
|
+
item: req.format,
|
|
309
|
+
error: response.error || 'Preview generation failed',
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
catch (error) {
|
|
314
|
+
results.push({
|
|
315
|
+
item: req.format,
|
|
316
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return results;
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=preview-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-utils.js","sourceRoot":"","sources":["../../../src/lib/utils/preview-utils.ts"],"names":[],"mappings":";AAAA,2EAA2E;;AAwF3E,8CAEC;AA8BD,oDA6HC;AA8BD,kDA8HC;AA1WD;;;GAGG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAsB,CAAC;AAEnD;;GAEG;AACH,SAAS,WAAW,CAAC,QAAkB,EAAE,QAAa;IACpD,wCAAwC;IACxC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;SACzC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAClE,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEhB,OAAO,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V,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,IAAI,CAAC;wBACX,IAAI,EAAE,GAAG,CAAC,MAAM;wBAChB,KAAK,EAAE,gCAAgC;qBACxC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,gDAAgD;gBAChD,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,GAAG,CAAC,MAAM;oBAChB,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,2BAA2B;iBACrD,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,GAAG,CAAC,MAAM;gBAChB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;aAChE,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-detection.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/protocol-detection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,CA+BxE;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"protocol-detection.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/protocol-detection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,CA+BxE;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAa,GAAG,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,CA+B7G"}
|
|
@@ -32,8 +32,8 @@ async function detectProtocol(url) {
|
|
|
32
32
|
method: 'GET',
|
|
33
33
|
signal: controller.signal,
|
|
34
34
|
headers: {
|
|
35
|
-
|
|
36
|
-
}
|
|
35
|
+
Accept: 'application/json, */*',
|
|
36
|
+
},
|
|
37
37
|
});
|
|
38
38
|
clearTimeout(timeoutId);
|
|
39
39
|
if (response.ok) {
|
|
@@ -67,8 +67,8 @@ async function detectProtocolWithTimeout(url, timeoutMs = 5000) {
|
|
|
67
67
|
method: 'GET',
|
|
68
68
|
signal: controller.signal,
|
|
69
69
|
headers: {
|
|
70
|
-
|
|
71
|
-
}
|
|
70
|
+
Accept: 'application/json, */*',
|
|
71
|
+
},
|
|
72
72
|
});
|
|
73
73
|
clearTimeout(timeoutId);
|
|
74
74
|
if (response.ok) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-detection.js","sourceRoot":"","sources":["../../../src/lib/utils/protocol-detection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAaH,wCA+BC;AASD,
|
|
1
|
+
{"version":3,"file":"protocol-detection.js","sourceRoot":"","sources":["../../../src/lib/utils/protocol-detection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAaH,wCA+BC;AASD,8DA+BC;AAlFD;;;;;;;;;;GAUG;AACI,KAAK,UAAU,cAAc,CAAC,GAAW;IAC9C,gCAAgC;IAChC,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,4BAA4B;IAC5B,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;QACzC,MAAM,SAAS,GA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CAAC,CAAC;QAExB,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;YAChB,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,gCAAgC;IAClC,CAAC;IAED,iBAAiB;IACjB,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/validation/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmB1D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/validation/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmB1D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAwDlD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CA6BhH;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAqEhF"}
|