feat(contracts): @insignia/iios-contracts — scope, enums, platform ports, CloudEvents, errors
Verbatim IiosPlatformPorts from the bottom-up atlas; orgId/appId required scope (KG-02); PolicyDeniedError for fail-closed. Vitest as workspace test runner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Versioned command envelope (reused from support-service's command pattern).
|
||||
* Every externally-visible mutation carries a schema name + numeric version +
|
||||
* an idempotency key. Kept dependency-free here (a type); the service defines a
|
||||
* class-validator DTO that conforms to it.
|
||||
*/
|
||||
export interface CommandEnvelope<P = Record<string, unknown>> {
|
||||
schemaName: string;
|
||||
schemaVersion: number;
|
||||
idempotencyKey: string;
|
||||
payload: P;
|
||||
}
|
||||
Reference in New Issue
Block a user