@miradorlabs/web-grpc 2.13.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,7 @@ 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 };
1779
1780
  /**
1780
1781
  * Deterministic kind identity, sequencer-stamped: a frozen mirador_* slug for platform
1781
1782
  * events, the slugified author name for info/warn/error. Empty on events written before
@@ -1837,7 +1838,7 @@ export interface TraceEventEnvelope {
1837
1838
 
1838
1839
  export interface TraceEventEnvelope_AttributesEntry {
1839
1840
  key: string;
1840
- value: string;
1841
+ value: AttributeValue | undefined;
1841
1842
  }
1842
1843
 
1843
1844
  /** SpanStarted is emitted when a span opens. */
@@ -1848,12 +1849,12 @@ export interface SpanStarted {
1848
1849
  parentSpanId?: string | undefined;
1849
1850
  name: string;
1850
1851
  startTime: Date | undefined;
1851
- attributes: { [key: string]: string };
1852
+ attributes: { [key: string]: AttributeValue };
1852
1853
  }
1853
1854
 
1854
1855
  export interface SpanStarted_AttributesEntry {
1855
1856
  key: string;
1856
- value: string;
1857
+ value: AttributeValue | undefined;
1857
1858
  }
1858
1859
 
1859
1860
  /** SpanEnded is emitted when a span closes. */
@@ -1876,13 +1877,13 @@ export interface RuleMatchAdded {
1876
1877
  /** TraceStarted is emitted when a new trace is created */
1877
1878
  export interface TraceStarted {
1878
1879
  name: string;
1879
- attributes: { [key: string]: string };
1880
+ attributes: { [key: string]: AttributeValue };
1880
1881
  projectId: string;
1881
1882
  }
1882
1883
 
1883
1884
  export interface TraceStarted_AttributesEntry {
1884
1885
  key: string;
1885
- value: string;
1886
+ value: AttributeValue | undefined;
1886
1887
  }
1887
1888
 
1888
1889
  /** TraceFinished is emitted when a trace is marked complete */
@@ -2013,12 +2014,12 @@ export function txTrackingCompleted_TxHintStatusToJSON(object: TxTrackingComplet
2013
2014
  /** AttributesUpdated is emitted when trace attributes are updated */
2014
2015
  export interface AttributesUpdated {
2015
2016
  /** The attributes that were added/updated */
2016
- attributes: { [key: string]: string };
2017
+ attributes: { [key: string]: AttributeValue };
2017
2018
  }
2018
2019
 
2019
2020
  export interface AttributesUpdated_AttributesEntry {
2020
2021
  key: string;
2021
- value: string;
2022
+ value: AttributeValue | undefined;
2022
2023
  }
2023
2024
 
2024
2025
  /** TagsUpdated is emitted when trace tags are updated */
@@ -6869,7 +6870,7 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
6869
6870
  if (message.parentSpanId !== "") {
6870
6871
  writer.uint32(114).string(message.parentSpanId);
6871
6872
  }
6872
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
6873
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
6873
6874
  TraceEventEnvelope_AttributesEntry.encode({ key: key as any, value }, writer.uint32(122).fork()).join();
6874
6875
  });
6875
6876
  if (message.selector !== "") {
@@ -7618,8 +7619,8 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7618
7619
  : "",
7619
7620
  attributes: isObject(object.attributes)
7620
7621
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
7621
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
7622
- acc[key] = globalThis.String(value);
7622
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
7623
+ acc[key] = AttributeValue.fromJSON(value);
7623
7624
  return acc;
7624
7625
  },
7625
7626
  {},
@@ -7923,11 +7924,11 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7923
7924
  obj.parentSpanId = message.parentSpanId;
7924
7925
  }
7925
7926
  if (message.attributes) {
7926
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
7927
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
7927
7928
  if (entries.length > 0) {
7928
7929
  obj.attributes = {};
7929
7930
  entries.forEach(([k, v]) => {
7930
- obj.attributes[k] = v;
7931
+ obj.attributes[k] = AttributeValue.toJSON(v);
7931
7932
  });
7932
7933
  }
7933
7934
  }
