@miradorlabs/web-grpc 2.12.0 → 2.14.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.
@@ -12,6 +12,7 @@ import { map } from "rxjs/operators";
12
12
  import { Timestamp } from "../../../../google/protobuf/timestamp";
13
13
  import { ResponseStatus } from "../../common/v1/status";
14
14
  import { BridgeLegType, bridgeLegTypeFromJSON, bridgeLegTypeToJSON, ChainDetails } from "../../common/v1/types";
15
+ import { AttributeValue } from "./attribute_value";
15
16
 
16
17
  export const protobufPackage = "gateway.web.v1";
17
18
 
@@ -1775,7 +1776,13 @@ export interface TraceEventEnvelope {
1775
1776
  * (TraceStarted/AttributesUpdated) and span attributes (SpanStarted) — this bag belongs to
1776
1777
  * this one event occurrence.
1777
1778
  */
1778
- attributes: { [key: string]: string };
1779
+ attributes: { [key: string]: AttributeValue };
1780
+ /**
1781
+ * Deterministic kind identity, sequencer-stamped: a frozen mirador_* slug for platform
1782
+ * events, the slugified author name for info/warn/error. Empty on events written before
1783
+ * stamping existed — fall back to payload-type display logic, never derive a selector.
1784
+ */
1785
+ selector: string;
1779
1786
  traceStarted?: TraceStarted | undefined;
1780
1787
  traceFinished?: TraceFinished | undefined;
1781
1788
  infoEventAdded?: InfoEventAdded | undefined;
@@ -1831,7 +1838,7 @@ export interface TraceEventEnvelope {
1831
1838
 
1832
1839
  export interface TraceEventEnvelope_AttributesEntry {
1833
1840
  key: string;
1834
- value: string;
1841
+ value: AttributeValue | undefined;
1835
1842
  }
1836
1843
 
1837
1844
  /** SpanStarted is emitted when a span opens. */
@@ -1842,12 +1849,12 @@ export interface SpanStarted {
1842
1849
  parentSpanId?: string | undefined;
1843
1850
  name: string;
1844
1851
  startTime: Date | undefined;
1845
- attributes: { [key: string]: string };
1852
+ attributes: { [key: string]: AttributeValue };
1846
1853
  }
1847
1854
 
1848
1855
  export interface SpanStarted_AttributesEntry {
1849
1856
  key: string;
1850
- value: string;
1857
+ value: AttributeValue | undefined;
1851
1858
  }
1852
1859
 
1853
1860
  /** SpanEnded is emitted when a span closes. */
@@ -1870,13 +1877,13 @@ export interface RuleMatchAdded {
1870
1877
  /** TraceStarted is emitted when a new trace is created */
1871
1878
  export interface TraceStarted {
1872
1879
  name: string;
1873
- attributes: { [key: string]: string };
1880
+ attributes: { [key: string]: AttributeValue };
1874
1881
  projectId: string;
1875
1882
  }
1876
1883
 
1877
1884
  export interface TraceStarted_AttributesEntry {
1878
1885
  key: string;
1879
- value: string;
1886
+ value: AttributeValue | undefined;
1880
1887
  }
1881
1888
 
1882
1889
  /** TraceFinished is emitted when a trace is marked complete */
@@ -2007,12 +2014,12 @@ export function txTrackingCompleted_TxHintStatusToJSON(object: TxTrackingComplet
2007
2014
  /** AttributesUpdated is emitted when trace attributes are updated */
2008
2015
  export interface AttributesUpdated {
2009
2016
  /** The attributes that were added/updated */
2010
- attributes: { [key: string]: string };
2017
+ attributes: { [key: string]: AttributeValue };
2011
2018
  }
2012
2019
 
2013
2020
  export interface AttributesUpdated_AttributesEntry {
2014
2021
  key: string;
2015
- value: string;
2022
+ value: AttributeValue | undefined;
2016
2023
  }
2017
2024
 
2018
2025
  /** TagsUpdated is emitted when trace tags are updated */
@@ -6770,6 +6777,7 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
6770
6777
  spanId: "",
6771
6778
  parentSpanId: "",
6772
6779
  attributes: {},
6780
+ selector: "",
6773
6781
  traceStarted: undefined,
6774
6782
  traceFinished: undefined,
6775
6783
  infoEventAdded: undefined,
@@ -6862,9 +6870,12 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
6862
6870
  if (message.parentSpanId !== "") {
6863
6871
  writer.uint32(114).string(message.parentSpanId);
6864
6872
  }
6865
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
6873
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
6866
6874
  TraceEventEnvelope_AttributesEntry.encode({ key: key as any, value }, writer.uint32(122).fork()).join();
6867
6875
  });
6876
+ if (message.selector !== "") {
6877
+ writer.uint32(130).string(message.selector);
6878
+ }
6868
6879
  if (message.traceStarted !== undefined) {
6869
6880
  TraceStarted.encode(message.traceStarted, writer.uint32(162).fork()).join();
6870
6881
  }
@@ -7135,6 +7146,14 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7135
7146
  }
7136
7147
  continue;
7137
7148
  }
