@fusebase/fusebase-gate-sdk 2.2.21-sdk.13 → 2.2.21-sdk.14

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,7 +5,7 @@
5
5
  * Domain: app-apis
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { AppApiOperationContract, AppApiOperationListResponseContract, CallAppApiRequestContract, CallAppApiResponseContract, orgIdInPathRequired } from "../types";
8
+ import type { AppApiOperationContract, AppApiOperationListResponseContract, CallAppApiRequestContract, CallAppApiResponseContract, orgIdInPathRequired, VerifyAppApiContractsRequestContract, VerifyAppApiContractsResponseContract } from "../types";
9
9
  export declare class AppApisApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -64,4 +64,28 @@ export declare class AppApisApi {
64
64
  };
65
65
  headers?: Record<string, string>;
66
66
  }): Promise<AppApiOperationListResponseContract>;
67
+ /**
68
+ * Verify consumer app API contracts
69
+ * Loads stored consumer contracts for the selected app, executes each case through Gate's real app API call path as the authenticated user, and returns PASS/FAIL results plus schema warnings.
70
+ */
71
+ verifyConsumerAppApiContracts(params: {
72
+ path: {
73
+ orgId: orgIdInPathRequired;
74
+ appId: string;
75
+ };
76
+ headers?: Record<string, string>;
77
+ body?: VerifyAppApiContractsRequestContract;
78
+ }): Promise<VerifyAppApiContractsResponseContract>;
79
+ /**
80
+ * Verify inbound app API contracts
81
+ * Loads all stored consumer contracts targeting the selected provider app inside the organization and executes them through Gate's real app API call path as the authenticated user.
82
+ */
83
+ verifyProviderAppApiContracts(params: {
84
+ path: {
85
+ orgId: orgIdInPathRequired;
86
+ appId: string;
87
+ };
88
+ headers?: Record<string, string>;
89
+ body?: VerifyAppApiContractsRequestContract;
90
+ }): Promise<VerifyAppApiContractsResponseContract>;
67
91
  }
@@ -70,5 +70,35 @@ class AppApisApi {
70
70
  expectedContentType: "application/json",
71
71
  });
72
72
  }
73
+ /**
74
+ * Verify consumer app API contracts
75
+ * Loads stored consumer contracts for the selected app, executes each case through Gate's real app API call path as the authenticated user, and returns PASS/FAIL results plus schema warnings.
76
+ */
77
+ async verifyConsumerAppApiContracts(params) {
78
+ return this.client.request({
79
+ method: "POST",
80
+ path: "/:orgId/apps/:appId/app-api-contracts/verify-consumer",
81
+ pathParams: params.path,
82
+ headers: params.headers,
83
+ body: params.body,
84
+ opId: "verifyConsumerAppApiContracts",
85
+ expectedContentType: "application/json",
86
+ });
87
+ }
88
+ /**
89
+ * Verify inbound app API contracts
90
+ * Loads all stored consumer contracts targeting the selected provider app inside the organization and executes them through Gate's real app API call path as the authenticated user.
91
+ */
92
+ async verifyProviderAppApiContracts(params) {
93
+ return this.client.request({
94
+ method: "POST",
95
+ path: "/:orgId/apps/:appId/app-api-contracts/verify-provider",
96
+ pathParams: params.path,
97
+ headers: params.headers,
98
+ body: params.body,
99
+ opId: "verifyProviderAppApiContracts",
100
+ expectedContentType: "application/json",
101
+ });
102
+ }
73
103
  }
74
104
  exports.AppApisApi = AppApisApi;
@@ -34,3 +34,35 @@ export interface CallAppApiResponseContract {
34
34
  data?: unknown;
35
35
  text?: string;
36
36
  }
37
+ export interface VerifyAppApiContractsRequestContract {
38
+ provider?: string;
39
+ operation?: string;
40
+ }
41
+ export interface VerifyCaseResultContract {
42
+ consumerAppId?: string;
43
+ providerAppId: string;
44
+ operationId: string;
45
+ caseName: string;
46
+ status: "PASS" | "FAIL";
47
+ warnings: string[];
48
+ message?: string;
49
+ request?: {
50
+ url?: string;
51
+ envelope?: CallAppApiRequestContract;
52
+ };
53
+ response?: {
54
+ status?: number;
55
+ body?: unknown;
56
+ };
57
+ }
58
+ export interface VerifyAppApiContractsResponseContract {
59
+ ok: boolean;
60
+ summary: {
61
+ contractCount: number;
62
+ caseCount: number;
63
+ passCount: number;
64
+ failCount: number;
65
+ warnCount: number;
66
+ };
67
+ cases: VerifyCaseResultContract[];
68
+ }
@@ -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, CallAppApiRequestContract, CallAppApiResponseContract } from "./app-api/app-api";
8
+ export type { AppApiOperationContract, AppApiOperationListResponseContract, CallAppApiRequestContract, CallAppApiResponseContract, VerifyAppApiContractsRequestContract, VerifyAppApiContractsResponseContract, VerifyCaseResultContract } from "./app-api/app-api";
9
9
  export type { ActivateAppMagicLinkResponseContract, CreateAppMagicLinkRequestContract, CreateAppMagicLinkResponseContract, RequestAppMagicLinkRequestContract, RequestAppMagicLinkResponseContract } from "./app-magic-link/app-magic-link";
10
10
  export * from "./billing/billing";
11
11
  export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.21-sdk.13",
3
+ "version": "2.2.21-sdk.14",
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.21-sdk.14
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.21-sdk.14`
5
+ - Generated at: 2026-06-09T22:21:12.894Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.21-sdk.13
1
+ # Release Notes 2.2.21-sdk.14
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.21-sdk.13`
5
- - Generated at: 2026-06-08T11:26:50.072Z
4
+ - Previous tag: `v2.2.21-sdk.14`
5
+ - Generated at: 2026-06-09T22:21:12.894Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.21-sdk.13
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.21-sdk.13`
5
- - Generated at: 2026-06-08T11:26:50.072Z
6
-
7
- ## Included Drafts
8
-
9
- - None