@xtrape/capsule-contracts-node 0.3.0 → 0.4.0
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/README.md +24 -0
- package/dist/index.cjs +121 -0
- package/dist/index.d.cts +807 -15
- package/dist/index.d.ts +807 -15
- package/dist/index.js +101 -0
- package/dist/src/index.d.ts +4245 -0
- package/dist/src/index.js +210 -0
- package/dist/tests/bus.spec.d.ts +1 -0
- package/dist/tests/bus.spec.js +52 -0
- package/dist/tests/schema-validation.spec.d.ts +1 -0
- package/dist/tests/schema-validation.spec.js +155 -0
- package/dist/tests/schema.spec.d.ts +1 -0
- package/dist/tests/schema.spec.js +223 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2928,6 +2928,798 @@ declare const actionPrepareResultSchema: z.ZodObject<{
|
|
|
2928
2928
|
initialPayload?: Record<string, any> | undefined;
|
|
2929
2929
|
currentState?: Record<string, any> | undefined;
|
|
2930
2930
|
}>;
|
|
2931
|
+
declare const CapsuleBusExperimentalSchema: z.ZodLiteral<"v0.4-experimental">;
|
|
2932
|
+
type CapsuleBusExperimental = z.infer<typeof CapsuleBusExperimentalSchema>;
|
|
2933
|
+
declare const BusRouteStatus: readonly ["ENABLED", "DISABLED", "DRY_RUN"];
|
|
2934
|
+
type BusRouteStatus = typeof BusRouteStatus[number];
|
|
2935
|
+
declare const BusRouteStatusSchema: z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>;
|
|
2936
|
+
declare const BusEventEnvelopeSchema: z.ZodObject<{
|
|
2937
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
2939
|
+
eventType: z.ZodString;
|
|
2940
|
+
sourceServiceCode: z.ZodString;
|
|
2941
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
2942
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2943
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2944
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2946
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2947
|
+
}, "strip", z.ZodTypeAny, {
|
|
2948
|
+
experimental: "v0.4-experimental";
|
|
2949
|
+
eventType: string;
|
|
2950
|
+
sourceServiceCode: string;
|
|
2951
|
+
id?: string | undefined;
|
|
2952
|
+
metadata?: Record<string, any> | undefined;
|
|
2953
|
+
sourceServiceId?: string | undefined;
|
|
2954
|
+
occurredAt?: string | undefined;
|
|
2955
|
+
correlationId?: string | undefined;
|
|
2956
|
+
causationId?: string | undefined;
|
|
2957
|
+
payload?: Record<string, any> | undefined;
|
|
2958
|
+
}, {
|
|
2959
|
+
eventType: string;
|
|
2960
|
+
sourceServiceCode: string;
|
|
2961
|
+
id?: string | undefined;
|
|
2962
|
+
metadata?: Record<string, any> | undefined;
|
|
2963
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
2964
|
+
sourceServiceId?: string | undefined;
|
|
2965
|
+
occurredAt?: string | undefined;
|
|
2966
|
+
correlationId?: string | undefined;
|
|
2967
|
+
causationId?: string | undefined;
|
|
2968
|
+
payload?: Record<string, any> | undefined;
|
|
2969
|
+
}>;
|
|
2970
|
+
type BusEventEnvelope = z.infer<typeof BusEventEnvelopeSchema>;
|
|
2971
|
+
declare const PublishBusEventRequestSchema: z.ZodObject<Omit<{
|
|
2972
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2973
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
2974
|
+
eventType: z.ZodString;
|
|
2975
|
+
sourceServiceCode: z.ZodString;
|
|
2976
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
2977
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2978
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2979
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2981
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2982
|
+
}, "id"> & {
|
|
2983
|
+
routePolicy: z.ZodOptional<z.ZodObject<{
|
|
2984
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
2985
|
+
}, "strip", z.ZodTypeAny, {
|
|
2986
|
+
dryRun?: boolean | undefined;
|
|
2987
|
+
}, {
|
|
2988
|
+
dryRun?: boolean | undefined;
|
|
2989
|
+
}>>;
|
|
2990
|
+
}, "strip", z.ZodTypeAny, {
|
|
2991
|
+
experimental: "v0.4-experimental";
|
|
2992
|
+
eventType: string;
|
|
2993
|
+
sourceServiceCode: string;
|
|
2994
|
+
metadata?: Record<string, any> | undefined;
|
|
2995
|
+
sourceServiceId?: string | undefined;
|
|
2996
|
+
occurredAt?: string | undefined;
|
|
2997
|
+
correlationId?: string | undefined;
|
|
2998
|
+
causationId?: string | undefined;
|
|
2999
|
+
payload?: Record<string, any> | undefined;
|
|
3000
|
+
routePolicy?: {
|
|
3001
|
+
dryRun?: boolean | undefined;
|
|
3002
|
+
} | undefined;
|
|
3003
|
+
}, {
|
|
3004
|
+
eventType: string;
|
|
3005
|
+
sourceServiceCode: string;
|
|
3006
|
+
metadata?: Record<string, any> | undefined;
|
|
3007
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3008
|
+
sourceServiceId?: string | undefined;
|
|
3009
|
+
occurredAt?: string | undefined;
|
|
3010
|
+
correlationId?: string | undefined;
|
|
3011
|
+
causationId?: string | undefined;
|
|
3012
|
+
payload?: Record<string, any> | undefined;
|
|
3013
|
+
routePolicy?: {
|
|
3014
|
+
dryRun?: boolean | undefined;
|
|
3015
|
+
} | undefined;
|
|
3016
|
+
}>;
|
|
3017
|
+
type PublishBusEventRequest = z.infer<typeof PublishBusEventRequestSchema>;
|
|
3018
|
+
declare const BusRouteRuleSchema: z.ZodObject<{
|
|
3019
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
name: z.ZodString;
|
|
3021
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3023
|
+
match: z.ZodObject<{
|
|
3024
|
+
eventType: z.ZodString;
|
|
3025
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
}, "strip", z.ZodTypeAny, {
|
|
3027
|
+
eventType: string;
|
|
3028
|
+
sourceServiceCode?: string | undefined;
|
|
3029
|
+
}, {
|
|
3030
|
+
eventType: string;
|
|
3031
|
+
sourceServiceCode?: string | undefined;
|
|
3032
|
+
}>;
|
|
3033
|
+
target: z.ZodObject<{
|
|
3034
|
+
serviceCode: z.ZodString;
|
|
3035
|
+
actionName: z.ZodString;
|
|
3036
|
+
}, "strip", z.ZodTypeAny, {
|
|
3037
|
+
serviceCode: string;
|
|
3038
|
+
actionName: string;
|
|
3039
|
+
}, {
|
|
3040
|
+
serviceCode: string;
|
|
3041
|
+
actionName: string;
|
|
3042
|
+
}>;
|
|
3043
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3044
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3045
|
+
}, "strip", z.ZodTypeAny, {
|
|
3046
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3047
|
+
name: string;
|
|
3048
|
+
match: {
|
|
3049
|
+
eventType: string;
|
|
3050
|
+
sourceServiceCode?: string | undefined;
|
|
3051
|
+
};
|
|
3052
|
+
target: {
|
|
3053
|
+
serviceCode: string;
|
|
3054
|
+
actionName: string;
|
|
3055
|
+
};
|
|
3056
|
+
id?: string | undefined;
|
|
3057
|
+
description?: string | undefined;
|
|
3058
|
+
metadata?: Record<string, any> | undefined;
|
|
3059
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3060
|
+
}, {
|
|
3061
|
+
name: string;
|
|
3062
|
+
match: {
|
|
3063
|
+
eventType: string;
|
|
3064
|
+
sourceServiceCode?: string | undefined;
|
|
3065
|
+
};
|
|
3066
|
+
target: {
|
|
3067
|
+
serviceCode: string;
|
|
3068
|
+
actionName: string;
|
|
3069
|
+
};
|
|
3070
|
+
id?: string | undefined;
|
|
3071
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3072
|
+
description?: string | undefined;
|
|
3073
|
+
metadata?: Record<string, any> | undefined;
|
|
3074
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3075
|
+
}>;
|
|
3076
|
+
type BusRouteRule = z.infer<typeof BusRouteRuleSchema>;
|
|
3077
|
+
declare const CreateBusRouteRuleRequestSchema: z.ZodObject<Omit<{
|
|
3078
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3079
|
+
name: z.ZodString;
|
|
3080
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3081
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3082
|
+
match: z.ZodObject<{
|
|
3083
|
+
eventType: z.ZodString;
|
|
3084
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3085
|
+
}, "strip", z.ZodTypeAny, {
|
|
3086
|
+
eventType: string;
|
|
3087
|
+
sourceServiceCode?: string | undefined;
|
|
3088
|
+
}, {
|
|
3089
|
+
eventType: string;
|
|
3090
|
+
sourceServiceCode?: string | undefined;
|
|
3091
|
+
}>;
|
|
3092
|
+
target: z.ZodObject<{
|
|
3093
|
+
serviceCode: z.ZodString;
|
|
3094
|
+
actionName: z.ZodString;
|
|
3095
|
+
}, "strip", z.ZodTypeAny, {
|
|
3096
|
+
serviceCode: string;
|
|
3097
|
+
actionName: string;
|
|
3098
|
+
}, {
|
|
3099
|
+
serviceCode: string;
|
|
3100
|
+
actionName: string;
|
|
3101
|
+
}>;
|
|
3102
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3103
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3104
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
3105
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3106
|
+
name: string;
|
|
3107
|
+
match: {
|
|
3108
|
+
eventType: string;
|
|
3109
|
+
sourceServiceCode?: string | undefined;
|
|
3110
|
+
};
|
|
3111
|
+
target: {
|
|
3112
|
+
serviceCode: string;
|
|
3113
|
+
actionName: string;
|
|
3114
|
+
};
|
|
3115
|
+
description?: string | undefined;
|
|
3116
|
+
metadata?: Record<string, any> | undefined;
|
|
3117
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3118
|
+
}, {
|
|
3119
|
+
name: string;
|
|
3120
|
+
match: {
|
|
3121
|
+
eventType: string;
|
|
3122
|
+
sourceServiceCode?: string | undefined;
|
|
3123
|
+
};
|
|
3124
|
+
target: {
|
|
3125
|
+
serviceCode: string;
|
|
3126
|
+
actionName: string;
|
|
3127
|
+
};
|
|
3128
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3129
|
+
description?: string | undefined;
|
|
3130
|
+
metadata?: Record<string, any> | undefined;
|
|
3131
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3132
|
+
}>;
|
|
3133
|
+
type CreateBusRouteRuleRequest = z.infer<typeof CreateBusRouteRuleRequestSchema>;
|
|
3134
|
+
declare const BusCommandRequestSchema: z.ZodObject<{
|
|
3135
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3136
|
+
commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
|
|
3137
|
+
targetService: z.ZodString;
|
|
3138
|
+
actionName: z.ZodString;
|
|
3139
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
3140
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3141
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3142
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3143
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
3145
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
3148
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3149
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3150
|
+
}, z.ZodAny, "strip">>>;
|
|
3151
|
+
}, "strip", z.ZodTypeAny, {
|
|
3152
|
+
actionName: string;
|
|
3153
|
+
commandType: "ACTION_EXECUTE";
|
|
3154
|
+
targetService: string;
|
|
3155
|
+
metadata?: z.objectOutputType<{
|
|
3156
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3157
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3158
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3159
|
+
payload?: Record<string, any> | undefined;
|
|
3160
|
+
commandId?: string | undefined;
|
|
3161
|
+
sourceEventId?: string | undefined;
|
|
3162
|
+
}, {
|
|
3163
|
+
actionName: string;
|
|
3164
|
+
targetService: string;
|
|
3165
|
+
metadata?: z.objectInputType<{
|
|
3166
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3167
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3168
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3169
|
+
payload?: Record<string, any> | undefined;
|
|
3170
|
+
commandId?: string | undefined;
|
|
3171
|
+
commandType?: "ACTION_EXECUTE" | undefined;
|
|
3172
|
+
sourceEventId?: string | undefined;
|
|
3173
|
+
}>;
|
|
3174
|
+
type BusCommandRequest = z.infer<typeof BusCommandRequestSchema>;
|
|
3175
|
+
declare const busCommandRequestSchema: z.ZodObject<{
|
|
3176
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3177
|
+
commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
|
|
3178
|
+
targetService: z.ZodString;
|
|
3179
|
+
actionName: z.ZodString;
|
|
3180
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
3181
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3182
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3183
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3184
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
3186
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3187
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3188
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
3189
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3190
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3191
|
+
}, z.ZodAny, "strip">>>;
|
|
3192
|
+
}, "strip", z.ZodTypeAny, {
|
|
3193
|
+
actionName: string;
|
|
3194
|
+
commandType: "ACTION_EXECUTE";
|
|
3195
|
+
targetService: string;
|
|
3196
|
+
metadata?: z.objectOutputType<{
|
|
3197
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3198
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3199
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3200
|
+
payload?: Record<string, any> | undefined;
|
|
3201
|
+
commandId?: string | undefined;
|
|
3202
|
+
sourceEventId?: string | undefined;
|
|
3203
|
+
}, {
|
|
3204
|
+
actionName: string;
|
|
3205
|
+
targetService: string;
|
|
3206
|
+
metadata?: z.objectInputType<{
|
|
3207
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3210
|
+
payload?: Record<string, any> | undefined;
|
|
3211
|
+
commandId?: string | undefined;
|
|
3212
|
+
commandType?: "ACTION_EXECUTE" | undefined;
|
|
3213
|
+
sourceEventId?: string | undefined;
|
|
3214
|
+
}>;
|
|
3215
|
+
declare const BusRoutingRuleSchema: z.ZodObject<{
|
|
3216
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
name: z.ZodString;
|
|
3218
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3220
|
+
match: z.ZodObject<{
|
|
3221
|
+
eventType: z.ZodString;
|
|
3222
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3223
|
+
}, "strip", z.ZodTypeAny, {
|
|
3224
|
+
eventType: string;
|
|
3225
|
+
sourceServiceCode?: string | undefined;
|
|
3226
|
+
}, {
|
|
3227
|
+
eventType: string;
|
|
3228
|
+
sourceServiceCode?: string | undefined;
|
|
3229
|
+
}>;
|
|
3230
|
+
target: z.ZodObject<{
|
|
3231
|
+
serviceCode: z.ZodString;
|
|
3232
|
+
actionName: z.ZodString;
|
|
3233
|
+
}, "strip", z.ZodTypeAny, {
|
|
3234
|
+
serviceCode: string;
|
|
3235
|
+
actionName: string;
|
|
3236
|
+
}, {
|
|
3237
|
+
serviceCode: string;
|
|
3238
|
+
actionName: string;
|
|
3239
|
+
}>;
|
|
3240
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3241
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3242
|
+
}, "strip", z.ZodTypeAny, {
|
|
3243
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3244
|
+
name: string;
|
|
3245
|
+
match: {
|
|
3246
|
+
eventType: string;
|
|
3247
|
+
sourceServiceCode?: string | undefined;
|
|
3248
|
+
};
|
|
3249
|
+
target: {
|
|
3250
|
+
serviceCode: string;
|
|
3251
|
+
actionName: string;
|
|
3252
|
+
};
|
|
3253
|
+
id?: string | undefined;
|
|
3254
|
+
description?: string | undefined;
|
|
3255
|
+
metadata?: Record<string, any> | undefined;
|
|
3256
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3257
|
+
}, {
|
|
3258
|
+
name: string;
|
|
3259
|
+
match: {
|
|
3260
|
+
eventType: string;
|
|
3261
|
+
sourceServiceCode?: string | undefined;
|
|
3262
|
+
};
|
|
3263
|
+
target: {
|
|
3264
|
+
serviceCode: string;
|
|
3265
|
+
actionName: string;
|
|
3266
|
+
};
|
|
3267
|
+
id?: string | undefined;
|
|
3268
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3269
|
+
description?: string | undefined;
|
|
3270
|
+
metadata?: Record<string, any> | undefined;
|
|
3271
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3272
|
+
}>;
|
|
3273
|
+
type BusRoutingRule = BusRouteRule;
|
|
3274
|
+
declare const busRoutingRuleSchema: z.ZodObject<{
|
|
3275
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3276
|
+
name: z.ZodString;
|
|
3277
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3278
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3279
|
+
match: z.ZodObject<{
|
|
3280
|
+
eventType: z.ZodString;
|
|
3281
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3282
|
+
}, "strip", z.ZodTypeAny, {
|
|
3283
|
+
eventType: string;
|
|
3284
|
+
sourceServiceCode?: string | undefined;
|
|
3285
|
+
}, {
|
|
3286
|
+
eventType: string;
|
|
3287
|
+
sourceServiceCode?: string | undefined;
|
|
3288
|
+
}>;
|
|
3289
|
+
target: z.ZodObject<{
|
|
3290
|
+
serviceCode: z.ZodString;
|
|
3291
|
+
actionName: z.ZodString;
|
|
3292
|
+
}, "strip", z.ZodTypeAny, {
|
|
3293
|
+
serviceCode: string;
|
|
3294
|
+
actionName: string;
|
|
3295
|
+
}, {
|
|
3296
|
+
serviceCode: string;
|
|
3297
|
+
actionName: string;
|
|
3298
|
+
}>;
|
|
3299
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3300
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3301
|
+
}, "strip", z.ZodTypeAny, {
|
|
3302
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3303
|
+
name: string;
|
|
3304
|
+
match: {
|
|
3305
|
+
eventType: string;
|
|
3306
|
+
sourceServiceCode?: string | undefined;
|
|
3307
|
+
};
|
|
3308
|
+
target: {
|
|
3309
|
+
serviceCode: string;
|
|
3310
|
+
actionName: string;
|
|
3311
|
+
};
|
|
3312
|
+
id?: string | undefined;
|
|
3313
|
+
description?: string | undefined;
|
|
3314
|
+
metadata?: Record<string, any> | undefined;
|
|
3315
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3316
|
+
}, {
|
|
3317
|
+
name: string;
|
|
3318
|
+
match: {
|
|
3319
|
+
eventType: string;
|
|
3320
|
+
sourceServiceCode?: string | undefined;
|
|
3321
|
+
};
|
|
3322
|
+
target: {
|
|
3323
|
+
serviceCode: string;
|
|
3324
|
+
actionName: string;
|
|
3325
|
+
};
|
|
3326
|
+
id?: string | undefined;
|
|
3327
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3328
|
+
description?: string | undefined;
|
|
3329
|
+
metadata?: Record<string, any> | undefined;
|
|
3330
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3331
|
+
}>;
|
|
3332
|
+
declare const BusRoutedCommandSchema: z.ZodObject<{
|
|
3333
|
+
routeId: z.ZodString;
|
|
3334
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
dryRun: z.ZodBoolean;
|
|
3336
|
+
targetServiceCode: z.ZodString;
|
|
3337
|
+
actionName: z.ZodString;
|
|
3338
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3339
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3340
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3341
|
+
}, "strip", z.ZodTypeAny, {
|
|
3342
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3343
|
+
dryRun: boolean;
|
|
3344
|
+
actionName: string;
|
|
3345
|
+
routeId: string;
|
|
3346
|
+
targetServiceCode: string;
|
|
3347
|
+
commandId?: string | undefined;
|
|
3348
|
+
errorCode?: string | undefined;
|
|
3349
|
+
errorMessage?: string | undefined;
|
|
3350
|
+
}, {
|
|
3351
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3352
|
+
dryRun: boolean;
|
|
3353
|
+
actionName: string;
|
|
3354
|
+
routeId: string;
|
|
3355
|
+
targetServiceCode: string;
|
|
3356
|
+
commandId?: string | undefined;
|
|
3357
|
+
errorCode?: string | undefined;
|
|
3358
|
+
errorMessage?: string | undefined;
|
|
3359
|
+
}>;
|
|
3360
|
+
type BusRoutedCommand = z.infer<typeof BusRoutedCommandSchema>;
|
|
3361
|
+
declare const PublishBusEventResponseSchema: z.ZodObject<{
|
|
3362
|
+
eventId: z.ZodString;
|
|
3363
|
+
experimental: z.ZodLiteral<"v0.4-experimental">;
|
|
3364
|
+
routedCommands: z.ZodArray<z.ZodObject<{
|
|
3365
|
+
routeId: z.ZodString;
|
|
3366
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3367
|
+
dryRun: z.ZodBoolean;
|
|
3368
|
+
targetServiceCode: z.ZodString;
|
|
3369
|
+
actionName: z.ZodString;
|
|
3370
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3371
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3372
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3373
|
+
}, "strip", z.ZodTypeAny, {
|
|
3374
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3375
|
+
dryRun: boolean;
|
|
3376
|
+
actionName: string;
|
|
3377
|
+
routeId: string;
|
|
3378
|
+
targetServiceCode: string;
|
|
3379
|
+
commandId?: string | undefined;
|
|
3380
|
+
errorCode?: string | undefined;
|
|
3381
|
+
errorMessage?: string | undefined;
|
|
3382
|
+
}, {
|
|
3383
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3384
|
+
dryRun: boolean;
|
|
3385
|
+
actionName: string;
|
|
3386
|
+
routeId: string;
|
|
3387
|
+
targetServiceCode: string;
|
|
3388
|
+
commandId?: string | undefined;
|
|
3389
|
+
errorCode?: string | undefined;
|
|
3390
|
+
errorMessage?: string | undefined;
|
|
3391
|
+
}>, "many">;
|
|
3392
|
+
}, "strip", z.ZodTypeAny, {
|
|
3393
|
+
experimental: "v0.4-experimental";
|
|
3394
|
+
eventId: string;
|
|
3395
|
+
routedCommands: {
|
|
3396
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3397
|
+
dryRun: boolean;
|
|
3398
|
+
actionName: string;
|
|
3399
|
+
routeId: string;
|
|
3400
|
+
targetServiceCode: string;
|
|
3401
|
+
commandId?: string | undefined;
|
|
3402
|
+
errorCode?: string | undefined;
|
|
3403
|
+
errorMessage?: string | undefined;
|
|
3404
|
+
}[];
|
|
3405
|
+
}, {
|
|
3406
|
+
experimental: "v0.4-experimental";
|
|
3407
|
+
eventId: string;
|
|
3408
|
+
routedCommands: {
|
|
3409
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3410
|
+
dryRun: boolean;
|
|
3411
|
+
actionName: string;
|
|
3412
|
+
routeId: string;
|
|
3413
|
+
targetServiceCode: string;
|
|
3414
|
+
commandId?: string | undefined;
|
|
3415
|
+
errorCode?: string | undefined;
|
|
3416
|
+
errorMessage?: string | undefined;
|
|
3417
|
+
}[];
|
|
3418
|
+
}>;
|
|
3419
|
+
type PublishBusEventResponse = z.infer<typeof PublishBusEventResponseSchema>;
|
|
3420
|
+
declare const BusEventRecordSchema: z.ZodObject<{
|
|
3421
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3422
|
+
eventType: z.ZodString;
|
|
3423
|
+
sourceServiceCode: z.ZodString;
|
|
3424
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3425
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3426
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3427
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3428
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3429
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3430
|
+
} & {
|
|
3431
|
+
id: z.ZodString;
|
|
3432
|
+
agentId: z.ZodString;
|
|
3433
|
+
acceptedAt: z.ZodString;
|
|
3434
|
+
routeCount: z.ZodNumber;
|
|
3435
|
+
}, "strip", z.ZodTypeAny, {
|
|
3436
|
+
id: string;
|
|
3437
|
+
agentId: string;
|
|
3438
|
+
experimental: "v0.4-experimental";
|
|
3439
|
+
eventType: string;
|
|
3440
|
+
sourceServiceCode: string;
|
|
3441
|
+
acceptedAt: string;
|
|
3442
|
+
routeCount: number;
|
|
3443
|
+
metadata?: Record<string, any> | undefined;
|
|
3444
|
+
sourceServiceId?: string | undefined;
|
|
3445
|
+
occurredAt?: string | undefined;
|
|
3446
|
+
correlationId?: string | undefined;
|
|
3447
|
+
causationId?: string | undefined;
|
|
3448
|
+
payload?: Record<string, any> | undefined;
|
|
3449
|
+
}, {
|
|
3450
|
+
id: string;
|
|
3451
|
+
agentId: string;
|
|
3452
|
+
eventType: string;
|
|
3453
|
+
sourceServiceCode: string;
|
|
3454
|
+
acceptedAt: string;
|
|
3455
|
+
routeCount: number;
|
|
3456
|
+
metadata?: Record<string, any> | undefined;
|
|
3457
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3458
|
+
sourceServiceId?: string | undefined;
|
|
3459
|
+
occurredAt?: string | undefined;
|
|
3460
|
+
correlationId?: string | undefined;
|
|
3461
|
+
causationId?: string | undefined;
|
|
3462
|
+
payload?: Record<string, any> | undefined;
|
|
3463
|
+
}>;
|
|
3464
|
+
type BusEventRecord = z.infer<typeof BusEventRecordSchema>;
|
|
3465
|
+
declare const BusErrorCode: {
|
|
3466
|
+
readonly CAPSULE_BUS_DISABLED: "CAPSULE_BUS_DISABLED";
|
|
3467
|
+
readonly BUS_RATE_LIMITED: "BUS_RATE_LIMITED";
|
|
3468
|
+
readonly BUS_DEPTH_EXCEEDED: "BUS_DEPTH_EXCEEDED";
|
|
3469
|
+
};
|
|
3470
|
+
type BusErrorCode = (typeof BusErrorCode)[keyof typeof BusErrorCode];
|
|
3471
|
+
declare const publishBusEventRequestSchema: z.ZodObject<Omit<{
|
|
3472
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3473
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3474
|
+
eventType: z.ZodString;
|
|
3475
|
+
sourceServiceCode: z.ZodString;
|
|
3476
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3477
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3481
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3482
|
+
}, "id"> & {
|
|
3483
|
+
routePolicy: z.ZodOptional<z.ZodObject<{
|
|
3484
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
3485
|
+
}, "strip", z.ZodTypeAny, {
|
|
3486
|
+
dryRun?: boolean | undefined;
|
|
3487
|
+
}, {
|
|
3488
|
+
dryRun?: boolean | undefined;
|
|
3489
|
+
}>>;
|
|
3490
|
+
}, "strip", z.ZodTypeAny, {
|
|
3491
|
+
experimental: "v0.4-experimental";
|
|
3492
|
+
eventType: string;
|
|
3493
|
+
sourceServiceCode: string;
|
|
3494
|
+
metadata?: Record<string, any> | undefined;
|
|
3495
|
+
sourceServiceId?: string | undefined;
|
|
3496
|
+
occurredAt?: string | undefined;
|
|
3497
|
+
correlationId?: string | undefined;
|
|
3498
|
+
causationId?: string | undefined;
|
|
3499
|
+
payload?: Record<string, any> | undefined;
|
|
3500
|
+
routePolicy?: {
|
|
3501
|
+
dryRun?: boolean | undefined;
|
|
3502
|
+
} | undefined;
|
|
3503
|
+
}, {
|
|
3504
|
+
eventType: string;
|
|
3505
|
+
sourceServiceCode: string;
|
|
3506
|
+
metadata?: Record<string, any> | undefined;
|
|
3507
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3508
|
+
sourceServiceId?: string | undefined;
|
|
3509
|
+
occurredAt?: string | undefined;
|
|
3510
|
+
correlationId?: string | undefined;
|
|
3511
|
+
causationId?: string | undefined;
|
|
3512
|
+
payload?: Record<string, any> | undefined;
|
|
3513
|
+
routePolicy?: {
|
|
3514
|
+
dryRun?: boolean | undefined;
|
|
3515
|
+
} | undefined;
|
|
3516
|
+
}>;
|
|
3517
|
+
declare const publishBusEventResponseSchema: z.ZodObject<{
|
|
3518
|
+
eventId: z.ZodString;
|
|
3519
|
+
experimental: z.ZodLiteral<"v0.4-experimental">;
|
|
3520
|
+
routedCommands: z.ZodArray<z.ZodObject<{
|
|
3521
|
+
routeId: z.ZodString;
|
|
3522
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3523
|
+
dryRun: z.ZodBoolean;
|
|
3524
|
+
targetServiceCode: z.ZodString;
|
|
3525
|
+
actionName: z.ZodString;
|
|
3526
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3527
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3528
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3529
|
+
}, "strip", z.ZodTypeAny, {
|
|
3530
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3531
|
+
dryRun: boolean;
|
|
3532
|
+
actionName: string;
|
|
3533
|
+
routeId: string;
|
|
3534
|
+
targetServiceCode: string;
|
|
3535
|
+
commandId?: string | undefined;
|
|
3536
|
+
errorCode?: string | undefined;
|
|
3537
|
+
errorMessage?: string | undefined;
|
|
3538
|
+
}, {
|
|
3539
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3540
|
+
dryRun: boolean;
|
|
3541
|
+
actionName: string;
|
|
3542
|
+
routeId: string;
|
|
3543
|
+
targetServiceCode: string;
|
|
3544
|
+
commandId?: string | undefined;
|
|
3545
|
+
errorCode?: string | undefined;
|
|
3546
|
+
errorMessage?: string | undefined;
|
|
3547
|
+
}>, "many">;
|
|
3548
|
+
}, "strip", z.ZodTypeAny, {
|
|
3549
|
+
experimental: "v0.4-experimental";
|
|
3550
|
+
eventId: string;
|
|
3551
|
+
routedCommands: {
|
|
3552
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3553
|
+
dryRun: boolean;
|
|
3554
|
+
actionName: string;
|
|
3555
|
+
routeId: string;
|
|
3556
|
+
targetServiceCode: string;
|
|
3557
|
+
commandId?: string | undefined;
|
|
3558
|
+
errorCode?: string | undefined;
|
|
3559
|
+
errorMessage?: string | undefined;
|
|
3560
|
+
}[];
|
|
3561
|
+
}, {
|
|
3562
|
+
experimental: "v0.4-experimental";
|
|
3563
|
+
eventId: string;
|
|
3564
|
+
routedCommands: {
|
|
3565
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3566
|
+
dryRun: boolean;
|
|
3567
|
+
actionName: string;
|
|
3568
|
+
routeId: string;
|
|
3569
|
+
targetServiceCode: string;
|
|
3570
|
+
commandId?: string | undefined;
|
|
3571
|
+
errorCode?: string | undefined;
|
|
3572
|
+
errorMessage?: string | undefined;
|
|
3573
|
+
}[];
|
|
3574
|
+
}>;
|
|
3575
|
+
declare const busEventEnvelopeSchema: z.ZodObject<{
|
|
3576
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3578
|
+
eventType: z.ZodString;
|
|
3579
|
+
sourceServiceCode: z.ZodString;
|
|
3580
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3581
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3582
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3583
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3585
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3586
|
+
}, "strip", z.ZodTypeAny, {
|
|
3587
|
+
experimental: "v0.4-experimental";
|
|
3588
|
+
eventType: string;
|
|
3589
|
+
sourceServiceCode: string;
|
|
3590
|
+
id?: string | undefined;
|
|
3591
|
+
metadata?: Record<string, any> | undefined;
|
|
3592
|
+
sourceServiceId?: string | undefined;
|
|
3593
|
+
occurredAt?: string | undefined;
|
|
3594
|
+
correlationId?: string | undefined;
|
|
3595
|
+
causationId?: string | undefined;
|
|
3596
|
+
payload?: Record<string, any> | undefined;
|
|
3597
|
+
}, {
|
|
3598
|
+
eventType: string;
|
|
3599
|
+
sourceServiceCode: string;
|
|
3600
|
+
id?: string | undefined;
|
|
3601
|
+
metadata?: Record<string, any> | undefined;
|
|
3602
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3603
|
+
sourceServiceId?: string | undefined;
|
|
3604
|
+
occurredAt?: string | undefined;
|
|
3605
|
+
correlationId?: string | undefined;
|
|
3606
|
+
causationId?: string | undefined;
|
|
3607
|
+
payload?: Record<string, any> | undefined;
|
|
3608
|
+
}>;
|
|
3609
|
+
declare const busRouteRuleSchema: z.ZodObject<{
|
|
3610
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3611
|
+
name: z.ZodString;
|
|
3612
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3613
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3614
|
+
match: z.ZodObject<{
|
|
3615
|
+
eventType: z.ZodString;
|
|
3616
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3617
|
+
}, "strip", z.ZodTypeAny, {
|
|
3618
|
+
eventType: string;
|
|
3619
|
+
sourceServiceCode?: string | undefined;
|
|
3620
|
+
}, {
|
|
3621
|
+
eventType: string;
|
|
3622
|
+
sourceServiceCode?: string | undefined;
|
|
3623
|
+
}>;
|
|
3624
|
+
target: z.ZodObject<{
|
|
3625
|
+
serviceCode: z.ZodString;
|
|
3626
|
+
actionName: z.ZodString;
|
|
3627
|
+
}, "strip", z.ZodTypeAny, {
|
|
3628
|
+
serviceCode: string;
|
|
3629
|
+
actionName: string;
|
|
3630
|
+
}, {
|
|
3631
|
+
serviceCode: string;
|
|
3632
|
+
actionName: string;
|
|
3633
|
+
}>;
|
|
3634
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3635
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3636
|
+
}, "strip", z.ZodTypeAny, {
|
|
3637
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3638
|
+
name: string;
|
|
3639
|
+
match: {
|
|
3640
|
+
eventType: string;
|
|
3641
|
+
sourceServiceCode?: string | undefined;
|
|
3642
|
+
};
|
|
3643
|
+
target: {
|
|
3644
|
+
serviceCode: string;
|
|
3645
|
+
actionName: string;
|
|
3646
|
+
};
|
|
3647
|
+
id?: string | undefined;
|
|
3648
|
+
description?: string | undefined;
|
|
3649
|
+
metadata?: Record<string, any> | undefined;
|
|
3650
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3651
|
+
}, {
|
|
3652
|
+
name: string;
|
|
3653
|
+
match: {
|
|
3654
|
+
eventType: string;
|
|
3655
|
+
sourceServiceCode?: string | undefined;
|
|
3656
|
+
};
|
|
3657
|
+
target: {
|
|
3658
|
+
serviceCode: string;
|
|
3659
|
+
actionName: string;
|
|
3660
|
+
};
|
|
3661
|
+
id?: string | undefined;
|
|
3662
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3663
|
+
description?: string | undefined;
|
|
3664
|
+
metadata?: Record<string, any> | undefined;
|
|
3665
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3666
|
+
}>;
|
|
3667
|
+
declare const createBusRouteRuleRequestSchema: z.ZodObject<Omit<{
|
|
3668
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3669
|
+
name: z.ZodString;
|
|
3670
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3671
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3672
|
+
match: z.ZodObject<{
|
|
3673
|
+
eventType: z.ZodString;
|
|
3674
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3675
|
+
}, "strip", z.ZodTypeAny, {
|
|
3676
|
+
eventType: string;
|
|
3677
|
+
sourceServiceCode?: string | undefined;
|
|
3678
|
+
}, {
|
|
3679
|
+
eventType: string;
|
|
3680
|
+
sourceServiceCode?: string | undefined;
|
|
3681
|
+
}>;
|
|
3682
|
+
target: z.ZodObject<{
|
|
3683
|
+
serviceCode: z.ZodString;
|
|
3684
|
+
actionName: z.ZodString;
|
|
3685
|
+
}, "strip", z.ZodTypeAny, {
|
|
3686
|
+
serviceCode: string;
|
|
3687
|
+
actionName: string;
|
|
3688
|
+
}, {
|
|
3689
|
+
serviceCode: string;
|
|
3690
|
+
actionName: string;
|
|
3691
|
+
}>;
|
|
3692
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3693
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3694
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
3695
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3696
|
+
name: string;
|
|
3697
|
+
match: {
|
|
3698
|
+
eventType: string;
|
|
3699
|
+
sourceServiceCode?: string | undefined;
|
|
3700
|
+
};
|
|
3701
|
+
target: {
|
|
3702
|
+
serviceCode: string;
|
|
3703
|
+
actionName: string;
|
|
3704
|
+
};
|
|
3705
|
+
description?: string | undefined;
|
|
3706
|
+
metadata?: Record<string, any> | undefined;
|
|
3707
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3708
|
+
}, {
|
|
3709
|
+
name: string;
|
|
3710
|
+
match: {
|
|
3711
|
+
eventType: string;
|
|
3712
|
+
sourceServiceCode?: string | undefined;
|
|
3713
|
+
};
|
|
3714
|
+
target: {
|
|
3715
|
+
serviceCode: string;
|
|
3716
|
+
actionName: string;
|
|
3717
|
+
};
|
|
3718
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3719
|
+
description?: string | undefined;
|
|
3720
|
+
metadata?: Record<string, any> | undefined;
|
|
3721
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3722
|
+
}>;
|
|
2931
3723
|
declare const CreateActionCommandRequestSchema: z.ZodObject<{
|
|
2932
3724
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2933
3725
|
confirmation: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2965,7 +3757,7 @@ declare const CommandSchema: z.ZodObject<{
|
|
|
2965
3757
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2966
3758
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2967
3759
|
}, "strip", z.ZodTypeAny, {
|
|
2968
|
-
type: "
|
|
3760
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2969
3761
|
id: string;
|
|
2970
3762
|
createdAt: string;
|
|
2971
3763
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2978,7 +3770,7 @@ declare const CommandSchema: z.ZodObject<{
|
|
|
2978
3770
|
startedAt?: string | null | undefined;
|
|
2979
3771
|
completedAt?: string | null | undefined;
|
|
2980
3772
|
}, {
|
|
2981
|
-
type: "
|
|
3773
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2982
3774
|
id: string;
|
|
2983
3775
|
createdAt: string;
|
|
2984
3776
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3048,16 +3840,16 @@ declare const CommandResultSchema: z.ZodObject<{
|
|
|
3048
3840
|
}, "strip", z.ZodTypeAny, {
|
|
3049
3841
|
id: string;
|
|
3050
3842
|
reportedAt: string;
|
|
3051
|
-
success: boolean;
|
|
3052
3843
|
commandId: string;
|
|
3844
|
+
success: boolean;
|
|
3053
3845
|
message?: string | null | undefined;
|
|
3054
3846
|
data?: Record<string, any> | undefined;
|
|
3055
3847
|
error?: Record<string, any> | undefined;
|
|
3056
3848
|
}, {
|
|
3057
3849
|
id: string;
|
|
3058
3850
|
reportedAt: string;
|
|
3059
|
-
success: boolean;
|
|
3060
3851
|
commandId: string;
|
|
3852
|
+
success: boolean;
|
|
3061
3853
|
message?: string | null | undefined;
|
|
3062
3854
|
data?: Record<string, any> | undefined;
|
|
3063
3855
|
error?: Record<string, any> | undefined;
|
|
@@ -3088,22 +3880,22 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
3088
3880
|
}, "strip", z.ZodTypeAny, {
|
|
3089
3881
|
id: string;
|
|
3090
3882
|
reportedAt: string;
|
|
3091
|
-
success: boolean;
|
|
3092
3883
|
commandId: string;
|
|
3884
|
+
success: boolean;
|
|
3093
3885
|
message?: string | null | undefined;
|
|
3094
3886
|
data?: Record<string, any> | undefined;
|
|
3095
3887
|
error?: Record<string, any> | undefined;
|
|
3096
3888
|
}, {
|
|
3097
3889
|
id: string;
|
|
3098
3890
|
reportedAt: string;
|
|
3099
|
-
success: boolean;
|
|
3100
3891
|
commandId: string;
|
|
3892
|
+
success: boolean;
|
|
3101
3893
|
message?: string | null | undefined;
|
|
3102
3894
|
data?: Record<string, any> | undefined;
|
|
3103
3895
|
error?: Record<string, any> | undefined;
|
|
3104
3896
|
}>>>;
|
|
3105
3897
|
}, "strip", z.ZodTypeAny, {
|
|
3106
|
-
type: "
|
|
3898
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3107
3899
|
id: string;
|
|
3108
3900
|
createdAt: string;
|
|
3109
3901
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3118,14 +3910,14 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
3118
3910
|
result?: {
|
|
3119
3911
|
id: string;
|
|
3120
3912
|
reportedAt: string;
|
|
3121
|
-
success: boolean;
|
|
3122
3913
|
commandId: string;
|
|
3914
|
+
success: boolean;
|
|
3123
3915
|
message?: string | null | undefined;
|
|
3124
3916
|
data?: Record<string, any> | undefined;
|
|
3125
3917
|
error?: Record<string, any> | undefined;
|
|
3126
3918
|
} | null | undefined;
|
|
3127
3919
|
}, {
|
|
3128
|
-
type: "
|
|
3920
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3129
3921
|
id: string;
|
|
3130
3922
|
createdAt: string;
|
|
3131
3923
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3140,8 +3932,8 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
3140
3932
|
result?: {
|
|
3141
3933
|
id: string;
|
|
3142
3934
|
reportedAt: string;
|
|
3143
|
-
success: boolean;
|
|
3144
3935
|
commandId: string;
|
|
3936
|
+
success: boolean;
|
|
3145
3937
|
message?: string | null | undefined;
|
|
3146
3938
|
data?: Record<string, any> | undefined;
|
|
3147
3939
|
error?: Record<string, any> | undefined;
|
|
@@ -3201,7 +3993,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
3201
3993
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3202
3994
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3203
3995
|
}, "strip", z.ZodTypeAny, {
|
|
3204
|
-
type: "
|
|
3996
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3205
3997
|
id: string;
|
|
3206
3998
|
createdAt: string;
|
|
3207
3999
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3214,7 +4006,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
3214
4006
|
startedAt?: string | null | undefined;
|
|
3215
4007
|
completedAt?: string | null | undefined;
|
|
3216
4008
|
}, {
|
|
3217
|
-
type: "
|
|
4009
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3218
4010
|
id: string;
|
|
3219
4011
|
createdAt: string;
|
|
3220
4012
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3266,7 +4058,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
3266
4058
|
serviceCounts: Record<string, number>;
|
|
3267
4059
|
commandCounts: Record<string, number>;
|
|
3268
4060
|
recentCommands?: {
|
|
3269
|
-
type: "
|
|
4061
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3270
4062
|
id: string;
|
|
3271
4063
|
createdAt: string;
|
|
3272
4064
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3296,7 +4088,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
3296
4088
|
serviceCounts: Record<string, number>;
|
|
3297
4089
|
commandCounts: Record<string, number>;
|
|
3298
4090
|
recentCommands?: {
|
|
3299
|
-
type: "
|
|
4091
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
3300
4092
|
id: string;
|
|
3301
4093
|
createdAt: string;
|
|
3302
4094
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -3453,4 +4245,4 @@ declare const ErrorCode: {
|
|
|
3453
4245
|
};
|
|
3454
4246
|
type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
3455
4247
|
|
|
3456
|
-
export { type ActionDefinition, type ActionDefinitionInput, ActionDefinitionInputSchema, ActionDefinitionSchema, type ActionPrepareResult, ActionPrepareResultSchema, type AdminLoginRequest, AdminLoginRequestSchema, type AdminSession, AdminSessionSchema, type Agent, type AgentHeartbeatRequest, AgentHeartbeatRequestSchema, type AgentHeartbeatResponse, AgentHeartbeatResponseSchema, AgentMode, AgentModeSchema, AgentSchema, AgentStatus, AgentStatusSchema, AnyJson, AuditActorType, type AuditEvent, AuditEventSchema, AuditResult, type CapsuleManifest, CapsuleManifestSchema, type CapsuleService, type CapsuleServiceDetail, CapsuleServiceDetailSchema, CapsuleServiceSchema, CapsuleServiceStatus, CapsuleServiceStatusSchema, type Command, type CommandDetail, CommandDetailSchema, type CommandResult, CommandResultSchema, CommandSchema, CommandStatus, CommandStatusSchema, type CommandType, CommandTypeSchema, type ConfigItem, type ConfigItemInput, ConfigItemInputSchema, ConfigItemSchema, type CreateActionCommandRequest, CreateActionCommandRequestSchema, type CreateRegistrationTokenRequest, CreateRegistrationTokenRequestSchema, type CreateRegistrationTokenResponse, CreateRegistrationTokenResponseSchema, type CreateUserRequest, DangerLevel, DangerLevelSchema, type DashboardSummary, DashboardSummarySchema, ErrorCode, type ErrorEnvelope, type EventMetadata, EventMetadataSchema, type HealthReport, type HealthReportInput, HealthReportInputSchema, HealthReportSchema, HealthStatus, HealthStatusSchema, HttpError, ListQueryBase, type Pagination, type RegisterAgentRequest, RegisterAgentRequestSchema, type RegisterAgentResponse, RegisterAgentResponseSchema, type RegistrationToken, RegistrationTokenSchema, type ReportCommandResultRequest, ReportCommandResultRequestSchema, type ReportedService, ReportedServiceSchema, type ResetUserPasswordRequest, type RuntimeKind, RuntimeKindSchema, type ServiceCapability, ServiceCapabilitySchema, ServiceKind, ServiceKindSchema, type ServiceReportRequest, ServiceReportRequestSchema, type SuccessEnvelope, type SystemHealth, SystemHealthSchema, type SystemVersion, SystemVersionSchema, TokenStatus, type UpdateUserRequest, type User, UserRole, UserSchema, actionDefinitionInputSchema, actionPrepareResultSchema, adminLoginRequestSchema, agentHeartbeatRequestSchema, configItemInputSchema, createActionCommandRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, eventMetadataSchema, healthReportInputSchema, paginate, parseSort, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceCapabilitySchema, serviceReportRequestSchema, updateUserRequestSchema };
|
|
4248
|
+
export { type ActionDefinition, type ActionDefinitionInput, ActionDefinitionInputSchema, ActionDefinitionSchema, type ActionPrepareResult, ActionPrepareResultSchema, type AdminLoginRequest, AdminLoginRequestSchema, type AdminSession, AdminSessionSchema, type Agent, type AgentHeartbeatRequest, AgentHeartbeatRequestSchema, type AgentHeartbeatResponse, AgentHeartbeatResponseSchema, AgentMode, AgentModeSchema, AgentSchema, AgentStatus, AgentStatusSchema, AnyJson, AuditActorType, type AuditEvent, AuditEventSchema, AuditResult, type BusCommandRequest, BusCommandRequestSchema, BusErrorCode, type BusEventEnvelope, BusEventEnvelopeSchema, type BusEventRecord, BusEventRecordSchema, type BusRouteRule, BusRouteRuleSchema, BusRouteStatus, BusRouteStatusSchema, type BusRoutedCommand, BusRoutedCommandSchema, type BusRoutingRule, BusRoutingRuleSchema, type CapsuleBusExperimental, CapsuleBusExperimentalSchema, type CapsuleManifest, CapsuleManifestSchema, type CapsuleService, type CapsuleServiceDetail, CapsuleServiceDetailSchema, CapsuleServiceSchema, CapsuleServiceStatus, CapsuleServiceStatusSchema, type Command, type CommandDetail, CommandDetailSchema, type CommandResult, CommandResultSchema, CommandSchema, CommandStatus, CommandStatusSchema, type CommandType, CommandTypeSchema, type ConfigItem, type ConfigItemInput, ConfigItemInputSchema, ConfigItemSchema, type CreateActionCommandRequest, CreateActionCommandRequestSchema, type CreateBusRouteRuleRequest, CreateBusRouteRuleRequestSchema, type CreateRegistrationTokenRequest, CreateRegistrationTokenRequestSchema, type CreateRegistrationTokenResponse, CreateRegistrationTokenResponseSchema, type CreateUserRequest, DangerLevel, DangerLevelSchema, type DashboardSummary, DashboardSummarySchema, ErrorCode, type ErrorEnvelope, type EventMetadata, EventMetadataSchema, type HealthReport, type HealthReportInput, HealthReportInputSchema, HealthReportSchema, HealthStatus, HealthStatusSchema, HttpError, ListQueryBase, type Pagination, type PublishBusEventRequest, PublishBusEventRequestSchema, type PublishBusEventResponse, PublishBusEventResponseSchema, type RegisterAgentRequest, RegisterAgentRequestSchema, type RegisterAgentResponse, RegisterAgentResponseSchema, type RegistrationToken, RegistrationTokenSchema, type ReportCommandResultRequest, ReportCommandResultRequestSchema, type ReportedService, ReportedServiceSchema, type ResetUserPasswordRequest, type RuntimeKind, RuntimeKindSchema, type ServiceCapability, ServiceCapabilitySchema, ServiceKind, ServiceKindSchema, type ServiceReportRequest, ServiceReportRequestSchema, type SuccessEnvelope, type SystemHealth, SystemHealthSchema, type SystemVersion, SystemVersionSchema, TokenStatus, type UpdateUserRequest, type User, UserRole, UserSchema, actionDefinitionInputSchema, actionPrepareResultSchema, adminLoginRequestSchema, agentHeartbeatRequestSchema, busCommandRequestSchema, busEventEnvelopeSchema, busRouteRuleSchema, busRoutingRuleSchema, configItemInputSchema, createActionCommandRequestSchema, createBusRouteRuleRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, eventMetadataSchema, healthReportInputSchema, paginate, parseSort, publishBusEventRequestSchema, publishBusEventResponseSchema, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceCapabilitySchema, serviceReportRequestSchema, updateUserRequestSchema };
|