7149
+ case 16: {
7150
+ if (tag !== 130) {
7151
+ break;
7152
+ }
7153
+
7154
+ message.selector = reader.string();
7155
+ continue;
7156
+ }
7138
7157
  case 20: {
7139
7158
  if (tag !== 162) {
7140
7159
  break;
@@ -7600,13 +7619,14 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7600
7619
  : "",
7601
7620
  attributes: isObject(object.attributes)
7602
7621
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
7603
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
7604
- acc[key] = globalThis.String(value);
7622
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
7623
+ acc[key] = AttributeValue.fromJSON(value);
7605
7624
  return acc;
7606
7625
  },
7607
7626
  {},
7608
7627
  )
7609
7628
  : {},
7629
+ selector: isSet(object.selector) ? globalThis.String(object.selector) : "",
7610
7630
  traceStarted: isSet(object.traceStarted)
7611
7631
  ? TraceStarted.fromJSON(object.traceStarted)
7612
7632
  : isSet(object.trace_started)
@@ -7904,14 +7924,17 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7904
7924
  obj.parentSpanId = message.parentSpanId;
7905
7925
  }
7906
7926
  if (message.attributes) {
7907
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
7927
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
7908
7928
  if (entries.length > 0) {
7909
7929
  obj.attributes = {};
7910
7930
  entries.forEach(([k, v]) => {
7911
- obj.attributes[k] = v;
7931
+ obj.attributes[k] = AttributeValue.toJSON(v);
7912
7932
  });
7913
7933
  }
7914
7934
  }
7935
+ if (message.selector !== "") {
7936
+ obj.selector = message.selector;
7937
+ }
7915
7938
  if (message.traceStarted !== undefined) {
7916
7939
  obj.traceStarted = TraceStarted.toJSON(message.traceStarted);
7917
7940
  }
@@ -8085,15 +8108,16 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8085
8108
  message.category = object.category ?? 0;
8086
8109
  message.spanId = object.spanId ?? "";
8087
8110
  message.parentSpanId = object.parentSpanId ?? "";
8088
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8089
- (acc: { [key: string]: string }, [key, value]: [string, string]) => {
8111
+ message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, AttributeValue][]).reduce(
8112
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, AttributeValue]) => {
8090
8113
  if (value !== undefined) {
8091
- acc[key] = globalThis.String(value);
8114
+ acc[key] = AttributeValue.fromPartial(value);
8092
8115
  }
8093
8116
  return acc;
8094
8117
  },
8095
8118
  {},
8096
8119
  );
8120
+ message.selector = object.selector ?? "";
8097
8121
  message.traceStarted = (object.traceStarted !== undefined && object.traceStarted !== null)
8098
8122
  ? TraceStarted.fromPartial(object.traceStarted)
