@runtypelabs/sdk 11.0.0 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +37 -1
- package/dist/index.d.cts +22707 -18302
- package/dist/index.d.ts +22707 -18302
- package/dist/index.mjs +37 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/sandbox-deployments-namespace.ts
|
|
3
|
+
/** Managed deployment authoring; acceptance records intent before the deployment becomes ready. */
|
|
4
|
+
var SandboxDeploymentsNamespace = class {
|
|
5
|
+
constructor(getClient) {
|
|
6
|
+
this.getClient = getClient;
|
|
7
|
+
}
|
|
8
|
+
runtimeProfiles() {
|
|
9
|
+
return this.getClient().get("/sandbox-deployments/runtime-profiles");
|
|
10
|
+
}
|
|
11
|
+
definition(id) {
|
|
12
|
+
return this.getClient().get(`/sandbox-deployments/${encodeURIComponent(id)}/definition`);
|
|
13
|
+
}
|
|
14
|
+
/** Use retained runtime and uploaded source IDs; the API resolves pins and authoring defaults. */
|
|
15
|
+
create(data, options) {
|
|
16
|
+
return this.getClient().post("/sandbox-deployments", data, { "Idempotency-Key": options.idempotencyKey });
|
|
17
|
+
}
|
|
18
|
+
/** Replace the complete config or spec without renewing retention. */
|
|
19
|
+
update(id, data, options) {
|
|
20
|
+
return this.getClient().put(`/sandbox-deployments/${encodeURIComponent(id)}`, data, {
|
|
21
|
+
"Idempotency-Key": options.idempotencyKey,
|
|
22
|
+
"If-Match": String(options.ifMatch)
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
2
27
|
//#region src/unified-stream-adapter.ts
|
|
3
28
|
/**
|
|
4
29
|
* @deprecated Unified events are now the only public execution-stream format.
|
|
@@ -1304,6 +1329,7 @@ var FlowBuilder = class {
|
|
|
1304
1329
|
recordFilter: config.recordFilter,
|
|
1305
1330
|
limit: config.limit,
|
|
1306
1331
|
onEmpty: config.onEmpty,
|
|
1332
|
+
errorHandling: config.errorHandling,
|
|
1307
1333
|
fieldsToInclude: config.fieldsToInclude,
|
|
1308
1334
|
fieldsToExclude: config.fieldsToExclude,
|
|
1309
1335
|
availableFields: config.availableFields,
|
|
@@ -10467,6 +10493,7 @@ var RuntypeFlowBuilder = class {
|
|
|
10467
10493
|
recordFilter: config.recordFilter,
|
|
10468
10494
|
limit: config.limit,
|
|
10469
10495
|
onEmpty: config.onEmpty,
|
|
10496
|
+
errorHandling: config.errorHandling,
|
|
10470
10497
|
fieldsToInclude: config.fieldsToInclude,
|
|
10471
10498
|
fieldsToExclude: config.fieldsToExclude,
|
|
10472
10499
|
availableFields: config.availableFields,
|
|
@@ -14104,6 +14131,9 @@ var Runtype = class {
|
|
|
14104
14131
|
static get surfaces() {
|
|
14105
14132
|
return new SurfacesNamespace(() => this.getClient());
|
|
14106
14133
|
}
|
|
14134
|
+
static get sandboxDeployments() {
|
|
14135
|
+
return new SandboxDeploymentsNamespace(() => this.getClient());
|
|
14136
|
+
}
|
|
14107
14137
|
/**
|
|
14108
14138
|
* Client tokens — publishable credentials for widgets. `ensure` finds a token
|
|
14109
14139
|
* by name, creates it when missing, and converges its agents, flows, origins,
|
|
@@ -14501,7 +14531,7 @@ function transformQueryParams(params) {
|
|
|
14501
14531
|
}
|
|
14502
14532
|
//#endregion
|
|
14503
14533
|
//#region src/version.ts
|
|
14504
|
-
const SDK_VERSION = "11.
|
|
14534
|
+
const SDK_VERSION = "11.2.0";
|
|
14505
14535
|
/**
|
|
14506
14536
|
* Canonical client identity the API uses for attribution
|
|
14507
14537
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
|
@@ -14553,6 +14583,7 @@ var RuntypeClient = class {
|
|
|
14553
14583
|
...config.headers || {}
|
|
14554
14584
|
};
|
|
14555
14585
|
if (config.apiKey) this.headers.Authorization = `Bearer ${config.apiKey}`;
|
|
14586
|
+
this.sandboxDeployments = new SandboxDeploymentsNamespace(() => this);
|
|
14556
14587
|
this.flows = new FlowsEndpoint(this);
|
|
14557
14588
|
this.prompts = new PromptsEndpoint(this);
|
|
14558
14589
|
this.records = new RecordsEndpoint(this);
|
|
@@ -15930,6 +15961,10 @@ const STEP_FIELD_REGISTRY = {
|
|
|
15930
15961
|
format: "json",
|
|
15931
15962
|
skipDefault: "succeed"
|
|
15932
15963
|
},
|
|
15964
|
+
{
|
|
15965
|
+
key: "errorHandling",
|
|
15966
|
+
format: "value"
|
|
15967
|
+
},
|
|
15933
15968
|
{
|
|
15934
15969
|
key: "fieldsToInclude",
|
|
15935
15970
|
format: "json"
|
|
@@ -16792,6 +16827,7 @@ exports.SDK_USER_AGENT = SDK_USER_AGENT;
|
|
|
16792
16827
|
exports.SDK_VERSION = SDK_VERSION;
|
|
16793
16828
|
exports.STEP_FIELD_REGISTRY = STEP_FIELD_REGISTRY;
|
|
16794
16829
|
exports.STEP_TYPE_TO_METHOD = STEP_TYPE_TO_METHOD;
|
|
16830
|
+
exports.SandboxDeploymentsNamespace = SandboxDeploymentsNamespace;
|
|
16795
16831
|
exports.ScheduleDriftError = ScheduleDriftError;
|
|
16796
16832
|
exports.ScheduleEnsureConflictError = ScheduleEnsureConflictError;
|
|
16797
16833
|
exports.SchedulesEndpoint = SchedulesEndpoint;
|