@@ -8107,10 +8108,10 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8107
8108
  message.category = object.category ?? 0;
8108
8109
  message.spanId = object.spanId ?? "";
8109
8110
  message.parentSpanId = object.parentSpanId ?? "";
8110
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8111
- (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]) => {
8112
8113
  if (value !== undefined) {
8113
- acc[key] = globalThis.String(value);
8114
+ acc[key] = AttributeValue.fromPartial(value);
8114
8115
  }
8115
8116
  return acc;
8116
8117
  },
@@ -8284,7 +8285,7 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8284
8285
  };
8285
8286
 
8286
8287
  function createBaseTraceEventEnvelope_AttributesEntry(): TraceEventEnvelope_AttributesEntry {
8287
- return { key: "", value: "" };
8288
+ return { key: "", value: undefined };
8288
8289
  }
8289
8290
 
8290
8291
  export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_AttributesEntry> = {
@@ -8292,8 +8293,8 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8292
8293
  if (message.key !== "") {
8293
8294
  writer.uint32(10).string(message.key);
8294
8295
  }
8295
- if (message.value !== "") {
8296
- writer.uint32(18).string(message.value);
8296
+ if (message.value !== undefined) {
8297
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8297
8298
  }
8298
8299
  return writer;
8299
8300
  },
@@ -8318,7 +8319,7 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8318
8319
  break;
8319
8320
  }
8320
8321
 
8321
- message.value = reader.string();
8322
+ message.value = AttributeValue.decode(reader, reader.uint32());
8322
8323
  continue;
8323
8324
  }
8324
8325
  }
@@ -8333,7 +8334,7 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8333
8334
  fromJSON(object: any): TraceEventEnvelope_AttributesEntry {
8334
8335
  return {
8335
8336
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8336
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8337
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8337
8338
  };
8338
8339
  },
8339
8340
 
@@ -8342,8 +8343,8 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8342
8343
  if (message.key !== "") {
8343
8344
  obj.key = message.key;
8344
8345
  }
8345
- if (message.value !== "") {
8346
- obj.value = message.value;
8346
+ if (message.value !== undefined) {
8347
+ obj.value = AttributeValue.toJSON(message.value);
8347
8348
  }
8348
8349
  return obj;
8349
8350
  },
@@ -8358,7 +8359,9 @@ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_A
8358
8359
  ): TraceEventEnvelope_AttributesEntry {
8359
8360
  const message = createBaseTraceEventEnvelope_AttributesEntry();
8360
8361
  message.key = object.key ?? "";
8361
- message.value = object.value ?? "";
8362
+ message.value = (object.value !== undefined && object.value !== null)
8363
+ ? AttributeValue.fromPartial(object.value)
8364
+ : undefined;
8362
8365
  return message;
8363
8366
  },
8364
8367
  };
@@ -8381,7 +8384,7 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8381
8384
  if (message.startTime !== undefined) {
8382
8385
  Timestamp.encode(toTimestamp(message.startTime), writer.uint32(34).fork()).join();
8383
8386
  }
8384
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
8387
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
8385
8388
  SpanStarted_AttributesEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
8386
8389
  });
8387
8390
  return writer;
@@ -8466,8 +8469,8 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8466
8469
  : undefined,
8467
8470
  attributes: isObject(object.attributes)
8468
8471
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
8469
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
8470
- acc[key] = globalThis.String(value);
8472
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
8473
+ acc[key] = AttributeValue.fromJSON(value);
8471
8474
  return acc;
8472
8475
  },
8473
8476
  {},
@@ -8491,11 +8494,11 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8491
8494
  obj.startTime = message.startTime.toISOString();
8492
8495
  }
8493
8496
  if (message.attributes) {
8494
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
8497
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
8495
8498
  if (entries.length > 0) {
8496
8499
  obj.attributes = {};
8497
8500
  entries.forEach(([k, v]) => {
8498
- obj.attributes[k] = v;
8501
+ obj.attributes[k] = AttributeValue.toJSON(v);
8499
8502
  });
8500
8503
  }
8501
8504
  }
