@cratis/chronicle.contracts 19.175.1 → 19.176.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/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +1 -1
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/observation_webhooks.d.ts +77 -0
- package/dist/cjs/generated/observation_webhooks.d.ts.map +1 -1
- package/dist/cjs/generated/observation_webhooks.js +679 -0
- package/dist/cjs/generated/observation_webhooks.js.map +1 -1
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/observation_webhooks.d.ts +77 -0
- package/dist/esm/generated/observation_webhooks.d.ts.map +1 -1
- package/dist/esm/generated/observation_webhooks.js +669 -1
- package/dist/esm/generated/observation_webhooks.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/observation_webhooks.d.ts +77 -0
- package/dist/generated/observation_webhooks.d.ts.map +1 -1
- package/dist/generated/observation_webhooks.js +668 -0
- package/dist/generated/observation_webhooks.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +1 -1
- package/generated/observation_webhooks.ts +811 -30
- package/package.json +1 -1
|
@@ -142,6 +142,117 @@ export function validationResultSeverityToJSON(object: ValidationResultSeverity)
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
export enum WebhookSigningAlgorithm {
|
|
146
|
+
WEBHOOK_SIGNING_ALGORITHM_Ed25519 = 0,
|
|
147
|
+
HmacSha256 = 1,
|
|
148
|
+
UNRECOGNIZED = -1,
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function webhookSigningAlgorithmFromJSON(object: any): WebhookSigningAlgorithm {
|
|
152
|
+
switch (object) {
|
|
153
|
+
case 0:
|
|
154
|
+
case "WEBHOOK_SIGNING_ALGORITHM_Ed25519":
|
|
155
|
+
return WebhookSigningAlgorithm.WEBHOOK_SIGNING_ALGORITHM_Ed25519;
|
|
156
|
+
case 1:
|
|
157
|
+
case "HmacSha256":
|
|
158
|
+
return WebhookSigningAlgorithm.HmacSha256;
|
|
159
|
+
case -1:
|
|
160
|
+
case "UNRECOGNIZED":
|
|
161
|
+
default:
|
|
162
|
+
return WebhookSigningAlgorithm.UNRECOGNIZED;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function webhookSigningAlgorithmToJSON(object: WebhookSigningAlgorithm): string {
|
|
167
|
+
switch (object) {
|
|
168
|
+
case WebhookSigningAlgorithm.WEBHOOK_SIGNING_ALGORITHM_Ed25519:
|
|
169
|
+
return "WEBHOOK_SIGNING_ALGORITHM_Ed25519";
|
|
170
|
+
case WebhookSigningAlgorithm.HmacSha256:
|
|
171
|
+
return "HmacSha256";
|
|
172
|
+
case WebhookSigningAlgorithm.UNRECOGNIZED:
|
|
173
|
+
default:
|
|
174
|
+
return "UNRECOGNIZED";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export enum WebhookSigningKeyStatus {
|
|
179
|
+
Active = 0,
|
|
180
|
+
Overlap = 1,
|
|
181
|
+
Retired = 2,
|
|
182
|
+
UNRECOGNIZED = -1,
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function webhookSigningKeyStatusFromJSON(object: any): WebhookSigningKeyStatus {
|
|
186
|
+
switch (object) {
|
|
187
|
+
case 0:
|
|
188
|
+
case "Active":
|
|
189
|
+
return WebhookSigningKeyStatus.Active;
|
|
190
|
+
case 1:
|
|
191
|
+
case "Overlap":
|
|
192
|
+
return WebhookSigningKeyStatus.Overlap;
|
|
193
|
+
case 2:
|
|
194
|
+
case "Retired":
|
|
195
|
+
return WebhookSigningKeyStatus.Retired;
|
|
196
|
+
case -1:
|
|
197
|
+
case "UNRECOGNIZED":
|
|
198
|
+
default:
|
|
199
|
+
return WebhookSigningKeyStatus.UNRECOGNIZED;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function webhookSigningKeyStatusToJSON(object: WebhookSigningKeyStatus): string {
|
|
204
|
+
switch (object) {
|
|
205
|
+
case WebhookSigningKeyStatus.Active:
|
|
206
|
+
return "Active";
|
|
207
|
+
case WebhookSigningKeyStatus.Overlap:
|
|
208
|
+
return "Overlap";
|
|
209
|
+
case WebhookSigningKeyStatus.Retired:
|
|
210
|
+
return "Retired";
|
|
211
|
+
case WebhookSigningKeyStatus.UNRECOGNIZED:
|
|
212
|
+
default:
|
|
213
|
+
return "UNRECOGNIZED";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export enum WebhookSigningMode {
|
|
218
|
+
Unspecified = 0,
|
|
219
|
+
Disabled = 1,
|
|
220
|
+
WEBHOOK_SIGNING_MODE_Ed25519 = 2,
|
|
221
|
+
UNRECOGNIZED = -1,
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function webhookSigningModeFromJSON(object: any): WebhookSigningMode {
|
|
225
|
+
switch (object) {
|
|
226
|
+
case 0:
|
|
227
|
+
case "Unspecified":
|
|
228
|
+
return WebhookSigningMode.Unspecified;
|
|
229
|
+
case 1:
|
|
230
|
+
case "Disabled":
|
|
231
|
+
return WebhookSigningMode.Disabled;
|
|
232
|
+
case 2:
|
|
233
|
+
case "WEBHOOK_SIGNING_MODE_Ed25519":
|
|
234
|
+
return WebhookSigningMode.WEBHOOK_SIGNING_MODE_Ed25519;
|
|
235
|
+
case -1:
|
|
236
|
+
case "UNRECOGNIZED":
|
|
237
|
+
default:
|
|
238
|
+
return WebhookSigningMode.UNRECOGNIZED;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function webhookSigningModeToJSON(object: WebhookSigningMode): string {
|
|
243
|
+
switch (object) {
|
|
244
|
+
case WebhookSigningMode.Unspecified:
|
|
245
|
+
return "Unspecified";
|
|
246
|
+
case WebhookSigningMode.Disabled:
|
|
247
|
+
return "Disabled";
|
|
248
|
+
case WebhookSigningMode.WEBHOOK_SIGNING_MODE_Ed25519:
|
|
249
|
+
return "WEBHOOK_SIGNING_MODE_Ed25519";
|
|
250
|
+
case WebhookSigningMode.UNRECOGNIZED:
|
|
251
|
+
default:
|
|
252
|
+
return "UNRECOGNIZED";
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
145
256
|
export interface AddWebhookRequest {
|
|
146
257
|
EventStore: string;
|
|
147
258
|
Name: string;
|
|
@@ -199,6 +310,10 @@ export interface EventType {
|
|
|
199
310
|
Tombstone: boolean;
|
|
200
311
|
}
|
|
201
312
|
|
|
313
|
+
export interface GetWebhookSigningKeysRequest {
|
|
314
|
+
EventStore: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
202
317
|
export interface GetWebhooksRequest {
|
|
203
318
|
EventStore: string;
|
|
204
319
|
}
|
|
@@ -235,6 +350,16 @@ export interface QueryResultIEnumerableWebhookDetailsResponse {
|
|
|
235
350
|
Data: WebhookDetailsResponse[];
|
|
236
351
|
}
|
|
237
352
|
|
|
353
|
+
export interface QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
354
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
355
|
+
CorrelationId: Guid | undefined;
|
|
356
|
+
IsAuthorized: boolean;
|
|
357
|
+
ValidationResults: ValidationResult[];
|
|
358
|
+
ExceptionMessages: string[];
|
|
359
|
+
ExceptionStackTrace: string;
|
|
360
|
+
Data: WebhookSigningPublicKeyResponse[];
|
|
361
|
+
}
|
|
362
|
+
|
|
238
363
|
export interface RemoveWebhookRequest {
|
|
239
364
|
EventStore: string;
|
|
240
365
|
WebhookId: string;
|
|
@@ -245,6 +370,17 @@ export interface RemoveWebhooksRequest {
|
|
|
245
370
|
Webhooks: string[];
|
|
246
371
|
}
|
|
247
372
|
|
|
373
|
+
export interface RotateWebhookSigningKeyRequest {
|
|
374
|
+
EventStore: string;
|
|
375
|
+
OverlapSeconds: number;
|
|
376
|
+
UseSpecifiedOverlap: boolean;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** Represents a DateTimeOffset value as an ISO 8601 string (e.g., "2024-01-15T12:30:00.0000000+02:00"). */
|
|
380
|
+
export interface SerializableDateTimeOffset {
|
|
381
|
+
Value: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
248
384
|
export interface ValidationResult {
|
|
249
385
|
/** default value could not be applied: Error */
|
|
250
386
|
Severity: ValidationResultSeverity;
|
|
@@ -266,6 +402,7 @@ export interface WebhookDefinition {
|
|
|
266
402
|
IsNotReplayable: boolean;
|
|
267
403
|
IsInactive: boolean;
|
|
268
404
|
GenerationDelivery: EventGenerationDelivery;
|
|
405
|
+
Signing: WebhookSigningMode;
|
|
269
406
|
}
|
|
270
407
|
|
|
271
408
|
export interface WebhookDetailsResponse {
|
|
@@ -279,6 +416,7 @@ export interface WebhookDetailsResponse {
|
|
|
279
416
|
IsActive: boolean;
|
|
280
417
|
Id: string;
|
|
281
418
|
GenerationDelivery: EventGenerationDelivery;
|
|
419
|
+
Signing: WebhookSigningMode;
|
|
282
420
|
}
|
|
283
421
|
|
|
284
422
|
export interface WebhookDetailsResponse_HeadersEntry {
|
|
@@ -286,6 +424,15 @@ export interface WebhookDetailsResponse_HeadersEntry {
|
|
|
286
424
|
value: string;
|
|
287
425
|
}
|
|
288
426
|
|
|
427
|
+
export interface WebhookSigningPublicKeyResponse {
|
|
428
|
+
KeyId: string;
|
|
429
|
+
Algorithm: WebhookSigningAlgorithm;
|
|
430
|
+
PublicKey: string;
|
|
431
|
+
Status: WebhookSigningKeyStatus;
|
|
432
|
+
CreatedAt: SerializableDateTimeOffset | undefined;
|
|
433
|
+
OverlapEndsAt: SerializableDateTimeOffset | undefined;
|
|
434
|
+
}
|
|
435
|
+
|
|
289
436
|
export interface WebhookTarget {
|
|
290
437
|
Url: string;
|
|
291
438
|
Authorization: OneOfBasicAuthorizationBearerTokenAuthorizationOAuthAuthorization | undefined;
|
|
@@ -1300,6 +1447,73 @@ export const EventType: MessageFns<EventType> = {
|
|
|
1300
1447
|
},
|
|
1301
1448
|
};
|
|
1302
1449
|
|
|
1450
|
+
function createBaseGetWebhookSigningKeysRequest(): GetWebhookSigningKeysRequest {
|
|
1451
|
+
return { EventStore: "" };
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
export const GetWebhookSigningKeysRequest: MessageFns<GetWebhookSigningKeysRequest> = {
|
|
1455
|
+
encode(message: GetWebhookSigningKeysRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1456
|
+
if (message.EventStore !== "") {
|
|
1457
|
+
writer.uint32(10).string(message.EventStore);
|
|
1458
|
+
}
|
|
1459
|
+
return writer;
|
|
1460
|
+
},
|
|
1461
|
+
|
|
1462
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetWebhookSigningKeysRequest {
|
|
1463
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1464
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1465
|
+
if (previousRecursionDepth >= 100) {
|
|
1466
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1467
|
+
}
|
|
1468
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1469
|
+
try {
|
|
1470
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1471
|
+
const message = createBaseGetWebhookSigningKeysRequest();
|
|
1472
|
+
while (reader.pos < end) {
|
|
1473
|
+
const tag = reader.uint32();
|
|
1474
|
+
switch (tag >>> 3) {
|
|
1475
|
+
case 1: {
|
|
1476
|
+
if (tag !== 10) {
|
|
1477
|
+
break;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
message.EventStore = reader.string();
|
|
1481
|
+
continue;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1485
|
+
break;
|
|
1486
|
+
}
|
|
1487
|
+
reader.skip(tag & 7);
|
|
1488
|
+
}
|
|
1489
|
+
return message;
|
|
1490
|
+
} finally {
|
|
1491
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
|
|
1495
|
+
fromJSON(object: any): GetWebhookSigningKeysRequest {
|
|
1496
|
+
return { EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "" };
|
|
1497
|
+
},
|
|
1498
|
+
|
|
1499
|
+
toJSON(message: GetWebhookSigningKeysRequest): unknown {
|
|
1500
|
+
const obj: any = {};
|
|
1501
|
+
if (message.EventStore !== "") {
|
|
1502
|
+
obj.EventStore = message.EventStore;
|
|
1503
|
+
}
|
|
1504
|
+
return obj;
|
|
1505
|
+
},
|
|
1506
|
+
|
|
1507
|
+
create(base?: DeepPartial<GetWebhookSigningKeysRequest>): GetWebhookSigningKeysRequest {
|
|
1508
|
+
return GetWebhookSigningKeysRequest.fromPartial(base ?? {});
|
|
1509
|
+
},
|
|
1510
|
+
fromPartial(object: DeepPartial<GetWebhookSigningKeysRequest>): GetWebhookSigningKeysRequest {
|
|
1511
|
+
const message = createBaseGetWebhookSigningKeysRequest();
|
|
1512
|
+
message.EventStore = object.EventStore ?? "";
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1303
1517
|
function createBaseGetWebhooksRequest(): GetWebhooksRequest {
|
|
1304
1518
|
return { EventStore: "" };
|
|
1305
1519
|
}
|
|
@@ -1926,22 +2140,46 @@ export const QueryResultIEnumerableWebhookDetailsResponse: MessageFns<QueryResul
|
|
|
1926
2140
|
},
|
|
1927
2141
|
};
|
|
1928
2142
|
|
|
1929
|
-
function
|
|
1930
|
-
return {
|
|
2143
|
+
function createBaseQueryResultIEnumerableWebhookSigningPublicKeyResponse(): QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
2144
|
+
return {
|
|
2145
|
+
CorrelationId: undefined,
|
|
2146
|
+
IsAuthorized: false,
|
|
2147
|
+
ValidationResults: [],
|
|
2148
|
+
ExceptionMessages: [],
|
|
2149
|
+
ExceptionStackTrace: "",
|
|
2150
|
+
Data: [],
|
|
2151
|
+
};
|
|
1931
2152
|
}
|
|
1932
2153
|
|
|
1933
|
-
export const
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
2154
|
+
export const QueryResultIEnumerableWebhookSigningPublicKeyResponse: MessageFns<
|
|
2155
|
+
QueryResultIEnumerableWebhookSigningPublicKeyResponse
|
|
2156
|
+
> = {
|
|
2157
|
+
encode(
|
|
2158
|
+
message: QueryResultIEnumerableWebhookSigningPublicKeyResponse,
|
|
2159
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
2160
|
+
): BinaryWriter {
|
|
2161
|
+
if (message.CorrelationId !== undefined) {
|
|
2162
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1937
2163
|
}
|
|
1938
|
-
if (message.
|
|
1939
|
-
writer.uint32(
|
|
2164
|
+
if (message.IsAuthorized !== false) {
|
|
2165
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
2166
|
+
}
|
|
2167
|
+
for (const v of message.ValidationResults) {
|
|
2168
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
2169
|
+
}
|
|
2170
|
+
for (const v of message.ExceptionMessages) {
|
|
2171
|
+
writer.uint32(34).string(v!);
|
|
2172
|
+
}
|
|
2173
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2174
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
2175
|
+
}
|
|
2176
|
+
for (const v of message.Data) {
|
|
2177
|
+
WebhookSigningPublicKeyResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1940
2178
|
}
|
|
1941
2179
|
return writer;
|
|
1942
2180
|
},
|
|
1943
2181
|
|
|
1944
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2182
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
1945
2183
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1946
2184
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1947
2185
|
if (previousRecursionDepth >= 100) {
|
|
@@ -1950,7 +2188,7 @@ export const RemoveWebhookRequest: MessageFns<RemoveWebhookRequest> = {
|
|
|
1950
2188
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1951
2189
|
try {
|
|
1952
2190
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1953
|
-
const message =
|
|
2191
|
+
const message = createBaseQueryResultIEnumerableWebhookSigningPublicKeyResponse();
|
|
1954
2192
|
while (reader.pos < end) {
|
|
1955
2193
|
const tag = reader.uint32();
|
|
1956
2194
|
switch (tag >>> 3) {
|
|
@@ -1959,15 +2197,47 @@ export const RemoveWebhookRequest: MessageFns<RemoveWebhookRequest> = {
|
|
|
1959
2197
|
break;
|
|
1960
2198
|
}
|
|
1961
2199
|
|
|
1962
|
-
message.
|
|
2200
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1963
2201
|
continue;
|
|
1964
2202
|
}
|
|
1965
2203
|
case 2: {
|
|
1966
|
-
if (tag !==
|
|
2204
|
+
if (tag !== 16) {
|
|
1967
2205
|
break;
|
|
1968
2206
|
}
|
|
1969
2207
|
|
|
1970
|
-
message.
|
|
2208
|
+
message.IsAuthorized = reader.bool();
|
|
2209
|
+
continue;
|
|
2210
|
+
}
|
|
2211
|
+
case 3: {
|
|
2212
|
+
if (tag !== 26) {
|
|
2213
|
+
break;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
2217
|
+
continue;
|
|
2218
|
+
}
|
|
2219
|
+
case 4: {
|
|
2220
|
+
if (tag !== 34) {
|
|
2221
|
+
break;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
message.ExceptionMessages.push(reader.string());
|
|
2225
|
+
continue;
|
|
2226
|
+
}
|
|
2227
|
+
case 5: {
|
|
2228
|
+
if (tag !== 42) {
|
|
2229
|
+
break;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
message.ExceptionStackTrace = reader.string();
|
|
2233
|
+
continue;
|
|
2234
|
+
}
|
|
2235
|
+
case 6: {
|
|
2236
|
+
if (tag !== 50) {
|
|
2237
|
+
break;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
message.Data.push(WebhookSigningPublicKeyResponse.decode(reader, reader.uint32()));
|
|
1971
2241
|
continue;
|
|
1972
2242
|
}
|
|
1973
2243
|
}
|
|
@@ -1982,38 +2252,155 @@ export const RemoveWebhookRequest: MessageFns<RemoveWebhookRequest> = {
|
|
|
1982
2252
|
}
|
|
1983
2253
|
},
|
|
1984
2254
|
|
|
1985
|
-
fromJSON(object: any):
|
|
2255
|
+
fromJSON(object: any): QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
1986
2256
|
return {
|
|
1987
|
-
|
|
1988
|
-
|
|
2257
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
2258
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
2259
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
2260
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
2261
|
+
: [],
|
|
2262
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
2263
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
2264
|
+
: [],
|
|
2265
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
2266
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
2267
|
+
? object.Data.map((e: any) => WebhookSigningPublicKeyResponse.fromJSON(e))
|
|
2268
|
+
: [],
|
|
1989
2269
|
};
|
|
1990
2270
|
},
|
|
1991
2271
|
|
|
1992
|
-
toJSON(message:
|
|
2272
|
+
toJSON(message: QueryResultIEnumerableWebhookSigningPublicKeyResponse): unknown {
|
|
1993
2273
|
const obj: any = {};
|
|
1994
|
-
if (message.
|
|
1995
|
-
obj.
|
|
2274
|
+
if (message.CorrelationId !== undefined) {
|
|
2275
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1996
2276
|
}
|
|
1997
|
-
if (message.
|
|
1998
|
-
obj.
|
|
2277
|
+
if (message.IsAuthorized !== false) {
|
|
2278
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
2279
|
+
}
|
|
2280
|
+
if (message.ValidationResults?.length) {
|
|
2281
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
2282
|
+
}
|
|
2283
|
+
if (message.ExceptionMessages?.length) {
|
|
2284
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
2285
|
+
}
|
|
2286
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2287
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
2288
|
+
}
|
|
2289
|
+
if (message.Data?.length) {
|
|
2290
|
+
obj.Data = message.Data.map((e) => WebhookSigningPublicKeyResponse.toJSON(e));
|
|
1999
2291
|
}
|
|
2000
2292
|
return obj;
|
|
2001
2293
|
},
|
|
2002
2294
|
|
|
2003
|
-
create(
|
|
2004
|
-
|
|
2295
|
+
create(
|
|
2296
|
+
base?: DeepPartial<QueryResultIEnumerableWebhookSigningPublicKeyResponse>,
|
|
2297
|
+
): QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
2298
|
+
return QueryResultIEnumerableWebhookSigningPublicKeyResponse.fromPartial(base ?? {});
|
|
2005
2299
|
},
|
|
2006
|
-
fromPartial(
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
message
|
|
2300
|
+
fromPartial(
|
|
2301
|
+
object: DeepPartial<QueryResultIEnumerableWebhookSigningPublicKeyResponse>,
|
|
2302
|
+
): QueryResultIEnumerableWebhookSigningPublicKeyResponse {
|
|
2303
|
+
const message = createBaseQueryResultIEnumerableWebhookSigningPublicKeyResponse();
|
|
2304
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
2305
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
2306
|
+
: undefined;
|
|
2307
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2308
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2309
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2310
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2311
|
+
message.Data = object.Data?.map((e) => WebhookSigningPublicKeyResponse.fromPartial(e)) || [];
|
|
2010
2312
|
return message;
|
|
2011
2313
|
},
|
|
2012
2314
|
};
|
|
2013
2315
|
|
|
2014
|
-
function
|
|
2015
|
-
return { EventStore: "",
|
|
2016
|
-
}
|
|
2316
|
+
function createBaseRemoveWebhookRequest(): RemoveWebhookRequest {
|
|
2317
|
+
return { EventStore: "", WebhookId: "" };
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
export const RemoveWebhookRequest: MessageFns<RemoveWebhookRequest> = {
|
|
2321
|
+
encode(message: RemoveWebhookRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2322
|
+
if (message.EventStore !== "") {
|
|
2323
|
+
writer.uint32(10).string(message.EventStore);
|
|
2324
|
+
}
|
|
2325
|
+
if (message.WebhookId !== "") {
|
|
2326
|
+
writer.uint32(18).string(message.WebhookId);
|
|
2327
|
+
}
|
|
2328
|
+
return writer;
|
|
2329
|
+
},
|
|
2330
|
+
|
|
2331
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RemoveWebhookRequest {
|
|
2332
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2333
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2334
|
+
if (previousRecursionDepth >= 100) {
|
|
2335
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2336
|
+
}
|
|
2337
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2338
|
+
try {
|
|
2339
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2340
|
+
const message = createBaseRemoveWebhookRequest();
|
|
2341
|
+
while (reader.pos < end) {
|
|
2342
|
+
const tag = reader.uint32();
|
|
2343
|
+
switch (tag >>> 3) {
|
|
2344
|
+
case 1: {
|
|
2345
|
+
if (tag !== 10) {
|
|
2346
|
+
break;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
message.EventStore = reader.string();
|
|
2350
|
+
continue;
|
|
2351
|
+
}
|
|
2352
|
+
case 2: {
|
|
2353
|
+
if (tag !== 18) {
|
|
2354
|
+
break;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
message.WebhookId = reader.string();
|
|
2358
|
+
continue;
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2362
|
+
break;
|
|
2363
|
+
}
|
|
2364
|
+
reader.skip(tag & 7);
|
|
2365
|
+
}
|
|
2366
|
+
return message;
|
|
2367
|
+
} finally {
|
|
2368
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
|
|
2372
|
+
fromJSON(object: any): RemoveWebhookRequest {
|
|
2373
|
+
return {
|
|
2374
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
2375
|
+
WebhookId: isSet(object.WebhookId) ? globalThis.String(object.WebhookId) : "",
|
|
2376
|
+
};
|
|
2377
|
+
},
|
|
2378
|
+
|
|
2379
|
+
toJSON(message: RemoveWebhookRequest): unknown {
|
|
2380
|
+
const obj: any = {};
|
|
2381
|
+
if (message.EventStore !== "") {
|
|
2382
|
+
obj.EventStore = message.EventStore;
|
|
2383
|
+
}
|
|
2384
|
+
if (message.WebhookId !== "") {
|
|
2385
|
+
obj.WebhookId = message.WebhookId;
|
|
2386
|
+
}
|
|
2387
|
+
return obj;
|
|
2388
|
+
},
|
|
2389
|
+
|
|
2390
|
+
create(base?: DeepPartial<RemoveWebhookRequest>): RemoveWebhookRequest {
|
|
2391
|
+
return RemoveWebhookRequest.fromPartial(base ?? {});
|
|
2392
|
+
},
|
|
2393
|
+
fromPartial(object: DeepPartial<RemoveWebhookRequest>): RemoveWebhookRequest {
|
|
2394
|
+
const message = createBaseRemoveWebhookRequest();
|
|
2395
|
+
message.EventStore = object.EventStore ?? "";
|
|
2396
|
+
message.WebhookId = object.WebhookId ?? "";
|
|
2397
|
+
return message;
|
|
2398
|
+
},
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
function createBaseRemoveWebhooksRequest(): RemoveWebhooksRequest {
|
|
2402
|
+
return { EventStore: "", Webhooks: [] };
|
|
2403
|
+
}
|
|
2017
2404
|
|
|
2018
2405
|
export const RemoveWebhooksRequest: MessageFns<RemoveWebhooksRequest> = {
|
|
2019
2406
|
encode(message: RemoveWebhooksRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
@@ -2096,6 +2483,174 @@ export const RemoveWebhooksRequest: MessageFns<RemoveWebhooksRequest> = {
|
|
|
2096
2483
|
},
|
|
2097
2484
|
};
|
|
2098
2485
|
|
|
2486
|
+
function createBaseRotateWebhookSigningKeyRequest(): RotateWebhookSigningKeyRequest {
|
|
2487
|
+
return { EventStore: "", OverlapSeconds: 0, UseSpecifiedOverlap: false };
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
export const RotateWebhookSigningKeyRequest: MessageFns<RotateWebhookSigningKeyRequest> = {
|
|
2491
|
+
encode(message: RotateWebhookSigningKeyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2492
|
+
if (message.EventStore !== "") {
|
|
2493
|
+
writer.uint32(10).string(message.EventStore);
|
|
2494
|
+
}
|
|
2495
|
+
if (message.OverlapSeconds !== 0) {
|
|
2496
|
+
writer.uint32(17).double(message.OverlapSeconds);
|
|
2497
|
+
}
|
|
2498
|
+
if (message.UseSpecifiedOverlap !== false) {
|
|
2499
|
+
writer.uint32(24).bool(message.UseSpecifiedOverlap);
|
|
2500
|
+
}
|
|
2501
|
+
return writer;
|
|
2502
|
+
},
|
|
2503
|
+
|
|
2504
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RotateWebhookSigningKeyRequest {
|
|
2505
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2506
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2507
|
+
if (previousRecursionDepth >= 100) {
|
|
2508
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2509
|
+
}
|
|
2510
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2511
|
+
try {
|
|
2512
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2513
|
+
const message = createBaseRotateWebhookSigningKeyRequest();
|
|
2514
|
+
while (reader.pos < end) {
|
|
2515
|
+
const tag = reader.uint32();
|
|
2516
|
+
switch (tag >>> 3) {
|
|
2517
|
+
case 1: {
|
|
2518
|
+
if (tag !== 10) {
|
|
2519
|
+
break;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
message.EventStore = reader.string();
|
|
2523
|
+
continue;
|
|
2524
|
+
}
|
|
2525
|
+
case 2: {
|
|
2526
|
+
if (tag !== 17) {
|
|
2527
|
+
break;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
message.OverlapSeconds = reader.double();
|
|
2531
|
+
continue;
|
|
2532
|
+
}
|
|
2533
|
+
case 3: {
|
|
2534
|
+
if (tag !== 24) {
|
|
2535
|
+
break;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
message.UseSpecifiedOverlap = reader.bool();
|
|
2539
|
+
continue;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2543
|
+
break;
|
|
2544
|
+
}
|
|
2545
|
+
reader.skip(tag & 7);
|
|
2546
|
+
}
|
|
2547
|
+
return message;
|
|
2548
|
+
} finally {
|
|
2549
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2550
|
+
}
|
|
2551
|
+
},
|
|
2552
|
+
|
|
2553
|
+
fromJSON(object: any): RotateWebhookSigningKeyRequest {
|
|
2554
|
+
return {
|
|
2555
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
2556
|
+
OverlapSeconds: isSet(object.OverlapSeconds) ? globalThis.Number(object.OverlapSeconds) : 0,
|
|
2557
|
+
UseSpecifiedOverlap: isSet(object.UseSpecifiedOverlap) ? globalThis.Boolean(object.UseSpecifiedOverlap) : false,
|
|
2558
|
+
};
|
|
2559
|
+
},
|
|
2560
|
+
|
|
2561
|
+
toJSON(message: RotateWebhookSigningKeyRequest): unknown {
|
|
2562
|
+
const obj: any = {};
|
|
2563
|
+
if (message.EventStore !== "") {
|
|
2564
|
+
obj.EventStore = message.EventStore;
|
|
2565
|
+
}
|
|
2566
|
+
if (message.OverlapSeconds !== 0) {
|
|
2567
|
+
obj.OverlapSeconds = floatToJson(message.OverlapSeconds);
|
|
2568
|
+
}
|
|
2569
|
+
if (message.UseSpecifiedOverlap !== false) {
|
|
2570
|
+
obj.UseSpecifiedOverlap = message.UseSpecifiedOverlap;
|
|
2571
|
+
}
|
|
2572
|
+
return obj;
|
|
2573
|
+
},
|
|
2574
|
+
|
|
2575
|
+
create(base?: DeepPartial<RotateWebhookSigningKeyRequest>): RotateWebhookSigningKeyRequest {
|
|
2576
|
+
return RotateWebhookSigningKeyRequest.fromPartial(base ?? {});
|
|
2577
|
+
},
|
|
2578
|
+
fromPartial(object: DeepPartial<RotateWebhookSigningKeyRequest>): RotateWebhookSigningKeyRequest {
|
|
2579
|
+
const message = createBaseRotateWebhookSigningKeyRequest();
|
|
2580
|
+
message.EventStore = object.EventStore ?? "";
|
|
2581
|
+
message.OverlapSeconds = object.OverlapSeconds ?? 0;
|
|
2582
|
+
message.UseSpecifiedOverlap = object.UseSpecifiedOverlap ?? false;
|
|
2583
|
+
return message;
|
|
2584
|
+
},
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
function createBaseSerializableDateTimeOffset(): SerializableDateTimeOffset {
|
|
2588
|
+
return { Value: "" };
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset> = {
|
|
2592
|
+
encode(message: SerializableDateTimeOffset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2593
|
+
if (message.Value !== "") {
|
|
2594
|
+
writer.uint32(10).string(message.Value);
|
|
2595
|
+
}
|
|
2596
|
+
return writer;
|
|
2597
|
+
},
|
|
2598
|
+
|
|
2599
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SerializableDateTimeOffset {
|
|
2600
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2601
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2602
|
+
if (previousRecursionDepth >= 100) {
|
|
2603
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2604
|
+
}
|
|
2605
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2606
|
+
try {
|
|
2607
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2608
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
2609
|
+
while (reader.pos < end) {
|
|
2610
|
+
const tag = reader.uint32();
|
|
2611
|
+
switch (tag >>> 3) {
|
|
2612
|
+
case 1: {
|
|
2613
|
+
if (tag !== 10) {
|
|
2614
|
+
break;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
message.Value = reader.string();
|
|
2618
|
+
continue;
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2622
|
+
break;
|
|
2623
|
+
}
|
|
2624
|
+
reader.skip(tag & 7);
|
|
2625
|
+
}
|
|
2626
|
+
return message;
|
|
2627
|
+
} finally {
|
|
2628
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
|
|
2632
|
+
fromJSON(object: any): SerializableDateTimeOffset {
|
|
2633
|
+
return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
|
|
2634
|
+
},
|
|
2635
|
+
|
|
2636
|
+
toJSON(message: SerializableDateTimeOffset): unknown {
|
|
2637
|
+
const obj: any = {};
|
|
2638
|
+
if (message.Value !== "") {
|
|
2639
|
+
obj.Value = message.Value;
|
|
2640
|
+
}
|
|
2641
|
+
return obj;
|
|
2642
|
+
},
|
|
2643
|
+
|
|
2644
|
+
create(base?: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
|
|
2645
|
+
return SerializableDateTimeOffset.fromPartial(base ?? {});
|
|
2646
|
+
},
|
|
2647
|
+
fromPartial(object: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
|
|
2648
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
2649
|
+
message.Value = object.Value ?? "";
|
|
2650
|
+
return message;
|
|
2651
|
+
},
|
|
2652
|
+
};
|
|
2653
|
+
|
|
2099
2654
|
function createBaseValidationResult(): ValidationResult {
|
|
2100
2655
|
return { Severity: 0, Message: "", Members: [] };
|
|
2101
2656
|
}
|
|
@@ -2208,6 +2763,7 @@ function createBaseWebhookDefinition(): WebhookDefinition {
|
|
|
2208
2763
|
IsNotReplayable: false,
|
|
2209
2764
|
IsInactive: false,
|
|
2210
2765
|
GenerationDelivery: 0,
|
|
2766
|
+
Signing: 0,
|
|
2211
2767
|
};
|
|
2212
2768
|
}
|
|
2213
2769
|
|
|
@@ -2240,6 +2796,9 @@ export const WebhookDefinition: MessageFns<WebhookDefinition> = {
|
|
|
2240
2796
|
if (message.GenerationDelivery !== 0) {
|
|
2241
2797
|
writer.uint32(72).int32(message.GenerationDelivery);
|
|
2242
2798
|
}
|
|
2799
|
+
if (message.Signing !== 0) {
|
|
2800
|
+
writer.uint32(80).int32(message.Signing);
|
|
2801
|
+
}
|
|
2243
2802
|
return writer;
|
|
2244
2803
|
},
|
|
2245
2804
|
|
|
@@ -2328,6 +2887,14 @@ export const WebhookDefinition: MessageFns<WebhookDefinition> = {
|
|
|
2328
2887
|
message.GenerationDelivery = reader.int32() as any;
|
|
2329
2888
|
continue;
|
|
2330
2889
|
}
|
|
2890
|
+
case 10: {
|
|
2891
|
+
if (tag !== 80) {
|
|
2892
|
+
break;
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
message.Signing = reader.int32() as any;
|
|
2896
|
+
continue;
|
|
2897
|
+
}
|
|
2331
2898
|
}
|
|
2332
2899
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2333
2900
|
break;
|
|
@@ -2355,6 +2922,7 @@ export const WebhookDefinition: MessageFns<WebhookDefinition> = {
|
|
|
2355
2922
|
GenerationDelivery: isSet(object.GenerationDelivery)
|
|
2356
2923
|
? eventGenerationDeliveryFromJSON(object.GenerationDelivery)
|
|
2357
2924
|
: 0,
|
|
2925
|
+
Signing: isSet(object.Signing) ? webhookSigningModeFromJSON(object.Signing) : 0,
|
|
2358
2926
|
};
|
|
2359
2927
|
},
|
|
2360
2928
|
|
|
@@ -2387,6 +2955,9 @@ export const WebhookDefinition: MessageFns<WebhookDefinition> = {
|
|
|
2387
2955
|
if (message.GenerationDelivery !== 0) {
|
|
2388
2956
|
obj.GenerationDelivery = eventGenerationDeliveryToJSON(message.GenerationDelivery);
|
|
2389
2957
|
}
|
|
2958
|
+
if (message.Signing !== 0) {
|
|
2959
|
+
obj.Signing = webhookSigningModeToJSON(message.Signing);
|
|
2960
|
+
}
|
|
2390
2961
|
return obj;
|
|
2391
2962
|
},
|
|
2392
2963
|
|
|
@@ -2406,6 +2977,7 @@ export const WebhookDefinition: MessageFns<WebhookDefinition> = {
|
|
|
2406
2977
|
message.IsNotReplayable = object.IsNotReplayable ?? false;
|
|
2407
2978
|
message.IsInactive = object.IsInactive ?? false;
|
|
2408
2979
|
message.GenerationDelivery = object.GenerationDelivery ?? 0;
|
|
2980
|
+
message.Signing = object.Signing ?? 0;
|
|
2409
2981
|
return message;
|
|
2410
2982
|
},
|
|
2411
2983
|
};
|
|
@@ -2422,6 +2994,7 @@ function createBaseWebhookDetailsResponse(): WebhookDetailsResponse {
|
|
|
2422
2994
|
IsActive: false,
|
|
2423
2995
|
Id: "",
|
|
2424
2996
|
GenerationDelivery: 0,
|
|
2997
|
+
Signing: 0,
|
|
2425
2998
|
};
|
|
2426
2999
|
}
|
|
2427
3000
|
|
|
@@ -2457,6 +3030,9 @@ export const WebhookDetailsResponse: MessageFns<WebhookDetailsResponse> = {
|
|
|
2457
3030
|
if (message.GenerationDelivery !== 0) {
|
|
2458
3031
|
writer.uint32(80).int32(message.GenerationDelivery);
|
|
2459
3032
|
}
|
|
3033
|
+
if (message.Signing !== 0) {
|
|
3034
|
+
writer.uint32(88).int32(message.Signing);
|
|
3035
|
+
}
|
|
2460
3036
|
return writer;
|
|
2461
3037
|
},
|
|
2462
3038
|
|
|
@@ -2556,6 +3132,14 @@ export const WebhookDetailsResponse: MessageFns<WebhookDetailsResponse> = {
|
|
|
2556
3132
|
message.GenerationDelivery = reader.int32() as any;
|
|
2557
3133
|
continue;
|
|
2558
3134
|
}
|
|
3135
|
+
case 11: {
|
|
3136
|
+
if (tag !== 88) {
|
|
3137
|
+
break;
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
message.Signing = reader.int32() as any;
|
|
3141
|
+
continue;
|
|
3142
|
+
}
|
|
2559
3143
|
}
|
|
2560
3144
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2561
3145
|
break;
|
|
@@ -2597,6 +3181,7 @@ export const WebhookDetailsResponse: MessageFns<WebhookDetailsResponse> = {
|
|
|
2597
3181
|
GenerationDelivery: isSet(object.GenerationDelivery)
|
|
2598
3182
|
? eventGenerationDeliveryFromJSON(object.GenerationDelivery)
|
|
2599
3183
|
: 0,
|
|
3184
|
+
Signing: isSet(object.Signing) ? webhookSigningModeFromJSON(object.Signing) : 0,
|
|
2600
3185
|
};
|
|
2601
3186
|
},
|
|
2602
3187
|
|
|
@@ -2638,6 +3223,9 @@ export const WebhookDetailsResponse: MessageFns<WebhookDetailsResponse> = {
|
|
|
2638
3223
|
if (message.GenerationDelivery !== 0) {
|
|
2639
3224
|
obj.GenerationDelivery = eventGenerationDeliveryToJSON(message.GenerationDelivery);
|
|
2640
3225
|
}
|
|
3226
|
+
if (message.Signing !== 0) {
|
|
3227
|
+
obj.Signing = webhookSigningModeToJSON(message.Signing);
|
|
3228
|
+
}
|
|
2641
3229
|
return obj;
|
|
2642
3230
|
},
|
|
2643
3231
|
|
|
@@ -2664,6 +3252,7 @@ export const WebhookDetailsResponse: MessageFns<WebhookDetailsResponse> = {
|
|
|
2664
3252
|
message.IsActive = object.IsActive ?? false;
|
|
2665
3253
|
message.Id = object.Id ?? "";
|
|
2666
3254
|
message.GenerationDelivery = object.GenerationDelivery ?? 0;
|
|
3255
|
+
message.Signing = object.Signing ?? 0;
|
|
2667
3256
|
return message;
|
|
2668
3257
|
},
|
|
2669
3258
|
};
|
|
@@ -2753,6 +3342,161 @@ export const WebhookDetailsResponse_HeadersEntry: MessageFns<WebhookDetailsRespo
|
|
|
2753
3342
|
},
|
|
2754
3343
|
};
|
|
2755
3344
|
|
|
3345
|
+
function createBaseWebhookSigningPublicKeyResponse(): WebhookSigningPublicKeyResponse {
|
|
3346
|
+
return { KeyId: "", Algorithm: 0, PublicKey: "", Status: 0, CreatedAt: undefined, OverlapEndsAt: undefined };
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3349
|
+
export const WebhookSigningPublicKeyResponse: MessageFns<WebhookSigningPublicKeyResponse> = {
|
|
3350
|
+
encode(message: WebhookSigningPublicKeyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3351
|
+
if (message.KeyId !== "") {
|
|
3352
|
+
writer.uint32(10).string(message.KeyId);
|
|
3353
|
+
}
|
|
3354
|
+
if (message.Algorithm !== 0) {
|
|
3355
|
+
writer.uint32(16).int32(message.Algorithm);
|
|
3356
|
+
}
|
|
3357
|
+
if (message.PublicKey !== "") {
|
|
3358
|
+
writer.uint32(26).string(message.PublicKey);
|
|
3359
|
+
}
|
|
3360
|
+
if (message.Status !== 0) {
|
|
3361
|
+
writer.uint32(32).int32(message.Status);
|
|
3362
|
+
}
|
|
3363
|
+
if (message.CreatedAt !== undefined) {
|
|
3364
|
+
SerializableDateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
|
|
3365
|
+
}
|
|
3366
|
+
if (message.OverlapEndsAt !== undefined) {
|
|
3367
|
+
SerializableDateTimeOffset.encode(message.OverlapEndsAt, writer.uint32(50).fork()).join();
|
|
3368
|
+
}
|
|
3369
|
+
return writer;
|
|
3370
|
+
},
|
|
3371
|
+
|
|
3372
|
+
decode(input: BinaryReader | Uint8Array, length?: number): WebhookSigningPublicKeyResponse {
|
|
3373
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3374
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3375
|
+
if (previousRecursionDepth >= 100) {
|
|
3376
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3377
|
+
}
|
|
3378
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3379
|
+
try {
|
|
3380
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3381
|
+
const message = createBaseWebhookSigningPublicKeyResponse();
|
|
3382
|
+
while (reader.pos < end) {
|
|
3383
|
+
const tag = reader.uint32();
|
|
3384
|
+
switch (tag >>> 3) {
|
|
3385
|
+
case 1: {
|
|
3386
|
+
if (tag !== 10) {
|
|
3387
|
+
break;
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
message.KeyId = reader.string();
|
|
3391
|
+
continue;
|
|
3392
|
+
}
|
|
3393
|
+
case 2: {
|
|
3394
|
+
if (tag !== 16) {
|
|
3395
|
+
break;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
message.Algorithm = reader.int32() as any;
|
|
3399
|
+
continue;
|
|
3400
|
+
}
|
|
3401
|
+
case 3: {
|
|
3402
|
+
if (tag !== 26) {
|
|
3403
|
+
break;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
message.PublicKey = reader.string();
|
|
3407
|
+
continue;
|
|
3408
|
+
}
|
|
3409
|
+
case 4: {
|
|
3410
|
+
if (tag !== 32) {
|
|
3411
|
+
break;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
message.Status = reader.int32() as any;
|
|
3415
|
+
continue;
|
|
3416
|
+
}
|
|
3417
|
+
case 5: {
|
|
3418
|
+
if (tag !== 42) {
|
|
3419
|
+
break;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
message.CreatedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
3423
|
+
continue;
|
|
3424
|
+
}
|
|
3425
|
+
case 6: {
|
|
3426
|
+
if (tag !== 50) {
|
|
3427
|
+
break;
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
message.OverlapEndsAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
3431
|
+
continue;
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3435
|
+
break;
|
|
3436
|
+
}
|
|
3437
|
+
reader.skip(tag & 7);
|
|
3438
|
+
}
|
|
3439
|
+
return message;
|
|
3440
|
+
} finally {
|
|
3441
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
|
|
3445
|
+
fromJSON(object: any): WebhookSigningPublicKeyResponse {
|
|
3446
|
+
return {
|
|
3447
|
+
KeyId: isSet(object.KeyId) ? globalThis.String(object.KeyId) : "",
|
|
3448
|
+
Algorithm: isSet(object.Algorithm) ? webhookSigningAlgorithmFromJSON(object.Algorithm) : 0,
|
|
3449
|
+
PublicKey: isSet(object.PublicKey) ? globalThis.String(object.PublicKey) : "",
|
|
3450
|
+
Status: isSet(object.Status) ? webhookSigningKeyStatusFromJSON(object.Status) : 0,
|
|
3451
|
+
CreatedAt: isSet(object.CreatedAt) ? SerializableDateTimeOffset.fromJSON(object.CreatedAt) : undefined,
|
|
3452
|
+
OverlapEndsAt: isSet(object.OverlapEndsAt)
|
|
3453
|
+
? SerializableDateTimeOffset.fromJSON(object.OverlapEndsAt)
|
|
3454
|
+
: undefined,
|
|
3455
|
+
};
|
|
3456
|
+
},
|
|
3457
|
+
|
|
3458
|
+
toJSON(message: WebhookSigningPublicKeyResponse): unknown {
|
|
3459
|
+
const obj: any = {};
|
|
3460
|
+
if (message.KeyId !== "") {
|
|
3461
|
+
obj.KeyId = message.KeyId;
|
|
3462
|
+
}
|
|
3463
|
+
if (message.Algorithm !== 0) {
|
|
3464
|
+
obj.Algorithm = webhookSigningAlgorithmToJSON(message.Algorithm);
|
|
3465
|
+
}
|
|
3466
|
+
if (message.PublicKey !== "") {
|
|
3467
|
+
obj.PublicKey = message.PublicKey;
|
|
3468
|
+
}
|
|
3469
|
+
if (message.Status !== 0) {
|
|
3470
|
+
obj.Status = webhookSigningKeyStatusToJSON(message.Status);
|
|
3471
|
+
}
|
|
3472
|
+
if (message.CreatedAt !== undefined) {
|
|
3473
|
+
obj.CreatedAt = SerializableDateTimeOffset.toJSON(message.CreatedAt);
|
|
3474
|
+
}
|
|
3475
|
+
if (message.OverlapEndsAt !== undefined) {
|
|
3476
|
+
obj.OverlapEndsAt = SerializableDateTimeOffset.toJSON(message.OverlapEndsAt);
|
|
3477
|
+
}
|
|
3478
|
+
return obj;
|
|
3479
|
+
},
|
|
3480
|
+
|
|
3481
|
+
create(base?: DeepPartial<WebhookSigningPublicKeyResponse>): WebhookSigningPublicKeyResponse {
|
|
3482
|
+
return WebhookSigningPublicKeyResponse.fromPartial(base ?? {});
|
|
3483
|
+
},
|
|
3484
|
+
fromPartial(object: DeepPartial<WebhookSigningPublicKeyResponse>): WebhookSigningPublicKeyResponse {
|
|
3485
|
+
const message = createBaseWebhookSigningPublicKeyResponse();
|
|
3486
|
+
message.KeyId = object.KeyId ?? "";
|
|
3487
|
+
message.Algorithm = object.Algorithm ?? 0;
|
|
3488
|
+
message.PublicKey = object.PublicKey ?? "";
|
|
3489
|
+
message.Status = object.Status ?? 0;
|
|
3490
|
+
message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
|
|
3491
|
+
? SerializableDateTimeOffset.fromPartial(object.CreatedAt)
|
|
3492
|
+
: undefined;
|
|
3493
|
+
message.OverlapEndsAt = (object.OverlapEndsAt !== undefined && object.OverlapEndsAt !== null)
|
|
3494
|
+
? SerializableDateTimeOffset.fromPartial(object.OverlapEndsAt)
|
|
3495
|
+
: undefined;
|
|
3496
|
+
return message;
|
|
3497
|
+
},
|
|
3498
|
+
};
|
|
3499
|
+
|
|
2756
3500
|
function createBaseWebhookTarget(): WebhookTarget {
|
|
2757
3501
|
return { Url: "", Authorization: undefined, Headers: {}, ManagedIdentity: undefined };
|
|
2758
3502
|
}
|
|
@@ -3030,6 +3774,15 @@ export const WebhooksDefinition = {
|
|
|
3030
3774
|
responseStream: false,
|
|
3031
3775
|
options: {},
|
|
3032
3776
|
},
|
|
3777
|
+
getWebhookSigningKeys: {
|
|
3778
|
+
name: "GetWebhookSigningKeys",
|
|
3779
|
+
requestType: GetWebhookSigningKeysRequest as typeof GetWebhookSigningKeysRequest,
|
|
3780
|
+
requestStream: false,
|
|
3781
|
+
responseType:
|
|
3782
|
+
QueryResultIEnumerableWebhookSigningPublicKeyResponse as typeof QueryResultIEnumerableWebhookSigningPublicKeyResponse,
|
|
3783
|
+
responseStream: false,
|
|
3784
|
+
options: {},
|
|
3785
|
+
},
|
|
3033
3786
|
observeWebhooks: {
|
|
3034
3787
|
name: "ObserveWebhooks",
|
|
3035
3788
|
requestType: ObserveWebhooksRequest as typeof ObserveWebhooksRequest,
|
|
@@ -3054,6 +3807,14 @@ export const WebhooksDefinition = {
|
|
|
3054
3807
|
responseStream: false,
|
|
3055
3808
|
options: {},
|
|
3056
3809
|
},
|
|
3810
|
+
rotateWebhookSigningKey: {
|
|
3811
|
+
name: "RotateWebhookSigningKey",
|
|
3812
|
+
requestType: RotateWebhookSigningKeyRequest as typeof RotateWebhookSigningKeyRequest,
|
|
3813
|
+
requestStream: false,
|
|
3814
|
+
responseType: CommandResult as typeof CommandResult,
|
|
3815
|
+
responseStream: false,
|
|
3816
|
+
options: {},
|
|
3817
|
+
},
|
|
3057
3818
|
},
|
|
3058
3819
|
} as const;
|
|
3059
3820
|
|
|
@@ -3064,6 +3825,10 @@ export interface WebhooksServiceImplementation<CallContextExt = {}> {
|
|
|
3064
3825
|
request: GetWebhooksRequest,
|
|
3065
3826
|
context: CallContext & CallContextExt,
|
|
3066
3827
|
): Promise<DeepPartial<QueryResultIEnumerableWebhookDetailsResponse>>;
|
|
3828
|
+
getWebhookSigningKeys(
|
|
3829
|
+
request: GetWebhookSigningKeysRequest,
|
|
3830
|
+
context: CallContext & CallContextExt,
|
|
3831
|
+
): Promise<DeepPartial<QueryResultIEnumerableWebhookSigningPublicKeyResponse>>;
|
|
3067
3832
|
observeWebhooks(
|
|
3068
3833
|
request: ObserveWebhooksRequest,
|
|
3069
3834
|
context: CallContext & CallContextExt,
|
|
@@ -3076,6 +3841,10 @@ export interface WebhooksServiceImplementation<CallContextExt = {}> {
|
|
|
3076
3841
|
request: RemoveWebhooksRequest,
|
|
3077
3842
|
context: CallContext & CallContextExt,
|
|
3078
3843
|
): Promise<DeepPartial<CommandResult>>;
|
|
3844
|
+
rotateWebhookSigningKey(
|
|
3845
|
+
request: RotateWebhookSigningKeyRequest,
|
|
3846
|
+
context: CallContext & CallContextExt,
|
|
3847
|
+
): Promise<DeepPartial<CommandResult>>;
|
|
3079
3848
|
}
|
|
3080
3849
|
|
|
3081
3850
|
export interface WebhooksClient<CallOptionsExt = {}> {
|
|
@@ -3085,6 +3854,10 @@ export interface WebhooksClient<CallOptionsExt = {}> {
|
|
|
3085
3854
|
request: DeepPartial<GetWebhooksRequest>,
|
|
3086
3855
|
options?: CallOptions & CallOptionsExt,
|
|
3087
3856
|
): Promise<QueryResultIEnumerableWebhookDetailsResponse>;
|
|
3857
|
+
getWebhookSigningKeys(
|
|
3858
|
+
request: DeepPartial<GetWebhookSigningKeysRequest>,
|
|
3859
|
+
options?: CallOptions & CallOptionsExt,
|
|
3860
|
+
): Promise<QueryResultIEnumerableWebhookSigningPublicKeyResponse>;
|
|
3088
3861
|
observeWebhooks(
|
|
3089
3862
|
request: DeepPartial<ObserveWebhooksRequest>,
|
|
3090
3863
|
options?: CallOptions & CallOptionsExt,
|
|
@@ -3097,6 +3870,14 @@ export interface WebhooksClient<CallOptionsExt = {}> {
|
|
|
3097
3870
|
request: DeepPartial<RemoveWebhooksRequest>,
|
|
3098
3871
|
options?: CallOptions & CallOptionsExt,
|
|
3099
3872
|
): Promise<CommandResult>;
|
|
3873
|
+
rotateWebhookSigningKey(
|
|
3874
|
+
request: DeepPartial<RotateWebhookSigningKeyRequest>,
|
|
3875
|
+
options?: CallOptions & CallOptionsExt,
|
|
3876
|
+
): Promise<CommandResult>;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
function floatToJson(value: number | null | undefined): number | string | null | undefined {
|
|
3880
|
+
return typeof value === "number" && !globalThis.Number.isFinite(value) ? globalThis.String(value) : value;
|
|
3100
3881
|
}
|
|
3101
3882
|
|
|
3102
3883
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|