@cratis/chronicle.contracts 19.76.0 → 19.77.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.
Files changed (34) hide show
  1. package/dist/cjs/generated/descriptorSet.js +1 -1
  2. package/dist/cjs/generated/descriptorSet.js.map +1 -1
  3. package/dist/cjs/generated/index.d.ts +1 -1
  4. package/dist/cjs/generated/index.d.ts.map +1 -1
  5. package/dist/cjs/generated/occurrences.d.ts +33 -0
  6. package/dist/cjs/generated/occurrences.d.ts.map +1 -1
  7. package/dist/cjs/generated/occurrences.js +385 -0
  8. package/dist/cjs/generated/occurrences.js.map +1 -1
  9. package/dist/cjs/index.js +3 -0
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/esm/generated/descriptorSet.js +1 -1
  12. package/dist/esm/generated/descriptorSet.js.map +1 -1
  13. package/dist/esm/generated/index.d.ts +1 -1
  14. package/dist/esm/generated/index.d.ts.map +1 -1
  15. package/dist/esm/generated/occurrences.d.ts +33 -0
  16. package/dist/esm/generated/occurrences.d.ts.map +1 -1
  17. package/dist/esm/generated/occurrences.js +383 -1
  18. package/dist/esm/generated/occurrences.js.map +1 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/generated/descriptorSet.js +1 -1
  21. package/dist/generated/descriptorSet.js.map +1 -1
  22. package/dist/generated/index.d.ts +1 -1
  23. package/dist/generated/index.d.ts.map +1 -1
  24. package/dist/generated/index.js +1 -1
  25. package/dist/generated/index.js.map +1 -1
  26. package/dist/generated/occurrences.d.ts +33 -0
  27. package/dist/generated/occurrences.d.ts.map +1 -1
  28. package/dist/generated/occurrences.js +382 -0
  29. package/dist/generated/occurrences.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/generated/descriptorSet.ts +1 -1
  32. package/generated/index.ts +1 -1
  33. package/generated/occurrences.ts +453 -0
  34. package/package.json +1 -1
@@ -1184,6 +1184,177 @@ export const CommandResultRecordEffectReceiptResponse = {
1184
1184
  return message;
1185
1185
  },
1186
1186
  };