@@ -8511,10 +8514,10 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8511
8514
  message.parentSpanId = object.parentSpanId ?? undefined;
8512
8515
  message.name = object.name ?? "";
8513
8516
  message.startTime = object.startTime ?? undefined;
8514
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8515
- (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]) => {
8516
8519
  if (value !== undefined) {
8517
- acc[key] = globalThis.String(value);
8520
+ acc[key] = AttributeValue.fromPartial(value);
8518
8521
  }
8519
8522
  return acc;
8520
8523
  },
@@ -8525,7 +8528,7 @@ export const SpanStarted: MessageFns<SpanStarted> = {
8525
8528
  };
8526
8529
 
8527
8530
  function createBaseSpanStarted_AttributesEntry(): SpanStarted_AttributesEntry {
8528
- return { key: "", value: "" };
8531
+ return { key: "", value: undefined };
8529
8532
  }
8530
8533
 
8531
8534
  export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry> = {
@@ -8533,8 +8536,8 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8533
8536
  if (message.key !== "") {
8534
8537
  writer.uint32(10).string(message.key);
8535
8538
  }
8536
- if (message.value !== "") {
8537
- writer.uint32(18).string(message.value);
8539
+ if (message.value !== undefined) {
8540
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8538
8541
  }
8539
8542
  return writer;
8540
8543
  },
@@ -8559,7 +8562,7 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8559
8562
  break;
8560
8563
  }
8561
8564
 
8562
- message.value = reader.string();
8565
+ message.value = AttributeValue.decode(reader, reader.uint32());
8563
8566
  continue;
8564
8567
  }
8565
8568
  }
@@ -8574,7 +8577,7 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8574
8577
  fromJSON(object: any): SpanStarted_AttributesEntry {
8575
8578
  return {
8576
8579
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8577
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8580
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8578
8581
  };
8579
8582
  },
8580
8583
 
@@ -8583,8 +8586,8 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8583
8586
  if (message.key !== "") {
8584
8587
  obj.key = message.key;
8585
8588
  }
8586
- if (message.value !== "") {
8587
- obj.value = message.value;
8589
+ if (message.value !== undefined) {
8590
+ obj.value = AttributeValue.toJSON(message.value);
8588
8591
  }
8589
8592
  return obj;
8590
8593
  },
@@ -8595,7 +8598,9 @@ export const SpanStarted_AttributesEntry: MessageFns<SpanStarted_AttributesEntry
8595
8598
  fromPartial<I extends Exact<DeepPartial<SpanStarted_AttributesEntry>, I>>(object: I): SpanStarted_AttributesEntry {
8596
8599
  const message = createBaseSpanStarted_AttributesEntry();
8597
8600
  message.key = object.key ?? "";
8598
- message.value = object.value ?? "";
8601
+ message.value = (object.value !== undefined && object.value !== null)
8602
+ ? AttributeValue.fromPartial(object.value)
8603
+ : undefined;
8599
8604
  return message;
8600
8605
  },
8601
8606
  };
@@ -8799,7 +8804,7 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8799
8804
  if (message.name !== "") {
8800
8805
  writer.uint32(10).string(message.name);
8801
8806
  }
8802
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
8807
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
8803
8808
  TraceStarted_AttributesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
8804
8809
  });
8805
8810
  if (message.projectId !== "") {
@@ -8856,8 +8861,8 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8856
8861
  name: isSet(object.name) ? globalThis.String(object.name) : "",
8857
8862
  attributes: isObject(object.attributes)
8858
8863
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
8859
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
8860
- acc[key] = globalThis.String(value);
8864
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
8865
+ acc[key] = AttributeValue.fromJSON(value);
8861
8866
  return acc;
8862
8867
  },
8863
8868
  {},
@@ -8877,11 +8882,11 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8877
8882
  obj.name = message.name;
8878
8883
  }
