@converge.ai/a13n 0.3.0 → 0.3.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.
- package/dist/resources/generated.d.ts +172 -143
- package/dist/resources/generated.d.ts.map +1 -1
- package/dist/resources/generated.js +24 -0
- package/dist/resources/generated.js.map +1 -1
- package/dist/schema.d.ts +76 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/semantic.d.ts.map +1 -1
- package/dist/workflow.d.ts +6 -0
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +3 -0
- package/dist/workflow.js.map +1 -1
- package/dist/workspace-scope.d.ts.map +1 -1
- package/dist/workspace-scope.js +1 -0
- package/dist/workspace-scope.js.map +1 -1
- package/openapi.json +228 -0
- package/package.json +1 -1
|
@@ -5017,6 +5017,9 @@ export class UsageResource {
|
|
|
5017
5017
|
get runs() {
|
|
5018
5018
|
return new UsageRunsResource(this.transport, this.path + "/runs");
|
|
5019
5019
|
}
|
|
5020
|
+
get sessions() {
|
|
5021
|
+
return new UsageSessionsResource(this.transport, this.path + "/sessions");
|
|
5022
|
+
}
|
|
5020
5023
|
}
|
|
5021
5024
|
export class UsageAgentsResource {
|
|
5022
5025
|
transport;
|
|
@@ -5166,6 +5169,27 @@ export class UsageRunsResource {
|
|
|
5166
5169
|
return flattenPages(this.pages(options), (value) => value);
|
|
5167
5170
|
}
|
|
5168
5171
|
}
|
|
5172
|
+
export class UsageSessionsResource {
|
|
5173
|
+
transport;
|
|
5174
|
+
path;
|
|
5175
|
+
constructor(transport, path) {
|
|
5176
|
+
this.transport = transport;
|
|
5177
|
+
this.path = path;
|
|
5178
|
+
}
|
|
5179
|
+
/** GET /api/v1/usage/sessions. Preserves response metadata; mutations are not replayed. */
|
|
5180
|
+
list(options) {
|
|
5181
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
5182
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
5183
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
5184
|
+
}
|
|
5185
|
+
pages(options) {
|
|
5186
|
+
const query = snapshot(options.query ?? {});
|
|
5187
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
5188
|
+
}
|
|
5189
|
+
items(options) {
|
|
5190
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5169
5193
|
export class UsersResource {
|
|
5170
5194
|
transport;
|
|
5171
5195
|
path;
|