@myapihq/sdk 2.8.0 → 2.9.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/container.d.ts +1 -1
- package/dist/container.js +6 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/container.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface BuildDeployResponse {
|
|
|
81
81
|
status: string;
|
|
82
82
|
message?: string;
|
|
83
83
|
}
|
|
84
|
-
export declare function deployContainerSource(apiKey: string, orgId: string, containerId: string, tarball: Blob | Buffer, filename?: string): Promise<BuildDeployResponse>;
|
|
84
|
+
export declare function deployContainerSource(apiKey: string, orgId: string, containerId: string, tarball: Blob | Buffer, filename?: string, opts?: DeployOptions): Promise<BuildDeployResponse>;
|
|
85
85
|
export interface LogEntry {
|
|
86
86
|
timestamp: string;
|
|
87
87
|
severity: string;
|
package/dist/container.js
CHANGED
|
@@ -70,9 +70,14 @@ async function promoteRevision(apiKey, orgId, containerId, revision) {
|
|
|
70
70
|
// (backend deploy.go builds it via Cloud Build → Artifact Registry, then
|
|
71
71
|
// deploys). Asynchronous: returns status='building' to poll. The tarball is
|
|
72
72
|
// capped at 100MB server-side. Mirrors the multipart upload in storage.ts.
|
|
73
|
-
async function deployContainerSource(apiKey, orgId, containerId, tarball, filename = 'source.tar.gz') {
|
|
73
|
+
async function deployContainerSource(apiKey, orgId, containerId, tarball, filename = 'source.tar.gz', opts = {}) {
|
|
74
74
|
const formData = new FormData();
|
|
75
75
|
formData.append('source', new Blob([tarball], { type: 'application/gzip' }), filename);
|
|
76
|
+
// The multipart path takes `promote` too as of 2026-07-28. It did not when
|
|
77
|
+
// --no-promote first shipped, which is exactly why the flag was silently
|
|
78
|
+
// dropped here: the options never reached this function at all.
|
|
79
|
+
if (opts.promote === false)
|
|
80
|
+
formData.append('promote', 'false');
|
|
76
81
|
const response = await fetch(`${config_1.CONTAINER_BASE}/container/orgs/${encodeURIComponent(orgId)}/containers/${encodeURIComponent(containerId)}/deploy`, { method: 'POST', headers: { Authorization: `Bearer ${apiKey}` }, body: formData });
|
|
77
82
|
let result;
|
|
78
83
|
try {
|
package/dist/feedback.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Exposes } from './exposes';
|
|
2
2
|
export declare const EXPOSES: Exposes;
|
|
3
|
-
export type FeedbackKind = 'bug' | '
|
|
3
|
+
export type FeedbackKind = 'bug' | 'issue' | 'suggestion';
|
|
4
4
|
export type FeedbackStatus = 'open' | 'resolved';
|
|
5
5
|
export interface FeedbackItem {
|
|
6
6
|
id: string;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.9.0";
|
package/dist/version.js
CHANGED
|
@@ -8,4 +8,4 @@ exports.SDK_VERSION = void 0;
|
|
|
8
8
|
// Why a constant and not a package.json read: the SDK runs inside edge
|
|
9
9
|
// functions (Cloudflare Workers), so it must not import node:fs. A literal
|
|
10
10
|
// is the only version source that works in every runtime we ship to.
|
|
11
|
-
exports.SDK_VERSION = '2.
|
|
11
|
+
exports.SDK_VERSION = '2.9.0';
|