1187
+ function createBaseCommandResultRecordLifecycleOccurrenceResponse() {
1188
+ return {
1189
+ CorrelationId: undefined,
1190
+ IsAuthorized: false,
1191
+ ValidationResults: [],
1192
+ ExceptionMessages: [],
1193
+ ExceptionStackTrace: "",
1194
+ AuthorizationFailureReason: "",
1195
+ Response: undefined,
1196
+ };
1197
+ }
1198
+ export const CommandResultRecordLifecycleOccurrenceResponse = {
1199
+ encode(message, writer = new BinaryWriter()) {
1200
+ if (message.CorrelationId !== undefined) {
1201
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
1202
+ }
1203
+ if (message.IsAuthorized !== false) {
1204
+ writer.uint32(16).bool(message.IsAuthorized);
1205
+ }
1206
+ for (const v of message.ValidationResults) {
1207
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
1208
+ }
1209
+ for (const v of message.ExceptionMessages) {
1210
+ writer.uint32(34).string(v);
1211
+ }
1212
+ if (message.ExceptionStackTrace !== "") {
1213
+ writer.uint32(42).string(message.ExceptionStackTrace);
1214
+ }
1215
+ if (message.AuthorizationFailureReason !== "") {
1216
+ writer.uint32(50).string(message.AuthorizationFailureReason);
1217
+ }
1218
+ if (message.Response !== undefined) {
1219
+ RecordLifecycleOccurrenceResponse.encode(message.Response, writer.uint32(58).fork()).join();
1220
+ }
1221
+ return writer;
1222
+ },
1223
+ decode(input, length) {
1224
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1225
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1226
+ if (previousRecursionDepth >= 100) {
1227
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1228
+ }
1229
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1230
+ try {
1231
+ const end = length === undefined ? reader.len : reader.pos + length;
1232
+ const message = createBaseCommandResultRecordLifecycleOccurrenceResponse();
1233
+ while (reader.pos < end) {
1234
+ const tag = reader.uint32();
1235
+ switch (tag >>> 3) {
1236
+ case 1: {
1237
+ if (tag !== 10) {
1238
+ break;
1239
+ }
1240
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
1241
+ continue;
1242
+ }
1243
+ case 2: {
1244
+ if (tag !== 16) {
1245
+ break;
1246
+ }
1247
+ message.IsAuthorized = reader.bool();
1248
+ continue;
1249
+ }
1250
+ case 3: {
1251
+ if (tag !== 26) {
1252
+ break;
1253
+ }
1254
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
1255
+ continue;
1256
+ }
1257
+ case 4: {
1258
+ if (tag !== 34) {
1259
+ break;
1260
+ }
1261
+ message.ExceptionMessages.push(reader.string());
1262
+ continue;
1263
+ }
1264
+ case 5: {
1265
+ if (tag !== 42) {
1266
+ break;
1267
+ }
1268
+ message.ExceptionStackTrace = reader.string();
1269
+ continue;
1270
+ }
1271
+ case 6: {
1272
+ if (tag !== 50) {
1273
+ break;
1274
+ }
1275
+ message.AuthorizationFailureReason = reader.string();
1276
+ continue;
1277
+ }
1278
+ case 7: {
1279
+ if (tag !== 58) {
1280
+ break;
1281
+ }
1282
+ message.Response = RecordLifecycleOccurrenceResponse.decode(reader, reader.uint32());
1283
+ continue;
1284
+ }
1285
+ }
1286
+ if ((tag & 7) === 4 || tag === 0) {
1287
+ break;
1288
+ }
1289
+ reader.skip(tag & 7);
1290
+ }
1291
+ return message;
1292
+ }
1293
+ finally {
1294
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1295
+ }
1296
+ },
1297
+ fromJSON(object) {
1298
+ return {
1299
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
1300
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1301
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1302
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
1303
+ : [],
1304
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1305
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
1306
+ : [],
1307
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1308
+ AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
1309
+ ? globalThis.String(object.AuthorizationFailureReason)
1310
+ : "",
1311
+ Response: isSet(object.Response) ? RecordLifecycleOccurrenceResponse.fromJSON(object.Response) : undefined,
1312
+ };
1313
+ },
1314
+ toJSON(message) {
1315
+ const obj = {};
1316
+ if (message.CorrelationId !== undefined) {
1317
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
1318
+ }
1319
+ if (message.IsAuthorized !== false) {
1320
+ obj.IsAuthorized = message.IsAuthorized;
1321
+ }
1322
+ if (message.ValidationResults?.length) {
1323
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1324
+ }
1325
+ if (message.ExceptionMessages?.length) {
1326
+ obj.ExceptionMessages = message.ExceptionMessages;
1327
+ }
1328
+ if (message.ExceptionStackTrace !== "") {
1329
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1330
+ }
1331
+ if (message.AuthorizationFailureReason !== "") {
1332
+ obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
1333
+ }
1334
+ if (message.Response !== undefined) {
1335
+ obj.Response = RecordLifecycleOccurrenceResponse.toJSON(message.Response);
1336
+ }
1337
+ return obj;
1338
+ },
1339
+ create(base) {
1340
+ return CommandResultRecordLifecycleOccurrenceResponse.fromPartial(base ?? {});
1341
+ },
1342
+ fromPartial(object) {
1343
+ const message = createBaseCommandResultRecordLifecycleOccurrenceResponse();
1344
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1345
+ ? Guid.fromPartial(object.CorrelationId)
1346
+ : undefined;
1347
+ message.IsAuthorized = object.IsAuthorized ?? false;
1348
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1349
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1350
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1351
+ message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
1352
+ message.Response = (object.Response !== undefined && object.Response !== null)
1353
+ ? RecordLifecycleOccurrenceResponse.fromPartial(object.Response)
1354
+ : undefined;
1355
+ return message;
1356
+ },
1357
+ };
1187
1358
  function createBaseCommandResultRecordOccurrenceResponse() {
1188
1359
  return {
1189
1360
  CorrelationId: undefined,
@@ -4083,6 +4254,209 @@ export const RecordEffectReceiptResponse = {
4083
4254
  return message;
4084
4255
  },
4085
4256
  };
4257
+ function createBaseRecordLifecycleOccurrenceRequest() {
4258
+ return { EventStore: "", ActivationId: "", Kind: 0, AllNamespaces: false };
4259
+ }
4260
+ export const RecordLifecycleOccurrenceRequest = {
4261
+ encode(message, writer = new BinaryWriter()) {
4262
+ if (message.EventStore !== "") {
4263
+ writer.uint32(10).string(message.EventStore);
4264
+ }
4265
+ if (message.ActivationId !== "") {
4266
+ writer.uint32(18).string(message.ActivationId);
4267
+ }
4268
+ if (message.Kind !== 0) {
4269
+ writer.uint32(24).int32(message.Kind);
4270
+ }
4271
+ if (message.AllNamespaces !== false) {
4272
+ writer.uint32(32).bool(message.AllNamespaces);
4273
+ }
4274
+ return writer;
4275
+ },
4276
+ decode(input, length) {
4277
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4278
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
4279
+ if (previousRecursionDepth >= 100) {
4280
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4281
+ }
4282
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
4283
+ try {
4284
+ const end = length === undefined ? reader.len : reader.pos + length;
4285
+ const message = createBaseRecordLifecycleOccurrenceRequest();
4286
+ while (reader.pos < end) {
4287
+ const tag = reader.uint32();
4288
+ switch (tag >>> 3) {
4289
+ case 1: {
4290
+ if (tag !== 10) {
4291
+ break;
4292
+ }
4293
+ message.EventStore = reader.string();
4294
+ continue;
4295
+ }
4296
+ case 2: {
4297
+ if (tag !== 18) {
4298
+ break;
4299
+ }
4300
+ message.ActivationId = reader.string();
4301
+ continue;
4302
+ }
4303
+ case 3: {
4304
+ if (tag !== 24) {
4305
+ break;
4306
+ }
4307
+ message.Kind = reader.int32();
4308
+ continue;
4309
+ }
4310
+ case 4: {
4311
+ if (tag !== 32) {
4312
+ break;
4313
+ }
4314
+ message.AllNamespaces = reader.bool();
4315
+ continue;
4316
+ }
4317
+ }
4318
+ if ((tag & 7) === 4 || tag === 0) {
4319
+ break;
4320
+ }
4321
+ reader.skip(tag & 7);
4322
+ }
4323
+ return message;
4324
+ }
4325
+ finally {
4326
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
4327
+ }
4328
+ },
4329
+ fromJSON(object) {
4330
+ return {
4331
+ EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
4332
+ ActivationId: isSet(object.ActivationId) ? globalThis.String(object.ActivationId) : "",
4333
+ Kind: isSet(object.Kind) ? occurrenceKindFromJSON(object.Kind) : 0,
4334
+ AllNamespaces: isSet(object.AllNamespaces) ? globalThis.Boolean(object.AllNamespaces) : false,
4335
+ };
4336
+ },
4337
+ toJSON(message) {
4338
+ const obj = {};
4339
+ if (message.EventStore !== "") {
4340
+ obj.EventStore = message.EventStore;
4341
+ }
4342
+ if (message.ActivationId !== "") {
4343
+ obj.ActivationId = message.ActivationId;
4344
+ }
4345
+ if (message.Kind !== 0) {
4346
+ obj.Kind = occurrenceKindToJSON(message.Kind);
4347
+ }
4348
+ if (message.AllNamespaces !== false) {
4349
+ obj.AllNamespaces = message.AllNamespaces;
4350
+ }
4351
+ return obj;
4352
+ },
4353
+ create(base) {
4354
+ return RecordLifecycleOccurrenceRequest.fromPartial(base ?? {});
4355
+ },
4356
+ fromPartial(object) {
4357
+ const message = createBaseRecordLifecycleOccurrenceRequest();
4358
+ message.EventStore = object.EventStore ?? "";
4359
+ message.ActivationId = object.ActivationId ?? "";
4360
+ message.Kind = object.Kind ?? 0;
4361
+ message.AllNamespaces = object.AllNamespaces ?? false;
4362
+ return message;
4363
+ },
4364
+ };
4365
+ function createBaseRecordLifecycleOccurrenceResponse() {
4366
+ return { Id: "", Status: 0, Namespaces: [] };
4367
+ }
4368
+ export const RecordLifecycleOccurrenceResponse = {
4369
+ encode(message, writer = new BinaryWriter()) {
4370
+ if (message.Id !== "") {
4371
+ writer.uint32(10).string(message.Id);
4372
+ }
4373
+ if (message.Status !== 0) {
4374
+ writer.uint32(16).int32(message.Status);
4375
+ }
4376
+ for (const v of message.Namespaces) {
4377
+ writer.uint32(26).string(v);
4378
+ }
4379
+ return writer;
4380
+ },
4381
+ decode(input, length) {
4382
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4383
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
4384
+ if (previousRecursionDepth >= 100) {
4385
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4386
+ }
4387
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
4388
+ try {
4389
+ const end = length === undefined ? reader.len : reader.pos + length;
4390
+ const message = createBaseRecordLifecycleOccurrenceResponse();
4391
+ while (reader.pos < end) {
4392
+ const tag = reader.uint32();
4393
+ switch (tag >>> 3) {
4394
+ case 1: {
4395
+ if (tag !== 10) {
4396
+ break;
4397
+ }
4398
+ message.Id = reader.string();
4399
+ continue;
4400
+ }
4401
+ case 2: {
4402
+ if (tag !== 16) {
4403
+ break;
4404
+ }
4405
+ message.Status = reader.int32();
4406
+ continue;
4407
+ }
4408
+ case 3: {
4409
+ if (tag !== 26) {
4410
+ break;
4411
+ }
4412
+ message.Namespaces.push(reader.string());
4413
+ continue;
4414
+ }
4415
+ }
4416
+ if ((tag & 7) === 4 || tag === 0) {
4417
+ break;
4418
+ }
4419
+ reader.skip(tag & 7);
4420
+ }
4421
+ return message;
4422
+ }
4423
+ finally {
4424
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
4425
+ }
4426
+ },
4427
+ fromJSON(object) {
4428
+ return {
4429
+ Id: isSet(object.Id) ? globalThis.String(object.Id) : "",
4430
+ Status: isSet(object.Status) ? occurrenceIngressStatusFromJSON(object.Status) : 0,
4431
+ Namespaces: globalThis.Array.isArray(object?.Namespaces)
4432
+ ? object.Namespaces.map((e) => globalThis.String(e))
4433
+ : [],
4434
+ };
4435
+ },
4436
+ toJSON(message) {
4437
+ const obj = {};
4438
+ if (message.Id !== "") {
4439
+ obj.Id = message.Id;
4440
+ }
4441
+ if (message.Status !== 0) {
4442
+ obj.Status = occurrenceIngressStatusToJSON(message.Status);
4443
+ }
4444
+ if (message.Namespaces?.length) {
4445
+ obj.Namespaces = message.Namespaces;
4446
+ }
4447
+ return obj;
4448
+ },
4449
+ create(base) {
4450
+ return RecordLifecycleOccurrenceResponse.fromPartial(base ?? {});
4451
+ },
4452
+ fromPartial(object) {
4453
+ const message = createBaseRecordLifecycleOccurrenceResponse();
4454
+ message.Id = object.Id ?? "";
4455
+ message.Status = object.Status ?? 0;
4456
+ message.Namespaces = object.Namespaces?.map((e) => e) || [];
4457
+ return message;
4458
+ },
4459
+ };
4086
4460
  function createBaseRecordOccurrenceRequest() {
4087
4461
  return {
4088
4462
  EventStore: "",
@@ -5074,6 +5448,14 @@ export const OccurrencesDefinition = {
5074
5448
  responseStream: false,
5075
5449
  options: {},
5076
5450
  },
5451
+ recordLifecycleOccurrence: {
5452
+ name: "RecordLifecycleOccurrence",
5453
+ requestType: RecordLifecycleOccurrenceRequest,
5454
+ requestStream: false,
5455
+ responseType: CommandResultRecordLifecycleOccurrenceResponse,
5456
+ responseStream: false,
5457
+ options: {},
5458
+ },
5077
5459
  recordOccurrence: {
5078
5460
  name: "RecordOccurrence",
5079
5461
  requestType: RecordOccurrenceRequest,