8099
8123
  : undefined;
@@ -8261,7 +8285,7 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8261
8285
  };
8262
8286
 
8263
8287
  function createBaseTraceEventEnvelope_AttributesEntry(): TraceEventEnvelope_AttributesEntry {
8264
- return { key: "", value: "" };
8288
+ return { key: "", value: undefined };
8265
8289
  }
8266
8290
 
8267
8291
  export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_AttributesEntry> = {
@@ -8269,8 +8293,8 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8269
8293
  if (message.key !== "") {
8270
8294
  writer.uint32(10).string(message.key);
8271
8295
  }
8272
- if (message.value !== "") {
8273
- writer.uint32(18).string(message.value);
8296
+ if (message.value !== undefined) {
8297
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8274
8298
  }
8275
8299
  return writer;
8276
8300
  },
@@ -8295,7 +8319,7 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8295
8319
  break;
8296
8320
  }
8297
8321
 
8298
- message.value = reader.string();
8322
+ message.value = AttributeValue.decode(reader, reader.uint32());
8299
8323
  continue;
8300
8324
  }
8301
8325
  }
@@ -8310,7 +8334,7 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8310
8334
  fromJSON(object: any): TraceEventEnvelope_AttributesEntry {
8311
8335
  return {
8312
8336
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8313
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8337
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8314
8338
  };
8315
8339
  },
8316
8340
 
@@ -8319,8 +8343,8 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8319
8343
  if (message.key !== "") {
8320
8344
  obj.key = message.key;
8321
8345
  }
8322
- if (message.value !== "") {
8323
- obj.value = message.value;
8346
+ if (message.value !== undefined) {
8347
+ obj.value = AttributeValue.toJSON(message.value);
8324
8348
  }
8325
8349
  return obj;
8326
8350
  },
@@ -8335,7 +8359,9 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8335
8359
  ): TraceEventEnvelope_AttributesEntry {
8336
8360
  const message = createBaseTraceEventEnvelope_AttributesEntry();
8337
8361
  message.key = object.key ?? "";
8338
- message.value = object.value ?? "";
8362
+ message.value = (object.value !== undefined && object.value !== null)
8363
+ ? AttributeValue.fromPartial(object.value)
8364
+ : undefined;
8339
8365
  return message;
8340
8366
  },
8341
8367
  };
@@ -8358,7 +8384,7 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8358
8384
  if (message.startTime !== undefined) {
8359
8385
  Timestamp.encode(toTimestamp(message.startTime), writer.uint32(34).fork()).join();
8360
8386
  }
8361
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
8387
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
8362
8388
  SpanStarted_AttributesEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
8363
8389
  });
8364
8390
  return writer;
@@ -8443,8 +8469,8 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8443
8469
  : undefined,
8444
8470
  attributes: isObject(object.attributes)
8445
8471
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
8446
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
8447
- acc[key] = globalThis.String(value);
8472
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
8473
+ acc[key] = AttributeValue.fromJSON(value);
8448
8474
  return acc;
8449
8475
  },
8450
8476
  {},
@@ -8468,11 +8494,11 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8468
8494
  obj.startTime = message.startTime.toISOString();
8469
8495
  }
8470
8496
  if (message.attributes) {
8471
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
8497
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
8472
8498
  if (entries.length > 0) {
8473
8499
  obj.attributes = {};
8474
8500
  entries.forEach(([k, v]) => {
8475
- obj.attributes[k] = v;
8501
+ obj.attributes[k] = AttributeValue.toJSON(v);
8476
8502
  });
8477
8503
  }
8478
8504
  }
@@ -8488,10 +8514,10 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8488
8514
  message.parentSpanId = object.parentSpanId ?? undefined;
8489
8515
  message.name = object.name ?? "";
8490
8516
  message.startTime = object.startTime ?? undefined;
