mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
23 lines • 709 B
JavaScript
/**
* Network resource types - APIs and webhooks.
*/
import { ResourceCategory } from './core.js';
export const NETWORK_TYPES = {
api: {
name: 'api',
category: ResourceCategory.NETWORK,
uriTemplate: '{endpoint}',
hashTemplate: 'api:{method}:{endpoint}',
defaultOptions: { type: 'api', method: 'GET', _preserveUri: true },
argNames: ['endpoint']
},
webhook: {
name: 'webhook',
category: ResourceCategory.NETWORK,
uriTemplate: '{endpoint}',
hashTemplate: 'webhook:{endpoint}',
defaultOptions: { type: 'webhook', _preserveUri: true },
argNames: ['endpoint']
}
};
//# sourceMappingURL=network.js.map