@cadenza.io/service 2.20.0 → 2.20.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/{Cadenza-D787NzXY.d.mts → Cadenza-Duj65Skt.d.mts} +134 -2
- package/dist/{Cadenza-D787NzXY.d.ts → Cadenza-Duj65Skt.d.ts} +134 -2
- package/dist/browser/index.js +985 -182
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +926 -123
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -130
- package/dist/index.d.ts +4 -130
- package/dist/index.js +1184 -223
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1125 -164
- package/dist/index.mjs.map +1 -1
- package/dist/nuxt/index.d.mts +2 -2
- package/dist/nuxt/index.d.ts +2 -2
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/vue/index.d.mts +2 -2
- package/dist/vue/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -896,6 +896,135 @@ interface BrowserRuntimeActorHandle<TProjectionState extends Record<string, any>
|
|
|
896
896
|
subscribe: (listener: (state: BrowserRuntimeActorRuntimeState<TProjectionState>) => void) => () => void;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
+
type ServiceManifestPublicationLayer = "routing_capability" | "business_structural" | "local_meta_structural";
|
|
900
|
+
type ServiceManifestTaskDefinition = {
|
|
901
|
+
name: string;
|
|
902
|
+
version: number;
|
|
903
|
+
description: string;
|
|
904
|
+
service_name: string;
|
|
905
|
+
is_meta: boolean;
|
|
906
|
+
is_sub_meta: boolean;
|
|
907
|
+
is_hidden: boolean;
|
|
908
|
+
is_ephemeral: boolean;
|
|
909
|
+
is_signal: boolean;
|
|
910
|
+
concurrency: number;
|
|
911
|
+
timeout: number;
|
|
912
|
+
retry_count: number;
|
|
913
|
+
retry_delay: number;
|
|
914
|
+
retry_delay_max: number;
|
|
915
|
+
retry_delay_factor: number;
|
|
916
|
+
validate_input_context: boolean;
|
|
917
|
+
validate_output_context: boolean;
|
|
918
|
+
input_context_schema: Record<string, unknown>;
|
|
919
|
+
output_context_schema: Record<string, unknown>;
|
|
920
|
+
signals: {
|
|
921
|
+
emits: string[];
|
|
922
|
+
emits_after: string[];
|
|
923
|
+
emits_on_fail: string[];
|
|
924
|
+
observed: string[];
|
|
925
|
+
};
|
|
926
|
+
intents: {
|
|
927
|
+
handles: string[];
|
|
928
|
+
inquires: string[];
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
type ServiceManifestSignalDefinition = {
|
|
932
|
+
name: string;
|
|
933
|
+
is_global: boolean;
|
|
934
|
+
domain: string | null;
|
|
935
|
+
action: string;
|
|
936
|
+
is_meta: boolean;
|
|
937
|
+
delivery_mode: "single" | "broadcast";
|
|
938
|
+
broadcast_filter: Record<string, unknown> | null;
|
|
939
|
+
};
|
|
940
|
+
type ServiceManifestIntentDefinition = {
|
|
941
|
+
name: string;
|
|
942
|
+
description: string;
|
|
943
|
+
input: Record<string, unknown>;
|
|
944
|
+
output: Record<string, unknown>;
|
|
945
|
+
is_meta: boolean;
|
|
946
|
+
};
|
|
947
|
+
type ServiceManifestActorDefinition = {
|
|
948
|
+
name: string;
|
|
949
|
+
version: number;
|
|
950
|
+
description: string;
|
|
951
|
+
service_name: string;
|
|
952
|
+
default_key: string;
|
|
953
|
+
load_policy: string;
|
|
954
|
+
write_contract: string;
|
|
955
|
+
runtime_read_guard: string;
|
|
956
|
+
consistency_profile: string | null;
|
|
957
|
+
key_definition: Record<string, unknown> | null;
|
|
958
|
+
state_definition: Record<string, unknown>;
|
|
959
|
+
retry_policy: Record<string, unknown>;
|
|
960
|
+
idempotency_policy: Record<string, unknown>;
|
|
961
|
+
session_policy: Record<string, unknown>;
|
|
962
|
+
is_meta: boolean;
|
|
963
|
+
};
|
|
964
|
+
type ServiceManifestRoutineDefinition = {
|
|
965
|
+
name: string;
|
|
966
|
+
version: number;
|
|
967
|
+
description: string;
|
|
968
|
+
service_name: string;
|
|
969
|
+
is_meta: boolean;
|
|
970
|
+
};
|
|
971
|
+
type ServiceManifestDirectionalTaskMap = {
|
|
972
|
+
task_name: string;
|
|
973
|
+
task_version: number;
|
|
974
|
+
predecessor_task_name: string;
|
|
975
|
+
predecessor_task_version: number;
|
|
976
|
+
service_name: string;
|
|
977
|
+
predecessor_service_name: string;
|
|
978
|
+
};
|
|
979
|
+
type ServiceManifestSignalTaskMap = {
|
|
980
|
+
signal_name: string;
|
|
981
|
+
is_global: boolean;
|
|
982
|
+
task_name: string;
|
|
983
|
+
task_version: number;
|
|
984
|
+
service_name: string;
|
|
985
|
+
};
|
|
986
|
+
type ServiceManifestIntentTaskMap = {
|
|
987
|
+
intent_name: string;
|
|
988
|
+
task_name: string;
|
|
989
|
+
task_version: number;
|
|
990
|
+
service_name: string;
|
|
991
|
+
};
|
|
992
|
+
type ServiceManifestActorTaskMap = {
|
|
993
|
+
actor_name: string;
|
|
994
|
+
actor_version: number;
|
|
995
|
+
task_name: string;
|
|
996
|
+
task_version: number;
|
|
997
|
+
service_name: string;
|
|
998
|
+
mode: "read" | "write" | "meta";
|
|
999
|
+
description: string;
|
|
1000
|
+
is_meta: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
type ServiceManifestTaskRoutineMap = {
|
|
1003
|
+
task_name: string;
|
|
1004
|
+
task_version: number;
|
|
1005
|
+
routine_name: string;
|
|
1006
|
+
routine_version: number;
|
|
1007
|
+
service_name: string;
|
|
1008
|
+
};
|
|
1009
|
+
type ServiceManifestSnapshot = {
|
|
1010
|
+
serviceName: string;
|
|
1011
|
+
serviceInstanceId: string;
|
|
1012
|
+
revision: number;
|
|
1013
|
+
manifestHash: string;
|
|
1014
|
+
publishedAt: string;
|
|
1015
|
+
publicationLayer: ServiceManifestPublicationLayer;
|
|
1016
|
+
tasks: ServiceManifestTaskDefinition[];
|
|
1017
|
+
signals: ServiceManifestSignalDefinition[];
|
|
1018
|
+
intents: ServiceManifestIntentDefinition[];
|
|
1019
|
+
actors: ServiceManifestActorDefinition[];
|
|
1020
|
+
routines: ServiceManifestRoutineDefinition[];
|
|
1021
|
+
directionalTaskMaps: ServiceManifestDirectionalTaskMap[];
|
|
1022
|
+
signalToTaskMaps: ServiceManifestSignalTaskMap[];
|
|
1023
|
+
intentToTaskMaps: ServiceManifestIntentTaskMap[];
|
|
1024
|
+
actorTaskMaps: ServiceManifestActorTaskMap[];
|
|
1025
|
+
taskToRoutineMaps: ServiceManifestTaskRoutineMap[];
|
|
1026
|
+
};
|
|
1027
|
+
|
|
899
1028
|
type SecurityProfile = "low" | "medium" | "high";
|
|
900
1029
|
type NetworkMode = "internal" | "exposed" | "exposed-high-sec" | "auto" | "dev";
|
|
901
1030
|
type ServerOptions = {
|
|
@@ -948,9 +1077,10 @@ declare class CadenzaService {
|
|
|
948
1077
|
protected static hydratedInquiryResults: Map<string, AnyObject>;
|
|
949
1078
|
protected static frontendSyncScheduled: boolean;
|
|
950
1079
|
protected static serviceManifestRevision: number;
|
|
951
|
-
protected static
|
|
1080
|
+
protected static lastPublishedServiceManifestHashes: Partial<Record<ServiceManifestPublicationLayer, string>>;
|
|
952
1081
|
protected static serviceManifestPublicationInFlight: boolean;
|
|
953
1082
|
protected static serviceManifestPublicationPendingReason: string | null;
|
|
1083
|
+
protected static serviceManifestPublicationPendingLayer: ServiceManifestPublicationLayer | null;
|
|
954
1084
|
private static shutdownHandlersRegistered;
|
|
955
1085
|
private static shutdownInFlight;
|
|
956
1086
|
private static shutdownHandlerCleanup;
|
|
@@ -959,6 +1089,8 @@ declare class CadenzaService {
|
|
|
959
1089
|
private static replayRegisteredTaskIntentAssociations;
|
|
960
1090
|
private static replayRegisteredTaskSignalObservations;
|
|
961
1091
|
private static replayRegisteredTaskGraphMetadata;
|
|
1092
|
+
private static normalizeServiceManifestPublicationLayer;
|
|
1093
|
+
private static mergeServiceManifestPublicationRequest;
|
|
962
1094
|
private static requestServiceManifestPublication;
|
|
963
1095
|
private static scheduleServiceManifestPublicationRetry;
|
|
964
1096
|
private static publishServiceManifestIfNeeded;
|
|
@@ -1664,4 +1796,4 @@ declare class CadenzaService {
|
|
|
1664
1796
|
static reset(): void;
|
|
1665
1797
|
}
|
|
1666
1798
|
|
|
1667
|
-
export { AUTHORITY_RUNTIME_STATUS_REPORT_INTENT as A, type BootstrapOptions as B, CadenzaService as C, type DatabaseSchemaDefinition as D, type
|
|
1799
|
+
export { type ServiceTransportDescriptor as $, AUTHORITY_RUNTIME_STATUS_REPORT_INTENT as A, type BootstrapOptions as B, CadenzaService as C, type DatabaseSchemaDefinition as D, type DatabaseMigrationDefinition as E, type DatabaseMigrationPolicy as F, type DatabaseMigrationStep as G, type HydrationOptions as H, DatabaseTask as I, type JoinDefinition as J, type DbOperationType$1 as K, type DeputyDescriptor as L, DeputyTask as M, type DistributedInquiryMeta as N, type FieldDefinition as O, type InquiryResponderDescriptor as P, type InquiryResponderStatus as Q, type NetworkMode as R, type ServerOptions as S, type OpEffect as T, type QueryMode as U, RUNTIME_STATUS_AUTHORITY_SYNC_REQUESTED_SIGNAL as V, type ResolvedBootstrapEndpoint as W, type RuntimeMetricsHealthDetail as X, type SecurityProfile as Y, type ServiceInstanceDescriptor as Z, type ServiceTransportConfig as _, type DatabaseOptions as a, type ServiceTransportProtocol as a0, type ServiceTransportRole as a1, type ServiceTransportSecurityProfile as a2, SignalTransmissionTask as a3, type SortDirection as a4, type SubOperationType as a5, type TableDefinition as a6, type ValueOrSubOp as a7, buildAuthorityRuntimeStatusSignature as a8, normalizeAuthorityRuntimeStatusReport as a9, type DbOperationPayload as b, type SubOperation as c, type DistributedInquiryOptions as d, type ServiceManifestSnapshot as e, type ServiceManifestPublicationLayer as f, type ServiceManifestTaskDefinition as g, type ServiceManifestSignalDefinition as h, type ServiceManifestIntentDefinition as i, type ServiceManifestActorDefinition as j, type ServiceManifestRoutineDefinition as k, type ServiceManifestDirectionalTaskMap as l, type ServiceManifestSignalTaskMap as m, type ServiceManifestIntentTaskMap as n, type ServiceManifestActorTaskMap as o, type ServiceManifestTaskRoutineMap as p, ServiceRegistry as q, type AggregateDefinition as r, type AggregateFunction as s, type AuthorityRuntimeStatusReport as t, type BrowserRuntimeActorHandle as u, type BrowserRuntimeActorOptions as v, type BrowserRuntimeActorRuntimeState as w, type BrowserRuntimeProjectionBinding as x, type BrowserRuntimeServiceOptions as y, type DatabaseMigrationConstraintDefinition as z };
|
|
@@ -896,6 +896,135 @@ interface BrowserRuntimeActorHandle<TProjectionState extends Record<string, any>
|
|
|
896
896
|
subscribe: (listener: (state: BrowserRuntimeActorRuntimeState<TProjectionState>) => void) => () => void;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
+
type ServiceManifestPublicationLayer = "routing_capability" | "business_structural" | "local_meta_structural";
|
|
900
|
+
type ServiceManifestTaskDefinition = {
|
|
901
|
+
name: string;
|
|
902
|
+
version: number;
|
|
903
|
+
description: string;
|
|
904
|
+
service_name: string;
|
|
905
|
+
is_meta: boolean;
|
|
906
|
+
is_sub_meta: boolean;
|
|
907
|
+
is_hidden: boolean;
|
|
908
|
+
is_ephemeral: boolean;
|
|
909
|
+
is_signal: boolean;
|
|
910
|
+
concurrency: number;
|
|
911
|
+
timeout: number;
|
|
912
|
+
retry_count: number;
|
|
913
|
+
retry_delay: number;
|
|
914
|
+
retry_delay_max: number;
|
|
915
|
+
retry_delay_factor: number;
|
|
916
|
+
validate_input_context: boolean;
|
|
917
|
+
validate_output_context: boolean;
|
|
918
|
+
input_context_schema: Record<string, unknown>;
|
|
919
|
+
output_context_schema: Record<string, unknown>;
|
|
920
|
+
signals: {
|
|
921
|
+
emits: string[];
|
|
922
|
+
emits_after: string[];
|
|
923
|
+
emits_on_fail: string[];
|
|
924
|
+
observed: string[];
|
|
925
|
+
};
|
|
926
|
+
intents: {
|
|
927
|
+
handles: string[];
|
|
928
|
+
inquires: string[];
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
type ServiceManifestSignalDefinition = {
|
|
932
|
+
name: string;
|
|
933
|
+
is_global: boolean;
|
|
934
|
+
domain: string | null;
|
|
935
|
+
action: string;
|
|
936
|
+
is_meta: boolean;
|
|
937
|
+
delivery_mode: "single" | "broadcast";
|
|
938
|
+
broadcast_filter: Record<string, unknown> | null;
|
|
939
|
+
};
|
|
940
|
+
type ServiceManifestIntentDefinition = {
|
|
941
|
+
name: string;
|
|
942
|
+
description: string;
|
|
943
|
+
input: Record<string, unknown>;
|
|
944
|
+
output: Record<string, unknown>;
|
|
945
|
+
is_meta: boolean;
|
|
946
|
+
};
|
|
947
|
+
type ServiceManifestActorDefinition = {
|
|
948
|
+
name: string;
|
|
949
|
+
version: number;
|
|
950
|
+
description: string;
|
|
951
|
+
service_name: string;
|
|
952
|
+
default_key: string;
|
|
953
|
+
load_policy: string;
|
|
954
|
+
write_contract: string;
|
|
955
|
+
runtime_read_guard: string;
|
|
956
|
+
consistency_profile: string | null;
|
|
957
|
+
key_definition: Record<string, unknown> | null;
|
|
958
|
+
state_definition: Record<string, unknown>;
|
|
959
|
+
retry_policy: Record<string, unknown>;
|
|
960
|
+
idempotency_policy: Record<string, unknown>;
|
|
961
|
+
session_policy: Record<string, unknown>;
|
|
962
|
+
is_meta: boolean;
|
|
963
|
+
};
|
|
964
|
+
type ServiceManifestRoutineDefinition = {
|
|
965
|
+
name: string;
|
|
966
|
+
version: number;
|
|
967
|
+
description: string;
|
|
968
|
+
service_name: string;
|
|
969
|
+
is_meta: boolean;
|
|
970
|
+
};
|
|
971
|
+
type ServiceManifestDirectionalTaskMap = {
|
|
972
|
+
task_name: string;
|
|
973
|
+
task_version: number;
|
|
974
|
+
predecessor_task_name: string;
|
|
975
|
+
predecessor_task_version: number;
|
|
976
|
+
service_name: string;
|
|
977
|
+
predecessor_service_name: string;
|
|
978
|
+
};
|
|
979
|
+
type ServiceManifestSignalTaskMap = {
|
|
980
|
+
signal_name: string;
|
|
981
|
+
is_global: boolean;
|
|
982
|
+
task_name: string;
|
|
983
|
+
task_version: number;
|
|
984
|
+
service_name: string;
|
|
985
|
+
};
|
|
986
|
+
type ServiceManifestIntentTaskMap = {
|
|
987
|
+
intent_name: string;
|
|
988
|
+
task_name: string;
|
|
989
|
+
task_version: number;
|
|
990
|
+
service_name: string;
|
|
991
|
+
};
|
|
992
|
+
type ServiceManifestActorTaskMap = {
|
|
993
|
+
actor_name: string;
|
|
994
|
+
actor_version: number;
|
|
995
|
+
task_name: string;
|
|
996
|
+
task_version: number;
|
|
997
|
+
service_name: string;
|
|
998
|
+
mode: "read" | "write" | "meta";
|
|
999
|
+
description: string;
|
|
1000
|
+
is_meta: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
type ServiceManifestTaskRoutineMap = {
|
|
1003
|
+
task_name: string;
|
|
1004
|
+
task_version: number;
|
|
1005
|
+
routine_name: string;
|
|
1006
|
+
routine_version: number;
|
|
1007
|
+
service_name: string;
|
|
1008
|
+
};
|
|
1009
|
+
type ServiceManifestSnapshot = {
|
|
1010
|
+
serviceName: string;
|
|
1011
|
+
serviceInstanceId: string;
|
|
1012
|
+
revision: number;
|
|
1013
|
+
manifestHash: string;
|
|
1014
|
+
publishedAt: string;
|
|
1015
|
+
publicationLayer: ServiceManifestPublicationLayer;
|
|
1016
|
+
tasks: ServiceManifestTaskDefinition[];
|
|
1017
|
+
signals: ServiceManifestSignalDefinition[];
|
|
1018
|
+
intents: ServiceManifestIntentDefinition[];
|
|
1019
|
+
actors: ServiceManifestActorDefinition[];
|
|
1020
|
+
routines: ServiceManifestRoutineDefinition[];
|
|
1021
|
+
directionalTaskMaps: ServiceManifestDirectionalTaskMap[];
|
|
1022
|
+
signalToTaskMaps: ServiceManifestSignalTaskMap[];
|
|
1023
|
+
intentToTaskMaps: ServiceManifestIntentTaskMap[];
|
|
1024
|
+
actorTaskMaps: ServiceManifestActorTaskMap[];
|
|
1025
|
+
taskToRoutineMaps: ServiceManifestTaskRoutineMap[];
|
|
1026
|
+
};
|
|
1027
|
+
|
|
899
1028
|
type SecurityProfile = "low" | "medium" | "high";
|
|
900
1029
|
type NetworkMode = "internal" | "exposed" | "exposed-high-sec" | "auto" | "dev";
|
|
901
1030
|
type ServerOptions = {
|
|
@@ -948,9 +1077,10 @@ declare class CadenzaService {
|
|
|
948
1077
|
protected static hydratedInquiryResults: Map<string, AnyObject>;
|
|
949
1078
|
protected static frontendSyncScheduled: boolean;
|
|
950
1079
|
protected static serviceManifestRevision: number;
|
|
951
|
-
protected static
|
|
1080
|
+
protected static lastPublishedServiceManifestHashes: Partial<Record<ServiceManifestPublicationLayer, string>>;
|
|
952
1081
|
protected static serviceManifestPublicationInFlight: boolean;
|
|
953
1082
|
protected static serviceManifestPublicationPendingReason: string | null;
|
|
1083
|
+
protected static serviceManifestPublicationPendingLayer: ServiceManifestPublicationLayer | null;
|
|
954
1084
|
private static shutdownHandlersRegistered;
|
|
955
1085
|
private static shutdownInFlight;
|
|
956
1086
|
private static shutdownHandlerCleanup;
|
|
@@ -959,6 +1089,8 @@ declare class CadenzaService {
|
|
|
959
1089
|
private static replayRegisteredTaskIntentAssociations;
|
|
960
1090
|
private static replayRegisteredTaskSignalObservations;
|
|
961
1091
|
private static replayRegisteredTaskGraphMetadata;
|
|
1092
|
+
private static normalizeServiceManifestPublicationLayer;
|
|
1093
|
+
private static mergeServiceManifestPublicationRequest;
|
|
962
1094
|
private static requestServiceManifestPublication;
|
|
963
1095
|
private static scheduleServiceManifestPublicationRetry;
|
|
964
1096
|
private static publishServiceManifestIfNeeded;
|
|
@@ -1664,4 +1796,4 @@ declare class CadenzaService {
|
|
|
1664
1796
|
static reset(): void;
|
|
1665
1797
|
}
|
|
1666
1798
|
|
|
1667
|
-
export { AUTHORITY_RUNTIME_STATUS_REPORT_INTENT as A, type BootstrapOptions as B, CadenzaService as C, type DatabaseSchemaDefinition as D, type
|
|
1799
|
+
export { type ServiceTransportDescriptor as $, AUTHORITY_RUNTIME_STATUS_REPORT_INTENT as A, type BootstrapOptions as B, CadenzaService as C, type DatabaseSchemaDefinition as D, type DatabaseMigrationDefinition as E, type DatabaseMigrationPolicy as F, type DatabaseMigrationStep as G, type HydrationOptions as H, DatabaseTask as I, type JoinDefinition as J, type DbOperationType$1 as K, type DeputyDescriptor as L, DeputyTask as M, type DistributedInquiryMeta as N, type FieldDefinition as O, type InquiryResponderDescriptor as P, type InquiryResponderStatus as Q, type NetworkMode as R, type ServerOptions as S, type OpEffect as T, type QueryMode as U, RUNTIME_STATUS_AUTHORITY_SYNC_REQUESTED_SIGNAL as V, type ResolvedBootstrapEndpoint as W, type RuntimeMetricsHealthDetail as X, type SecurityProfile as Y, type ServiceInstanceDescriptor as Z, type ServiceTransportConfig as _, type DatabaseOptions as a, type ServiceTransportProtocol as a0, type ServiceTransportRole as a1, type ServiceTransportSecurityProfile as a2, SignalTransmissionTask as a3, type SortDirection as a4, type SubOperationType as a5, type TableDefinition as a6, type ValueOrSubOp as a7, buildAuthorityRuntimeStatusSignature as a8, normalizeAuthorityRuntimeStatusReport as a9, type DbOperationPayload as b, type SubOperation as c, type DistributedInquiryOptions as d, type ServiceManifestSnapshot as e, type ServiceManifestPublicationLayer as f, type ServiceManifestTaskDefinition as g, type ServiceManifestSignalDefinition as h, type ServiceManifestIntentDefinition as i, type ServiceManifestActorDefinition as j, type ServiceManifestRoutineDefinition as k, type ServiceManifestDirectionalTaskMap as l, type ServiceManifestSignalTaskMap as m, type ServiceManifestIntentTaskMap as n, type ServiceManifestActorTaskMap as o, type ServiceManifestTaskRoutineMap as p, ServiceRegistry as q, type AggregateDefinition as r, type AggregateFunction as s, type AuthorityRuntimeStatusReport as t, type BrowserRuntimeActorHandle as u, type BrowserRuntimeActorOptions as v, type BrowserRuntimeActorRuntimeState as w, type BrowserRuntimeProjectionBinding as x, type BrowserRuntimeServiceOptions as y, type DatabaseMigrationConstraintDefinition as z };
|