8491
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8492
- (acc: { [key: string]: string }, [key, value]: [string, string]) => {
8517
+ message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, AttributeValue][]).reduce(
8518
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, AttributeValue]) => {
8493
8519
  if (value !== undefined) {
8494
- acc[key] = globalThis.String(value);
8520
+ acc[key] = AttributeValue.fromPartial(value);
8495
8521
  }
8496
8522
  return acc;
8497
8523
  },
@@ -8502,7 +8528,7 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8502
8528
  };
8503
8529
 
8504
8530
  function createBaseSpanStarted_AttributesEntry(): SpanStarted_AttributesEntry {
8505
- return { key: "", value: "" };
8531
+ return { key: "", value: undefined };
8506
8532
  }
8507
8533
 
8508
8534
  export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry> = {
@@ -8510,8 +8536,8 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8510
8536
  if (message.key !== "") {
8511
8537
  writer.uint32(10).string(message.key);
8512
8538
  }
8513
- if (message.value !== "") {
8514
- writer.uint32(18).string(message.value);
8539
+ if (message.value !== undefined) {
8540
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8515
8541
  }
8516
8542
  return writer;
8517
8543
  },
@@ -8536,7 +8562,7 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8536
8562
  break;
8537
8563
  }
8538
8564
 
8539
- message.value = reader.string();
8565
+ message.value = AttributeValue.decode(reader, reader.uint32());
8540
8566
  continue;
8541
8567
  }
8542
8568
  }
@@ -8551,7 +8577,7 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8551
8577
  fromJSON(object: any): SpanStarted_AttributesEntry {
8552
8578
  return {
8553
8579
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8554
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8580
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8555
8581
  };
8556
8582
  },
8557
8583
 
@@ -8560,8 +8586,8 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8560
8586
  if (message.key !== "") {
8561
8587
  obj.key = message.key;
8562
8588
  }
8563
- if (message.value !== "") {
8564
- obj.value = message.value;
8589
+ if (message.value !== undefined) {
8590
+ obj.value = AttributeValue.toJSON(message.value);
8565
8591
  }
8566
8592
  return obj;
8567
8593
  },
@@ -8572,7 +8598,9 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8572
8598
  fromPartial<I extends Exact<DeepPartial<SpanStarted_AttributesEntry>, I>>(object: I): SpanStarted_AttributesEntry {
8573
8599
  const message = createBaseSpanStarted_AttributesEntry();
8574
8600
  message.key = object.key ?? "";
8575
- message.value = object.value ?? "";
8601
+ message.value = (object.value !== undefined && object.value !== null)
8602
+ ? AttributeValue.fromPartial(object.value)
8603
+ : undefined;
8576
8604
  return message;
8577
8605
  },
8578
8606
  };
@@ -8776,7 +8804,7 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8776
8804
  if (message.name !== "") {
8777
8805
  writer.uint32(10).string(message.name);
8778
8806
  }
8779
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
8807
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
8780
8808
  TraceStarted_AttributesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
8781
8809
  });
8782
8810
  if (message.projectId !== "") {
@@ -8833,8 +8861,8 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8833
8861
  name: isSet(object.name) ? globalThis.String(object.name) : "",
8834
8862
  attributes: isObject(object.attributes)
8835
8863
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
8836
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
8837
- acc[key] = globalThis.String(value);
8864
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
8865
+ acc[key] = AttributeValue.fromJSON(value);
8838
8866
  return acc;
8839
8867
  },
8840
8868
  {},
@@ -8854,11 +8882,11 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8854
8882
  obj.name = message.name;
8855
8883
  }
8856
8884
  if (message.attributes) {
8857
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
8885
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
8858
8886
  if (entries.length > 0) {
8859
8887
  obj.attributes = {};
8860
8888
  entries.forEach(([k, v]) => {
8861
- obj.attributes[k] = v;
8889
+ obj.attributes[k] = AttributeValue.toJSON(v);
8862
8890
  });
8863
8891
  }
8864
8892
  }
