@sentio/api 1.0.5-rc.4 → 1.0.5-rc.6

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.
@@ -1671,128 +1671,79 @@ export declare namespace google {
1671
1671
  * `Any` contains an arbitrary serialized protocol buffer message along with a
1672
1672
  * URL that describes the type of the serialized message.
1673
1673
  *
1674
- * Protobuf library provides support to pack/unpack Any values in the form
1675
- * of utility functions or additional generated methods of the Any type.
1674
+ * In its binary encoding, an `Any` is an ordinary message; but in other wire
1675
+ * forms like JSON, it has a special encoding. The format of the type URL is
1676
+ * described on the `type_url` field.
1676
1677
  *
1677
- * Example 1: Pack and unpack a message in C++.
1678
+ * Protobuf APIs provide utilities to interact with `Any` values:
1678
1679
  *
1679
- * Foo foo = ...;
1680
- * Any any;
1681
- * any.PackFrom(foo);
1682
- * ...
1683
- * if (any.UnpackTo(&foo)) {
1684
- * ...
1685
- * }
1680
+ * - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
1681
+ * around it.
1682
+ * - An 'unpack' operation reads the content of an `Any` message, either into an
1683
+ * existing message or a new one. Unpack operations must check the type of the
1684
+ * value they unpack against the declared `type_url`.
1685
+ * - An 'is' operation decides whether an `Any` contains a message of the given
1686
+ * type, i.e. whether it can 'unpack' that type.
1686
1687
  *
1687
- * Example 2: Pack and unpack a message in Java.
1688
+ * The JSON format representation of an `Any` follows one of these cases:
1688
1689
  *
1689
- * Foo foo = ...;
1690
- * Any any = Any.pack(foo);
1691
- * ...
1692
- * if (any.is(Foo.class)) {
1693
- * foo = any.unpack(Foo.class);
1694
- * }
1695
- * // or ...
1696
- * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
1697
- * foo = any.unpack(Foo.getDefaultInstance());
1698
- * }
1690
+ * - For types without special-cased JSON encodings, the JSON format
1691
+ * representation of the `Any` is the same as that of the message, with an
1692
+ * additional `@type` field which contains the type URL.
1693
+ * - For types with special-cased JSON encodings (typically called 'well-known'
1694
+ * types, listed in https://protobuf.dev/programming-guides/json/#any), the
1695
+ * JSON format representation has a key `@type` which contains the type URL
1696
+ * and a key `value` which contains the JSON-serialized value.
1699
1697
  *
1700
- * Example 3: Pack and unpack a message in Python.
1701
- *
1702
- * foo = Foo(...)
1703
- * any = Any()
1704
- * any.Pack(foo)
1705
- * ...
1706
- * if any.Is(Foo.DESCRIPTOR):
1707
- * any.Unpack(foo)
1708
- * ...
1709
- *
1710
- * Example 4: Pack and unpack a message in Go
1711
- *
1712
- * foo := &pb.Foo{...}
1713
- * any, err := anypb.New(foo)
1714
- * if err != nil {
1715
- * ...
1716
- * }
1717
- * ...
1718
- * foo := &pb.Foo{}
1719
- * if err := any.UnmarshalTo(foo); err != nil {
1720
- * ...
1721
- * }
1722
- *
1723
- * The pack methods provided by protobuf library will by default use
1724
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
1725
- * methods only use the fully qualified type name after the last '/'
1726
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
1727
- * name "y.z".
1728
- *
1729
- * JSON
1730
- * ====
1731
- * The JSON representation of an `Any` value uses the regular
1732
- * representation of the deserialized, embedded message, with an
1733
- * additional field `@type` which contains the type URL. Example:
1734
- *
1735
- * package google.profile;
1736
- * message Person {
1737
- * string first_name = 1;
1738
- * string last_name = 2;
1739
- * }
1740
- *
1741
- * {
1742
- * "@type": "type.googleapis.com/google.profile.Person",
1743
- * "firstName": <string>,
1744
- * "lastName": <string>
1745
- * }
1746
- *
1747
- * If the embedded message type is well-known and has a custom JSON
1748
- * representation, that representation will be embedded adding a field
1749
- * `value` which holds the custom JSON in addition to the `@type`
1750
- * field. Example (for message [google.protobuf.Duration][]):
1751
- *
1752
- * {
1753
- * "@type": "type.googleapis.com/google.protobuf.Duration",
1754
- * "value": "1.212s"
1755
- * }
1698
+ * The text format representation of an `Any` is like a message with one field
1699
+ * whose name is the type URL in brackets. For example, an `Any` containing a
1700
+ * `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
1756
1701
  */
1757
1702
  type ProtobufAny = {
1758
1703
  /**
1759
- * A URL/resource name that uniquely identifies the type of the serialized
1760
- * protocol buffer message. This string must contain at least
1761
- * one "/" character. The last segment of the URL's path must represent
1762
- * the fully qualified name of the type (as in
1763
- * `path/google.protobuf.Duration`). The name should be in a canonical form
1764
- * (e.g., leading "." is not accepted).
1704
+ * Identifies the type of the serialized Protobuf message with a URI reference
1705
+ * consisting of a prefix ending in a slash and the fully-qualified type name.
1765
1706
  *
1766
- * In practice, teams usually precompile into the binary all types that they
1767
- * expect it to use in the context of Any. However, for URLs which use the
1768
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
1769
- * server that maps type URLs to message definitions as follows:
1707
+ * Example: type.googleapis.com/google.protobuf.StringValue
1770
1708
  *
1771
- * * If no scheme is provided, `https` is assumed.
1772
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
1773
- * value in binary format, or produce an error.
1774
- * * Applications are allowed to cache lookup results based on the
1775
- * URL, or have them precompiled into a binary to avoid any
1776
- * lookup. Therefore, binary compatibility needs to be preserved
1777
- * on changes to types. (Use versioned type names to manage
1778
- * breaking changes.)
1709
+ * This string must contain at least one `/` character, and the content after
1710
+ * the last `/` must be the fully-qualified name of the type in canonical
1711
+ * form, without a leading dot. Do not write a scheme on these URI references
1712
+ * so that clients do not attempt to contact them.
1779
1713
  *
1780
- * Note: this functionality is not currently available in the official
1781
- * protobuf release, and it is not used for type URLs beginning with
1782
- * type.googleapis.com. As of May 2023, there are no widely used type server
1783
- * implementations and no plans to implement one.
1714
+ * The prefix is arbitrary and Protobuf implementations are expected to
1715
+ * simply strip off everything up to and including the last `/` to identify
1716
+ * the type. `type.googleapis.com/` is a common default prefix that some
1717
+ * legacy implementations require. This prefix does not indicate the origin of
1718
+ * the type, and URIs containing it are not expected to respond to any
1719
+ * requests.
1784
1720
  *
1785
- * Schemes other than `http`, `https` (or the empty scheme) might be
1786
- * used with implementation specific semantics.
1721
+ * All type URL strings must be legal URI references with the additional
1722
+ * restriction (for the text format) that the content of the reference
1723
+ * must consist only of alphanumeric characters, percent-encoded escapes, and
1724
+ * characters in the following set (not including the outer backticks):
1725
+ * `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
1726
+ * should not unescape them to prevent confusion with existing parsers. For
1727
+ * example, `type.googleapis.com%2FFoo` should be rejected.
1728
+ *
1729
+ * In the original design of `Any`, the possibility of launching a type
1730
+ * resolution service at these type URLs was considered but Protobuf never
1731
+ * implemented one and considers contacting these URLs to be problematic and
1732
+ * a potential security issue. Do not attempt to contact type URLs.
1787
1733
  */
1788
1734
  '@type'?: string;
1789
1735
  [key: string]: unknown | string | undefined;
1790
1736
  };
