@archastro/sdk 0.5.2 → 0.5.3

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 (222) hide show
  1. package/README.md +86 -0
  2. package/dist/auth.d.ts +143 -0
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +187 -1
  5. package/dist/auth.js.map +1 -1
  6. package/dist/client.d.ts +26 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +27 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/ai.d.ts +150 -12
  15. package/dist/types/ai.d.ts.map +1 -1
  16. package/dist/types/ai.js +71 -41
  17. package/dist/types/ai.js.map +1 -1
  18. package/dist/types/artifacts.d.ts +81 -24
  19. package/dist/types/artifacts.d.ts.map +1 -1
  20. package/dist/types/artifacts.js +39 -21
  21. package/dist/types/artifacts.js.map +1 -1
  22. package/dist/types/automations.d.ts +41 -9
  23. package/dist/types/automations.d.ts.map +1 -1
  24. package/dist/types/automations.js +25 -17
  25. package/dist/types/automations.js.map +1 -1
  26. package/dist/types/chat.d.ts +21418 -0
  27. package/dist/types/chat.d.ts.map +1 -0
  28. package/dist/types/chat.js +70 -0
  29. package/dist/types/chat.js.map +1 -0
  30. package/dist/types/common.d.ts +16970 -2136
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +1695 -332
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/config.d.ts +239 -31
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/config.js +86 -34
  37. package/dist/types/config.js.map +1 -1
  38. package/dist/types/image.d.ts +27 -4
  39. package/dist/types/image.d.ts.map +1 -1
  40. package/dist/types/image.js +17 -10
  41. package/dist/types/image.js.map +1 -1
  42. package/dist/types/index.d.ts +2 -1
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +3 -2
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invites.d.ts +20 -11
  47. package/dist/types/invites.d.ts.map +1 -1
  48. package/dist/types/invites.js +9 -12
  49. package/dist/types/invites.js.map +1 -1
  50. package/dist/types/notifications.d.ts +163 -0
  51. package/dist/types/notifications.d.ts.map +1 -0
  52. package/dist/types/notifications.js +44 -0
  53. package/dist/types/notifications.js.map +1 -0
  54. package/dist/types/teams.d.ts +1628 -231
  55. package/dist/types/teams.d.ts.map +1 -1
  56. package/dist/types/teams.js +76 -45
  57. package/dist/types/teams.js.map +1 -1
  58. package/dist/types/threads.d.ts +997 -243
  59. package/dist/types/threads.d.ts.map +1 -1
  60. package/dist/types/threads.js +84 -51
  61. package/dist/types/threads.js.map +1 -1
  62. package/dist/types/users.d.ts +98 -18
  63. package/dist/types/users.d.ts.map +1 -1
  64. package/dist/types/users.js +43 -18
  65. package/dist/types/users.js.map +1 -1
  66. package/dist/v1/resources/activity_feed.d.ts +89 -0
  67. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  68. package/dist/v1/resources/activity_feed.js +56 -2
  69. package/dist/v1/resources/activity_feed.js.map +1 -1
  70. package/dist/v1/resources/agent_computers.d.ts +48 -2
  71. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  72. package/dist/v1/resources/agent_computers.js +48 -1
  73. package/dist/v1/resources/agent_computers.js.map +1 -1
  74. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  75. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  76. package/dist/v1/resources/agent_env_vars.js +56 -0
  77. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  78. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  79. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  80. package/dist/v1/resources/agent_health_actions.js +50 -0
  81. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  82. package/dist/v1/resources/agent_installations.d.ts +100 -0
  83. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  84. package/dist/v1/resources/agent_installations.js +106 -2
  85. package/dist/v1/resources/agent_installations.js.map +1 -1
  86. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  87. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_routine_runs.js +48 -0
  89. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  90. package/dist/v1/resources/agent_routines.d.ts +148 -2
  91. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_routines.js +168 -3
  93. package/dist/v1/resources/agent_routines.js.map +1 -1
  94. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  95. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  96. package/dist/v1/resources/agent_sessions.js +134 -2
  97. package/dist/v1/resources/agent_sessions.js.map +1 -1
  98. package/dist/v1/resources/agent_skills.d.ts +83 -1
  99. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_skills.js +87 -2
  101. package/dist/v1/resources/agent_skills.js.map +1 -1
  102. package/dist/v1/resources/agent_tools.d.ts +109 -2
  103. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_tools.js +114 -2
  105. package/dist/v1/resources/agent_tools.js.map +1 -1
  106. package/dist/v1/resources/agents.d.ts +517 -9
  107. package/dist/v1/resources/agents.d.ts.map +1 -1
  108. package/dist/v1/resources/agents.js +515 -12
  109. package/dist/v1/resources/agents.js.map +1 -1
  110. package/dist/v1/resources/ai.d.ts +93 -0
  111. package/dist/v1/resources/ai.d.ts.map +1 -1
  112. package/dist/v1/resources/ai.js +89 -1
  113. package/dist/v1/resources/ai.js.map +1 -1
  114. package/dist/v1/resources/artifacts.d.ts +73 -0
  115. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  116. package/dist/v1/resources/artifacts.js +74 -2
  117. package/dist/v1/resources/artifacts.js.map +1 -1
  118. package/dist/v1/resources/automation_runs.d.ts +8 -4
  119. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  120. package/dist/v1/resources/automation_runs.js +9 -5
  121. package/dist/v1/resources/automation_runs.js.map +1 -1
  122. package/dist/v1/resources/automations.d.ts +20 -0
  123. package/dist/v1/resources/automations.d.ts.map +1 -1
  124. package/dist/v1/resources/automations.js +21 -1
  125. package/dist/v1/resources/automations.js.map +1 -1
  126. package/dist/v1/resources/bug_reports.d.ts +29 -0
  127. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  128. package/dist/v1/resources/bug_reports.js +29 -0
  129. package/dist/v1/resources/bug_reports.js.map +1 -0
  130. package/dist/v1/resources/config.d.ts +429 -4
  131. package/dist/v1/resources/config.d.ts.map +1 -1
  132. package/dist/v1/resources/config.js +493 -9
  133. package/dist/v1/resources/config.js.map +1 -1
  134. package/dist/v1/resources/custom_objects.d.ts +117 -2
  135. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  136. package/dist/v1/resources/custom_objects.js +132 -3
  137. package/dist/v1/resources/custom_objects.js.map +1 -1
  138. package/dist/v1/resources/files.d.ts +62 -0
  139. package/dist/v1/resources/files.d.ts.map +1 -0
  140. package/dist/v1/resources/files.js +58 -0
  141. package/dist/v1/resources/files.js.map +1 -0
  142. package/dist/v1/resources/index.d.ts +13 -0
  143. package/dist/v1/resources/index.d.ts.map +1 -1
  144. package/dist/v1/resources/index.js +14 -1
  145. package/dist/v1/resources/index.js.map +1 -1
  146. package/dist/v1/resources/installation_sources.d.ts +12 -0
  147. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  148. package/dist/v1/resources/installation_sources.js +13 -1
  149. package/dist/v1/resources/installation_sources.js.map +1 -1
  150. package/dist/v1/resources/invites.d.ts +15 -0
  151. package/dist/v1/resources/invites.d.ts.map +1 -1
  152. package/dist/v1/resources/invites.js +16 -1
  153. package/dist/v1/resources/invites.js.map +1 -1
  154. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  155. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  156. package/dist/v1/resources/knowledge_documents.js +112 -0
  157. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  158. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  159. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  160. package/dist/v1/resources/knowledge_sources.js +176 -0
  161. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  162. package/dist/v1/resources/kv.d.ts +73 -0
  163. package/dist/v1/resources/kv.d.ts.map +1 -1
  164. package/dist/v1/resources/kv.js +96 -3
  165. package/dist/v1/resources/kv.js.map +1 -1
  166. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  167. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  168. package/dist/v1/resources/notification_preferences.js +65 -0
  169. package/dist/v1/resources/notification_preferences.js.map +1 -0
  170. package/dist/v1/resources/notifications.d.ts +133 -0
  171. package/dist/v1/resources/notifications.d.ts.map +1 -0
  172. package/dist/v1/resources/notifications.js +136 -0
  173. package/dist/v1/resources/notifications.js.map +1 -0
  174. package/dist/v1/resources/orgs.d.ts +18 -0
  175. package/dist/v1/resources/orgs.d.ts.map +1 -1
  176. package/dist/v1/resources/orgs.js +30 -2
  177. package/dist/v1/resources/orgs.js.map +1 -1
  178. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  179. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  180. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  181. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  182. package/dist/v1/resources/solution_categories.d.ts +36 -0
  183. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  184. package/dist/v1/resources/solution_categories.js +55 -0
  185. package/dist/v1/resources/solution_categories.js.map +1 -0
  186. package/dist/v1/resources/solution_tags.d.ts +37 -0
  187. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_tags.js +54 -0
  189. package/dist/v1/resources/solution_tags.js.map +1 -0
  190. package/dist/v1/resources/solutions.d.ts +309 -0
  191. package/dist/v1/resources/solutions.d.ts.map +1 -0
  192. package/dist/v1/resources/solutions.js +214 -0
  193. package/dist/v1/resources/solutions.js.map +1 -0
  194. package/dist/v1/resources/team_memberships.d.ts +31 -0
  195. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +49 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +458 -49
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +319 -27
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +70 -0
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +85 -2
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +201 -0
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +220 -4
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +213 -39
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +121 -16
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1.d.ts +26 -0
  215. package/dist/v1.d.ts.map +1 -1
  216. package/dist/v1.js +40 -1
  217. package/dist/v1.js.map +1 -1
  218. package/package.json +3 -1
  219. package/dist/types/agents.d.ts +0 -2084
  220. package/dist/types/agents.d.ts.map +0 -1
  221. package/dist/types/agents.js +0 -203
  222. package/dist/types/agents.js.map +0 -1