@@ -8874,10 +8902,10 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8874
8902
  fromPartial<I extends Exact<DeepPartial<TraceStarted>, I>>(object: I): TraceStarted {
8875
8903
  const message = createBaseTraceStarted();
8876
8904
  message.name = object.name ?? "";
8877
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8878
- (acc: { [key: string]: string }, [key, value]: [string, string]) => {
8905
+ message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, AttributeValue][]).reduce(
8906
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, AttributeValue]) => {
8879
8907
  if (value !== undefined) {
8880
- acc[key] = globalThis.String(value);
8908
+ acc[key] = AttributeValue.fromPartial(value);
8881
8909
  }
8882
8910
  return acc;
8883
8911
  },
@@ -8889,7 +8917,7 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8889
8917
  };
8890
8918
 
8891
8919
  function createBaseTraceStarted_AttributesEntry(): TraceStarted_AttributesEntry {
8892
- return { key: "", value: "" };
8920
+ return { key: "", value: undefined };
8893
8921
  }
8894
8922
 
8895
8923
  export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEntry> = {
@@ -8897,8 +8925,8 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8897
8925
  if (message.key !== "") {
8898
8926
  writer.uint32(10).string(message.key);
8899
8927
  }
8900
- if (message.value !== "") {
8901
- writer.uint32(18).string(message.value);
8928
+ if (message.value !== undefined) {
8929
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8902
8930
  }
8903
8931
  return writer;
8904
8932
  },
@@ -8923,7 +8951,7 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8923
8951
  break;
8924
8952
  }
8925
8953
 
8926
- message.value = reader.string();
8954
+ message.value = AttributeValue.decode(reader, reader.uint32());
8927
8955
  continue;
8928
8956
  }
8929
8957
  }
@@ -8938,7 +8966,7 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8938
8966
  fromJSON(object: any): TraceStarted_AttributesEntry {
8939
8967
  return {
8940
8968
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8941
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8969
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8942
8970
  };
8943
8971
  },
8944
8972
 
@@ -8947,8 +8975,8 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8947
8975
  if (message.key !== "") {
8948
8976
  obj.key = message.key;
8949
8977
  }
8950
- if (message.value !== "") {
8951
- obj.value = message.value;
8978
+ if (message.value !== undefined) {
8979
+ obj.value = AttributeValue.toJSON(message.value);
8952
8980
  }
8953
8981
  return obj;
8954
8982
  },
@@ -8959,7 +8987,9 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8959
8987
  fromPartial<I extends Exact<DeepPartial<TraceStarted_AttributesEntry>, I>>(object: I): TraceStarted_AttributesEntry {
8960
8988
  const message = createBaseTraceStarted_AttributesEntry();
8961
8989
  message.key = object.key ?? "";
8962
- message.value = object.value ?? "";
8990
+ message.value = (object.value !== undefined && object.value !== null)
8991
+ ? AttributeValue.fromPartial(object.value)
8992
+ : undefined;
8963
8993
  return message;
8964
8994
  },
8965
8995
  };
@@ -9645,7 +9675,7 @@ function createBaseAttributesUpdated(): AttributesUpdated {
9645
9675
 
9646
9676
  export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9647
9677
  encode(message: AttributesUpdated, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9648
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
9678
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
9649
9679
  AttributesUpdated_AttributesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
9650
9680
  });
9651
9681
  return writer;
@@ -9682,8 +9712,8 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9682
9712
  return {
9683
9713
  attributes: isObject(object.attributes)
9684
9714
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
9685
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
9686
- acc[key] = globalThis.String(value);
9715
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
9716
+ acc[key] = AttributeValue.fromJSON(value);
9687
9717
  return acc;
9688
9718
  },
9689
9719
  {},
