@sentio/api 1.0.5-rc.3 → 1.0.5-rc.5
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/src/sdk.gen.d.ts +1 -1
- package/dist/src/sdk.gen.js +1 -1
- package/dist/src/types.gen.d.ts +55 -104
- package/package.json +1 -1
- package/src/sdk.gen.ts +1 -1
- package/src/types.gen.ts +55 -104
package/dist/src/sdk.gen.d.ts
CHANGED
|
@@ -209,7 +209,7 @@ export declare class WebService {
|
|
|
209
209
|
*/
|
|
210
210
|
static listDashboards<ThrowOnError extends boolean = false>(options?: Options<web_service.ListDashboardsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetDashboardResponse, unknown, ThrowOnError>;
|
|
211
211
|
/**
|
|
212
|
-
* Import a dashboard
|
|
212
|
+
* Import a dashboard
|
|
213
213
|
*/
|
|
214
214
|
static importDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ImportDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.ImportDashboardResponse, unknown, ThrowOnError>;
|
|
215
215
|
/**
|
package/dist/src/sdk.gen.js
CHANGED
package/dist/src/types.gen.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
1675
|
-
*
|
|
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
|
-
*
|
|
1678
|
+
* Protobuf APIs provide utilities to interact with `Any` values:
|
|
1678
1679
|
*
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
*
|
|
1683
|
-
*
|
|
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
|
-
*
|
|
1688
|
+
* The JSON format representation of an `Any` follows one of these cases:
|
|
1688
1689
|
*
|
|
1689
|
-
*
|
|
1690
|
-
* Any
|
|
1691
|
-
*
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1694
|
-
*
|
|
1695
|
-
*
|
|
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
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
* 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
|
-
*
|
|
1760
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
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
|
-
*
|
|
1781
|
-
*
|
|
1782
|
-
* type.googleapis.com
|
|
1783
|
-
* implementations
|
|
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
|
-
*
|
|
1786
|
-
*
|
|
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
|
-
*
|
|
1793
|
-
*
|
|
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
|
-
*
|
|
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
|
*/
|
package/package.json
CHANGED
package/src/sdk.gen.ts
CHANGED
|
@@ -892,7 +892,7 @@ export class WebService {
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
/**
|
|
895
|
-
* Import a dashboard
|
|
895
|
+
* Import a dashboard
|
|
896
896
|
*/
|
|
897
897
|
public static importDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ImportDashboardData, ThrowOnError>) {
|
|
898
898
|
return (options.client ?? _heyApiClient).post<web_service.ImportDashboardResponse2, unknown, ThrowOnError>({
|
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
|
-
*
|
|
1682
|
-
*
|
|
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
|
-
*
|
|
1685
|
+
* Protobuf APIs provide utilities to interact with `Any` values:
|
|
1685
1686
|
*
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1689
|
-
*
|
|
1690
|
-
*
|
|
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
|
-
*
|
|
1695
|
+
* The JSON format representation of an `Any` follows one of these cases:
|
|
1695
1696
|
*
|
|
1696
|
-
*
|
|
1697
|
-
* Any
|
|
1698
|
-
*
|
|
1699
|
-
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
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
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
* 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
|
-
*
|
|
1767
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
1779
|
-
*
|
|
1780
|
-
*
|
|
1781
|
-
*
|
|
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
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
* type.googleapis.com
|
|
1790
|
-
* implementations
|
|
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
|
-
*
|
|
1793
|
-
*
|
|
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
|
-
*
|
|
1800
|
-
*
|
|
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
|
-
*
|
|
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
|
*/
|