8879
8884
  if (message.attributes) {
8880
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
8885
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
8881
8886
  if (entries.length > 0) {
8882
8887
  obj.attributes = {};
8883
8888
  entries.forEach(([k, v]) => {
8884
- obj.attributes[k] = v;
8889
+ obj.attributes[k] = AttributeValue.toJSON(v);
8885
8890
  });
8886
8891
  }
8887
8892
  }
@@ -8897,10 +8902,10 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8897
8902
  fromPartial<I extends Exact<DeepPartial<TraceStarted>, I>>(object: I): TraceStarted {
8898
8903
  const message = createBaseTraceStarted();
8899
8904
  message.name = object.name ?? "";
8900
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8901
- (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]) => {
8902
8907
  if (value !== undefined) {
8903
- acc[key] = globalThis.String(value);
8908
+ acc[key] = AttributeValue.fromPartial(value);
8904
8909
  }
8905
8910
  return acc;
8906
8911
  },
@@ -8912,7 +8917,7 @@ export const TraceStarted: MessageFns<TraceStarted> = {
8912
8917
  };
8913
8918
 
8914
8919
  function createBaseTraceStarted_AttributesEntry(): TraceStarted_AttributesEntry {
8915
- return { key: "", value: "" };
8920
+ return { key: "", value: undefined };
8916
8921
  }
8917
8922
 
8918
8923
  export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEntry> = {
@@ -8920,8 +8925,8 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8920
8925
  if (message.key !== "") {
8921
8926
  writer.uint32(10).string(message.key);
8922
8927
  }
8923
- if (message.value !== "") {
8924
- writer.uint32(18).string(message.value);
8928
+ if (message.value !== undefined) {
8929
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
8925
8930
  }
8926
8931
  return writer;
8927
8932
  },
@@ -8946,7 +8951,7 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8946
8951
  break;
8947
8952
  }
8948
8953
 
8949
- message.value = reader.string();
8954
+ message.value = AttributeValue.decode(reader, reader.uint32());
8950
8955
  continue;
8951
8956
  }
8952
8957
  }
@@ -8961,7 +8966,7 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8961
8966
  fromJSON(object: any): TraceStarted_AttributesEntry {
8962
8967
  return {
8963
8968
  key: isSet(object.key) ? globalThis.String(object.key) : "",
8964
- value: isSet(object.value) ? globalThis.String(object.value) : "",
8969
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
8965
8970
  };
8966
8971
  },
8967
8972
 
@@ -8970,8 +8975,8 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8970
8975
  if (message.key !== "") {
8971
8976
  obj.key = message.key;
8972
8977
  }
8973
- if (message.value !== "") {
8974
- obj.value = message.value;
8978
+ if (message.value !== undefined) {
8979
+ obj.value = AttributeValue.toJSON(message.value);
8975
8980
  }
8976
8981
  return obj;
8977
8982
  },
@@ -8982,7 +8987,9 @@ export const TraceStarted_AttributesEntry: MessageFns<TraceStarted_AttributesEnt
8982
8987
  fromPartial<I extends Exact<DeepPartial<TraceStarted_AttributesEntry>, I>>(object: I): TraceStarted_AttributesEntry {
8983
8988
  const message = createBaseTraceStarted_AttributesEntry();
8984
8989
  message.key = object.key ?? "";
8985
- message.value = object.value ?? "";
8990
+ message.value = (object.value !== undefined && object.value !== null)
8991
+ ? AttributeValue.fromPartial(object.value)
8992
+ : undefined;
8986
8993
  return message;
8987
8994
  },
8988
8995
  };
@@ -9668,7 +9675,7 @@ function createBaseAttributesUpdated(): AttributesUpdated {
9668
9675
 
9669
9676
  export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9670
9677
  encode(message: AttributesUpdated, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9671
- globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
9678
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
9672
9679
  AttributesUpdated_AttributesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
9673
9680
  });
9674
9681
  return writer;