@@ -9695,11 +9725,11 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9695
9725
  toJSON(message: AttributesUpdated): unknown {
9696
9726
  const obj: any = {};
9697
9727
  if (message.attributes) {
9698
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
9728
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
9699
9729
  if (entries.length > 0) {
9700
9730
  obj.attributes = {};
9701
9731
  entries.forEach(([k, v]) => {
9702
- obj.attributes[k] = v;
9732
+ obj.attributes[k] = AttributeValue.toJSON(v);
9703
9733
  });
9704
9734
  }
9705
9735
  }
@@ -9711,10 +9741,10 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9711
9741
  },
9712
9742
  fromPartial<I extends Exact<DeepPartial<AttributesUpdated>, I>>(object: I): AttributesUpdated {
9713
9743
  const message = createBaseAttributesUpdated();
9714
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
9715
- (acc: { [key: string]: string }, [key, value]: [string, string]) => {
9744
+ message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, AttributeValue][]).reduce(
9745
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, AttributeValue]) => {
9716
9746
  if (value !== undefined) {
9717
- acc[key] = globalThis.String(value);
9747
+ acc[key] = AttributeValue.fromPartial(value);
9718
9748
  }
9719
9749
  return acc;
9720
9750
  },
@@ -9725,7 +9755,7 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9725
9755
  };
9726
9756
 
9727
9757
  function createBaseAttributesUpdated_AttributesEntry(): AttributesUpdated_AttributesEntry {
9728
- return { key: "", value: "" };
9758
+ return { key: "", value: undefined };
9729
9759
  }
9730
9760
 
9731
9761
  export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_AttributesEntry> = {
@@ -9733,8 +9763,8 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9733
9763
  if (message.key !== "") {
9734
9764
  writer.uint32(10).string(message.key);
9735
9765
  }
9736
- if (message.value !== "") {
9737
- writer.uint32(18).string(message.value);
9766
+ if (message.value !== undefined) {
9767
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
9738
9768
  }
9739
9769
  return writer;
9740
9770
  },
@@ -9759,7 +9789,7 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9759
9789
  break;
9760
9790
  }
9761
9791
 
9762
- message.value = reader.string();
9792
+ message.value = AttributeValue.decode(reader, reader.uint32());
9763
9793
  continue;
9764
9794
  }
9765
9795
  }
@@ -9774,7 +9804,7 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9774
9804
  fromJSON(object: any): AttributesUpdated_AttributesEntry {
9775
9805
  return {
9776
9806
  key: isSet(object.key) ? globalThis.String(object.key) : "",
9777
- value: isSet(object.value) ? globalThis.String(object.value) : "",
9807
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
9778
9808
  };
9779
9809
  },
9780
9810
 
@@ -9783,8 +9813,8 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9783
9813
  if (message.key !== "") {
9784
9814
  obj.key = message.key;
9785
9815
  }
9786
- if (message.value !== "") {
9787
- obj.value = message.value;
9816
+ if (message.value !== undefined) {
9817
+ obj.value = AttributeValue.toJSON(message.value);
9788
9818
  }
9789
9819
  return obj;
9790
9820
  },
@@ -9799,7 +9829,9 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9799
9829
  ): AttributesUpdated_AttributesEntry {
9800
9830
  const message = createBaseAttributesUpdated_AttributesEntry();
9801
9831
  message.key = object.key ?? "";
9802
- message.value = object.value ?? "";
9832
+ message.value = (object.value !== undefined && object.value !== null)
9833
+ ? AttributeValue.fromPartial(object.value)
9834
+ : undefined;
9803
9835
  return message;
9804
9836
  },
9805
9837
  };
@@ -6,6 +6,7 @@ var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/w
6
6
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
7
7
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
8
8
  var proto_gateway_common_v1_types_pb = require('../../../../proto/gateway/common/v1/types_pb.js');
9
+ var proto_gateway_web_v1_attribute_value_pb = require('../../../../proto/gateway/web/v1/attribute_value_pb.js');
9
10
 
10
11
  function serialize_gateway_web_v1_DeleteTraceRequest(arg) {
11
12
  if (!(arg instanceof proto_gateway_web_v1_trace_gateway_pb.DeleteTraceRequest)) {