@myapihq/sdk 2.8.0 → 2.10.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.
@@ -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,19 @@ 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');
81
+ // Multipart takes the assertion as a JSON string. Wired here as well as on
82
+ // the JSON path, because the outage this exists to prevent was a source
83
+ // build and the first version of this flag reached only the image path.
84
+ if (opts.smoke)
85
+ formData.append('smoke', JSON.stringify(opts.smoke));
76
86
  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
87
  let result;
78
88
  try {
@@ -1,6 +1,6 @@
1
1
  import type { Exposes } from './exposes';
2
2
  export declare const EXPOSES: Exposes;
3
- export type FeedbackKind = 'bug' | 'idea' | 'praise' | 'confusion' | 'other';
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.8.0";
1
+ export declare const SDK_VERSION = "2.10.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.8.0';
11
+ exports.SDK_VERSION = '2.10.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myapihq/sdk",
3
3
  "license": "Apache-2.0",
4
- "version": "2.8.0",
4
+ "version": "2.10.0",
5
5
  "description": "TypeScript SDK for the MyAPI ecosystem",
6
6
  "repository": {
7
7
  "type": "git",