1791
1737
  /**
1792
- * `NullValue` is a singleton enumeration to represent the null value for the
1793
- * `Value` type union.
1738
+ * Represents a JSON `null`.
1739
+ *
1740
+ * `NullValue` is a sentinel, using an enum with only one value to represent
1741
+ * the null value for the `Value` type union.
1794
1742
  *
1795
- * The JSON representation for `NullValue` is JSON `null`.
1743
+ * A field of type `NullValue` with any value other than `0` is considered
1744
+ * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
1745
+ * as a JSON `null` regardless of the integer value, and so will round trip to
1746
+ * a `0` value.
1796
1747
  *
1797
1748
  * - NULL_VALUE: Null value.
1798
1749
  */
@@ -3104,8 +3055,9 @@ export declare namespace web_service {
3104
3055
  sqlExecuteEngine?: analytic_service.ExecuteEngine;
3105
3056
  enableExperimentalFeatures?: boolean;
3106
3057
  overlayGraphs?: Array<OverlayGraph>;
3058
+ group?: Group;
3107
3059
  };
3108
- type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL';
3060
+ type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL' | 'GROUP';
3109
3061
  type ChartConfig = {
3110
3062
  yAxis?: ChartConfigYAxisConfig;
3111
3063
  barGauge?: ChartConfigBarGaugeConfig;
@@ -3263,7 +3215,7 @@ export declare namespace web_service {
3263
3215
  column?: string;
3264
3216
  name?: string;
3265
3217
  };
3266
- type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER';
3218
+ type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER' | 'GROUP';
3267
3219
  type Dashboard = {
3268
3220
  id?: string;
3269
3221
  name?: string;
@@ -3367,6 +3319,15 @@ export declare namespace web_service {
3367
3319
  dashboards?: Array<Dashboard>;
3368
3320
  permissions?: Array<common.Permission>;
3369
3321
  };
3322
+ /**
3323
+ * Configuration for a GROUP-typed Panel — a collapsible container that holds
3324
+ * other panels referencing it via Panel.group_id. Groups cannot nest.
3325
+ */
3326
+ type Group = {
3327
+ title?: string;
3328
+ collapsed?: boolean;
3329
+ childLayouts?: DashboardResponsiveLayouts;
3330
+ };
3370
3331
  type ImportDashboardRequest = {
3371
3332
  /**
3372
3333
  * The id of the target dashboard to import into.
@@ -3419,6 +3380,11 @@ export declare namespace web_service {
3419
3380
  chart?: Chart;
3420
3381
  creator?: common.UserInfo;
3421
3382
  updater?: common.UserInfo;
3383
+ /**
3384
+ * When non-empty, this panel renders inside the Group panel identified by group_id.
3385
+ * GROUP-typed panels must keep this field empty (groups cannot nest).
3386
+ */
3387
+ groupId?: string;
3422
3388
  };
3423
3389
  type SharingConfig = {
3424
3390
  isReadonly?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/api",
3
- "version": "1.0.5-rc.4",
3
+ "version": "1.0.5-rc.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
package/src/types.gen.ts CHANGED
@@ -1678,128 +1678,79 @@ export namespace google {
1678
1678
  * `Any` contains an arbitrary serialized protocol buffer message along with a
1679
1679
  * URL that describes the type of the serialized message.
1680
1680
  *
1681
- * Protobuf library provides support to pack/unpack Any values in the form
1682
- * of utility functions or additional generated methods of the Any type.
1681
+ * In its binary encoding, an `Any` is an ordinary message; but in other wire
1682
+ * forms like JSON, it has a special encoding. The format of the type URL is
1683
+ * described on the `type_url` field.
1683
1684
  *
1684
- * Example 1: Pack and unpack a message in C++.
1685
+ * Protobuf APIs provide utilities to interact with `Any` values:
1685
1686
  *
1686
- * Foo foo = ...;
1687
- * Any any;
1688
- * any.PackFrom(foo);
1689
- * ...
1690
- * if (any.UnpackTo(&foo)) {
1691
- * ...
1692
- * }
1687
+ * - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
1688
+ * around it.
1689
+ * - An 'unpack' operation reads the content of an `Any` message, either into an
1690
+ * existing message or a new one. Unpack operations must check the type of the
1691
+ * value they unpack against the declared `type_url`.
1692
+ * - An 'is' operation decides whether an `Any` contains a message of the given
1693
+ * type, i.e. whether it can 'unpack' that type.
1693
1694
  *
1694
- * Example 2: Pack and unpack a message in Java.
1695
+ * The JSON format representation of an `Any` follows one of these cases:
1695
1696
  *
1696
- * Foo foo = ...;
1697
- * Any any = Any.pack(foo);
1698
- * ...
1699
- * if (any.is(Foo.class)) {
1700
- * foo = any.unpack(Foo.class);
1701
- * }
1702
- * // or ...
1703
- * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
1704
- * foo = any.unpack(Foo.getDefaultInstance());
1705
- * }
1697
+ * - For types without special-cased JSON encodings, the JSON format
1698
+ * representation of the `Any` is the same as that of the message, with an
1699
+ * additional `@type` field which contains the type URL.
1700
+ * - For types with special-cased JSON encodings (typically called 'well-known'
1701
+ * types, listed in https://protobuf.dev/programming-guides/json/#any), the
1702
+ * JSON format representation has a key `@type` which contains the type URL
1703
+ * and a key `value` which contains the JSON-serialized value.
1706
1704
  *
1707
- * Example 3: Pack and unpack a message in Python.
1708
- *
1709
- * foo = Foo(...)
1710
- * any = Any()
1711
- * any.Pack(foo)
1712
- * ...
1713
- * if any.Is(Foo.DESCRIPTOR):
1714
- * any.Unpack(foo)
1715
- * ...
1716
- *
1717
- * Example 4: Pack and unpack a message in Go
1718
- *
1719
- * foo := &pb.Foo{...}
1720
- * any, err := anypb.New(foo)
1721
- * if err != nil {
1722
- * ...
1723
- * }
1724
- * ...
1725
- * foo := &pb.Foo{}
1726
- * if err := any.UnmarshalTo(foo); err != nil {
1727
- * ...
1728
- * }
1729
- *
1730
- * The pack methods provided by protobuf library will by default use
1731
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
1732
- * methods only use the fully qualified type name after the last '/'
1733
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
1734
- * name "y.z".
1735
- *
1736
- * JSON
1737
- * ====
1738
- * The JSON representation of an `Any` value uses the regular
1739
- * representation of the deserialized, embedded message, with an
1740
- * additional field `@type` which contains the type URL. Example:
1741
- *
1742
- * package google.profile;
1743
- * message Person {
1744
- * string first_name = 1;
1745
- * string last_name = 2;
1746
- * }
1747
- *
1748
- * {
1749
- * "@type": "type.googleapis.com/google.profile.Person",
1750
- * "firstName": <string>,
1751
- * "lastName": <string>
1752
- * }
1753
- *
1754
- * If the embedded message type is well-known and has a custom JSON
1755
- * representation, that representation will be embedded adding a field
1756
- * `value` which holds the custom JSON in addition to the `@type`
1757
- * field. Example (for message [google.protobuf.Duration][]):
1758
- *
1759
- * {
1760
- * "@type": "type.googleapis.com/google.protobuf.Duration",
1761
- * "value": "1.212s"
1762
- * }
1705
+ * The text format representation of an `Any` is like a message with one field
1706
+ * whose name is the type URL in brackets. For example, an `Any` containing a
1707
+ * `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
1763
1708
  */
1764
1709
  export type ProtobufAny = {
1765
1710
  /**
1766
- * A URL/resource name that uniquely identifies the type of the serialized
1767
- * protocol buffer message. This string must contain at least
1768
- * one "/" character. The last segment of the URL's path must represent
1769
- * the fully qualified name of the type (as in
1770
- * `path/google.protobuf.Duration`). The name should be in a canonical form
1771
- * (e.g., leading "." is not accepted).
1711
+ * Identifies the type of the serialized Protobuf message with a URI reference
1712
+ * consisting of a prefix ending in a slash and the fully-qualified type name.
1772
1713
  *
1773
- * In practice, teams usually precompile into the binary all types that they
1774
- * expect it to use in the context of Any. However, for URLs which use the
1775
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
1776
- * server that maps type URLs to message definitions as follows:
1714
+ * Example: type.googleapis.com/google.protobuf.StringValue
1777
1715
  *
1778
- * * If no scheme is provided, `https` is assumed.
1779
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
1780
- * value in binary format, or produce an error.
1781
- * * Applications are allowed to cache lookup results based on the
1782
- * URL, or have them precompiled into a binary to avoid any
1783
- * lookup. Therefore, binary compatibility needs to be preserved
1784
- * on changes to types. (Use versioned type names to manage
1785
- * breaking changes.)
1716
+ * This string must contain at least one `/` character, and the content after
1717
+ * the last `/` must be the fully-qualified name of the type in canonical
1718
+ * form, without a leading dot. Do not write a scheme on these URI references
1719
+ * so that clients do not attempt to contact them.
1786
1720
  *
1787
- * Note: this functionality is not currently available in the official
1788
- * protobuf release, and it is not used for type URLs beginning with
1789
- * type.googleapis.com. As of May 2023, there are no widely used type server
1790
- * implementations and no plans to implement one.
1721
+ * The prefix is arbitrary and Protobuf implementations are expected to
1722
+ * simply strip off everything up to and including the last `/` to identify
1723
+ * the type. `type.googleapis.com/` is a common default prefix that some
1724
+ * legacy implementations require. This prefix does not indicate the origin of
1725
+ * the type, and URIs containing it are not expected to respond to any
1726
+ * requests.
1791
1727
  *
1792
- * Schemes other than `http`, `https` (or the empty scheme) might be
1793
- * used with implementation specific semantics.
1728
+ * All type URL strings must be legal URI references with the additional
1729
+ * restriction (for the text format) that the content of the reference
1730
+ * must consist only of alphanumeric characters, percent-encoded escapes, and
1731
+ * characters in the following set (not including the outer backticks):
1732
+ * `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
1733
+ * should not unescape them to prevent confusion with existing parsers. For
1734
+ * example, `type.googleapis.com%2FFoo` should be rejected.
1735
+ *
1736
+ * In the original design of `Any`, the possibility of launching a type
1737
+ * resolution service at these type URLs was considered but Protobuf never
1738
+ * implemented one and considers contacting these URLs to be problematic and
1739
+ * a potential security issue. Do not attempt to contact type URLs.
1794
1740
  */
1795
1741
  '@type'?: string;
1796
1742
  [key: string]: unknown | string | undefined;
1797
1743
  };
1798
1744
  /**
1799
- * `NullValue` is a singleton enumeration to represent the null value for the
1800
- * `Value` type union.
1745
+ * Represents a JSON `null`.
1746
+ *
1747
+ * `NullValue` is a sentinel, using an enum with only one value to represent
1748
+ * the null value for the `Value` type union.
1801
1749
  *
1802
- * The JSON representation for `NullValue` is JSON `null`.
1750
+ * A field of type `NullValue` with any value other than `0` is considered
1751
+ * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
1752
+ * as a JSON `null` regardless of the integer value, and so will round trip to
1753
+ * a `0` value.
1803
1754
  *
1804
1755
  * - NULL_VALUE: Null value.
1805
1756
  */
@@ -3118,8 +3069,9 @@ export namespace web_service {
3118
3069
  sqlExecuteEngine?: analytic_service.ExecuteEngine;
3119
3070
  enableExperimentalFeatures?: boolean;
3120
3071
  overlayGraphs?: Array<OverlayGraph>;
3072
+ group?: Group;
3121
3073
  };
3122
- export type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL';
3074
+ export type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL' | 'GROUP';
3123
3075
  export type ChartConfig = {
3124
3076
  yAxis?: ChartConfigYAxisConfig;
3125
3077
  barGauge?: ChartConfigBarGaugeConfig;
@@ -3277,7 +3229,7 @@ export namespace web_service {
3277
3229
  column?: string;
3278
3230
  name?: string;
3279
3231
  };
3280
- export type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER';
3232
+ export type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER' | 'GROUP';
3281
3233
  export type Dashboard = {
3282
3234
  id?: string;
3283
3235
  name?: string;
@@ -3381,6 +3333,15 @@ export namespace web_service {
3381
3333
  dashboards?: Array<Dashboard>;
3382
3334
  permissions?: Array<common.Permission>;
3383
3335
  };
3336
+ /**
3337
+ * Configuration for a GROUP-typed Panel — a collapsible container that holds
3338
+ * other panels referencing it via Panel.group_id. Groups cannot nest.
3339
+ */
3340
+ export type Group = {
3341
+ title?: string;
3342
+ collapsed?: boolean;
3343
+ childLayouts?: DashboardResponsiveLayouts;
3344
+ };
3384
3345
  export type ImportDashboardRequest = {
3385
3346
  /**
3386
3347
  * The id of the target dashboard to import into.
@@ -3433,6 +3394,11 @@ export namespace web_service {
3433
3394
  chart?: Chart;
3434
3395
  creator?: common.UserInfo;
3435
3396
  updater?: common.UserInfo;
3397
+ /**
3398
+ * When non-empty, this panel renders inside the Group panel identified by group_id.
3399
+ * GROUP-typed panels must keep this field empty (groups cannot nest).
3400
+ */
3401
+ groupId?: string;
3436
3402
  };
3437
3403
  export type SharingConfig = {
3438
3404
  isReadonly?: boolean;