casedev 0.67.1 → 0.68.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 (157) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent/agent.d.mts +0 -4
  10. package/resources/agent/agent.d.mts.map +1 -1
  11. package/resources/agent/agent.d.ts +0 -4
  12. package/resources/agent/agent.d.ts.map +1 -1
  13. package/resources/agent/agent.js +0 -4
  14. package/resources/agent/agent.js.map +1 -1
  15. package/resources/agent/agent.mjs +0 -4
  16. package/resources/agent/agent.mjs.map +1 -1
  17. package/resources/agent/index.d.mts +0 -1
  18. package/resources/agent/index.d.mts.map +1 -1
  19. package/resources/agent/index.d.ts +0 -1
  20. package/resources/agent/index.d.ts.map +1 -1
  21. package/resources/agent/index.js +3 -5
  22. package/resources/agent/index.js.map +1 -1
  23. package/resources/agent/index.mjs +0 -1
  24. package/resources/agent/index.mjs.map +1 -1
  25. package/resources/agent/v1/index.d.mts +0 -1
  26. package/resources/agent/v1/index.d.mts.map +1 -1
  27. package/resources/agent/v1/index.d.ts +0 -1
  28. package/resources/agent/v1/index.d.ts.map +1 -1
  29. package/resources/agent/v1/index.js +1 -3
  30. package/resources/agent/v1/index.js.map +1 -1
  31. package/resources/agent/v1/index.mjs +0 -1
  32. package/resources/agent/v1/index.mjs.map +1 -1
  33. package/resources/agent/v1/v1.d.mts +0 -4
  34. package/resources/agent/v1/v1.d.mts.map +1 -1
  35. package/resources/agent/v1/v1.d.ts +0 -4
  36. package/resources/agent/v1/v1.d.ts.map +1 -1
  37. package/resources/agent/v1/v1.js +0 -4
  38. package/resources/agent/v1/v1.js.map +1 -1
  39. package/resources/agent/v1/v1.mjs +0 -4
  40. package/resources/agent/v1/v1.mjs.map +1 -1
  41. package/resources/index.d.mts +1 -1
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +1 -1
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/skills/index.d.mts +1 -1
  48. package/resources/skills/index.d.mts.map +1 -1
  49. package/resources/skills/index.d.ts +1 -1
  50. package/resources/skills/index.d.ts.map +1 -1
  51. package/resources/skills/index.js.map +1 -1
  52. package/resources/skills/index.mjs.map +1 -1
  53. package/resources/skills/skills.d.mts +67 -1
  54. package/resources/skills/skills.d.mts.map +1 -1
  55. package/resources/skills/skills.d.ts +67 -1
  56. package/resources/skills/skills.d.ts.map +1 -1
  57. package/resources/skills/skills.js +7 -0
  58. package/resources/skills/skills.js.map +1 -1
  59. package/resources/skills/skills.mjs +7 -0
  60. package/resources/skills/skills.mjs.map +1 -1
  61. package/resources/vault/objects.d.mts +10 -0
  62. package/resources/vault/objects.d.mts.map +1 -1
  63. package/resources/vault/objects.d.ts +10 -0
  64. package/resources/vault/objects.d.ts.map +1 -1
  65. package/resources/vault/vault.d.mts +10 -0
  66. package/resources/vault/vault.d.mts.map +1 -1
  67. package/resources/vault/vault.d.ts +10 -0
  68. package/resources/vault/vault.d.ts.map +1 -1
  69. package/resources/vault/vault.js.map +1 -1
  70. package/resources/vault/vault.mjs.map +1 -1
  71. package/src/client.ts +4 -0
  72. package/src/resources/agent/agent.ts +0 -6
  73. package/src/resources/agent/index.ts +0 -1
  74. package/src/resources/agent/v1/index.ts +0 -13
  75. package/src/resources/agent/v1/v1.ts +0 -30
  76. package/src/resources/index.ts +2 -0
  77. package/src/resources/skills/index.ts +2 -0
  78. package/src/resources/skills/skills.ts +104 -0
  79. package/src/resources/vault/objects.ts +12 -0
  80. package/src/resources/vault/vault.ts +12 -0
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
  86. package/resources/agent/skills/index.d.mts +0 -3
  87. package/resources/agent/skills/index.d.mts.map +0 -1
  88. package/resources/agent/skills/index.d.ts +0 -3
  89. package/resources/agent/skills/index.d.ts.map +0 -1
  90. package/resources/agent/skills/index.js +0 -9
  91. package/resources/agent/skills/index.js.map +0 -1
  92. package/resources/agent/skills/index.mjs +0 -4
  93. package/resources/agent/skills/index.mjs.map +0 -1
  94. package/resources/agent/skills/namespaces.d.mts +0 -66
  95. package/resources/agent/skills/namespaces.d.mts.map +0 -1
  96. package/resources/agent/skills/namespaces.d.ts +0 -66
  97. package/resources/agent/skills/namespaces.d.ts.map +0 -1
  98. package/resources/agent/skills/namespaces.js +0 -84
  99. package/resources/agent/skills/namespaces.js.map +0 -1
  100. package/resources/agent/skills/namespaces.mjs +0 -80
  101. package/resources/agent/skills/namespaces.mjs.map +0 -1
  102. package/resources/agent/skills/skills.d.mts +0 -10
  103. package/resources/agent/skills/skills.d.mts.map +0 -1
  104. package/resources/agent/skills/skills.d.ts +0 -10
  105. package/resources/agent/skills/skills.d.ts.map +0 -1
  106. package/resources/agent/skills/skills.js +0 -17
  107. package/resources/agent/skills/skills.js.map +0 -1
  108. package/resources/agent/skills/skills.mjs +0 -12
  109. package/resources/agent/skills/skills.mjs.map +0 -1
  110. package/resources/agent/skills.d.mts +0 -2
  111. package/resources/agent/skills.d.mts.map +0 -1
  112. package/resources/agent/skills.d.ts +0 -2
  113. package/resources/agent/skills.d.ts.map +0 -1
  114. package/resources/agent/skills.js +0 -6
  115. package/resources/agent/skills.js.map +0 -1
  116. package/resources/agent/skills.mjs +0 -3
  117. package/resources/agent/skills.mjs.map +0 -1
  118. package/resources/agent/v1/chat/chat.d.mts +0 -163
  119. package/resources/agent/v1/chat/chat.d.mts.map +0 -1
  120. package/resources/agent/v1/chat/chat.d.ts +0 -163
  121. package/resources/agent/v1/chat/chat.d.ts.map +0 -1
  122. package/resources/agent/v1/chat/chat.js +0 -109
  123. package/resources/agent/v1/chat/chat.js.map +0 -1
  124. package/resources/agent/v1/chat/chat.mjs +0 -104
  125. package/resources/agent/v1/chat/chat.mjs.map +0 -1
  126. package/resources/agent/v1/chat/files.d.mts +0 -42
  127. package/resources/agent/v1/chat/files.d.mts.map +0 -1
  128. package/resources/agent/v1/chat/files.d.ts +0 -42
  129. package/resources/agent/v1/chat/files.d.ts.map +0 -1
  130. package/resources/agent/v1/chat/files.js +0 -33
  131. package/resources/agent/v1/chat/files.js.map +0 -1
  132. package/resources/agent/v1/chat/files.mjs +0 -29
  133. package/resources/agent/v1/chat/files.mjs.map +0 -1
  134. package/resources/agent/v1/chat/index.d.mts +0 -3
  135. package/resources/agent/v1/chat/index.d.mts.map +0 -1
  136. package/resources/agent/v1/chat/index.d.ts +0 -3
  137. package/resources/agent/v1/chat/index.d.ts.map +0 -1
  138. package/resources/agent/v1/chat/index.js +0 -9
  139. package/resources/agent/v1/chat/index.js.map +0 -1
  140. package/resources/agent/v1/chat/index.mjs +0 -4
  141. package/resources/agent/v1/chat/index.mjs.map +0 -1
  142. package/resources/agent/v1/chat.d.mts +0 -2
  143. package/resources/agent/v1/chat.d.mts.map +0 -1
  144. package/resources/agent/v1/chat.d.ts +0 -2
  145. package/resources/agent/v1/chat.d.ts.map +0 -1
  146. package/resources/agent/v1/chat.js +0 -6
  147. package/resources/agent/v1/chat.js.map +0 -1
  148. package/resources/agent/v1/chat.mjs +0 -3
  149. package/resources/agent/v1/chat.mjs.map +0 -1
  150. package/src/resources/agent/skills/index.ts +0 -4
  151. package/src/resources/agent/skills/namespaces.ts +0 -126
  152. package/src/resources/agent/skills/skills.ts +0 -19
  153. package/src/resources/agent/skills.ts +0 -3
  154. package/src/resources/agent/v1/chat/chat.ts +0 -267
  155. package/src/resources/agent/v1/chat/files.ts +0 -63
  156. package/src/resources/agent/v1/chat/index.ts +0 -16
  157. package/src/resources/agent/v1/chat.ts +0 -3