@@ -1,9 +1,21 @@
1
1
  import { HttpClient } from "../../runtime/http-client.js";
2
2
  import type { ValidationResult } from "../../types/common.js";
3
- import type { Config, ConfigKindSchema } from "../../types/config.js";
3
+ import type { Config, ConfigFacets, ConfigKindSchema } from "../../types/config.js";
4
4
  export declare class KindResource {
5
5
  private http;
6
6
  constructor(http: HttpClient);
7
+ /**
8
+ * List config kinds
9
+ * Returns all config kinds registered in the platform, sorted alphabetically by name.
10
+ * Each entry describes a type of configuration object (e.g., `"Agent"`, `"APITool"`) and
11
+ * indicates whether a JSON schema and a YAML sample are available for it.
12
+ * Any authenticated user may call this endpoint; no ownership scope is required.
13
+ * Pass one or more `kind` values to restrict the response to those specific kinds.
14
+ * Omit the parameter to receive the full list of non-private kinds.
15
+ * @param params - Query parameters.
16
+ * @param params.kind - One or more config kind names to include in the response (e.g., `"Agent"`, `"APITool"`). Omit to return all non-private kinds.
17
+ * @returns Successful response
18
+ */
7
19
  list(params?: {
8
20
  kind?: string[];
9
21
  }): Promise<{
@@ -15,18 +27,54 @@ export declare class KindResource {
15
27
  schema_available: boolean;
16
28
  }[];
17
29
  }>;
30
+ /**
31
+ * Retrieve a config kind schema
32
+ * Returns the JSON schema and a YAML sample for a single config kind. Use this to
33
+ * understand the structure a config object of that kind must follow before creating
34
+ * or validating one.
35
+ * The `json_schema` field is `null` when the kind has no machine-readable schema
36
+ * defined. The `sample_yaml` field is `null` when no sample is available. Any
37
+ * authenticated user may call this endpoint; no ownership scope is required.
38
+ * Returns 404 if the kind name does not match a registered, non-private config kind.
39
+ * @param kind - Name of the config kind to retrieve (e.g., `"Agent"`, `"APITool"`). Must match a registered, non-private kind exactly.
40
+ * @returns The JSON schema and YAML sample for the requested config kind.
41
+ */
18
42
  schema(kind: string): Promise<ConfigKindSchema>;
19
43
  }
