@fusebase/fusebase-gate-sdk 2.3.5-sdk.0 → 2.3.5-sdk.2

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: tokens
6
6
  */
7
7
  import type { Client } from "../runtime/transport";
8
- import type { CreateTokenRequestContract, CreateTokenResponseContract, RevokeTokenResponseContract, scopeIdInQueryRequired, scopeTypeOrgInQueryRequired, TokenListResponseContract, TokenResponseContract, tokenSourceInQueryOptional, UpdateTokenRequestContract } from "../types";
8
+ import type { CreateTokenRequestContract, CreateTokenResponseContract, limitInQueryOptional, pageInQueryOptional, RevokeTokenResponseContract, scopeIdInQueryRequired, scopeTypeOrgInQueryRequired, TokenListResponseContract, TokenResponseContract, tokenSourceInQueryOptional, UpdateTokenRequestContract } from "../types";
9
9
  export declare class TokensApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -32,9 +32,10 @@ export declare class TokensApi {
32
32
  }): Promise<TokenResponseContract>;
33
33
  /**
34
34
  * List user's API tokens
35
- * Retrieve a list of all API tokens for the authenticated user.
35
+ * Retrieve a paginated list of API tokens for the authenticated user.
36
36
  * Optionally filter by scope type and scope ID (both must be provided together).
37
- * Optionally filter by token_source: manual (no client scope) or app (has client scope).
37
+ * Optionally filter by token_source: manual (user-created) or app (app-provisioned).
38
+ * Defaults to page=1 and limit=50 (max 100).
38
39
  *
39
40
  */
40
41
  listTokens(params: {
@@ -42,6 +43,8 @@ export declare class TokensApi {
42
43
  scope_type: scopeTypeOrgInQueryRequired;
43
44
  scope_id: scopeIdInQueryRequired;
44
45
  token_source?: tokenSourceInQueryOptional;
46
+ page?: pageInQueryOptional;
47
+ limit?: limitInQueryOptional;
45
48
  };
46
49
  headers?: Record<string, string>;
47
50
  }): Promise<TokenListResponseContract>;
@@ -44,9 +44,10 @@ class TokensApi {
44
44
  }
45
45
  /**
46
46
  * List user's API tokens
47
- * Retrieve a list of all API tokens for the authenticated user.
47
+ * Retrieve a paginated list of API tokens for the authenticated user.
48
48
  * Optionally filter by scope type and scope ID (both must be provided together).
49
- * Optionally filter by token_source: manual (no client scope) or app (has client scope).
49
+ * Optionally filter by token_source: manual (user-created) or app (app-provisioned).
50
+ * Defaults to page=1 and limit=50 (max 100).
50
51
  *
51
52
  */
52
53
  async listTokens(params) {
@@ -25,4 +25,4 @@ export * from "./shared/enums";
25
25
  export type { GetHealth200ResponseContract } from "./shared/health";
26
26
  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, tokenSourceInQueryOptional, viewIdInPathRequired, viewIdInQueryOptional, viewIdInQueryRequired } from "./shared/parameters";
27
27
  export * from "./system/system";
28
- export type { CreateTokenRequestContract, CreateTokenResponseContract, ResourceScopeContract, ResourceScopeRuleContract, RevokeTokenResponseContract, TokenContract, TokenListResponseContract, TokenMetaContract, TokenMetaIssuerContract, TokenResponseContract, UpdateTokenRequestContract } from "./token/token";
28
+ export * from "./token/token";
@@ -30,3 +30,4 @@ __exportStar(require("./orgs/orgs"), exports);
30
30
  __exportStar(require("./shared/common"), exports);
31
31
  __exportStar(require("./shared/enums"), exports);
32
32
  __exportStar(require("./system/system"), exports);
33
+ __exportStar(require("./token/token"), exports);
@@ -18,6 +18,7 @@ export interface CreateTokenResponseContract {
18
18
  permissions: string[];
19
19
  expires_at?: Date | null;
20
20
  meta?: TokenMetaContract;
21
+ provisioning: TokenProvisioningContract;
21
22
  created_at: Date;
22
23
  };
23
24
  }
@@ -36,6 +37,13 @@ export interface TokenMetaIssuerContract {
36
37
  export interface TokenMetaContract {
37
38
  issuer?: TokenMetaIssuerContract;
38
39
  }
40
+ export type TokenProvisioningContract = "manual" | "app";
41
+ export interface TokenListPaginationContract {
42
+ page: number;
43
+ limit: number;
44
+ total: number;
45
+ total_pages: number;
46
+ }
39
47
  export interface RevokeTokenResponseContract {
40
48
  success: boolean;
41
49
  message: string;
@@ -46,6 +54,7 @@ export interface TokenContract {
46
54
  permissions: PermissionContract[];
47
55
  scopes?: ScopeContract[];
48
56
  meta?: TokenMetaContract;
57
+ provisioning: TokenProvisioningContract;
49
58
  expires_at?: Date | null;
50
59
  last_used_at?: Date | null;
51
60
  created_at: Date;
@@ -54,6 +63,11 @@ export interface TokenListResponseContract {
54
63
  success: boolean;
55
64
  message?: string | null;
56
65
  data: TokenContract[];
66
+ pagination: TokenListPaginationContract;
67
+ }
68
+ export interface RevokeTokenResponseContract {
69
+ success: boolean;
70
+ message: string;
57
71
  }
58
72
  export interface TokenResponseContract {
59
73
  success: boolean;
@@ -66,3 +80,7 @@ export interface UpdateTokenRequestContract {
66
80
  expires_at?: Date | null;
67
81
  meta?: TokenMetaContract;
68
82
  }
83
+ export declare const TokenProvisioningContract: {
84
+ readonly Manual: "manual";
85
+ readonly App: "app";
86
+ };
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenProvisioningContract = void 0;
4
+ exports.TokenProvisioningContract = {
5
+ Manual: "manual",
6
+ App: "app"
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.3.5-sdk.0",
3
+ "version": "2.3.5-sdk.2",
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.3.5-sdk.2
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.3.5-sdk.2`
5
+ - Generated at: 2026-06-19T15:12:10.462Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.3.5-sdk.0
1
+ # Release Notes 2.3.5-sdk.2
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.3.5-sdk.0`
5
- - Generated at: 2026-06-19T11:19:56.570Z
4
+ - Previous tag: `v2.3.5-sdk.2`
5
+ - Generated at: 2026-06-19T15:12:10.462Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.3.5-sdk.0
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.3.5-sdk.0`
5
- - Generated at: 2026-06-19T11:19:56.570Z
6
-
7
- ## Included Drafts
8
-
9
- - None