@@ -1,3 +0,0 @@
1
- export { Namespaces, type NamespaceCreateParams, type NamespacePublishParams } from "./namespaces.mjs";
2
- export { Skills } from "./skills.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/skills/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,yBAAqB;AACnG,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -1,3 +0,0 @@
1
- export { Namespaces, type NamespaceCreateParams, type NamespacePublishParams } from "./namespaces.js";
2
- export { Skills } from "./skills.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/skills/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,wBAAqB;AACnG,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
@@ -1,9 +0,0 @@
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.Skills = exports.Namespaces = void 0;
5
- var namespaces_1 = require("./namespaces.js");
6
- Object.defineProperty(exports, "Namespaces", { enumerable: true, get: function () { return namespaces_1.Namespaces; } });
7
- var skills_1 = require("./skills.js");
8
- Object.defineProperty(exports, "Skills", { enumerable: true, get: function () { return skills_1.Skills; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agent/skills/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAAmG;AAA1F,wGAAA,UAAU,OAAA;AACnB,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Namespaces } from "./namespaces.mjs";
3
- export { Skills } from "./skills.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agent/skills/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAA2D,yBAAqB;AACnG,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -1,66 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- /**
5
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
6
- */
7
- export declare class Namespaces extends APIResource {
8
- /**
9
- * Create a private skill namespace owned by the authenticated org and receive a
10
- * one-time bearer token used by the case-skills publisher.
11
- */
12
- create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<void>;
13
- /**
14
- * Read skill namespace
15
- */
16
- retrieve(id: string, options?: RequestOptions): APIPromise<void>;
17
- /**
18
- * List all active skill namespaces owned by the authenticated organization.
19
- */
20
- list(options?: RequestOptions): APIPromise<void>;
21
- /**
22
- * Delete skill namespace
23
- */
24
- delete(id: string, options?: RequestOptions): APIPromise<void>;
25
- /**
26
- * Upload a tree of skill files for the namespace. Authenticated by the namespace
27
- * bearer token. Atomic at the version-bump level: a partial upload leaves the
28
- * namespace pinned to the previous version.
29
- */
30
- publish(id: string, body: NamespacePublishParams, options?: RequestOptions): APIPromise<void>;
31
- /**
32
- * Returns the active version's file manifest with short-lived presigned S3 URLs.
33
- * Sandboxes use this to materialize the tree at /workspace/.agents/skills/ before
34
- * opencode boots.
35
- */
36
- pull(id: string, options?: RequestOptions): APIPromise<void>;
37
- /**
38
- * Rotate skill namespace token
39
- */
40
- rotateToken(id: string, options?: RequestOptions): APIPromise<void>;
41
- }
42
- export interface NamespaceCreateParams {
43
- /**
44
- * URL-safe slug, e.g. "curi" or "client-firm-abc". Lowercase alphanumeric with
45
- * single hyphens, 2-64 chars.
46
- */
47
- namespaceId: string;
48
- description?: string | null;
49
- label?: string | null;
50
- metadata?: unknown | null;
51
- }
52
- export interface NamespacePublishParams {
53
- files: Array<NamespacePublishParams.File>;
54
- }
55
- export declare namespace NamespacePublishParams {
56
- interface File {
57
- content: string;
58
- encoding: 'utf8' | 'base64';
59
- path: string;
60
- contentType?: string | null;
61
- }
62
- }
63
- export declare namespace Namespaces {
64
- export { type NamespaceCreateParams as NamespaceCreateParams, type NamespacePublishParams as NamespacePublishParams, };
65
- }
66
- //# sourceMappingURL=namespaces.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/skills/namespaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;OAIG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO5D;;OAEG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMpE;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,OAAO,EAAE,MAAM,CAAC;QAEhB,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;QAE5B,IAAI,EAAE,MAAM,CAAC;QAEb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,66 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import { APIPromise } from "../../../core/api-promise.js";
3
- import { RequestOptions } from "../../../internal/request-options.js";
4
- /**
5
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
6
- */
7
- export declare class Namespaces extends APIResource {
8
- /**
9
- * Create a private skill namespace owned by the authenticated org and receive a
10
- * one-time bearer token used by the case-skills publisher.
11
- */
12
- create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<void>;
13
- /**
14
- * Read skill namespace
15
- */
16
- retrieve(id: string, options?: RequestOptions): APIPromise<void>;
17
- /**
18
- * List all active skill namespaces owned by the authenticated organization.
19
- */
20
- list(options?: RequestOptions): APIPromise<void>;
21
- /**
22
- * Delete skill namespace
23
- */
24
- delete(id: string, options?: RequestOptions): APIPromise<void>;
25
- /**
26
- * Upload a tree of skill files for the namespace. Authenticated by the namespace
27
- * bearer token. Atomic at the version-bump level: a partial upload leaves the
28
- * namespace pinned to the previous version.
29
- */
30
- publish(id: string, body: NamespacePublishParams, options?: RequestOptions): APIPromise<void>;
31
- /**
32
- * Returns the active version's file manifest with short-lived presigned S3 URLs.
33
- * Sandboxes use this to materialize the tree at /workspace/.agents/skills/ before
34
- * opencode boots.
35
- */
36
- pull(id: string, options?: RequestOptions): APIPromise<void>;
37
- /**
38
- * Rotate skill namespace token
39
- */
40
- rotateToken(id: string, options?: RequestOptions): APIPromise<void>;
41
- }
42
- export interface NamespaceCreateParams {
43
- /**
44
- * URL-safe slug, e.g. "curi" or "client-firm-abc". Lowercase alphanumeric with
45
- * single hyphens, 2-64 chars.
46
- */
47
- namespaceId: string;
48
- description?: string | null;
49
- label?: string | null;
50
- metadata?: unknown | null;
51
- }
52
- export interface NamespacePublishParams {
53
- files: Array<NamespacePublishParams.File>;
54
- }
55
- export declare namespace NamespacePublishParams {
56
- interface File {
57
- content: string;
58
- encoding: 'utf8' | 'base64';
59
- path: string;
60
- contentType?: string | null;
61
- }
62
- }
63
- export declare namespace Namespaces {
64
- export { type NamespaceCreateParams as NamespaceCreateParams, type NamespacePublishParams as NamespacePublishParams, };
65
- }
66
- //# sourceMappingURL=namespaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/skills/namespaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IAC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B,IAAI,EAAE,MAAM,CAAC;QAEb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,84 +0,0 @@
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.Namespaces = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const headers_1 = require("../../../internal/headers.js");
7
- const path_1 = require("../../../internal/utils/path.js");
8
- /**
9
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
10
- */
11
- class Namespaces extends resource_1.APIResource {
12
- /**
13
- * Create a private skill namespace owned by the authenticated org and receive a
14
- * one-time bearer token used by the case-skills publisher.
15
- */
16
- create(body, options) {
17
- return this._client.post('/agent/skills/namespaces', {
18
- body,
19
- ...options,
20
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
21
- });
22
- }
23
- /**
24
- * Read skill namespace
25
- */
26
- retrieve(id, options) {
27
- return this._client.get((0, path_1.path) `/agent/skills/namespaces/${id}`, {
28
- ...options,
29
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
30
- });
31
- }
32
- /**
33
- * List all active skill namespaces owned by the authenticated organization.
34
- */
35
- list(options) {
36
- return this._client.get('/agent/skills/namespaces', {
37
- ...options,
38
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
39
- });
40
- }
41
- /**
42
- * Delete skill namespace
43
- */
44
- delete(id, options) {
45
- return this._client.delete((0, path_1.path) `/agent/skills/namespaces/${id}`, {
46
- ...options,
47
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
48
- });
49
- }
50
- /**
51
- * Upload a tree of skill files for the namespace. Authenticated by the namespace
52
- * bearer token. Atomic at the version-bump level: a partial upload leaves the
53
- * namespace pinned to the previous version.
54
- */
55
- publish(id, body, options) {
56
- return this._client.post((0, path_1.path) `/agent/skills/namespaces/${id}/publish`, {
57
- body,
58
- ...options,
59
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
60
- });
61
- }
62
- /**
63
- * Returns the active version's file manifest with short-lived presigned S3 URLs.
64
- * Sandboxes use this to materialize the tree at /workspace/.agents/skills/ before
65
- * opencode boots.
66
- */
67
- pull(id, options) {
68
- return this._client.get((0, path_1.path) `/agent/skills/namespaces/${id}/pull`, {
69
- ...options,
70
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
71
- });
72
- }
73
- /**
74
- * Rotate skill namespace token
75
- */
76
- rotateToken(id, options) {
77
- return this._client.post((0, path_1.path) `/agent/skills/namespaces/${id}/rotate-token`, {
78
- ...options,
79
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
80
- });
81
- }
82
- }
83
- exports.Namespaces = Namespaces;
84
- //# sourceMappingURL=namespaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../../src/resources/agent/skills/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,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;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,E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AG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,OAAO,EAAE;YACjE,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;IAED;;OAEG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,eAAe,EAAE;YAC1E,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;AA7ED,gCA6EC"}
@@ -1,80 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import { buildHeaders } from "../../../internal/headers.mjs";
4
- import { path } from "../../../internal/utils/path.mjs";
5
- /**
6
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
- */
8
- export class Namespaces extends APIResource {
9
- /**
10
- * Create a private skill namespace owned by the authenticated org and receive a
11
- * one-time bearer token used by the case-skills publisher.
12
- */
13
- create(body, options) {
14
- return this._client.post('/agent/skills/namespaces', {
15
- body,
16
- ...options,
17
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
18
- });
19
- }
20
- /**
21
- * Read skill namespace
22
- */
23
- retrieve(id, options) {
24
- return this._client.get(path `/agent/skills/namespaces/${id}`, {
25
- ...options,
26
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
- });
28
- }
29
- /**
30
- * List all active skill namespaces owned by the authenticated organization.
31
- */
32
- list(options) {
33
- return this._client.get('/agent/skills/namespaces', {
34
- ...options,
35
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
36
- });
37
- }
38
- /**
39
- * Delete skill namespace
40
- */
41
- delete(id, options) {
42
- return this._client.delete(path `/agent/skills/namespaces/${id}`, {
43
- ...options,
44
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
45
- });
46
- }
47
- /**
48
- * Upload a tree of skill files for the namespace. Authenticated by the namespace
49
- * bearer token. Atomic at the version-bump level: a partial upload leaves the
50
- * namespace pinned to the previous version.
51
- */
52
- publish(id, body, options) {
53
- return this._client.post(path `/agent/skills/namespaces/${id}/publish`, {
54
- body,
55
- ...options,
56
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
57
- });
58
- }
59
- /**
60
- * Returns the active version's file manifest with short-lived presigned S3 URLs.
61
- * Sandboxes use this to materialize the tree at /workspace/.agents/skills/ before
62
- * opencode boots.
63
- */
64
- pull(id, options) {
65
- return this._client.get(path `/agent/skills/namespaces/${id}/pull`, {
66
- ...options,
67
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
68
- });
69
- }
70
- /**
71
- * Rotate skill namespace token
72
- */
73
- rotateToken(id, options) {
74
- return this._client.post(path `/agent/skills/namespaces/${id}/rotate-token`, {
75
- ...options,
76
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
77
- });
78
- }
79
- }
80
- //# sourceMappingURL=namespaces.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../../../src/resources/agent/skills/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG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AC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,OAAO,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,eAAe,EAAE;YAC1E,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"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as NamespacesAPI from "./namespaces.mjs";
3
- import { NamespaceCreateParams, NamespacePublishParams, Namespaces } from "./namespaces.mjs";
4
- export declare class Skills extends APIResource {
5
- namespaces: NamespacesAPI.Namespaces;
6
- }
7
- export declare namespace Skills {
8
- export { Namespaces as Namespaces, type NamespaceCreateParams as NamespaceCreateParams, type NamespacePublishParams as NamespacePublishParams, };
9
- }
10
- //# sourceMappingURL=skills.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/skills/skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,UAAU,EAAE,yBAAqB;AAEzF,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as NamespacesAPI from "./namespaces.js";
3
- import { NamespaceCreateParams, NamespacePublishParams, Namespaces } from "./namespaces.js";
4
- export declare class Skills extends APIResource {
5
- namespaces: NamespacesAPI.Namespaces;
6
- }
7
- export declare namespace Skills {
8
- export { Namespaces as Namespaces, type NamespaceCreateParams as NamespaceCreateParams, type NamespacePublishParams as NamespacePublishParams, };
9
- }
10
- //# sourceMappingURL=skills.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/skills/skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,UAAU,EAAE,wBAAqB;AAEzF,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,17 +0,0 @@
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.Skills = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const NamespacesAPI = tslib_1.__importStar(require("./namespaces.js"));
8
- const namespaces_1 = require("./namespaces.js");
9
- class Skills extends resource_1.APIResource {
10
- constructor() {
11
- super(...arguments);
12
- this.namespaces = new NamespacesAPI.Namespaces(this._client);
13
- }
14
- }
15
- exports.Skills = Skills;
16
- Skills.Namespaces = namespaces_1.Namespaces;
17
- //# sourceMappingURL=skills.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../src/resources/agent/skills/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,uEAA8C;AAC9C,gDAAyF;AAEzF,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC"}
@@ -1,12 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import * as NamespacesAPI from "./namespaces.mjs";
4
- import { Namespaces } from "./namespaces.mjs";
5
- export class Skills extends APIResource {
6
- constructor() {
7
- super(...arguments);
8
- this.namespaces = new NamespacesAPI.Namespaces(this._client);
9
- }
10
- }
11
- Skills.Namespaces = Namespaces;
12
- //# sourceMappingURL=skills.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../../../src/resources/agent/skills/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAiD,UAAU,EAAE,yBAAqB;AAEzF,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./skills/index.mjs";
2
- //# sourceMappingURL=skills.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.d.mts","sourceRoot":"","sources":["../../src/resources/agent/skills.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
@@ -1,2 +0,0 @@
1
- export * from "./skills/index.js";
2
- //# sourceMappingURL=skills.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/resources/agent/skills.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
@@ -1,6 +0,0 @@
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
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./skills/index.js"), exports);
6
- //# sourceMappingURL=skills.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.js","sourceRoot":"","sources":["../../src/resources/agent/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./skills/index.mjs";
3
- //# sourceMappingURL=skills.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../../src/resources/agent/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
@@ -1,163 +0,0 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
2
- import * as FilesAPI from "./files.mjs";
3
- import { FileDownloadParams, FileListResponse, Files } from "./files.mjs";
4
- import { APIPromise } from "../../../../core/api-promise.mjs";
5
- import { Stream } from "../../../../core/streaming.mjs";
6
- import { RequestOptions } from "../../../../internal/request-options.mjs";
7
- /**
8
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
9
- */
10
- export declare class Chat extends APIResource {
11
- files: FilesAPI.Files;
12
- /**
13
- * Creates a persistent chat session backed by a Daytona or Vercel runtime. Session
14
- * state is retained and can be resumed or recovered across requests.
15
- */
16
- create(body?: ChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<ChatCreateResponse>;
17
- /**
18
- * Snapshots and terminates the active sandbox (if any), then marks the chat as
19
- * ended.
20
- */
21
- delete(id: string, options?: RequestOptions): APIPromise<ChatDeleteResponse>;
22
- /**
23
- * Aborts the active generation for this chat session.
24
- */
25
- cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse>;
26
- /**
27
- * Answers a pending runtime question for the chat session bound to this agent
28
- * chat.
29
- */
30
- replyToQuestion(requestID: string, params: ChatReplyToQuestionParams, options?: RequestOptions): APIPromise<void>;
31
- /**
32
- * Streams a single assistant turn as normalized SSE events with stable turn,
33
- * message, and part IDs. Emits events: `turn.started`, `turn.status`,
34
- * `message.created`, `message.part.updated`, `message.completed`, `session.usage`,
35
- * `turn.completed`.
36
- *
37
- * **When to use this endpoint:** Recommended for building custom chat UIs that
38
- * need real-time streaming progress. This is the primary streaming endpoint for
39
- * new integrations.
40
- *
41
- * **Alternatives:**
42
- *
43
- * - `POST /chat/:id/message` — synchronous, returns complete response as JSON
44
- * (best for server-to-server)
45
- */
46
- respond(id: string, body: ChatRespondParams, options?: RequestOptions): APIPromise<Stream<ChatRespondResponse>>;
47
- /**
48
- * Sends a message and returns the complete response as a single JSON body. Blocks
49
- * until the agent turn completes.
50
- *
51
- * **When to use this endpoint:** Best for server-to-server integrations,
52
- * background processing, or any context where you want the full response in one
53
- * call without managing an SSE stream.
54
- *
55
- * **Alternatives:**
56
- *
57
- * - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
58
- * for custom chat UIs)
59
- */
60
- sendMessage(id: string, body: ChatSendMessageParams, options?: RequestOptions): APIPromise<void>;
61
- /**
62
- * Relays runtime SSE events for this chat. Supports replay from buffered events
63
- * using Last-Event-ID.
64
- */
65
- stream(id: string, query?: ChatStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<ChatStreamResponse>>;
66
- }
67
- export interface ChatCreateResponse {
68
- id?: string;
69
- createdAt?: string;
70
- idleTimeoutMs?: number;
71
- status?: string;
72
- }
73
- export interface ChatDeleteResponse {
74
- id?: string;
75
- cost?: number;
76
- runtimeMs?: number;
77
- snapshotImageId?: string | null;
78
- status?: string;
79
- }
80
- export interface ChatCancelResponse {
81
- id?: string;
82
- ok?: boolean;
83
- }
84
- export type ChatRespondResponse = string;
85
- export type ChatStreamResponse = string;
86
- export interface ChatCreateParams {
87
- /**
88
- * Idle timeout before session is eligible for snapshot/termination. Defaults to 15
89
- * minutes.
90
- */
91
- idleTimeoutMs?: number | null;
92
- /**
93
- * Optional model override for the chat runtime session
94
- */
95
- model?: string | null;
96
- /**
97
- * Optional human-readable session title
98
- */
99
- title?: string;
100
- /**
101
- * Restrict the chat session to specific vault IDs
102
- */
103
- vaultIds?: Array<string> | null;
104
- }
105
- export interface ChatReplyToQuestionParams {
106
- /**
107
- * Path param: Chat session ID
108
- */
109
- id: string;
110
- /**
111
- * Body param: Answer selections for each prompt element in the pending question
112
- */
113
- answers: Array<Array<string>>;
114
- }
115
- export interface ChatRespondParams {
116
- /**
117
- * Message content parts. Currently only "text" type is supported. Additional types
118
- * (e.g. file, image) may be added in future versions.
119
- */
120
- parts?: Array<ChatRespondParams.Part>;
121
- }
122
- export declare namespace ChatRespondParams {
123
- interface Part {
124
- /**
125
- * The message text content
126
- */
127
- text: string;
128
- /**
129
- * Part type. Currently only "text" is supported.
130
- */
131
- type: 'text';
132
- }
133
- }
134
- export interface ChatSendMessageParams {
135
- /**
136
- * Message content parts. Currently only "text" type is supported. Additional types
137
- * (e.g. file, image) may be added in future versions.
138
- */
139
- parts?: Array<ChatSendMessageParams.Part>;
140
- }
141
- export declare namespace ChatSendMessageParams {
142
- interface Part {
143
- /**
144
- * The message text content
145
- */
146
- text: string;
147
- /**
148
- * Part type. Currently only "text" is supported.
149
- */
150
- type: 'text';
151
- }
152
- }
153
- export interface ChatStreamParams {
154
- /**
155
- * Replay events after this sequence number
156
- */
157
- lastEventId?: number;
158
- }
159
- export declare namespace Chat {
160
- export { type ChatCreateResponse as ChatCreateResponse, type ChatDeleteResponse as ChatDeleteResponse, type ChatCancelResponse as ChatCancelResponse, type ChatRespondResponse as ChatRespondResponse, type ChatStreamResponse as ChatStreamResponse, type ChatCreateParams as ChatCreateParams, type ChatReplyToQuestionParams as ChatReplyToQuestionParams, type ChatRespondParams as ChatRespondParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
161
- export { Files as Files, type FileListResponse as FileListResponse, type FileDownloadParams as FileDownloadParams, };
162
- }
163
- //# sourceMappingURL=chat.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,EAAE,oBAAgB;AACtE,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,MAAM,EAAE,uCAAmC;AAEpD,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;OAGG;IACH,MAAM,CACJ,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAA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