@onkernel/sdk 0.97.0 → 0.98.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 (115) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/browsers/browsers.d.mts +21 -13
  4. package/resources/browsers/browsers.d.mts.map +1 -1
  5. package/resources/browsers/browsers.d.ts +21 -13
  6. package/resources/browsers/browsers.d.ts.map +1 -1
  7. package/resources/browsers/browsers.js +23 -15
  8. package/resources/browsers/browsers.js.map +1 -1
  9. package/resources/browsers/browsers.mjs +23 -15
  10. package/resources/browsers/browsers.mjs.map +1 -1
  11. package/resources/browsers/computer.d.mts +62 -45
  12. package/resources/browsers/computer.d.mts.map +1 -1
  13. package/resources/browsers/computer.d.ts +62 -45
  14. package/resources/browsers/computer.d.ts.map +1 -1
  15. package/resources/browsers/computer.js +74 -57
  16. package/resources/browsers/computer.js.map +1 -1
  17. package/resources/browsers/computer.mjs +74 -57
  18. package/resources/browsers/computer.mjs.map +1 -1
  19. package/resources/browsers/fs/fs.d.mts +61 -47
  20. package/resources/browsers/fs/fs.d.mts.map +1 -1
  21. package/resources/browsers/fs/fs.d.ts +61 -47
  22. package/resources/browsers/fs/fs.d.ts.map +1 -1
  23. package/resources/browsers/fs/fs.js +73 -59
  24. package/resources/browsers/fs/fs.js.map +1 -1
  25. package/resources/browsers/fs/fs.mjs +73 -59
  26. package/resources/browsers/fs/fs.mjs.map +1 -1
  27. package/resources/browsers/fs/watch.d.mts +8 -8
  28. package/resources/browsers/fs/watch.d.mts.map +1 -1
  29. package/resources/browsers/fs/watch.d.ts +8 -8
  30. package/resources/browsers/fs/watch.d.ts.map +1 -1
  31. package/resources/browsers/fs/watch.js +9 -9
  32. package/resources/browsers/fs/watch.js.map +1 -1
  33. package/resources/browsers/fs/watch.mjs +9 -9
  34. package/resources/browsers/fs/watch.mjs.map +1 -1
  35. package/resources/browsers/index.d.mts +1 -0
  36. package/resources/browsers/index.d.mts.map +1 -1
  37. package/resources/browsers/index.d.ts +1 -0
  38. package/resources/browsers/index.d.ts.map +1 -1
  39. package/resources/browsers/index.js +3 -1
  40. package/resources/browsers/index.js.map +1 -1
  41. package/resources/browsers/index.mjs +1 -0
  42. package/resources/browsers/index.mjs.map +1 -1
  43. package/resources/browsers/logs.d.mts +5 -4
  44. package/resources/browsers/logs.d.mts.map +1 -1
  45. package/resources/browsers/logs.d.ts +5 -4
  46. package/resources/browsers/logs.d.ts.map +1 -1
  47. package/resources/browsers/logs.js +6 -5
  48. package/resources/browsers/logs.js.map +1 -1
  49. package/resources/browsers/logs.mjs +6 -5
  50. package/resources/browsers/logs.mjs.map +1 -1
  51. package/resources/browsers/playwright.d.mts +7 -4
  52. package/resources/browsers/playwright.d.mts.map +1 -1
  53. package/resources/browsers/playwright.d.ts +7 -4
  54. package/resources/browsers/playwright.d.ts.map +1 -1
  55. package/resources/browsers/playwright.js +8 -5
  56. package/resources/browsers/playwright.js.map +1 -1
  57. package/resources/browsers/playwright.mjs +8 -5
  58. package/resources/browsers/playwright.mjs.map +1 -1
  59. package/resources/browsers/process.d.mts +31 -23
  60. package/resources/browsers/process.d.mts.map +1 -1
  61. package/resources/browsers/process.d.ts +31 -23
  62. package/resources/browsers/process.d.ts.map +1 -1
  63. package/resources/browsers/process.js +33 -25
  64. package/resources/browsers/process.js.map +1 -1
  65. package/resources/browsers/process.mjs +33 -25
  66. package/resources/browsers/process.mjs.map +1 -1
  67. package/resources/browsers/replays.d.mts +14 -10
  68. package/resources/browsers/replays.d.mts.map +1 -1
  69. package/resources/browsers/replays.d.ts +14 -10
  70. package/resources/browsers/replays.d.ts.map +1 -1
  71. package/resources/browsers/replays.js +16 -12
  72. package/resources/browsers/replays.js.map +1 -1
  73. package/resources/browsers/replays.mjs +16 -12
  74. package/resources/browsers/replays.mjs.map +1 -1
  75. package/resources/browsers/telemetry.d.mts +4 -4
  76. package/resources/browsers/telemetry.d.mts.map +1 -1
  77. package/resources/browsers/telemetry.d.ts +4 -4
  78. package/resources/browsers/telemetry.d.ts.map +1 -1
  79. package/resources/browsers/telemetry.js +6 -6
  80. package/resources/browsers/telemetry.js.map +1 -1
  81. package/resources/browsers/telemetry.mjs +6 -6
  82. package/resources/browsers/telemetry.mjs.map +1 -1
  83. package/resources/browsers/webmcp.d.mts +148 -0
  84. package/resources/browsers/webmcp.d.mts.map +1 -0
  85. package/resources/browsers/webmcp.d.ts +148 -0
  86. package/resources/browsers/webmcp.d.ts.map +1 -0
  87. package/resources/browsers/webmcp.js +51 -0
  88. package/resources/browsers/webmcp.js.map +1 -0
  89. package/resources/browsers/webmcp.mjs +47 -0
  90. package/resources/browsers/webmcp.mjs.map +1 -0
  91. package/resources/telemetry/destinations.d.mts +23 -12
  92. package/resources/telemetry/destinations.d.mts.map +1 -1
  93. package/resources/telemetry/destinations.d.ts +23 -12
  94. package/resources/telemetry/destinations.d.ts.map +1 -1
  95. package/resources/telemetry/destinations.js +18 -8
  96. package/resources/telemetry/destinations.js.map +1 -1
  97. package/resources/telemetry/destinations.mjs +18 -8
  98. package/resources/telemetry/destinations.mjs.map +1 -1
  99. package/src/resources/browsers/browsers.ts +51 -15
  100. package/src/resources/browsers/computer.ts +78 -57
  101. package/src/resources/browsers/fs/fs.ts +93 -59
  102. package/src/resources/browsers/fs/watch.ts +13 -13
  103. package/src/resources/browsers/index.ts +12 -0
  104. package/src/resources/browsers/logs.ts +10 -5
  105. package/src/resources/browsers/playwright.ts +8 -5
  106. package/src/resources/browsers/process.ts +47 -35
  107. package/src/resources/browsers/replays.ts +20 -16
  108. package/src/resources/browsers/telemetry.ts +6 -6
  109. package/src/resources/browsers/webmcp.ts +196 -0
  110. package/src/resources/telemetry/destinations.ts +23 -12
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
@@ -0,0 +1,47 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Discover and invoke native page tools across the browser instance.
6
+ */
7
+ export class Webmcp extends APIResource {
8
+ /**
9
+ * Invokes the exact live registration identified by tool_ref and waits
10
+ * synchronously for its result. Navigation during execution is allowed. If the tab
11
+ * or embedded frame disappears, or the request times out after invocation begins,
12
+ * the response reports outcome_unknown and the tool is not retried.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const invocationResult =
17
+ * await client.browsers.webmcp.invokeTool(
18
+ * 'htzv5orfit78e1m2biiifpbv',
19
+ * {
20
+ * input: { foo: 'bar' },
21
+ * tool_ref: 'x',
22
+ * },
23
+ * );
24
+ * ```
25
+ */
26
+ invokeTool(idOrName, body, options) {
27
+ return this._client.post(path `/browsers/${idOrName}/webmcp/invoke`, { body, ...options });
28
+ }
29
+ /**
30
+ * Returns a snapshot of native WebMCP tools available across every open tab and
31
+ * embedded frame in the browser. Each tool includes an opaque tool_ref for
32
+ * invoking that exact live registration. Tools disappear when their document
33
+ * closes or navigates away.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const toolsResponse =
38
+ * await client.browsers.webmcp.listTools(
39
+ * 'htzv5orfit78e1m2biiifpbv',
40
+ * );
41
+ * ```
42
+ */
43
+ listTools(idOrName, options) {
44
+ return this._client.get(path `/browsers/${idOrName}/webmcp/tools`, options);
45
+ }
46
+ }
47
+ //# sourceMappingURL=webmcp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webmcp.mjs","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CACR,QAAgB,EAChB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,QAAQ,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,QAAgB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,eAAe,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -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
  }