20
44
  export declare class SystemResource {
21
45
  private http;
22
46
  constructor(http: HttpClient);
47
+ /**
48
+ * List system configs
49
+ * Returns a paginated list of system (template) configs from the filesystem-backed
50
+ * manifest. Results are always ordered by `virtual_path` ascending.
51
+ * Filter by one or more config kinds using `kind` (single value) or `kinds` (array).
52
+ * Both filters may be supplied together for backward compatibility; `kinds` takes
53
+ * precedence when both are present. Exclude specific path namespaces with
54
+ * `excluded_path_prefixes`.
55
+ * Use `page` and `page_size` to paginate. Page size is clamped to a maximum of 200;
56
+ * requests exceeding this limit are silently clamped rather than rejected.
57
+ * @param params - Query parameters.
58
+ * @param params.kind - Filter results to a single config kind, e.g. `"Agent"` or `"APITool"`. Use `kinds` to filter by multiple kinds at once.
59
+ * @param params.kinds - Filter results to configs whose `kind` is in this list. When both `kind` and `kinds` are provided, `kinds` takes precedence.
60
+ * @param params.excludedPathPrefixes - Exclude configs whose `virtual_path` starts with any of the listed string prefixes.
61
+ * @param params.page - Page number to retrieve, 1-indexed. Defaults to `1`.
62
+ * @param params.pageSize - Number of results per page. Defaults to `50`; maximum is `200`. Values above the maximum are clamped to `200`.
63
+ * @returns Successful response
64
+ */
23
65
  list(params?: {
24
66
  kind?: string;
67
+ kinds?: string[];
68
+ excludedPathPrefixes?: string[];
69
+ page?: number;
70
+ pageSize?: number;
25
71
  }): Promise<{
26
72
  data: {
73
+ agent?: string | undefined;
27
74
  created_at?: string | undefined;
28
75
  current_version?: {
29
76
  change_description?: string | undefined;
77
+ content_hash?: string | undefined;
30
78
  created_at?: string | undefined;
31
79
  data?: Record<string, unknown> | undefined;
32
80
  id: string;
@@ -41,6 +89,7 @@ export declare class SystemResource {
41
89
  mime_type?: string | undefined;
42
90
  org?: string | undefined;
43
91
  parent?: string | undefined;
92
+ parent_solution?: string | undefined;
44
93
  raw_content?: string | undefined;
45
94
  relative_path?: string | undefined;
46
95
  sandbox?: string | undefined;
@@ -49,8 +98,55 @@ export declare class SystemResource {
49
98
  user?: string | undefined;
50
99
  virtual_path?: string | undefined;
51
100
  }[];
101
+ has_next: boolean;
102
+ has_prev: boolean;
103
+ page: number;
104
+ page_size: number;
105
+ total_entries: number;
106
+ total_pages: number;
52
107
  }>;
108
+ /**
109
+ * Retrieve system config facets
110
+ * Returns the distinct `kind` values and leading `virtual_path` prefixes present
111
+ * in the system (template) config manifest, each accompanied by a count of matching
112
+ * configs. Use this data to populate filter UIs or to determine which config kinds
113
+ * are available before listing or cloning.
114
+ * The response reflects the filesystem-backed template manifest and does not include
115
+ * user- or team-owned configs.
116
+ * @returns Aggregated facet data containing distinct config kinds and path prefixes, each with a count of matching system configs.
117
+ */
118
+ facets(): Promise<ConfigFacets>;
119
+ /**
120
+ * Retrieve a system config
121
+ * Returns a single system (template) config identified by its `virtual_path` or
122
+ * `lookup_key`. The `system` parameter value is URL-decoded before lookup, so
123
+ * path segments with special characters may be passed URL-encoded.
124
+ * System configs are filesystem-backed templates and are readable by any
125
+ * authenticated caller regardless of team or user ownership. Returns 404 when no
126
+ * system config matches the given identifier.
127
+ * @param system - Identifier of the system config to retrieve — either its `virtual_path` or its `lookup_key`. May be URL-encoded.
128
+ * @returns The requested system config, including its current version and all metadata fields.
129
+ */
53
130
  get(system: string): Promise<Config>;
131
+ /**
132
+ * Clone a system config
133
+ * Creates a copy of a system (template) config and transfers ownership to a team
134
+ * or user. All dependencies bundled with the source config are cloned alongside it.
135
+ * Responds with HTTP 201 and the newly created config on success.
136
+ * You must specify exactly one destination owner via `team` or `user`. Callers
137
+ * authenticated as an app (developer portal) may omit the owner — the clone is
138
+ * then scoped to the system owner automatically.
139
+ * Use `virtual_path` and `lookup_key` to override the corresponding fields on the
140
+ * clone; omitting them carries the values from the source.
141
+ * @param system - Identifier of the source system config — either its `virtual_path` or its `lookup_key`.
142
+ * @param input - Request body.
143
+ * @param input.lookup_key - Override the `lookup_key` on the cloned config. When omitted, the source value is used.
144
+ * @param input.org - Organization ID (`org_...`) to scope the clone to. When set, must match the authenticated viewer's org.
145
+ * @param input.team - Team ID (`tea_...`) that will own the cloned config. Required unless `user` is provided or the caller is app-scoped.
146
+ * @param input.user - User ID (`usr_...`) that will own the cloned config. Required unless `team` is provided or the caller is app-scoped.
147
+ * @param input.virtual_path - Override the `virtual_path` on the cloned config. When omitted, the source value is used.
148
+ * @returns The newly created config, including all cloned fields and its assigned ID.
149
+ */
54
150
  clone(system: string, input: {
55
151
  lookup_key?: string | undefined;
56
152
  org?: string | undefined;
@@ -64,17 +160,44 @@ export declare class ConfigResource {
64
160
  readonly kinds: KindResource;
65
161
  readonly system: SystemResource;
66
162
  constructor(http: HttpClient);
163
+ /**
164
+ * List configs
165
+ * Returns all configs owned by the specified owner. Exactly one owner selector
166
+ * (`team`, `user`, or `agent`) must be provided. Passing an unknown or
167
+ * inaccessible owner returns an empty `data` array rather than an error, to
168
+ * avoid leaking information about which teams, users, or agents exist.
169
+ * Use the `kind`, `lookup_key`, `path_prefix`, `parents`, and
170
+ * `parent_solutions` params to narrow results. Private config kinds are always
171
+ * excluded from the response regardless of the viewer's permissions.
172
+ * Results are not paginated; all matching configs are returned in a single
173
+ * response.
174
+ * @param params - Query parameters.
175
+ * @param params.team - Team ID (`team_...`) whose configs to list. Mutually exclusive with `user` and `agent`.
176
+ * @param params.user - User ID (`usr_...`) whose configs to list. Defaults to the current user when the viewer is a user and no owner selector is provided. Mutually exclusive with `team` and `agent`.
177
+ * @param params.agent - Agent ID (`agt_...`) whose configs to list. Mutually exclusive with `team` and `user`.
178
+ * @param params.kind - Filter results to configs of this kind, e.g. `"Agent"` or `"APITool"`. Omit to return configs of all non-private kinds.
179
+ * @param params.lookupKey - Filter to the config with exactly this `lookup_key`. Returns at most one result.
180
+ * @param params.pathPrefix - Filter to configs whose `virtual_path` starts with this prefix, e.g. `"my-agent/"`. Useful for listing files within a folder.
181
+ * @param params.parents - Filter to configs that are children of any of the listed parent config IDs (`cfg_...`). Pass a single ID to retrieve all children of one bundle.
182
+ * @param params.parentSolutions - Filter to configs that were imported as part of any of the listed solution config IDs (`cfg_...`). Useful for identifying all files that arrived with a given solution.
183
+ * @returns Successful response
184
+ */
67
185
  list(params?: {
68
186
  team?: string;
69
187
  user?: string;
188
+ agent?: string;
70
189
  kind?: string;
71
190
  lookupKey?: string;
191
+ pathPrefix?: string;
72
192
  parents?: string[];
193
+ parentSolutions?: string[];
73
194
  }): Promise<{
74
195
  data: {
196
+ agent?: string | undefined;
75
197
  created_at?: string | undefined;
76
198
  current_version?: {
77
199
  change_description?: string | undefined;
200
+ content_hash?: string | undefined;
78
201
  created_at?: string | undefined;
79
202
  data?: Record<string, unknown> | undefined;
80
203
  id: string;
@@ -89,6 +212,7 @@ export declare class ConfigResource {
89
212
  mime_type?: string | undefined;
90
213
  org?: string | undefined;
91
214
  parent?: string | undefined;
215
+ parent_solution?: string | undefined;
92
216
  raw_content?: string | undefined;
93
217
  relative_path?: string | undefined;
94
218
  sandbox?: string | undefined;
@@ -98,69 +222,370 @@ export declare class ConfigResource {
98
222
  virtual_path?: string | undefined;
99
223
  }[];
100
224
  }>;
225
+ /**
226
+ * Create a config
227
+ * Creates a new config and its first version. Returns 201 on success.
228
+ * A config is uniquely identified within an app + org scope by its
229
+ * `virtual_path` or `lookup_key`. Creating a config at a path that already
230
+ * exists (including archived configs) returns 409. To adopt an existing config
231
+ * at that path and re-own it instead, pass `take_ownership: true` — this
232
+ * requires modify rights on the existing row (developer or all-powerful viewer).
233
+ * The owner is resolved from the explicit selector params (`team`, `user`,
234
+ * `agent`, or `system`). Developer and all-powerful viewers default to system
235
+ * ownership when no explicit selector is provided. Exactly one owner selector
236
+ * may be set; conflicting selectors return 422.
237
+ * Requires app scope.
238
+ * @param input - Request body.
239
+ * @param input.agent - Agent ID (`agt_...`) to assign as the config owner. Mutually exclusive with `team`, `user`, and `system`.
240
+ * @param input.change_description - Human-readable description of this initial version, stored on the version record.
241
+ * @param input.data - Arbitrary key-value metadata stored on the version alongside the content.
242
+ * @param input.kind - Config kind that determines the schema and behavior of the config, e.g. `"Agent"` or `"APITool"`.
243
+ * @param input.lookup_key - Optional stable key for looking up this config independent of its `virtual_path`. Must be unique within the app + org scope across all owners.
244
+ * @param input.mime_type - MIME type of `raw_content`, e.g. `"application/x-yaml"` or `"application/json"`.
245
+ * @param input.org - Organization ID (`org_...`) to scope the config to a specific org.
246
+ * @param input.parent - Parent config ID (`cfg_...`) for bundle children, e.g. files belonging to a Skill. Required together with `relative_path` when creating a child config.
247
+ * @param input.parent_solution - Solution config ID (`cfg_...`) that this config was imported with. Records provenance for configs that arrive as part of a solution bundle.
248
+ * @param input.raw_content - Raw content bytes for the first version. Accepted formats depend on `mime_type`; typical values are YAML or JSON text.
249
+ * @param input.relative_path - Path of this config within its parent bundle, e.g. `"prompts/system.md"`. Required when `parent` is set.
250
+ * @param input.system - Set `true` to create a system-owned config (no team, user, or agent owner). Requires a developer, all-powerful, or app system-user viewer, or an org admin creating an org-scoped system config. Mutually exclusive with `team`, `user`, and `agent`.
251
+ * @param input.take_ownership - When `true` and a config already exists at the specified `virtual_path` or `lookup_key` under a different owner, adopt that config rather than returning 409: the existing row is re-owned to the requested owner, unarchived if necessary, and this content is saved as its next version. Requires modify rights on the existing row (developer or all-powerful viewer).
252
+ * @param input.team - Team ID (`team_...`) to assign as the config owner. Mutually exclusive with `user`, `agent`, and `system`.
253
+ * @param input.user - User ID (`usr_...`) to assign as the config owner. Mutually exclusive with `team`, `agent`, and `system`.
254
+ * @param input.virtual_path - Human-readable path that uniquely identifies the config within its owner scope, e.g. `"my-agent/v1"`. Must be unique within the app + org + owner combination.
255
+ * @returns The newly created config, including its first version.
256
+ */
101
257
  create(input: {
258
+ agent?: string | undefined;
102
259
  change_description?: string | undefined;
103
260
  data?: Record<string, unknown> | undefined;
104
261
  kind: string;
105
262
  lookup_key?: string | undefined;
106
263
  mime_type: string;
264
+ org?: string | undefined;
107
265
  parent?: string | undefined;
266
+ parent_solution?: string | undefined;
108
267
  raw_content: string;
109
268
  relative_path?: string | undefined;
269
+ system?: boolean | undefined;
270
+ take_ownership?: boolean | undefined;
110
271
  team?: string | undefined;
111
272
  user?: string | undefined;
112
273
  virtual_path?: string | undefined;
113
274
  }): Promise<Config>;
275
+ /**
276
+ * Encrypt a secret for use in a config
277
+ * Encrypts a plaintext secret and returns a ciphertext string safe for
278
+ * embedding directly in config content using the `secret_value!` interpolation
279
+ * syntax. The ciphertext is bound to the app's (or org's) key-encryption key
280
+ * (KEK) so it can only be decrypted at runtime within the same scope.
281
+ * When `org` is provided, the KEK for that org is used; otherwise the
282
+ * viewer's own org KEK is used, falling back to the app-level KEK for viewers
283
+ * with no org context.
284
+ * The plaintext is never stored. Requires app scope.
285
+ * @param input - Request body.
286
+ * @param input.org - Organization ID (`org_...`) whose KEK to use for encryption. Overrides the viewer's own org. Omit to use the viewer's org KEK, or the app-level KEK when the viewer has no org context.
287
+ * @param input.plaintext - The secret value to encrypt. Never stored; only the resulting ciphertext is returned.
288
+ * @returns Successful response
289
+ */
114
290
  encryptSecret(input: {
291
+ org?: string | undefined;
115
292
  plaintext: string;
116
293
  }): Promise<{
117
294
  encrypted_value: string;
118
295
  }>;
296
+ /**
297
+ * List config facets
298
+ * Returns the distinct config kinds and leading `virtual_path` prefixes
299
+ * available to the viewer, each with a count of matching configs. Use this
300
+ * to populate filter UI dropdowns without making a full list request.
301
+ * The counts reflect every config the viewer can see in the requested scope,
302
+ * independent of any kind, path-prefix, or lookup-key filters that might be
303
+ * applied on a concurrent list request. This means the UI always shows every
304
+ * option the viewer could pick, not just the values on the current filtered page.
305
+ * Scoping follows the same rules as the list endpoint: developer and
306
+ * all-powerful viewers see facets across all owners in the app; org-scoped
307
+ * viewers receive their own configs' facets merged with system-owned facets;
308
+ * all other viewers see only their resolved owner's configs.
309
+ * @param params - Query parameters.
310
+ * @param params.app - App ID (`app_...`). Present when mounted under the developer scope; injected automatically.
311
+ * @param params.team - Team ID (`team_...`) to scope facets to that team's configs. Mutually exclusive with `user`.
312
+ * @param params.user - User ID (`usr_...`) to scope facets to that user's configs. Defaults to the current user when the viewer is a user and no selector is provided. Mutually exclusive with `team`.
313
+ * @param params.org - Organization ID (`org_...`) to narrow facets to configs belonging to that org.
314
+ * @returns Distinct config kinds and `virtual_path` prefixes with per-value counts.
315
+ */
316
+ facets(params?: {
317
+ app?: string;
318
+ team?: string;
319
+ user?: string;
320
+ org?: string;
321
+ }): Promise<ConfigFacets>;
322
+ /**
323
+ * Validate config content
324
+ * Validates raw config content against the schema for a given config kind
325
+ * without saving anything. Returns a structured result indicating whether the
326
+ * content is valid and, if not, a list of error messages.
327
+ * Use this endpoint to give users early feedback before calling create or
328
+ * update. The owner context is used for any kind-specific validation rules that
329
+ * are owner-aware; provide the same owner you intend to use on the write call.
330
+ * Requires app scope.
331
+ * @param input - Request body.
332
+ * @param input.agent - Agent ID (`agt_...`) that would own the config. Used for owner-aware validation rules. Mutually exclusive with `team` and `user`.
333
+ * @param input.kind - Config kind whose schema the content is validated against, e.g. `"Agent"` or `"APITool"`.
334
+ * @param input.mime_type - MIME type of `raw_content`, e.g. `"application/x-yaml"` or `"application/json"`. Used to parse the content before validation.
335
+ * @param input.raw_content - Raw content bytes to validate. Parsed according to `mime_type` before schema validation.
336
+ * @param input.team - Team ID (`team_...`) that would own the config. Used for owner-aware validation rules. Mutually exclusive with `user` and `agent`.
337
+ * @param input.user - User ID (`usr_...`) that would own the config. Used for owner-aware validation rules. Mutually exclusive with `team` and `agent`.
338
+ * @returns Validation outcome. Always HTTP 200; check the `valid` field to determine success. Includes `errors` when `valid` is `false`.
339
+ */
119
340
  validate(input: {
341
+ agent?: string | undefined;
120
342
  kind: string;
121
343
  mime_type: string;
122
344
  raw_content: string;
123
345
  team?: string | undefined;
124
346
  user?: string | undefined;
125
347
  }): Promise<ValidationResult>;
348
+ /**
349
+ * Delete a config
350
+ * Permanently deletes a config and all its associated versions. This action is
351
+ * irreversible. To soft-delete a config while retaining its history, use the
352
+ * archive endpoint instead.
353
+ * The config may be addressed by its ID (`cfg_...`), `virtual_path`, or
354
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, you must
355
+ * supply exactly one owner selector (`team`, `user`, `agent`, or `system`);
356
+ * passing an owner selector when addressing by ID returns 422.
357
+ * Returns 204 No Content on success. Requires app scope. The viewer must have
358
+ * modify rights on the config.
359
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
360
+ * @returns Empty body. HTTP 204 indicates the config and all its versions were permanently deleted.
361
+ */
126
362
  delete(config: string): Promise<void>;
363
+ /**
364
+ * Retrieve a config
365
+ * Returns a single config identified by its ID, `virtual_path`, or
366
+ * `lookup_key`. The config object includes its current version metadata but
367
+ * not the raw content bytes; use the content endpoint to fetch the raw content.
368
+ * When addressing by `lookup_key` or `virtual_path`, you must supply exactly
369
+ * one owner selector (`team`, `user`, `agent`, or `system`). Passing an owner
370
+ * selector when addressing by ID (`cfg_...`) returns 422. Both `not_found`
371
+ * and `forbidden` outcomes are surfaced as 404 to avoid leaking config
372
+ * existence.
373
+ * Requires app scope.
374
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
375
+ * @param params - Query parameters.
376
+ * @param params.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
377
+ * @param params.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
378
+ * @param params.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
379
+ * @param params.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
380
+ * @param params.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org.
381
+ * @returns The requested config object.
382
+ */
127
383
  get(config: string, params?: {
128
384
  team?: string;
129
385
  user?: string;
386
+ agent?: string;
387
+ system?: boolean;
388
+ org?: string;
130
389
  }): Promise<Config>;
131
- replace(config: string, input: {
390
+ /**
391
+ * Update a config
392
+ * Updates an existing config. When `raw_content` is provided, a new version is
393
+ * created and becomes the current version. When `raw_content` is omitted, only
394
+ * metadata fields (`virtual_path`, `lookup_key`, `relative_path`,
395
+ * `parent_solution`) are updated without creating a new version.
396
+ * Use `expected_version` for optimistic concurrency control: if the config's
397
+ * current version number does not match the supplied value the request returns
398
+ * 409. This prevents overwriting concurrent edits.
399
+ * The config may be addressed by its ID (`cfg_...`), `virtual_path`, or
400
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, you must
401
+ * supply exactly one owner selector (`team`, `user`, `agent`, or `system`).
402
+ * Both `not_found` and `forbidden` outcomes are surfaced as 404.
403
+ * Requires app scope. The viewer must have modify rights on the config.
404
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
405
+ * @param input - Request body.
406
+ * @param input.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
407
+ * @param input.change_description - Human-readable description of this update, stored on the new version record.
408
+ * @param input.data - Arbitrary key-value metadata to store on the new version alongside the content.
409
+ * @param input.expected_version - Version number the caller expects to be current. If the config's actual current version does not match, the request returns 409 to signal a concurrent modification. Omit to skip optimistic locking.
410
+ * @param input.lookup_key - New `lookup_key` for the config. Updates the key without creating a new version when `raw_content` is omitted.
411
+ * @param input.mime_type - MIME type of `raw_content`, e.g. `"application/x-yaml"` or `"application/json"`. Defaults to the existing MIME type when `raw_content` is provided without this field.
412
+ * @param input.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org.
413
+ * @param input.parent_solution - Solution config ID (`cfg_...`) to set as the config's parent solution provenance. Clears the value when set to an empty string.
414
+ * @param input.raw_content - New raw content bytes for the config. When provided, a new version is created. Omit to perform a metadata-only update without incrementing the version.
415
+ * @param input.relative_path - Updated path of this config within its parent bundle. Only meaningful when the config has a `parent`.
416
+ * @param input.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
417
+ * @param input.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
418
+ * @param input.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
419
+ * @param input.virtual_path - New `virtual_path` for the config. Updates the path without creating a new version when `raw_content` is omitted.
420
+ * @returns The config reflecting the applied update.
421
+ */
422
+ update(config: string, input: {
423
+ agent?: string | undefined;
132
424
  change_description?: string | undefined;
133
425
  data?: Record<string, unknown> | undefined;
426
+ expected_version?: number | undefined;
134
427
  lookup_key?: string | undefined;
135
- mime_type: string;
136
- raw_content: string;
428
+ mime_type?: string | undefined;
429
+ org?: string | undefined;
430
+ parent_solution?: string | undefined;
431
+ raw_content?: string | undefined;
137
432
  relative_path?: string | undefined;
433
+ system?: boolean | undefined;
138
434
  team?: string | undefined;
139
435
  user?: string | undefined;
140
436
  virtual_path?: string | undefined;
141
437
  }): Promise<Config>;
438
+ /**
439
+ * Archive a config
440
+ * Soft-deletes a config by marking it as archived. Archived configs are hidden
441
+ * from list and show endpoints but are not permanently removed; use the
442
+ * unarchive endpoint to restore one, or the delete endpoint for permanent
443
+ * removal.
444
+ * The config may be addressed by its ID (`cfg_...`), `virtual_path`, or
445
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, you must
446
+ * supply exactly one owner selector (`team`, `user`, `agent`, or `system`);
447
+ * passing an owner selector when addressing by ID returns 422.
448
+ * Requires app scope. The viewer must have modify rights on the config.
449
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. `virtual_path` values should be URL-encoded if they contain slashes.
450
+ * @param input - Request body.
451
+ * @param input.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
452
+ * @param input.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org. Useful when the viewer has access to multiple orgs.
453
+ * @param input.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
454
+ * @param input.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
455
+ * @param input.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
456
+ * @returns The config in its newly archived state.
457
+ */
142
458
  archive(config: string, input: {
459
+ agent?: string | undefined;
460
+ org?: string | undefined;
461
+ system?: boolean | undefined;
462
+ team?: string | undefined;
463
+ user?: string | undefined;
464
+ }): Promise<Config>;
465
+ /**
466
+ * Transfer ownership of a config
467
+ * Transfers a config to a new owner (`team`, `user`, `agent`, or `system`).
468
+ * Exactly one of the new-owner selectors must be provided. The config must be
469
+ * addressed by its ID (`cfg_...` or UUID); `virtual_path` and `lookup_key`
470
+ * are not accepted to avoid ambiguity — look up the ID first if needed.
471
+ * For non-system targets the new owner's org is derived automatically from the
472
+ * target entity; supplying `org` in that case returns 422. For `system:true`
473
+ * targets, `org` controls the resulting org scope: omit to keep the existing
474
+ * `org_id`, supply a value to set a specific org, or pass `null`/blank to make
475
+ * the config app-level (operator viewers only).
476
+ * Operator viewers (developer credentials or all-powerful viewers) may transfer
477
+ * to any owner. All other viewers are restricted to owners they can themselves
478
+ * access (team membership, user identity, agent scope, or `system` with the
479
+ * appropriate privilege).
480
+ * Requires app scope. The viewer must have modify rights on the config.
481
+ * @param config - Config ID in id-form: `cfg_...` or a UUID. `lookup_key` and `virtual_path` are not accepted — retrieve the config ID first if you only have a path.
482
+ * @param input - Request body.
483
+ * @param input.agent - New owner: Agent ID (`agt_...`). Mutually exclusive with `team`, `user`, and `system`.
484
+ * @param input.org - Only valid when `system:true`. Omit to keep the config's existing `org_id`; supply an org ID (`org_...`) to set a specific org scope; pass blank or `null` to make the config app-level (operator viewers only). Setting `org` for `team`, `user`, or `agent` targets returns 422.
485
+ * @param input.system - Set `true` to transfer to system ownership (app-level or org-scoped). Requires a privileged viewer. Mutually exclusive with `team`, `user`, and `agent`.
486
+ * @param input.team - New owner: Team ID (`team_...`). Mutually exclusive with `user`, `agent`, and `system`.
487
+ * @param input.user - New owner: User ID (`usr_...`). Mutually exclusive with `team`, `agent`, and `system`.
488
+ * @returns The config reflecting its new ownership.
489
+ */
490
+ changeOwner(config: string, input: {
491
+ agent?: string | undefined;
492
+ org?: string | undefined;
493
+ system?: boolean | undefined;
143
494
  team?: string | undefined;
144
495
  user?: string | undefined;
145
496
  }): Promise<Config>;
497
+ /**
498
+ * Retrieve a config's raw content
499
+ * Returns the raw byte content of a config's current version. The response
500
+ * `Content-Type` header reflects the config's stored MIME type unless a
501
+ * `format` conversion is requested.
502
+ * Pass `format: "yaml"` or `format: "json"` to convert between YAML and JSON
503
+ * on the fly. Conversion is only supported between these two formats; requesting
504
+ * a conversion that is not possible returns 400.
505
+ * By default, `virtual_path` and other platform-injected protected fields are
506
+ * embedded in the returned content. Set `inject_protected_fields: false` to
507
+ * return the stored raw bytes exactly as written.
508
+ * The config may be addressed by ID (`cfg_...`), `virtual_path`, or
509
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, exactly one
510
+ * owner selector (`team`, `user`, `agent`, or `system`) is required.
511
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
512
+ * @param params - Query parameters.
513
+ * @param params.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
514
+ * @param params.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
515
+ * @param params.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
516
+ * @param params.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
517
+ * @param params.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org.
518
+ * @param params.format - Output format for content conversion. One of `"yaml"` or `"json"`. Omit to return the content in its stored format. Returns 400 if conversion is not possible.
519
+ * @param params.injectProtectedFields - Whether to inject platform-managed protected fields (such as `virtual_path`) into the returned content. Defaults to `true`. Set to `false` to receive the raw stored bytes.
520
+ * @returns Raw config content in the stored or requested format.
521
+ */
146
522
  content(config: string, params?: {
147
523
  team?: string;
148
524
  user?: string;
525
+ agent?: string;
526
+ system?: boolean;
527
+ org?: string;
149
528
  format?: string;
529
+ injectProtectedFields?: boolean;
150
530
  }): Promise<{
151
531
  content: ArrayBuffer;
152
532
  mimeType: string;
153
533
  }>;
534
+ /**
535
+ * Unarchive a config
536
+ * Restores a previously archived config, making it visible again in list and
537
+ * show responses. The config's content and version history are unchanged.
538
+ * The config may be addressed by its ID (`cfg_...`), `virtual_path`, or
539
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, you must
540
+ * supply exactly one owner selector (`team`, `user`, `agent`, or `system`);
541
+ * passing an owner selector when addressing by ID returns 422.
542
+ * Requires app scope. The viewer must have modify rights on the config.
543
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
544
+ * @param input - Request body.
545
+ * @param input.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
546
+ * @param input.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org.
547
+ * @param input.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
548
+ * @param input.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
549
+ * @param input.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
550
+ * @returns The config in its newly restored (active) state.
551
+ */
154
552
  unarchive(config: string, input: {
553
+ agent?: string | undefined;
554
+ org?: string | undefined;
555
+ system?: boolean | undefined;
155
556
  team?: string | undefined;
156
557
  user?: string | undefined;
157
558
  }): Promise<Config>;
559
+ /**
560
+ * List a config's version history
561
+ * Returns all versions of a config in the order they were created, most recent
562
+ * first. Each version includes its version number, content metadata, and change
563
+ * description. The raw content bytes for a specific version are not included;
564
+ * use the content endpoint to fetch them.
565
+ * The config may be addressed by its ID (`cfg_...`), `virtual_path`, or
566
+ * `lookup_key`. When addressing by `lookup_key` or `virtual_path`, you must
567
+ * supply exactly one owner selector (`team`, `user`, `agent`, or `system`).
568
+ * Both `not_found` and `forbidden` outcomes are surfaced as 404.
569
+ * Requires app scope.
570
+ * @param config - Config identifier. Accepts a config ID (`cfg_...`), a `virtual_path`, or a `lookup_key`. URL-encode `virtual_path` values that contain slashes.
571
+ * @param params - Query parameters.
572
+ * @param params.team - Team ID (`team_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
573
+ * @param params.user - User ID (`usr_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
574
+ * @param params.agent - Agent ID (`agt_...`) to use as the owner when resolving by `virtual_path` or `lookup_key`.
575
+ * @param params.system - Set `true` to resolve a system-owned config by `virtual_path` or `lookup_key`. Requires a privileged viewer (developer or all-powerful) or an org admin.
576
+ * @param params.org - Organization ID (`org_...`) to narrow the lookup to configs belonging to that org.
577
+ * @returns Successful response
578
+ */
158
579
  versions(config: string, params?: {
159
580
  team?: string;
160
581
  user?: string;
582
+ agent?: string;
583
+ system?: boolean;
584
+ org?: string;
161
585
  }): Promise<{
162
586
  versions: {
163
587
  change_description?: string | undefined;
588
+ content_hash?: string | undefined;
164
589
  created_at?: string | undefined;
165
590
  data?: Record<string, unknown> | undefined;
166
591
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE9B,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,cAAc,EAAE,MAAM,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,gBAAgB,EAAE,OAAO,CAAC;YAAC,gBAAgB,EAAE,OAAO,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;IAIzL,MAAM,CAAC,IAAI,EAAE,MAAM,GAA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