@onkernel/sdk 0.97.0 → 0.99.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.
Files changed (188) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/browser-pools.d.mts +9 -0
  12. package/resources/browser-pools.d.mts.map +1 -1
  13. package/resources/browser-pools.d.ts +9 -0
  14. package/resources/browser-pools.d.ts.map +1 -1
  15. package/resources/browsers/browsers.d.mts +70 -14
  16. package/resources/browsers/browsers.d.mts.map +1 -1
  17. package/resources/browsers/browsers.d.ts +70 -14
  18. package/resources/browsers/browsers.d.ts.map +1 -1
  19. package/resources/browsers/browsers.js +23 -15
  20. package/resources/browsers/browsers.js.map +1 -1
  21. package/resources/browsers/browsers.mjs +23 -15
  22. package/resources/browsers/browsers.mjs.map +1 -1
  23. package/resources/browsers/computer.d.mts +62 -45
  24. package/resources/browsers/computer.d.mts.map +1 -1
  25. package/resources/browsers/computer.d.ts +62 -45
  26. package/resources/browsers/computer.d.ts.map +1 -1
  27. package/resources/browsers/computer.js +74 -57
  28. package/resources/browsers/computer.js.map +1 -1
  29. package/resources/browsers/computer.mjs +74 -57
  30. package/resources/browsers/computer.mjs.map +1 -1
  31. package/resources/browsers/fs/fs.d.mts +61 -47
  32. package/resources/browsers/fs/fs.d.mts.map +1 -1
  33. package/resources/browsers/fs/fs.d.ts +61 -47
  34. package/resources/browsers/fs/fs.d.ts.map +1 -1
  35. package/resources/browsers/fs/fs.js +73 -59
  36. package/resources/browsers/fs/fs.js.map +1 -1
  37. package/resources/browsers/fs/fs.mjs +73 -59
  38. package/resources/browsers/fs/fs.mjs.map +1 -1
  39. package/resources/browsers/fs/watch.d.mts +8 -8
  40. package/resources/browsers/fs/watch.d.mts.map +1 -1
  41. package/resources/browsers/fs/watch.d.ts +8 -8
  42. package/resources/browsers/fs/watch.d.ts.map +1 -1
  43. package/resources/browsers/fs/watch.js +9 -9
  44. package/resources/browsers/fs/watch.js.map +1 -1
  45. package/resources/browsers/fs/watch.mjs +9 -9
  46. package/resources/browsers/fs/watch.mjs.map +1 -1
  47. package/resources/browsers/index.d.mts +2 -1
  48. package/resources/browsers/index.d.mts.map +1 -1
  49. package/resources/browsers/index.d.ts +2 -1
  50. package/resources/browsers/index.d.ts.map +1 -1
  51. package/resources/browsers/index.js +3 -1
  52. package/resources/browsers/index.js.map +1 -1
  53. package/resources/browsers/index.mjs +1 -0
  54. package/resources/browsers/index.mjs.map +1 -1
  55. package/resources/browsers/logs.d.mts +5 -4
  56. package/resources/browsers/logs.d.mts.map +1 -1
  57. package/resources/browsers/logs.d.ts +5 -4
  58. package/resources/browsers/logs.d.ts.map +1 -1
  59. package/resources/browsers/logs.js +6 -5
  60. package/resources/browsers/logs.js.map +1 -1
  61. package/resources/browsers/logs.mjs +6 -5
  62. package/resources/browsers/logs.mjs.map +1 -1
  63. package/resources/browsers/playwright.d.mts +7 -4
  64. package/resources/browsers/playwright.d.mts.map +1 -1
  65. package/resources/browsers/playwright.d.ts +7 -4
  66. package/resources/browsers/playwright.d.ts.map +1 -1
  67. package/resources/browsers/playwright.js +8 -5
  68. package/resources/browsers/playwright.js.map +1 -1
  69. package/resources/browsers/playwright.mjs +8 -5
  70. package/resources/browsers/playwright.mjs.map +1 -1
  71. package/resources/browsers/process.d.mts +31 -23
  72. package/resources/browsers/process.d.mts.map +1 -1
  73. package/resources/browsers/process.d.ts +31 -23
  74. package/resources/browsers/process.d.ts.map +1 -1
  75. package/resources/browsers/process.js +33 -25
  76. package/resources/browsers/process.js.map +1 -1
  77. package/resources/browsers/process.mjs +33 -25
  78. package/resources/browsers/process.mjs.map +1 -1
  79. package/resources/browsers/replays.d.mts +14 -10
  80. package/resources/browsers/replays.d.mts.map +1 -1
  81. package/resources/browsers/replays.d.ts +14 -10
  82. package/resources/browsers/replays.d.ts.map +1 -1
  83. package/resources/browsers/replays.js +16 -12
  84. package/resources/browsers/replays.js.map +1 -1
  85. package/resources/browsers/replays.mjs +16 -12
  86. package/resources/browsers/replays.mjs.map +1 -1
  87. package/resources/browsers/telemetry.d.mts +4 -4
  88. package/resources/browsers/telemetry.d.mts.map +1 -1
  89. package/resources/browsers/telemetry.d.ts +4 -4
  90. package/resources/browsers/telemetry.d.ts.map +1 -1
  91. package/resources/browsers/telemetry.js +6 -6
  92. package/resources/browsers/telemetry.js.map +1 -1
  93. package/resources/browsers/telemetry.mjs +6 -6
  94. package/resources/browsers/telemetry.mjs.map +1 -1
  95. package/resources/browsers/webmcp.d.mts +148 -0
  96. package/resources/browsers/webmcp.d.mts.map +1 -0
  97. package/resources/browsers/webmcp.d.ts +148 -0
  98. package/resources/browsers/webmcp.d.ts.map +1 -0
  99. package/resources/browsers/webmcp.js +51 -0
  100. package/resources/browsers/webmcp.js.map +1 -0
  101. package/resources/browsers/webmcp.mjs +47 -0
  102. package/resources/browsers/webmcp.mjs.map +1 -0
  103. package/resources/config-registry/config-registry.d.mts +14 -11
  104. package/resources/config-registry/config-registry.d.mts.map +1 -1
  105. package/resources/config-registry/config-registry.d.ts +14 -11
  106. package/resources/config-registry/config-registry.d.ts.map +1 -1
  107. package/resources/config-registry/config-registry.js +2 -2
  108. package/resources/config-registry/config-registry.js.map +1 -1
  109. package/resources/config-registry/config-registry.mjs +2 -2
  110. package/resources/config-registry/config-registry.mjs.map +1 -1
  111. package/resources/index.d.mts +2 -1
  112. package/resources/index.d.mts.map +1 -1
  113. package/resources/index.d.ts +2 -1
  114. package/resources/index.d.ts.map +1 -1
  115. package/resources/index.js +3 -1
  116. package/resources/index.js.map +1 -1
  117. package/resources/index.mjs +1 -0
  118. package/resources/index.mjs.map +1 -1
  119. package/resources/invocations.d.mts +9 -0
  120. package/resources/invocations.d.mts.map +1 -1
  121. package/resources/invocations.d.ts +9 -0
  122. package/resources/invocations.d.ts.map +1 -1
  123. package/resources/telemetry/destinations.d.mts +46 -12
  124. package/resources/telemetry/destinations.d.mts.map +1 -1
  125. package/resources/telemetry/destinations.d.ts +46 -12
  126. package/resources/telemetry/destinations.d.ts.map +1 -1
  127. package/resources/telemetry/destinations.js +18 -8
  128. package/resources/telemetry/destinations.js.map +1 -1
  129. package/resources/telemetry/destinations.mjs +18 -8
  130. package/resources/telemetry/destinations.mjs.map +1 -1
  131. package/resources/vaults/index.d.mts +3 -0
  132. package/resources/vaults/index.d.mts.map +1 -0
  133. package/resources/vaults/index.d.ts +3 -0
  134. package/resources/vaults/index.d.ts.map +1 -0
  135. package/resources/vaults/index.js +9 -0
  136. package/resources/vaults/index.js.map +1 -0
  137. package/resources/vaults/index.mjs +4 -0
  138. package/resources/vaults/index.mjs.map +1 -0
  139. package/resources/vaults/items.d.mts +534 -0
  140. package/resources/vaults/items.d.mts.map +1 -0
  141. package/resources/vaults/items.d.ts +534 -0
  142. package/resources/vaults/items.d.ts.map +1 -0
  143. package/resources/vaults/items.js +68 -0
  144. package/resources/vaults/items.js.map +1 -0
  145. package/resources/vaults/items.mjs +64 -0
  146. package/resources/vaults/items.mjs.map +1 -0
  147. package/resources/vaults/vaults.d.mts +48 -0
  148. package/resources/vaults/vaults.d.mts.map +1 -0
  149. package/resources/vaults/vaults.d.ts +48 -0
  150. package/resources/vaults/vaults.d.ts.map +1 -0
  151. package/resources/vaults/vaults.js +47 -0
  152. package/resources/vaults/vaults.js.map +1 -0
  153. package/resources/vaults/vaults.mjs +42 -0
  154. package/resources/vaults/vaults.mjs.map +1 -0
  155. package/resources/vaults.d.mts +2 -0
  156. package/resources/vaults.d.mts.map +1 -0
  157. package/resources/vaults.d.ts +2 -0
  158. package/resources/vaults.d.ts.map +1 -0
  159. package/resources/vaults.js +6 -0
  160. package/resources/vaults.js.map +1 -0
  161. package/resources/vaults.mjs +3 -0
  162. package/resources/vaults.mjs.map +1 -0
  163. package/src/client.ts +19 -0
  164. package/src/resources/browser-pools.ts +11 -0
  165. package/src/resources/browsers/browsers.ts +111 -15
  166. package/src/resources/browsers/computer.ts +78 -57
  167. package/src/resources/browsers/fs/fs.ts +93 -59
  168. package/src/resources/browsers/fs/watch.ts +13 -13
  169. package/src/resources/browsers/index.ts +13 -0
  170. package/src/resources/browsers/logs.ts +10 -5
  171. package/src/resources/browsers/playwright.ts +8 -5
  172. package/src/resources/browsers/process.ts +47 -35
  173. package/src/resources/browsers/replays.ts +20 -16
  174. package/src/resources/browsers/telemetry.ts +6 -6
  175. package/src/resources/browsers/webmcp.ts +196 -0
  176. package/src/resources/config-registry/config-registry.ts +14 -11
  177. package/src/resources/index.ts +8 -0
  178. package/src/resources/invocations.ts +11 -0
  179. package/src/resources/telemetry/destinations.ts +50 -12
  180. package/src/resources/vaults/index.ts +30 -0
  181. package/src/resources/vaults/items.ts +780 -0
  182. package/src/resources/vaults/vaults.ts +125 -0
  183. package/src/resources/vaults.ts +3 -0
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -7,12 +7,16 @@ import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  */
8
8
  export declare class Destinations extends APIResource {
9
9
  /**
10
- * Create an OTLP export destination in the resolved project. Names must be unique
11
- * within the project.
10
+ * Create an OTLP export destination in the authenticated organization. Names must
11
+ * be unique within the organization. Requires an organization-scoped credential or
12
+ * dashboard authentication; project-scoped credentials receive a 403.
12
13
  */
13
14
  create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
14
15
  /**
15
- * Retrieve a single OTLP destination in the resolved project by its ID or name.
16
+ * Retrieve a customer-visible OTLP destination in the authenticated organization
17
+ * by its ID or name. Project-scoped credentials can retrieve these destinations
18
+ * for selection by workloads in their project. Non-dashboard reads return header
19
+ * values redacted.
16
20
  */
17
21
  retrieve(idOrName: string, options?: RequestOptions): APIPromise<OtlpDestination>;
18
22
  /**
@@ -20,14 +24,18 @@ export declare class Destinations extends APIResource {
20
24
  * values without restarting, which makes this the way to rotate credentials
21
25
  * without interrupting export.
22
26
  *
23
- * Names must be unique within the project. Renaming is refused with a 409 while a
24
- * managed auth connection selects this destination by name, since that connection
25
- * resolves the name on every login. Every other field, including `headers`, stays
26
- * editable.
27
+ * Names must be unique within the organization. Renaming is refused with a 409
28
+ * while a managed auth connection selects this destination by name, since that
29
+ * connection resolves the name on every login. Every other field, including
30
+ * `headers`, stays editable. Requires an organization-scoped credential or
31
+ * dashboard authentication; project-scoped credentials receive a 403.
27
32
  */
28
33
  update(idOrName: string, body: DestinationUpdateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
29
34
  /**
30
- * List OTLP export destinations in the resolved project.
35
+ * List customer-visible OTLP export destinations in the authenticated
36
+ * organization. Project-scoped credentials can list these destinations for
37
+ * selection by workloads in their project. Non-dashboard reads return header
38
+ * values redacted.
31
39
  */
32
40
  list(query?: DestinationListParams | null | undefined, options?: RequestOptions): PagePromise<OtlpDestinationsOffsetPagination, OtlpDestination>;
33
41
  /**
@@ -36,6 +44,8 @@ export declare class Destinations extends APIResource {
36
44
  * end or delete them first. It is refused the same way while a managed auth
37
45
  * connection still selects it, because that connection re-resolves the destination
38
46
  * on every login, and while a managed auth login using it is still in progress.
47
+ * Requires an organization-scoped credential or dashboard authentication;
48
+ * project-scoped credentials receive a 403.
39
49
  */
40
50
  delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
41
51
  }
@@ -47,6 +57,12 @@ export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>
47
57
  */
48
58
  export interface OtlpDestination {
49
59
  id: string;
60
+ /**
61
+ * Failed deliveries since the last success, as observed by the relay process that
62
+ * wrote the latest outcome. Zero means the most recently recorded outcome
63
+ * succeeded.
64
+ */
65
+ consecutive_failures: number;
50
66
  created_at: string;
51
67
  /**
52
68
  * OTLP/HTTP endpoint telemetry is sent to.
@@ -54,19 +70,37 @@ export interface OtlpDestination {
54
70
  endpoint: string;
55
71
  /**
56
72
  * Headers sent with each export request. Names are returned in canonical form
57
- * (`Authorization`, not `authorization`). Values are returned redacted as empty
58
- * strings, so the keys are visible but the credentials are not.
73
+ * (`Authorization`, not `authorization`). Non-dashboard reads return values
74
+ * redacted as empty strings, so the keys are visible but the credentials are not.
75
+ * Dashboard reads return the stored values.
59
76
  */
60
77
  headers: {
61
78
  [key: string]: string;
62
79
  };
63
80
  /**
64
- * Unique within the project. Usable in place of the ID when selecting a
81
+ * Unique within the organization. Usable in place of the ID when selecting a
65
82
  * destination, so it cannot be shaped like an ID.
66
83
  */
67
84
  name: string;
68
85
  updated_at: string;
69
86
  description?: string;
87
+ /**
88
+ * Sanitized class of the delivery failure recorded at `last_error_at`. It is
89
+ * retained after a later success, so its presence does not mean the destination is
90
+ * currently failing. Response bodies, endpoint URLs, credentials, and raw
91
+ * transport errors are never returned.
92
+ */
93
+ last_error?: string;
94
+ /**
95
+ * Timestamp of the most recent failed delivery. It is retained after a later
96
+ * success, so it can predate `last_export_at`. Read `consecutive_failures` to tell
97
+ * whether the destination is currently failing.
98
+ */
99
+ last_error_at?: string;
100
+ /**
101
+ * Timestamp of the most recent successful delivery. Moves only on success.
102
+ */
103
+ last_export_at?: string;
70
104
  }
71
105
  export interface DestinationCreateParams {
72
106
  /**
@@ -84,7 +118,7 @@ export interface DestinationCreateParams {
84
118
  */
85
119
  endpoint: string;
86
120
  /**
87
- * Unique within the project.
121
+ * Unique within the organization.
88
122
  */
89
123
  name: string;
90
124
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAA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M,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
1
+ {"version":3,"file":"destinations.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO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BAAuB;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -7,12 +7,16 @@ import { RequestOptions } from "../../internal/request-options.js";
7
7
  */
8
8
  export declare class Destinations extends APIResource {
9
9
  /**
10
- * Create an OTLP export destination in the resolved project. Names must be unique
11
- * within the project.
10
+ * Create an OTLP export destination in the authenticated organization. Names must
11
+ * be unique within the organization. Requires an organization-scoped credential or
12
+ * dashboard authentication; project-scoped credentials receive a 403.
12
13
  */
13
14
  create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
14
15
  /**
15
- * Retrieve a single OTLP destination in the resolved project by its ID or name.
16
+ * Retrieve a customer-visible OTLP destination in the authenticated organization
17
+ * by its ID or name. Project-scoped credentials can retrieve these destinations
18
+ * for selection by workloads in their project. Non-dashboard reads return header
19
+ * values redacted.
16
20
  */
17
21
  retrieve(idOrName: string, options?: RequestOptions): APIPromise<OtlpDestination>;
18
22
  /**
@@ -20,14 +24,18 @@ export declare class Destinations extends APIResource {
20
24
  * values without restarting, which makes this the way to rotate credentials
21
25
  * without interrupting export.
22
26
  *
23
- * Names must be unique within the project. Renaming is refused with a 409 while a
24
- * managed auth connection selects this destination by name, since that connection
25
- * resolves the name on every login. Every other field, including `headers`, stays
26
- * editable.
27
+ * Names must be unique within the organization. Renaming is refused with a 409
28
+ * while a managed auth connection selects this destination by name, since that
29
+ * connection resolves the name on every login. Every other field, including
30
+ * `headers`, stays editable. Requires an organization-scoped credential or
31
+ * dashboard authentication; project-scoped credentials receive a 403.
27
32
  */
28
33
  update(idOrName: string, body: DestinationUpdateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
29
34
  /**
30
- * List OTLP export destinations in the resolved project.
35
+ * List customer-visible OTLP export destinations in the authenticated
36
+ * organization. Project-scoped credentials can list these destinations for
37
+ * selection by workloads in their project. Non-dashboard reads return header
38
+ * values redacted.
31
39
  */
32
40
  list(query?: DestinationListParams | null | undefined, options?: RequestOptions): PagePromise<OtlpDestinationsOffsetPagination, OtlpDestination>;
33
41
  /**
@@ -36,6 +44,8 @@ export declare class Destinations extends APIResource {
36
44
  * end or delete them first. It is refused the same way while a managed auth
37
45
  * connection still selects it, because that connection re-resolves the destination
38
46
  * on every login, and while a managed auth login using it is still in progress.
47
+ * Requires an organization-scoped credential or dashboard authentication;
48
+ * project-scoped credentials receive a 403.
39
49
  */
40
50
  delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
41
51
  }
@@ -47,6 +57,12 @@ export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>
47
57
  */
48
58
  export interface OtlpDestination {
49
59
  id: string;
60
+ /**
61
+ * Failed deliveries since the last success, as observed by the relay process that
62
+ * wrote the latest outcome. Zero means the most recently recorded outcome
63
+ * succeeded.
64
+ */
65
+ consecutive_failures: number;
50
66
  created_at: string;
51
67
  /**
52
68
  * OTLP/HTTP endpoint telemetry is sent to.
@@ -54,19 +70,37 @@ export interface OtlpDestination {
54
70
  endpoint: string;
55
71
  /**
56
72
  * Headers sent with each export request. Names are returned in canonical form
57
- * (`Authorization`, not `authorization`). Values are returned redacted as empty
58
- * strings, so the keys are visible but the credentials are not.
73
+ * (`Authorization`, not `authorization`). Non-dashboard reads return values
74
+ * redacted as empty strings, so the keys are visible but the credentials are not.
75
+ * Dashboard reads return the stored values.
59
76
  */
60
77
  headers: {
61
78
  [key: string]: string;
62
79
  };
63
80
  /**
64
- * Unique within the project. Usable in place of the ID when selecting a
81
+ * Unique within the organization. Usable in place of the ID when selecting a
65
82
  * destination, so it cannot be shaped like an ID.
66
83
  */
67
84
  name: string;
68
85
  updated_at: string;
69
86
  description?: string;
87
+ /**
88
+ * Sanitized class of the delivery failure recorded at `last_error_at`. It is
89
+ * retained after a later success, so its presence does not mean the destination is
90
+ * currently failing. Response bodies, endpoint URLs, credentials, and raw
91
+ * transport errors are never returned.
92
+ */
93
+ last_error?: string;
94
+ /**
95
+ * Timestamp of the most recent failed delivery. It is retained after a later
96
+ * success, so it can predate `last_export_at`. Read `consecutive_failures` to tell
97
+ * whether the destination is currently failing.
98
+ */
99
+ last_error_at?: string;
100
+ /**
101
+ * Timestamp of the most recent successful delivery. Moves only on success.
102
+ */
103
+ last_export_at?: string;
70
104
  }
71
105
  export interface DestinationCreateParams {
72
106
  /**
@@ -84,7 +118,7 @@ export interface DestinationCreateParams {
84
118
  */
85
119
  endpoint: string;
86
120
  /**
87
- * Unique within the project.
121
+ * Unique within the organization.
88
122
  */
89
123
  name: string;
90
124
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations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,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
1
+ {"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,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ACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -11,14 +11,18 @@ const path_1 = require("../../internal/utils/path.js");
11
11
  */
12
12
  class Destinations extends resource_1.APIResource {
13
13
  /**
14
- * Create an OTLP export destination in the resolved project. Names must be unique
15
- * within the project.
14
+ * Create an OTLP export destination in the authenticated organization. Names must
15
+ * be unique within the organization. Requires an organization-scoped credential or
16
+ * dashboard authentication; project-scoped credentials receive a 403.
16
17
  */
17
18
  create(body, options) {
18
19
  return this._client.post('/telemetry/destinations', { body, ...options });
19
20
  }
20
21
  /**
21
- * Retrieve a single OTLP destination in the resolved project by its ID or name.
22
+ * Retrieve a customer-visible OTLP destination in the authenticated organization
23
+ * by its ID or name. Project-scoped credentials can retrieve these destinations
24
+ * for selection by workloads in their project. Non-dashboard reads return header
25
+ * values redacted.
22
26
  */
23
27
  retrieve(idOrName, options) {
24
28
  return this._client.get((0, path_1.path) `/telemetry/destinations/${idOrName}`, options);
@@ -28,16 +32,20 @@ class Destinations extends resource_1.APIResource {
28
32
  * values without restarting, which makes this the way to rotate credentials
29
33
  * without interrupting export.
30
34
  *
31
- * Names must be unique within the project. Renaming is refused with a 409 while a
32
- * managed auth connection selects this destination by name, since that connection
33
- * resolves the name on every login. Every other field, including `headers`, stays
34
- * editable.
35
+ * Names must be unique within the organization. Renaming is refused with a 409
36
+ * while a managed auth connection selects this destination by name, since that
37
+ * connection resolves the name on every login. Every other field, including
38
+ * `headers`, stays editable. Requires an organization-scoped credential or
39
+ * dashboard authentication; project-scoped credentials receive a 403.
35
40
  */
36
41
  update(idOrName, body, options) {
37
42
  return this._client.patch((0, path_1.path) `/telemetry/destinations/${idOrName}`, { body, ...options });
38
43
  }
39
44
  /**
40
- * List OTLP export destinations in the resolved project.
45
+ * List customer-visible OTLP export destinations in the authenticated
46
+ * organization. Project-scoped credentials can list these destinations for
47
+ * selection by workloads in their project. Non-dashboard reads return header
48
+ * values redacted.
41
49
  */
42
50
  list(query = {}, options) {
43
51
  return this._client.getAPIList('/telemetry/destinations', (pagination_1.OffsetPagination), {
@@ -51,6 +59,8 @@ class Destinations extends resource_1.APIResource {
51
59
  * end or delete them first. It is refused the same way while a managed auth
52
60
  * connection still selects it, because that connection re-resolves the destination
53
61
  * on every login, and while a managed auth login using it is still in progress.
62
+ * Requires an organization-scoped credential or dashboard authentication;
63
+ * project-scoped credentials receive a 403.
54
64
  */
55
65
  delete(idOrName, options) {
56
66
  return this._client.delete((0, path_1.path) `/telemetry/destinations/${idOrName}`, {
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,6BAAiC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,QAA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AE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,QAAQ,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtED,oCAsEC"}
@@ -8,14 +8,18 @@ import { path } from "../../internal/utils/path.mjs";
8
8
  */
9
9
  export class Destinations extends APIResource {
10
10
  /**
11
- * Create an OTLP export destination in the resolved project. Names must be unique
12
- * within the project.
11
+ * Create an OTLP export destination in the authenticated organization. Names must
12
+ * be unique within the organization. Requires an organization-scoped credential or
13
+ * dashboard authentication; project-scoped credentials receive a 403.
13
14
  */
14
15
  create(body, options) {
15
16
  return this._client.post('/telemetry/destinations', { body, ...options });
16
17
  }
17
18
  /**
18
- * Retrieve a single OTLP destination in the resolved project by its ID or name.
19
+ * Retrieve a customer-visible OTLP destination in the authenticated organization
20
+ * by its ID or name. Project-scoped credentials can retrieve these destinations
21
+ * for selection by workloads in their project. Non-dashboard reads return header
22
+ * values redacted.
19
23
  */
20
24
  retrieve(idOrName, options) {
21
25
  return this._client.get(path `/telemetry/destinations/${idOrName}`, options);
@@ -25,16 +29,20 @@ export class Destinations extends APIResource {
25
29
  * values without restarting, which makes this the way to rotate credentials
26
30
  * without interrupting export.
27
31
  *
28
- * Names must be unique within the project. Renaming is refused with a 409 while a
29
- * managed auth connection selects this destination by name, since that connection
30
- * resolves the name on every login. Every other field, including `headers`, stays
31
- * editable.
32
+ * Names must be unique within the organization. Renaming is refused with a 409
33
+ * while a managed auth connection selects this destination by name, since that
34
+ * connection resolves the name on every login. Every other field, including
35
+ * `headers`, stays editable. Requires an organization-scoped credential or
36
+ * dashboard authentication; project-scoped credentials receive a 403.
32
37
  */
33
38
  update(idOrName, body, options) {
34
39
  return this._client.patch(path `/telemetry/destinations/${idOrName}`, { body, ...options });
35
40
  }
36
41
  /**
37
- * List OTLP export destinations in the resolved project.
42
+ * List customer-visible OTLP export destinations in the authenticated
43
+ * organization. Project-scoped credentials can list these destinations for
44
+ * selection by workloads in their project. Non-dashboard reads return header
45
+ * values redacted.
38
46
  */
39
47
  list(query = {}, options) {
40
48
  return this._client.getAPIList('/telemetry/destinations', (OffsetPagination), {
@@ -48,6 +56,8 @@ export class Destinations extends APIResource {
48
56
  * end or delete them first. It is refused the same way while a managed auth
49
57
  * connection still selects it, because that connection re-resolves the destination
50
58
  * on every login, and while a managed auth login using it is still in progress.
59
+ * Requires an organization-scoped credential or dashboard authentication;
60
+ * project-scoped credentials receive a 403.
51
61
  */
52
62
  delete(idOrName, options) {
53
63
  return this._client.delete(path `/telemetry/destinations/${idOrName}`, {
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.mjs","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA6B,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CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,gBAAiC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Items, type AgentcardCheckoutAuthorization, type CardVaultItemSpec, type CardVaultItemState, type VaultCardAliases, type VaultItem, type VaultItemAction, type VaultItemEvent, type VaultPaymentMethod, type WalletVaultItemSpec, type WalletVaultItemState, type ItemListResponse, type ItemEventsResponse, type ItemRetrieveParams, type ItemUpdateParams, type ItemDeleteParams, type ItemEventsParams, type ItemPerformOperationParams, type ItemUpsertParams, } from "./items.mjs";
2
+ export { Vaults, type Vault, type VaultListParams, type VaultUpsertParams, type VaultsOffsetPagination, } from "./vaults.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,8BAA8B,EACnC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,GACtB,oBAAgB;AACjB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B,qBAAiB"}
@@ -0,0 +1,3 @@
1
+ export { Items, type AgentcardCheckoutAuthorization, type CardVaultItemSpec, type CardVaultItemState, type VaultCardAliases, type VaultItem, type VaultItemAction, type VaultItemEvent, type VaultPaymentMethod, type WalletVaultItemSpec, type WalletVaultItemState, type ItemListResponse, type ItemEventsResponse, type ItemRetrieveParams, type ItemUpdateParams, type ItemDeleteParams, type ItemEventsParams, type ItemPerformOperationParams, type ItemUpsertParams, } from "./items.js";
2
+ export { Vaults, type Vault, type VaultListParams, type VaultUpsertParams, type VaultsOffsetPagination, } from "./vaults.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,8BAA8B,EACnC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,GACtB,mBAAgB;AACjB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B,oBAAiB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Vaults = exports.Items = void 0;
5
+ var items_1 = require("./items.js");
6
+ Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } });
7
+ var vaults_1 = require("./vaults.js");
8
+ Object.defineProperty(exports, "Vaults", { enumerable: true, get: function () { return vaults_1.Vaults; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vaults/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAoBiB;AAnBf,8FAAA,KAAK,OAAA;AAoBP,sCAMkB;AALhB,gGAAA,MAAM,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Items, } from "./items.mjs";
3
+ export { Vaults, } from "./vaults.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vaults/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAmBN,oBAAgB;AACjB,OAAO,EACL,MAAM,GAKP,qBAAiB"}