@@ -54,14 +64,15 @@ export interface OtlpDestination {
54
64
  endpoint: string;
55
65
  /**
56
66
  * 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.
67
+ * (`Authorization`, not `authorization`). Non-dashboard reads return values
68
+ * redacted as empty strings, so the keys are visible but the credentials are not.
69
+ * Dashboard reads return the stored values.
59
70
  */
60
71
  headers: {
61
72
  [key: string]: string;
62
73
  };
63
74
  /**
64
- * Unique within the project. Usable in place of the ID when selecting a
75
+ * Unique within the organization. Usable in place of the ID when selecting a
65
76
  * destination, so it cannot be shaped like an ID.
66
77
  */
67
78
  name: string;
@@ -84,7 +95,7 @@ export interface DestinationCreateParams {
84
95
  */
85
96
  endpoint: string;
86
97
  /**
87
- * Unique within the project.
98
+ * Unique within the organization.
88
99
  */
89
100
  name: string;
90
101
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings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b,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.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,O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AC;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
  }
@@ -54,14 +64,15 @@ export interface OtlpDestination {
54
64
  endpoint: string;
55
65
  /**
56
66
  * 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.
67
+ * (`Authorization`, not `authorization`). Non-dashboard reads return values
68
+ * redacted as empty strings, so the keys are visible but the credentials are not.
69
+ * Dashboard reads return the stored values.
59
70
  */
60
71
  headers: {
61
72
  [key: string]: string;
62
73
  };
63
74
  /**
64
- * Unique within the project. Usable in place of the ID when selecting a
75
+ * Unique within the organization. Usable in place of the ID when selecting a
65
76
  * destination, so it cannot be shaped like an ID.
66
77
  */
67
78
  name: string;
@@ -84,7 +95,7 @@ export interface DestinationCreateParams {
84
95
  */
85
96
  endpoint: string;
86
97
  /**
87
- * Unique within the project.
98
+ * Unique within the organization.
88
99
  */
89
100
  name: string;
90
101
  description?: string;
@@ -1 +1 @@
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,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAA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AAI,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,OAA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,CAAC;IAC7F,CAAC;IAED;;;;;OAKG;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;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAgB,EAAE,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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,WAAW;IAC3C;;;;OAIG;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;;;;;OAKG;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;;;;;;;;;;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"}
@@ -109,6 +109,19 @@ import {
109
109
  TelemetryStreamParams,
110
110
  TelemetryStreamResponse,
111
111
  } from './telemetry';
112
+ import * as WebmcpAPI from './webmcp';
113
+ import {
114
+ InvocationFailure,
115
+ InvocationResult,
116
+ InvokeRequest,
117
+ Tool,
118
+ ToolAnnotations,
119
+ ToolFrame,
120
+ ToolSource,
121
+ ToolsResponse,
122
+ Webmcp,
123
+ WebmcpInvokeToolParams,
124
+ } from './webmcp';
112
125
  import * as FsAPI from './fs/fs';
113
126
  import {
114
127
  FCreateDirectoryParams,
@@ -147,6 +160,7 @@ export class Browsers extends APIResource {
147
160
  logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
148
161
  computer: ComputerAPI.Computer = new ComputerAPI.Computer(this._client);
149
162
  playwright: PlaywrightAPI.Playwright = new PlaywrightAPI.Playwright(this._client);
163
+ webmcp: WebmcpAPI.Webmcp = new WebmcpAPI.Webmcp(this._client);
150
164
 
151
165
  /**
152
166
  * Create a new browser session from within an action.
@@ -225,13 +239,14 @@ export class Browsers extends APIResource {
225
239
  *
226
240
  * @example
227
241
  * ```ts
228
- * const response = await client.browsers.curl('id', {
229
- * url: 'url',
230
- * });
242
+ * const response = await client.browsers.curl(
243
+ * 'htzv5orfit78e1m2biiifpbv',
244
+ * { url: 'url' },
245
+ * );
231
246
  * ```
232
247
  */
233
- curl(id: string, body: BrowserCurlParams, options?: RequestOptions): APIPromise<BrowserCurlResponse> {
234
- return this._client.post(path`/browsers/${id}/curl`, { body, ...options });
248
+ curl(idOrName: string, body: BrowserCurlParams, options?: RequestOptions): APIPromise<BrowserCurlResponse> {
249
+ return this._client.post(path`/browsers/${idOrName}/curl`, { body, ...options });
235
250
  }
236
251
 
237
252
  /**
@@ -265,19 +280,26 @@ export class Browsers extends APIResource {
265
280
  *
266
281
  * @example
267
282
  * ```ts
268
- * await client.browsers.loadExtensions('id', {
269
- * extensions: [
270
- * {
271
- * name: 'name',
272
- * zip_file: fs.createReadStream('path/to/file'),
273
- * },
274
- * ],
275
- * });
283
+ * await client.browsers.loadExtensions(
284
+ * 'htzv5orfit78e1m2biiifpbv',
285
+ * {
286
+ * extensions: [
287
+ * {
288
+ * name: 'name',
289
+ * zip_file: fs.createReadStream('path/to/file'),
290
+ * },
291
+ * ],
292
+ * },
293
+ * );
276
294
  * ```
277
295
  */
278
- loadExtensions(id: string, body: BrowserLoadExtensionsParams, options?: RequestOptions): APIPromise<void> {
296
+ loadExtensions(
297
+ idOrName: string,
298
+ body: BrowserLoadExtensionsParams,
299
+ options?: RequestOptions,
300
+ ): APIPromise<void> {
279
301
  return this._client.post(
280
- path`/browsers/${id}/extensions`,
302
+ path`/browsers/${idOrName}/extensions`,
281
303
  multipartFormRequestOptions(
282
304
  { body, ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
283
305
  this._client,
@@ -1621,6 +1643,7 @@ Browsers.Process = Process;
1621
1643
  Browsers.Logs = Logs;
1622
1644
  Browsers.Computer = Computer;
1623
1645
  Browsers.Playwright = Playwright;
1646
+ Browsers.Webmcp = Webmcp;
1624
1647
 
1625
1648
  export declare namespace Browsers {
1626
1649
  export {
@@ -1775,4 +1798,17 @@ export declare namespace Browsers {
1775
1798
  type PlaywrightExecuteResponse as PlaywrightExecuteResponse,
1776
1799
  type PlaywrightExecuteParams as PlaywrightExecuteParams,
1777
1800
  };
1801
+
1802
+ export {
1803
+ Webmcp as Webmcp,
1804
+ type InvocationFailure as InvocationFailure,
1805
+ type InvocationResult as InvocationResult,
1806
+ type InvokeRequest as InvokeRequest,
1807
+ type Tool as Tool,
1808
+ type ToolAnnotations as ToolAnnotations,
1809
+ type ToolFrame as ToolFrame,
1810
+ type ToolSource as ToolSource,
1811
+ type ToolsResponse as ToolsResponse,
1812
+ type WebmcpInvokeToolParams as WebmcpInvokeToolParams,
1813
+ };
1778
1814
  }