@fusebase/fusebase-gate-sdk 2.2.15-sdk.3 → 2.2.15-sdk.5

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.
@@ -5,10 +5,23 @@
5
5
  * Domain: app-apis
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { AppApiOperationContract, AppApiOperationListResponseContract, orgIdInPathRequired } from "../types";
8
+ import type { AppApiOperationContract, AppApiOperationListResponseContract, CallAppApiRequestContract, CallAppApiResponseContract, orgIdInPathRequired } from "../types";
9
9
  export declare class AppApisApi {
10
10
  private client;
11
11
  constructor(client: Client);
12
+ /**
13
+ * Call app API operation
14
+ * Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated user.
15
+ */
16
+ callAppApi(params: {
17
+ path: {
18
+ orgId: orgIdInPathRequired;
19
+ appId: string;
20
+ operationId: string;
21
+ };
22
+ headers?: Record<string, string>;
23
+ body?: CallAppApiRequestContract;
24
+ }): Promise<CallAppApiResponseContract>;
12
25
  /**
13
26
  * Describe app API operation
14
27
  * Returns one published app API operation for the requested app and operation id.
@@ -11,6 +11,21 @@ class AppApisApi {
11
11
  constructor(client) {
12
12
  this.client = client;
13
13
  }
14
+ /**
15
+ * Call app API operation
16
+ * Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated user.
17
+ */
18
+ async callAppApi(params) {
19
+ return this.client.request({
20
+ method: "POST",
21
+ path: "/:orgId/apps/:appId/app-apis/:operationId/call",
22
+ pathParams: params.path,
23
+ headers: params.headers,
24
+ body: params.body,
25
+ opId: "callAppApi",
26
+ expectedContentType: "application/json",
27
+ });
28
+ }
14
29
  /**
15
30
  * Describe app API operation
16
31
  * Returns one published app API operation for the requested app and operation id.
@@ -20,3 +20,15 @@ export interface AppApiOperationContract {
20
20
  export interface AppApiOperationListResponseContract {
21
21
  operations: AppApiOperationContract[];
22
22
  }
23
+ export interface CallAppApiRequestContract {
24
+ path?: Record<string, string>;
25
+ query?: Record<string, string | number | boolean>;
26
+ body?: unknown;
27
+ }
28
+ export interface CallAppApiResponseContract {
29
+ ok: boolean;
30
+ status: number;
31
+ contentType?: string | null;
32
+ data?: unknown;
33
+ text?: string;
34
+ }
@@ -5,7 +5,7 @@
5
5
  * Generated by SDK codegen
6
6
  */
7
7
  export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
8
- export type { AppApiOperationContract, AppApiOperationListResponseContract } from "./app-api/app-api";
8
+ export type { AppApiOperationContract, AppApiOperationListResponseContract, CallAppApiRequestContract, CallAppApiResponseContract } from "./app-api/app-api";
9
9
  export * from "./billing/billing";
10
10
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
11
11
  export * from "./file/file";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.15-sdk.3",
3
+ "version": "2.2.15-sdk.5",
4
4
  "description": "TypeScript SDK for Fusebase Gate APIs - Generated from contract introspection",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ # Release Notes 2.2.15-sdk.5
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.15-sdk.5`
5
+ - Generated at: 2026-05-18T10:10:39.543Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.15-sdk.3
1
+ # Release Notes 2.2.15-sdk.5
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.15-sdk.3`
5
- - Generated at: 2026-05-13T11:52:32.896Z
4
+ - Previous tag: `v2.2.15-sdk.5`
5
+ - Generated at: 2026-05-18T10:10:39.543Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.15-sdk.3
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.15-sdk.3`
5
- - Generated at: 2026-05-13T11:52:32.896Z
6
-
7
- ## Included Drafts
8
-
9
- - None