@@ -9705,8 +9712,8 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9705
9712
  return {
9706
9713
  attributes: isObject(object.attributes)
9707
9714
  ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
9708
- (acc: { [key: string]: string }, [key, value]: [string, any]) => {
9709
- acc[key] = globalThis.String(value);
9715
+ (acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
9716
+ acc[key] = AttributeValue.fromJSON(value);
9710
9717
  return acc;
9711
9718
  },
9712
9719
  {},
@@ -9718,11 +9725,11 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9718
9725
  toJSON(message: AttributesUpdated): unknown {
9719
9726
  const obj: any = {};
9720
9727
  if (message.attributes) {
9721
- const entries = globalThis.Object.entries(message.attributes) as [string, string][];
9728
+ const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
9722
9729
  if (entries.length > 0) {
9723
9730
  obj.attributes = {};
9724
9731
  entries.forEach(([k, v]) => {
9725
- obj.attributes[k] = v;
9732
+ obj.attributes[k] = AttributeValue.toJSON(v);
9726
9733
  });
9727
9734
  }
9728
9735
  }
@@ -9734,10 +9741,10 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9734
9741
  },
9735
9742
  fromPartial<I extends Exact<DeepPartial<AttributesUpdated>, I>>(object: I): AttributesUpdated {
9736
9743
  const message = createBaseAttributesUpdated();
9737
- message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
9738
- (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]) => {
9739
9746
  if (value !== undefined) {
9740
- acc[key] = globalThis.String(value);
9747
+ acc[key] = AttributeValue.fromPartial(value);
9741
9748
  }
9742
9749
  return acc;
9743
9750
  },
@@ -9748,7 +9755,7 @@ export const AttributesUpdated: MessageFns<AttributesUpdated> = {
9748
9755
  };
9749
9756
 
9750
9757
  function createBaseAttributesUpdated_AttributesEntry(): AttributesUpdated_AttributesEntry {
9751
- return { key: "", value: "" };
9758
+ return { key: "", value: undefined };
9752
9759
  }
9753
9760
 
9754
9761
  export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_AttributesEntry> = {
@@ -9756,8 +9763,8 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9756
9763
  if (message.key !== "") {
9757
9764
  writer.uint32(10).string(message.key);
9758
9765
  }
9759
- if (message.value !== "") {
9760
- writer.uint32(18).string(message.value);
9766
+ if (message.value !== undefined) {
9767
+ AttributeValue.encode(message.value, writer.uint32(18).fork()).join();
9761
9768
  }
9762
9769
  return writer;
9763
9770
  },
@@ -9782,7 +9789,7 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9782
9789
  break;
9783
9790
  }
9784
9791
 
9785
- message.value = reader.string();
9792
+ message.value = AttributeValue.decode(reader, reader.uint32());
9786
9793
  continue;
9787
9794
  }
9788
9795
  }
@@ -9797,7 +9804,7 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9797
9804
  fromJSON(object: any): AttributesUpdated_AttributesEntry {
9798
9805
  return {
9799
9806
  key: isSet(object.key) ? globalThis.String(object.key) : "",
9800
- value: isSet(object.value) ? globalThis.String(object.value) : "",
9807
+ value: isSet(object.value) ? AttributeValue.fromJSON(object.value) : undefined,
9801
9808
  };
9802
9809
  },
9803
9810
 
@@ -9806,8 +9813,8 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9806
9813
  if (message.key !== "") {
9807
9814
  obj.key = message.key;
9808
9815
  }
9809
- if (message.value !== "") {
9810
- obj.value = message.value;
9816
+ if (message.value !== undefined) {
9817
+ obj.value = AttributeValue.toJSON(message.value);
9811
9818
  }
9812
9819
  return obj;
9813
9820
  },
@@ -9822,7 +9829,9 @@ export const AttributesUpdated_AttributesEntry: MessageFns<AttributesUpdated_Att
9822
9829
  ): AttributesUpdated_AttributesEntry {
9823
9830
  const message = createBaseAttributesUpdated_AttributesEntry();
9824
9831
  message.key = object.key ?? "";
9825
- message.value = object.value ?? "";
9832
+ message.value = (object.value !== undefined && object.value !== null)
9833
+ ? AttributeValue.fromPartial(object.value)
9834
+ : undefined;
9826
9835
  return message;
9827
9836
  },
9828
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)) {