@pellux/goodvibes-contracts 0.33.3 → 0.33.5

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.
@@ -3,7 +3,7 @@
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.33.3"
6
+ "version": "0.33.5"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -1,3 +1,5 @@
1
+ import type { OperatorMethodId } from './operator-method-ids.js';
2
+ import type { PeerEndpointId } from './peer-endpoint-ids.js';
1
3
  export type JsonPrimitive = string | number | boolean | null;
2
4
  export type JsonValue = JsonPrimitive | {
3
5
  readonly [key: string]: JsonValue;
@@ -11251,15 +11253,19 @@ export interface PeerEndpointOutputMap {
11251
11253
  }))[];
11252
11254
  };
11253
11255
  }
11254
- export type OperatorTypedMethodId = keyof OperatorMethodInputMap & string;
11255
- export type OperatorMethodInput<TMethodId extends OperatorTypedMethodId> = OperatorMethodInputMap[TMethodId];
11256
- export type OperatorMethodOutput<TMethodId extends OperatorTypedMethodId> = OperatorMethodOutputMap[TMethodId];
11256
+ export type OperatorTypedMethodId = OperatorMethodId;
11257
+ export type OperatorMethodInput<TMethodId extends OperatorTypedMethodId> = TMethodId extends keyof OperatorMethodInputMap ? OperatorMethodInputMap[TMethodId] : {
11258
+ readonly [key: string]: unknown;
11259
+ };
11260
+ export type OperatorMethodOutput<TMethodId extends OperatorTypedMethodId> = TMethodId extends keyof OperatorMethodOutputMap ? OperatorMethodOutputMap[TMethodId] : unknown;
11257
11261
  export type OperatorTypedEventId = keyof OperatorEventPayloadMap & string;
11258
11262
  export type OperatorEventPayload<TEventId extends OperatorTypedEventId> = OperatorEventPayloadMap[TEventId];
11259
11263
  export type OperatorStreamMethodId = Extract<OperatorTypedMethodId, 'control.events.stream' | 'telemetry.stream'>;
11260
- export type PeerTypedEndpointId = keyof PeerEndpointInputMap & string;
11261
- export type PeerEndpointInput<TEndpointId extends PeerTypedEndpointId> = PeerEndpointInputMap[TEndpointId];
11262
- export type PeerEndpointOutput<TEndpointId extends PeerTypedEndpointId> = PeerEndpointOutputMap[TEndpointId];
11264
+ export type PeerTypedEndpointId = PeerEndpointId;
11265
+ export type PeerEndpointInput<TEndpointId extends PeerTypedEndpointId> = TEndpointId extends keyof PeerEndpointInputMap ? PeerEndpointInputMap[TEndpointId] : {
11266
+ readonly [key: string]: unknown;
11267
+ };
11268
+ export type PeerEndpointOutput<TEndpointId extends PeerTypedEndpointId> = TEndpointId extends keyof PeerEndpointOutputMap ? PeerEndpointOutputMap[TEndpointId] : unknown;
11263
11269
  export type RuntimeEventTypedDomain = keyof RuntimeDomainEventPayloadMap & string;
11264
11270
  export type RuntimeDomainEventType<TDomain extends RuntimeEventTypedDomain> = keyof RuntimeDomainEventPayloadMap[TDomain] & string;
11265
11271
  export type RuntimeDomainEventPayload<TDomain extends RuntimeEventTypedDomain, TEventType extends RuntimeDomainEventType<TDomain>> = RuntimeDomainEventPayloadMap[TDomain][TEventType];