@mutagent/sdk 0.8.23 → 0.8.25
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/README.md +384 -373
- package/dist/commonjs/funcs/helix-cloud-send-helix-cloud-session-input.d.ts +1 -1
- package/dist/commonjs/funcs/helix-cloud-send-helix-cloud-session-input.js +1 -1
- package/dist/commonjs/funcs/helix-record-helix-install-event.d.ts +18 -0
- package/dist/commonjs/funcs/helix-record-helix-install-event.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-record-helix-install-event.js +115 -0
- package/dist/commonjs/funcs/helix-record-helix-install-event.js.map +1 -0
- package/dist/commonjs/funcs/helix-record-helix-install.d.ts +20 -0
- package/dist/commonjs/funcs/helix-record-helix-install.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-record-helix-install.js +121 -0
- package/dist/commonjs/funcs/helix-record-helix-install.js.map +1 -0
- package/dist/commonjs/funcs/organizations-check-organization-slug.d.ts +1 -1
- package/dist/commonjs/funcs/organizations-check-organization-slug.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizations-check-organization-slug.js +1 -1
- package/dist/commonjs/funcs/organizations-check-organization-slug.js.map +1 -1
- package/dist/commonjs/funcs/reports-upload-report.d.ts +1 -1
- package/dist/commonjs/funcs/reports-upload-report.js +1 -1
- package/dist/commonjs/funcs/views-list-sandbox-providers-view.d.ts +1 -1
- package/dist/commonjs/funcs/views-list-sandbox-providers-view.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/errors/check-organization-slug.d.ts +5 -5
- package/dist/commonjs/models/errors/check-organization-slug.d.ts.map +1 -1
- package/dist/commonjs/models/errors/check-organization-slug.js +6 -6
- package/dist/commonjs/models/errors/check-organization-slug.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +2 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +2 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/record-helix-install-event.d.ts +47 -0
- package/dist/commonjs/models/errors/record-helix-install-event.d.ts.map +1 -0
- package/dist/commonjs/models/errors/record-helix-install-event.js +98 -0
- package/dist/commonjs/models/errors/record-helix-install-event.js.map +1 -0
- package/dist/commonjs/models/errors/record-helix-install.d.ts +47 -0
- package/dist/commonjs/models/errors/record-helix-install.d.ts.map +1 -0
- package/dist/commonjs/models/errors/record-helix-install.js +97 -0
- package/dist/commonjs/models/errors/record-helix-install.js.map +1 -0
- package/dist/commonjs/models/helix-cloud-approval.d.ts +2 -2
- package/dist/commonjs/models/helix-cloud-session.d.ts +3 -3
- package/dist/commonjs/models/helix-cloud-session.js +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/record-helix-install-event.d.ts +77 -0
- package/dist/commonjs/models/operations/record-helix-install-event.d.ts.map +1 -0
- package/dist/commonjs/models/operations/record-helix-install-event.js +77 -0
- package/dist/commonjs/models/operations/record-helix-install-event.js.map +1 -0
- package/dist/commonjs/models/operations/record-helix-install.d.ts +57 -0
- package/dist/commonjs/models/operations/record-helix-install.d.ts.map +1 -0
- package/dist/commonjs/models/operations/record-helix-install.js +64 -0
- package/dist/commonjs/models/operations/record-helix-install.js.map +1 -0
- package/dist/commonjs/models/sandbox-provider-facts.d.ts +3 -3
- package/dist/commonjs/models/session-input-accepted.d.ts +3 -3
- package/dist/commonjs/sdk/helix-cloud.d.ts +1 -1
- package/dist/commonjs/sdk/helix-cloud.js +1 -1
- package/dist/commonjs/sdk/helix.d.ts +19 -0
- package/dist/commonjs/sdk/helix.d.ts.map +1 -0
- package/dist/commonjs/sdk/helix.js +32 -0
- package/dist/commonjs/sdk/helix.js.map +1 -0
- package/dist/commonjs/sdk/reports.d.ts +1 -1
- package/dist/commonjs/sdk/reports.js +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/views.d.ts +1 -1
- package/dist/commonjs/sdk/views.js +1 -1
- package/dist/esm/funcs/helix-cloud-send-helix-cloud-session-input.d.ts +1 -1
- package/dist/esm/funcs/helix-cloud-send-helix-cloud-session-input.js +1 -1
- package/dist/esm/funcs/helix-record-helix-install-event.d.ts +18 -0
- package/dist/esm/funcs/helix-record-helix-install-event.d.ts.map +1 -0
- package/dist/esm/funcs/helix-record-helix-install-event.js +79 -0
- package/dist/esm/funcs/helix-record-helix-install-event.js.map +1 -0
- package/dist/esm/funcs/helix-record-helix-install.d.ts +20 -0
- package/dist/esm/funcs/helix-record-helix-install.d.ts.map +1 -0
- package/dist/esm/funcs/helix-record-helix-install.js +85 -0
- package/dist/esm/funcs/helix-record-helix-install.js.map +1 -0
- package/dist/esm/funcs/organizations-check-organization-slug.d.ts +1 -1
- package/dist/esm/funcs/organizations-check-organization-slug.d.ts.map +1 -1
- package/dist/esm/funcs/organizations-check-organization-slug.js +1 -1
- package/dist/esm/funcs/organizations-check-organization-slug.js.map +1 -1
- package/dist/esm/funcs/reports-upload-report.d.ts +1 -1
- package/dist/esm/funcs/reports-upload-report.js +1 -1
- package/dist/esm/funcs/views-list-sandbox-providers-view.d.ts +1 -1
- package/dist/esm/funcs/views-list-sandbox-providers-view.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/errors/check-organization-slug.d.ts +5 -5
- package/dist/esm/models/errors/check-organization-slug.d.ts.map +1 -1
- package/dist/esm/models/errors/check-organization-slug.js +4 -4
- package/dist/esm/models/errors/check-organization-slug.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +2 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +2 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/record-helix-install-event.d.ts +47 -0
- package/dist/esm/models/errors/record-helix-install-event.d.ts.map +1 -0
- package/dist/esm/models/errors/record-helix-install-event.js +60 -0
- package/dist/esm/models/errors/record-helix-install-event.js.map +1 -0
- package/dist/esm/models/errors/record-helix-install.d.ts +47 -0
- package/dist/esm/models/errors/record-helix-install.d.ts.map +1 -0
- package/dist/esm/models/errors/record-helix-install.js +59 -0
- package/dist/esm/models/errors/record-helix-install.js.map +1 -0
- package/dist/esm/models/helix-cloud-approval.d.ts +2 -2
- package/dist/esm/models/helix-cloud-session.d.ts +3 -3
- package/dist/esm/models/helix-cloud-session.js +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/record-helix-install-event.d.ts +77 -0
- package/dist/esm/models/operations/record-helix-install-event.d.ts.map +1 -0
- package/dist/esm/models/operations/record-helix-install-event.js +39 -0
- package/dist/esm/models/operations/record-helix-install-event.js.map +1 -0
- package/dist/esm/models/operations/record-helix-install.d.ts +57 -0
- package/dist/esm/models/operations/record-helix-install.d.ts.map +1 -0
- package/dist/esm/models/operations/record-helix-install.js +26 -0
- package/dist/esm/models/operations/record-helix-install.js.map +1 -0
- package/dist/esm/models/sandbox-provider-facts.d.ts +3 -3
- package/dist/esm/models/session-input-accepted.d.ts +3 -3
- package/dist/esm/sdk/helix-cloud.d.ts +1 -1
- package/dist/esm/sdk/helix-cloud.js +1 -1
- package/dist/esm/sdk/helix.d.ts +19 -0
- package/dist/esm/sdk/helix.d.ts.map +1 -0
- package/dist/esm/sdk/helix.js +28 -0
- package/dist/esm/sdk/helix.js.map +1 -0
- package/dist/esm/sdk/reports.d.ts +1 -1
- package/dist/esm/sdk/reports.js +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/views.d.ts +1 -1
- package/dist/esm/sdk/views.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
+
/**
|
|
5
|
+
* Install telemetry event
|
|
6
|
+
*/
|
|
7
|
+
export type RecordHelixInstallRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Installed package identifier
|
|
10
|
+
*/
|
|
11
|
+
pkg: string;
|
|
12
|
+
/**
|
|
13
|
+
* Installed version
|
|
14
|
+
*/
|
|
15
|
+
version: string;
|
|
16
|
+
/**
|
|
17
|
+
* Harness/environment (e.g. claude-code, codex)
|
|
18
|
+
*/
|
|
19
|
+
harness?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Release channel the package came from (e.g. latest, candidate)
|
|
22
|
+
*/
|
|
23
|
+
channel?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Target platform as <os>-<arch> (e.g. darwin-arm64)
|
|
26
|
+
*/
|
|
27
|
+
platform?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Version of the CLI that performed the install
|
|
30
|
+
*/
|
|
31
|
+
cliVersion?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Install telemetry acknowledgement
|
|
35
|
+
*/
|
|
36
|
+
export type RecordHelixInstallResponse = {
|
|
37
|
+
/**
|
|
38
|
+
* Whether the event was accepted (best-effort)
|
|
39
|
+
*/
|
|
40
|
+
recorded: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type RecordHelixInstallRequest$Outbound = {
|
|
44
|
+
pkg: string;
|
|
45
|
+
version: string;
|
|
46
|
+
harness?: string | undefined;
|
|
47
|
+
channel?: string | undefined;
|
|
48
|
+
platform?: string | undefined;
|
|
49
|
+
cliVersion?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const RecordHelixInstallRequest$outboundSchema: z.ZodMiniType<RecordHelixInstallRequest$Outbound, RecordHelixInstallRequest>;
|
|
53
|
+
export declare function recordHelixInstallRequestToJSON(recordHelixInstallRequest: RecordHelixInstallRequest): string;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const RecordHelixInstallResponse$inboundSchema: z.ZodMiniType<RecordHelixInstallResponse, unknown>;
|
|
56
|
+
export declare function recordHelixInstallResponseFromJSON(jsonString: string): SafeParseResult<RecordHelixInstallResponse, SDKValidationError>;
|
|
57
|
+
//# sourceMappingURL=record-helix-install.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-helix-install.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/record-helix-install.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAQzB,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAGP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RecordHelixInstallResponse$inboundSchema = exports.RecordHelixInstallRequest$outboundSchema = void 0;
|
|
40
|
+
exports.recordHelixInstallRequestToJSON = recordHelixInstallRequestToJSON;
|
|
41
|
+
exports.recordHelixInstallResponseFromJSON = recordHelixInstallResponseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.RecordHelixInstallRequest$outboundSchema = z.object({
|
|
47
|
+
pkg: z.string(),
|
|
48
|
+
version: z.string(),
|
|
49
|
+
harness: z.optional(z.string()),
|
|
50
|
+
channel: z.optional(z.string()),
|
|
51
|
+
platform: z.optional(z.string()),
|
|
52
|
+
cliVersion: z.optional(z.string()),
|
|
53
|
+
});
|
|
54
|
+
function recordHelixInstallRequestToJSON(recordHelixInstallRequest) {
|
|
55
|
+
return JSON.stringify(exports.RecordHelixInstallRequest$outboundSchema.parse(recordHelixInstallRequest));
|
|
56
|
+
}
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.RecordHelixInstallResponse$inboundSchema = z.object({
|
|
59
|
+
recorded: types.boolean(),
|
|
60
|
+
});
|
|
61
|
+
function recordHelixInstallResponseFromJSON(jsonString) {
|
|
62
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RecordHelixInstallResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RecordHelixInstallResponse' from JSON`);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=record-helix-install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-helix-install.js","sourceRoot":"","sources":["../../../../src/models/operations/record-helix-install.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,0EAMC;AAUD,gFAQC;AA7FD,+CAAiC;AACjC,qDAAiD;AAEjD,iEAAmD;AAqDnD,gBAAgB;AACH,QAAA,wCAAwC,GAGjD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,wCAAwC,GAGjD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type Capabilities = {
|
|
|
11
11
|
*/
|
|
12
12
|
execStdin: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* A managed agent package can be staged into a
|
|
14
|
+
* A managed agent package can be staged into a sandbox (deploy needs one).
|
|
15
15
|
*/
|
|
16
16
|
stagesPackages: boolean;
|
|
17
17
|
};
|
|
@@ -24,11 +24,11 @@ export type SandboxProviderFacts = {
|
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
|
-
* Where
|
|
27
|
+
* Where sandboxes run: cloud (a managed runtime) or container (a host container); null when the provider declares none.
|
|
28
28
|
*/
|
|
29
29
|
kind: SandboxProviderKindOpen | null;
|
|
30
30
|
/**
|
|
31
|
-
* The cloud region
|
|
31
|
+
* The cloud region sandboxes run in; null for a provider without one.
|
|
32
32
|
*/
|
|
33
33
|
region: string | null;
|
|
34
34
|
/**
|
|
@@ -18,12 +18,12 @@ export type WakeDelivered = {
|
|
|
18
18
|
*/
|
|
19
19
|
sessionId: string;
|
|
20
20
|
/**
|
|
21
|
-
* The restored
|
|
21
|
+
* The generation of the restored sandbox instance
|
|
22
22
|
*/
|
|
23
23
|
generation: number;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
* Present when the send found the session asleep or its
|
|
26
|
+
* Present when the send found the session asleep or its sandbox instance replaced, and restored it from its last checkpoint.
|
|
27
27
|
*/
|
|
28
28
|
export type Wake = WakeDelivered | WakeWaking | discriminatedUnionTypes.Unknown<"state">;
|
|
29
29
|
/**
|
|
@@ -35,7 +35,7 @@ export type SessionInputAccepted = {
|
|
|
35
35
|
*/
|
|
36
36
|
accepted: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Present when the send found the session asleep or its
|
|
38
|
+
* Present when the send found the session asleep or its sandbox instance replaced, and restored it from its last checkpoint.
|
|
39
39
|
*/
|
|
40
40
|
wake?: WakeDelivered | WakeWaking | discriminatedUnionTypes.Unknown<"state"> | undefined;
|
|
41
41
|
};
|
|
@@ -83,7 +83,7 @@ export declare class HelixCloud extends ClientSDK {
|
|
|
83
83
|
* Send a message to a session
|
|
84
84
|
*
|
|
85
85
|
* @remarks
|
|
86
|
-
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its
|
|
86
|
+
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its sandbox instance was replaced) is woken the same way when it can be; otherwise 410 `SESSION_GONE`, whose message says how to get it back.
|
|
87
87
|
*/
|
|
88
88
|
sendHelixCloudSessionInput(request: operations.SendHelixCloudSessionInputRequest, options?: RequestOptions): Promise<models.HelixCloudAccepted>;
|
|
89
89
|
/**
|
|
@@ -124,7 +124,7 @@ class HelixCloud extends sdks_js_1.ClientSDK {
|
|
|
124
124
|
* Send a message to a session
|
|
125
125
|
*
|
|
126
126
|
* @remarks
|
|
127
|
-
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its
|
|
127
|
+
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its sandbox instance was replaced) is woken the same way when it can be; otherwise 410 `SESSION_GONE`, whose message says how to get it back.
|
|
128
128
|
*/
|
|
129
129
|
async sendHelixCloudSessionInput(request, options) {
|
|
130
130
|
return (0, fp_js_1.unwrapAsync)((0, helix_cloud_send_helix_cloud_session_input_js_1.helixCloudSendHelixCloudSessionInput)(this, request, options));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as operations from "../models/operations/index.js";
|
|
3
|
+
export declare class Helix extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Record a package install (telemetry)
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Best-effort install telemetry for any MutagenT package (helix, diagnostics, evaluator). Records pkg/version/harness/channel/platform/cliVersion for an authenticated user and emits the package.install activation event.
|
|
9
|
+
*/
|
|
10
|
+
recordHelixInstall(request: operations.RecordHelixInstallRequest, options?: RequestOptions): Promise<operations.RecordHelixInstallResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Report a Helix install (anonymous)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Anonymous install reporting from install.sh, `helix update` and the CLI installer. No credentials. Stores a package.install activation event with no user, the Cloudflare country and a salted hash of the caller IP (never the IP). Rate-limited per address: 429 means wait a minute; the install itself is unaffected.
|
|
16
|
+
*/
|
|
17
|
+
recordHelixInstallEvent(request: operations.RecordHelixInstallEventRequest, options?: RequestOptions): Promise<operations.RecordHelixInstallEventResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=helix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix.d.ts","sourceRoot":"","sources":["../../../src/sdk/helix.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Helix = void 0;
|
|
7
|
+
const helix_record_helix_install_event_js_1 = require("../funcs/helix-record-helix-install-event.js");
|
|
8
|
+
const helix_record_helix_install_js_1 = require("../funcs/helix-record-helix-install.js");
|
|
9
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
+
const fp_js_1 = require("../types/fp.js");
|
|
11
|
+
class Helix extends sdks_js_1.ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Record a package install (telemetry)
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Best-effort install telemetry for any MutagenT package (helix, diagnostics, evaluator). Records pkg/version/harness/channel/platform/cliVersion for an authenticated user and emits the package.install activation event.
|
|
17
|
+
*/
|
|
18
|
+
async recordHelixInstall(request, options) {
|
|
19
|
+
return (0, fp_js_1.unwrapAsync)((0, helix_record_helix_install_js_1.helixRecordHelixInstall)(this, request, options));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Report a Helix install (anonymous)
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Anonymous install reporting from install.sh, `helix update` and the CLI installer. No credentials. Stores a package.install activation event with no user, the Cloudflare country and a salted hash of the caller IP (never the IP). Rate-limited per address: 429 means wait a minute; the install itself is unaffected.
|
|
26
|
+
*/
|
|
27
|
+
async recordHelixInstallEvent(request, options) {
|
|
28
|
+
return (0, fp_js_1.unwrapAsync)((0, helix_record_helix_install_event_js_1.helixRecordHelixInstallEvent)(this, request, options));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Helix = Helix;
|
|
32
|
+
//# sourceMappingURL=helix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix.js","sourceRoot":"","sources":["../../../src/sdk/helix.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sGAA4F;AAC5F,0FAAiF;AACjF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,uDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlCD,sBAkCC"}
|
|
@@ -6,7 +6,7 @@ export declare class Reports extends ClientSDK {
|
|
|
6
6
|
* Upload a published run report
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Stores a report produced by a Helix run. Idempotent per (workspace, runId, kind): a repeat returns the first report unchanged with `created: false` (200); with `replace: true` it swaps that report's content instead (`replaced: true`). Accepts a platform API key, a signed-in session, or
|
|
9
|
+
* Stores a report produced by a Helix run. Idempotent per (workspace, runId, kind): a repeat returns the first report unchanged with `created: false` (200); with `replace: true` it swaps that report's content instead (`replaced: true`). Accepts a platform API key, a signed-in session, or the sandbox token a sandbox carries. A key or session needs a workspace role with resources:create (editor or admin).
|
|
10
10
|
*/
|
|
11
11
|
uploadReport(request: models.UploadReportRequest, options?: RequestOptions): Promise<models.UploadReportResponse>;
|
|
12
12
|
/**
|
|
@@ -23,7 +23,7 @@ class Reports extends sdks_js_1.ClientSDK {
|
|
|
23
23
|
* Upload a published run report
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Stores a report produced by a Helix run. Idempotent per (workspace, runId, kind): a repeat returns the first report unchanged with `created: false` (200); with `replace: true` it swaps that report's content instead (`replaced: true`). Accepts a platform API key, a signed-in session, or
|
|
26
|
+
* Stores a report produced by a Helix run. Idempotent per (workspace, runId, kind): a repeat returns the first report unchanged with `created: false` (200); with `replace: true` it swaps that report's content instead (`replaced: true`). Accepts a platform API key, a signed-in session, or the sandbox token a sandbox carries. A key or session needs a workspace role with resources:create (editor or admin).
|
|
27
27
|
*/
|
|
28
28
|
async uploadReport(request, options) {
|
|
29
29
|
return (0, fp_js_1.unwrapAsync)((0, reports_upload_report_js_1.reportsUploadReport)(this, request, options));
|
|
@@ -4,6 +4,7 @@ import { Environments } from "./environments.js";
|
|
|
4
4
|
import { Gateway } from "./gateway.js";
|
|
5
5
|
import { HelixCloud } from "./helix-cloud.js";
|
|
6
6
|
import { HelixSessions } from "./helix-sessions.js";
|
|
7
|
+
import { Helix } from "./helix.js";
|
|
7
8
|
import { Inbox } from "./inbox.js";
|
|
8
9
|
import { Integrations } from "./integrations.js";
|
|
9
10
|
import { Invitations } from "./invitations.js";
|
|
@@ -45,6 +46,8 @@ export declare class Mutagent extends ClientSDK {
|
|
|
45
46
|
get llmProviders(): LLMProviders;
|
|
46
47
|
private _invitations?;
|
|
47
48
|
get invitations(): Invitations;
|
|
49
|
+
private _helix?;
|
|
50
|
+
get helix(): Helix;
|
|
48
51
|
private _traces?;
|
|
49
52
|
get traces(): Traces;
|
|
50
53
|
private _views?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qB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jC,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,OAAO,CAAC,oBAAoB,CAAC,CAAsB;IACnD,IAAI,mBAAmB,IAAI,mBAAmB,CAI7C;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;CACF"}
|
package/dist/commonjs/sdk/sdk.js
CHANGED
|
@@ -10,6 +10,7 @@ const environments_js_1 = require("./environments.js");
|
|
|
10
10
|
const gateway_js_1 = require("./gateway.js");
|
|
11
11
|
const helix_cloud_js_1 = require("./helix-cloud.js");
|
|
12
12
|
const helix_sessions_js_1 = require("./helix-sessions.js");
|
|
13
|
+
const helix_js_1 = require("./helix.js");
|
|
13
14
|
const inbox_js_1 = require("./inbox.js");
|
|
14
15
|
const integrations_js_1 = require("./integrations.js");
|
|
15
16
|
const invitations_js_1 = require("./invitations.js");
|
|
@@ -64,6 +65,9 @@ class Mutagent extends sdks_js_1.ClientSDK {
|
|
|
64
65
|
get invitations() {
|
|
65
66
|
return (this._invitations ?? (this._invitations = new invitations_js_1.Invitations(this._options)));
|
|
66
67
|
}
|
|
68
|
+
get helix() {
|
|
69
|
+
return (this._helix ?? (this._helix = new helix_js_1.Helix(this._options)));
|
|
70
|
+
}
|
|
67
71
|
get traces() {
|
|
68
72
|
return (this._traces ?? (this._traces = new traces_js_1.Traces(this._options)));
|
|
69
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,uDAAiD;AACjD,6CAAuC;AACvC,qDAA8C;AAC9C,2DAAoD;AACpD,yCAAmC;AACnC,uDAAiD;AACjD,qDAA+C;AAC/C,yDAAkD;AAClD,2DAAoD;AACpD,uEAAgE;AAChE,yDAAmD;AACnD,6CAAuC;AACvC,6CAAuC;AACvC,2CAAqC;AACrC,uDAAgD;AAChD,yCAAmC;AACnC,iEAA0D;AAC1D,mDAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IAErC,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,6BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,YAAY;QACd,OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,8BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;IAGD,IAAI,aAAa;QACf,OAAO,CAAC,IAA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AC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,2BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,YAAY;QACd,OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,8BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;CACF;AAtGD,4BAsGC"}
|
|
@@ -83,7 +83,7 @@ export declare class Views extends ClientSDK {
|
|
|
83
83
|
* The sandbox providers
|
|
84
84
|
*
|
|
85
85
|
* @remarks
|
|
86
|
-
* Where session
|
|
86
|
+
* Where session sandboxes can run: each provider this server is configured with, whether a launch uses it by default, and the facts it declares (region, managed-agent staging, workspace restore). Read-only.
|
|
87
87
|
*/
|
|
88
88
|
listSandboxProvidersView(options?: RequestOptions): Promise<Array<models.ViewsSandboxProviderList>>;
|
|
89
89
|
}
|
|
@@ -122,7 +122,7 @@ class Views extends sdks_js_1.ClientSDK {
|
|
|
122
122
|
* The sandbox providers
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* Where session
|
|
125
|
+
* Where session sandboxes can run: each provider this server is configured with, whether a launch uses it by default, and the facts it declares (region, managed-agent staging, workspace restore). Read-only.
|
|
126
126
|
*/
|
|
127
127
|
async listSandboxProvidersView(options) {
|
|
128
128
|
return (0, fp_js_1.unwrapAsync)((0, views_list_sandbox_providers_view_js_1.viewsListSandboxProvidersView)(this, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Send a message to a session
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its
|
|
16
|
+
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its sandbox instance was replaced) is woken the same way when it can be; otherwise 410 `SESSION_GONE`, whose message says how to get it back.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Send a message to a session
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its
|
|
20
|
+
* Sends `text` to the session as one prompt. The reply arrives on the session's stream. 404 for a session outside the caller's workspace. A session stopped for idling is woken: it is restored from its last checkpoint onto a new sandbox generation and the message is delivered once Helix is up; `wake` then carries the restored session's `reference` (`delivered`), or says the restore is still running (`waking`) and the message is delivered when it finishes. Messages sent meanwhile are delivered in order, each once. A session whose sandbox no longer runs it (its sandbox instance was replaced) is woken the same way when it can be; otherwise 410 `SESSION_GONE`, whose message says how to get it back.
|
|
21
21
|
*
|
|
22
22
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
23
23
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Report a Helix install (anonymous)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Anonymous install reporting from install.sh, `helix update` and the CLI installer. No credentials. Stores a package.install activation event with no user, the Cloudflare country and a salted hash of the caller IP (never the IP). Rate-limited per address: 429 means wait a minute; the install itself is unaffected.
|
|
16
|
+
*/
|
|
17
|
+
export declare function helixRecordHelixInstallEvent(client: MutagentCore, request: operations.RecordHelixInstallEventRequest, options?: RequestOptions): APIPromise<Result<operations.RecordHelixInstallEventResponse, errors.RecordHelixInstallEventUnprocessableEntityError | errors.RecordHelixInstallEventTooManyRequestsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=helix-record-helix-install-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-record-helix-install-event.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-record-helix-install-event.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,+BAA+B,EACxC,MAAM,CAAC,+CAA+C,GACtD,MAAM,CAAC,2CAA2C,GAClD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Report a Helix install (anonymous)
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Anonymous install reporting from install.sh, `helix update` and the CLI installer. No credentials. Stores a package.install activation event with no user, the Cloudflare country and a salted hash of the caller IP (never the IP). Rate-limited per address: 429 means wait a minute; the install itself is unaffected.
|
|
19
|
+
*/
|
|
20
|
+
export function helixRecordHelixInstallEvent(client, request, options) {
|
|
21
|
+
return new APIPromise($do(client, request, options));
|
|
22
|
+
}
|
|
23
|
+
async function $do(client, request, options) {
|
|
24
|
+
const parsed = safeParse(request, (value) => z.parse(operations.RecordHelixInstallEventRequest$outboundSchema, value), "Input validation failed");
|
|
25
|
+
if (!parsed.ok) {
|
|
26
|
+
return [parsed, { status: "invalid" }];
|
|
27
|
+
}
|
|
28
|
+
const payload = parsed.value;
|
|
29
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
30
|
+
const path = pathToFunc("/api/helix/install-events")();
|
|
31
|
+
const headers = new Headers(compactMap({
|
|
32
|
+
"Content-Type": "application/json",
|
|
33
|
+
Accept: "application/json",
|
|
34
|
+
}));
|
|
35
|
+
const context = {
|
|
36
|
+
options: client._options,
|
|
37
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38
|
+
operationID: "recordHelixInstallEvent",
|
|
39
|
+
oAuth2Scopes: null,
|
|
40
|
+
resolvedSecurity: null,
|
|
41
|
+
securitySource: null,
|
|
42
|
+
retryConfig: options?.retries
|
|
43
|
+
|| client._options.retryConfig
|
|
44
|
+
|| { strategy: "none" },
|
|
45
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
46
|
+
};
|
|
47
|
+
const requestRes = client._createRequest(context, {
|
|
48
|
+
method: "POST",
|
|
49
|
+
baseURL: options?.serverURL,
|
|
50
|
+
path: path,
|
|
51
|
+
headers: headers,
|
|
52
|
+
body: body,
|
|
53
|
+
userAgent: client._options.userAgent,
|
|
54
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
55
|
+
}, options);
|
|
56
|
+
if (!requestRes.ok) {
|
|
57
|
+
return [requestRes, { status: "invalid" }];
|
|
58
|
+
}
|
|
59
|
+
const req = requestRes.value;
|
|
60
|
+
const doResult = await client._do(req, {
|
|
61
|
+
context,
|
|
62
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
63
|
+
retryConfig: context.retryConfig,
|
|
64
|
+
retryCodes: context.retryCodes,
|
|
65
|
+
});
|
|
66
|
+
if (!doResult.ok) {
|
|
67
|
+
return [doResult, { status: "request-error", request: req }];
|
|
68
|
+
}
|
|
69
|
+
const response = doResult.value;
|
|
70
|
+
const responseFields = {
|
|
71
|
+
HttpMeta: { Response: response, Request: req },
|
|
72
|
+
};
|
|
73
|
+
const [result] = await M.match(M.json(202, operations.RecordHelixInstallEventResponse$inboundSchema), M.jsonErr(422, errors.RecordHelixInstallEventUnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.RecordHelixInstallEventTooManyRequestsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
74
|
+
if (!result.ok) {
|
|
75
|
+
return [result, { status: "complete", request: req, response }];
|
|
76
|
+
}
|
|
77
|
+
return [result, { status: "complete", request: req, response }];
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=helix-record-helix-install-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-record-helix-install-event.js","sourceRoot":"","sources":["../../../src/funcs/helix-record-helix-install-event.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAC1C,MAAoB,EACpB,OAAkD,EAClD,OAAwB;IAgBxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAkD,EAClD,OAAwB;IAmBxB,MAAM,MA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E,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,yDAAyD,CACjE,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Record a package install (telemetry)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Best-effort install telemetry for any MutagenT package (helix, diagnostics, evaluator). Records pkg/version/harness/channel/platform/cliVersion for an authenticated user and emits the package.install activation event.
|
|
16
|
+
*
|
|
17
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
|
+
*/
|
|
19
|
+
export declare function helixRecordHelixInstall(client: MutagentCore, request: operations.RecordHelixInstallRequest, options?: RequestOptions): APIPromise<Result<operations.RecordHelixInstallResponse, errors.RecordHelixInstallUnauthorizedError | errors.RecordHelixInstallUnprocessableEntityError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=helix-record-helix-install.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-record-helix-install.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-record-helix-install.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,0CAA0C,GACjD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|