@converge.ai/a13n 0.1.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 +1265 -1175
- package/dist/resources/generated.d.ts.map +1 -1
- package/dist/resources/generated.js +82 -0
- package/dist/resources/generated.js.map +1 -1
- package/dist/schema.d.ts +417 -4
- package/dist/schema.d.ts.map +1 -1
- package/dist/semantic.d.ts +2 -0
- package/dist/semantic.d.ts.map +1 -1
- package/dist/session-stream-schema.d.ts +65 -2
- package/dist/session-stream-schema.d.ts.map +1 -1
- package/dist/session-stream-validation.d.ts.map +1 -1
- package/dist/session-stream-validation.js +2491 -1298
- package/dist/session-stream-validation.js.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 +6 -0
- package/dist/workspace-scope.js.map +1 -1
- package/openapi.json +1078 -148
- package/package.json +1 -1
|
@@ -31,6 +31,9 @@ export class ServiceResources {
|
|
|
31
31
|
get clientEnvironments() {
|
|
32
32
|
return new ClientEnvironmentsResource(this.transport, "/api/v1/client-environments");
|
|
33
33
|
}
|
|
34
|
+
get cloudflareDeployments() {
|
|
35
|
+
return new CloudflareDeploymentsResource(this.transport, "/api/v1/cloudflare-deployments");
|
|
36
|
+
}
|
|
34
37
|
get connections() {
|
|
35
38
|
return new ConnectionsResource(this.transport, "/api/v1/connections");
|
|
36
39
|
}
|
|
@@ -874,6 +877,61 @@ export class ClientEnvironmentsEnvironmentIdStatusResource {
|
|
|
874
877
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
875
878
|
}
|
|
876
879
|
}
|
|
880
|
+
export class CloudflareDeploymentsResource {
|
|
881
|
+
transport;
|
|
882
|
+
path;
|
|
883
|
+
constructor(transport, path) {
|
|
884
|
+
this.transport = transport;
|
|
885
|
+
this.path = path;
|
|
886
|
+
}
|
|
887
|
+
/** GET /api/v1/cloudflare-deployments. Preserves response metadata; mutations are not replayed. */
|
|
888
|
+
list(options = {}) {
|
|
889
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
890
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
891
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
892
|
+
}
|
|
893
|
+
/** POST /api/v1/cloudflare-deployments. Preserves response metadata; mutations are not replayed. */
|
|
894
|
+
create(body, options = {}) {
|
|
895
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
896
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
897
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
898
|
+
}
|
|
899
|
+
ref(value) {
|
|
900
|
+
return new CloudflareDeploymentsDeploymentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
export class CloudflareDeploymentsDeploymentIdResource {
|
|
904
|
+
transport;
|
|
905
|
+
path;
|
|
906
|
+
constructor(transport, path) {
|
|
907
|
+
this.transport = transport;
|
|
908
|
+
this.path = path;
|
|
909
|
+
}
|
|
910
|
+
/** GET /api/v1/cloudflare-deployments/{deployment_id}. Preserves response metadata; mutations are not replayed. */
|
|
911
|
+
get(options = {}) {
|
|
912
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
913
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
914
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
915
|
+
}
|
|
916
|
+
/** POST /api/v1/cloudflare-deployments/{deployment_id}/retire. Preserves response metadata; mutations are not replayed. */
|
|
917
|
+
retire(options) {
|
|
918
|
+
return jsonRequest(this.transport, "POST", this.path + "/retire", undefined, Object.fromEntries(Object.entries({
|
|
919
|
+
"If-Match": options.ifMatch,
|
|
920
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
921
|
+
})
|
|
922
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
923
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
924
|
+
}
|
|
925
|
+
/** POST /api/v1/cloudflare-deployments/{deployment_id}/retry. Preserves response metadata; mutations are not replayed. */
|
|
926
|
+
retry(body, options) {
|
|
927
|
+
return jsonRequest(this.transport, "POST", this.path + "/retry", body, Object.fromEntries(Object.entries({
|
|
928
|
+
"If-Match": options.ifMatch,
|
|
929
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
930
|
+
})
|
|
931
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
932
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
933
|
+
}
|
|
934
|
+
}
|
|
877
935
|
export class ConnectionsResource {
|
|
878
936
|
transport;
|
|
879
937
|
path;
|
|
@@ -4959,6 +5017,9 @@ export class UsageResource {
|
|
|
4959
5017
|
get runs() {
|
|
4960
5018
|
return new UsageRunsResource(this.transport, this.path + "/runs");
|
|
4961
5019
|
}
|
|
5020
|
+
get sessions() {
|
|
5021
|
+
return new UsageSessionsResource(this.transport, this.path + "/sessions");
|
|
5022
|
+
}
|
|
4962
5023
|
}
|
|
4963
5024
|
export class UsageAgentsResource {
|
|
4964
5025
|
transport;
|
|
@@ -5108,6 +5169,27 @@ export class UsageRunsResource {
|
|
|
5108
5169
|
return flattenPages(this.pages(options), (value) => value);
|
|
5109
5170
|
}
|
|
5110
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
|
+
}
|
|
5111
5193
|
export class UsersResource {
|
|
5112
5194
|
transport;
|
|
5113
5195
|
path;
|