@fusebase/fusebase-gate-sdk 2.2.2-sdk.13 → 2.2.2-sdk.15

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.
@@ -27,7 +27,12 @@ function createFetchWithRetry(baseFetch, { retries = 3, backoffMs = defaultBacko
27
27
  ? backoffMs(attempt, lastResponse, lastError)
28
28
  : backoffMs;
29
29
  if (wait > 0) {
30
- console.log(`Waiting ${wait}ms before next attempt #${attempt}, ${lastError instanceof Error ? lastError.message : "unknown error"}`);
30
+ const reason = lastError instanceof Error
31
+ ? lastError.message
32
+ : lastResponse != null
33
+ ? `HTTP ${lastResponse.status} (retryable response)`
34
+ : "unknown error";
35
+ console.log(`Waiting ${wait}ms before next attempt #${attempt}, ${reason}`);
31
36
  await sleep(wait);
32
37
  }
33
38
  }
@@ -14,4 +14,4 @@ export * from "./shared/enums";
14
14
  export type { GetHealth200ResponseContract } from "./shared/health";
15
15
  export type { aliasInQueryOptional, aliasInQueryRequired, cacheStrategyInQueryOptional, copyDataInQueryRequired, copyRelationsInQueryRequired, copyTablesInQueryRequired, copyViewsInQueryRequired, createDefaultRowsInQuery, dashboardIdInPathRequired, databaseIdInQueryRequired, includeRows, limitInQueryOptional, mappingInQueryRequiredContract, nameInQueryOptional, orgIdInPathRequired, pageInQueryOptional, relationId, rootEntitiesInQueryOptional, rootEntityInQueryOptional, scopeIdInQueryRequired, scopeTypeInQueryRequired, scopeTypeOrgInQueryRequired, sectionKeyInQueryOptional, sectionKeyInQueryRequired, sectionTypeInQueryOptional, sectionTypeInQueryRequired, sourceDashboardIdInQueryRequired, sourceIndexInQueryRequired, targetDashboardIdInQueryRequired, templateIdInPathRequired, viewIdInPathRequired, viewIdInQueryOptional, viewIdInQueryRequired } from "./shared/parameters";
16
16
  export * from "./system/system";
17
- export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
17
+ export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenMetaContract, TokenMetaIssuerContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
@@ -6,6 +6,7 @@ export interface CreateTokenRequestContract {
6
6
  resource_scope: ResourceScopeContract;
7
7
  name?: string | null;
8
8
  expires_at?: Date | null;
9
+ meta?: TokenMetaContract;
9
10
  }
10
11
  export interface CreateTokenResponseContract {
11
12
  success: boolean;
@@ -16,6 +17,7 @@ export interface CreateTokenResponseContract {
16
17
  name?: string | null;
17
18
  permissions: string[];
18
19
  expires_at?: Date | null;
20
+ meta?: TokenMetaContract;
19
21
  created_at: Date;
20
22
  };
21
23
  }
@@ -27,6 +29,13 @@ export interface ResourceScopeRuleContract {
27
29
  resource_type: string;
28
30
  ids: string[];
29
31
  }
32
+ export interface TokenMetaIssuerContract {
33
+ kind: string;
34
+ id: string;
35
+ }
36
+ export interface TokenMetaContract {
37
+ issuer?: TokenMetaIssuerContract;
38
+ }
30
39
  export interface RevokeTokenResponseContract {
31
40
  success: boolean;
32
41
  message: string;
@@ -36,6 +45,7 @@ export interface TokenContract {
36
45
  name?: string | null;
37
46
  permissions: PermissionContract[];
38
47
  scopes?: ScopeContract[];
48
+ meta?: TokenMetaContract;
39
49
  expires_at?: Date | null;
40
50
  last_used_at?: Date | null;
41
51
  created_at: Date;
@@ -54,4 +64,5 @@ export interface UpdateTokenRequestContract {
54
64
  name?: string | null;
55
65
  permissions?: PermissionContract[];
56
66
  expires_at?: Date | null;
67
+ meta?: TokenMetaContract;
57
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.2-sdk.13",
3
+ "version": "2.2.2-sdk.15",
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.2-sdk.15
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.15`
5
+ - Generated at: 2026-04-03T14:18:41.215Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.13
1
+ # Release Notes 2.2.2-sdk.15
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.13`
5
- - Generated at: 2026-04-03T11:02:03.220Z
4
+ - Previous tag: `v2.2.2-sdk.15`
5
+ - Generated at: 2026-04-03T14:18:41.215Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.13
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.13`
5
- - Generated at: 2026-04-03T11:02:03.220Z
6
-
7
- ## Included Drafts
8
-
9
- - None