@fusebase/fusebase-gate-sdk 1.0.2-sdk.3 → 2.0.7

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.
Files changed (79) hide show
  1. package/README.md +8 -10
  2. package/dist/apis/OrgUsersApi.d.ts +12 -1
  3. package/dist/apis/OrgUsersApi.js +15 -0
  4. package/dist/apis/SystemApi.d.ts +20 -0
  5. package/dist/apis/SystemApi.js +29 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +3 -1
  8. package/dist/types/index.d.ts +2 -20
  9. package/dist/types/index.js +1 -6
  10. package/dist/types/org-user/org-user.d.ts +33 -8
  11. package/dist/types/org-user/org-user.js +0 -4
  12. package/dist/types/shared/common.d.ts +0 -69
  13. package/dist/types/shared/common.js +0 -6
  14. package/dist/types/shared/enums.d.ts +1 -22
  15. package/dist/types/shared/enums.js +1 -7
  16. package/dist/types/shared/health.d.ts +0 -6
  17. package/dist/types/shared/health.js +0 -6
  18. package/dist/types/shared/parameters.d.ts +0 -54
  19. package/dist/types/system/system.d.ts +26 -0
  20. package/dist/types/system/system.js +7 -0
  21. package/dist/types/token/token.d.ts +0 -127
  22. package/dist/types/token/token.js +0 -6
  23. package/package.json +2 -2
  24. package/dist/apis/CustomDashboardRowsApi.d.ts +0 -113
  25. package/dist/apis/CustomDashboardRowsApi.js +0 -122
  26. package/dist/apis/DashboardDataApi.d.ts +0 -98
  27. package/dist/apis/DashboardDataApi.js +0 -91
  28. package/dist/apis/DashboardRelationsApi.d.ts +0 -92
  29. package/dist/apis/DashboardRelationsApi.js +0 -117
  30. package/dist/apis/DashboardsApi.d.ts +0 -405
  31. package/dist/apis/DashboardsApi.js +0 -507
  32. package/dist/apis/DatabasesApi.d.ts +0 -134
  33. package/dist/apis/DatabasesApi.js +0 -162
  34. package/dist/apis/ResolveApi.d.ts +0 -20
  35. package/dist/apis/ResolveApi.js +0 -29
  36. package/dist/apis/TemplatesApi.d.ts +0 -100
  37. package/dist/apis/TemplatesApi.js +0 -124
  38. package/dist/extras/messaging.d.ts +0 -81
  39. package/dist/extras/messaging.js +0 -16
  40. package/dist/types/common/portal-form.d.ts +0 -14
  41. package/dist/types/common/portal-form.js +0 -8
  42. package/dist/types/dashboard/custom-item.d.ts +0 -53
  43. package/dist/types/dashboard/custom-item.js +0 -22
  44. package/dist/types/dashboard/dashboard.d.ts +0 -421
  45. package/dist/types/dashboard/dashboard.js +0 -8
  46. package/dist/types/dashboard/dashboards.d.ts +0 -19
  47. package/dist/types/dashboard/dashboards.js +0 -8
  48. package/dist/types/dashboard/data.d.ts +0 -10
  49. package/dist/types/dashboard/data.js +0 -8
  50. package/dist/types/dashboard/export.d.ts +0 -11
  51. package/dist/types/dashboard/export.js +0 -8
  52. package/dist/types/dashboard/index.d.ts +0 -215
  53. package/dist/types/dashboard/index.js +0 -34
  54. package/dist/types/dashboard/intent.d.ts +0 -243
  55. package/dist/types/dashboard/intent.js +0 -8
  56. package/dist/types/dashboard/items.d.ts +0 -14
  57. package/dist/types/dashboard/items.js +0 -8
  58. package/dist/types/dashboard/metadata.d.ts +0 -12
  59. package/dist/types/dashboard/metadata.js +0 -8
  60. package/dist/types/dashboard/render.d.ts +0 -188
  61. package/dist/types/dashboard/render.js +0 -51
  62. package/dist/types/dashboard/rows.d.ts +0 -77
  63. package/dist/types/dashboard/rows.js +0 -14
  64. package/dist/types/dashboard/schema.d.ts +0 -172
  65. package/dist/types/dashboard/schema.js +0 -17
  66. package/dist/types/dashboard/values.d.ts +0 -187
  67. package/dist/types/dashboard/values.js +0 -8
  68. package/dist/types/dashboard/view.d.ts +0 -249
  69. package/dist/types/dashboard/view.js +0 -8
  70. package/dist/types/database/database.d.ts +0 -203
  71. package/dist/types/database/database.js +0 -8
  72. package/dist/types/database/export.d.ts +0 -11
  73. package/dist/types/database/export.js +0 -8
  74. package/dist/types/relations/relations.d.ts +0 -138
  75. package/dist/types/relations/relations.js +0 -14
  76. package/dist/types/resolve/resolve.d.ts +0 -86
  77. package/dist/types/resolve/resolve.js +0 -20
  78. package/dist/types/template/template.d.ts +0 -74
  79. package/dist/types/template/template.js +0 -8
@@ -1,86 +0,0 @@
1
- /**
2
- * Resolve Aliases Schemas
3
- *
4
- * Request/response contracts for resolving database, dashboard, and view
5
- * by alias or id within an organization scope.
6
- */
7
- import type { AliasContract, ScopeOrgContract, StandardApiResponseContract } from "../shared/common";
8
- export type ResolveEntityTypeContract = "database" | "dashboard" | "view";
9
- export type ResolveErrorCodeContract = "ALIAS_NOT_FOUND" | "ID_NOT_FOUND" | "SCOPE_MISMATCH" | "PARENT_NOT_FOUND";
10
- /**
11
- * Single item to resolve: one entity (database, dashboard, or view) with optional parent refs.
12
- * For dashboard: database_id or database_alias is required.
13
- * For view: database_id or database_alias and dashboard_id or dashboard_alias are required.
14
- */
15
- export interface ResolveItemRequestContract {
16
- /** What to resolve */
17
- entity_type: ResolveEntityTypeContract;
18
- /** Alias of the entity (at least one of alias or id required) */
19
- alias?: AliasContract | null;
20
- /**
21
- * Global ID of the entity
22
- * @format uuid
23
- * @nullable true
24
- */
25
- id?: string | null;
26
- /** For dashboard/view: parent database alias. One of database_alias or database_id required. */
27
- database_alias?: AliasContract | null;
28
- /**
29
- * For dashboard/view: parent database global ID
30
- * @format uuid
31
- * @nullable true
32
- */
33
- database_id?: string | null;
34
- /** For view: parent dashboard alias. One of dashboard_alias or dashboard_id required. */
35
- dashboard_alias?: AliasContract | null;
36
- /**
37
- * For view: parent dashboard global ID
38
- * @format uuid
39
- * @nullable true
40
- */
41
- dashboard_id?: string | null;
42
- }
43
- export interface ResolveAliasesRequestContract {
44
- /** Organization scope to resolve within */
45
- scope: ScopeOrgContract;
46
- /** Flat list of items to resolve (order preserved in response) */
47
- items: ResolveItemRequestContract[];
48
- }
49
- /**
50
- * Result for one resolved (or unresolved) entity.
51
- */
52
- export interface ResolvedItemContract {
53
- entity_type: ResolveEntityTypeContract;
54
- /**
55
- * Resolved global_id or null if not found
56
- * @format uuid
57
- * @nullable true
58
- */
59
- id: string | null;
60
- /** Resolved alias or null */
61
- alias: string | null;
62
- /** Whether the entity was found and resolved */
63
- resolved: boolean;
64
- /**
65
- * Error code when resolved is false
66
- * @nullable true
67
- */
68
- error_code?: ResolveErrorCodeContract | null;
69
- }
70
- export interface ResolveAliasesResponseDataContract {
71
- results: ResolvedItemContract[];
72
- }
73
- export interface ResolveAliasesResponseContract extends StandardApiResponseContract {
74
- data?: ResolveAliasesResponseDataContract;
75
- }
76
- export declare const ResolveEntityTypeContract: {
77
- readonly Database: "database";
78
- readonly Dashboard: "dashboard";
79
- readonly View: "view";
80
- };
81
- export declare const ResolveErrorCodeContract: {
82
- readonly AliasNotFound: "ALIAS_NOT_FOUND";
83
- readonly IdNotFound: "ID_NOT_FOUND";
84
- readonly ScopeMismatch: "SCOPE_MISMATCH";
85
- readonly ParentNotFound: "PARENT_NOT_FOUND";
86
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * Resolve Aliases Schemas
4
- *
5
- * Request/response contracts for resolving database, dashboard, and view
6
- * by alias or id within an organization scope.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ResolveErrorCodeContract = exports.ResolveEntityTypeContract = void 0;
10
- exports.ResolveEntityTypeContract = {
11
- Database: "database",
12
- Dashboard: "dashboard",
13
- View: "view"
14
- };
15
- exports.ResolveErrorCodeContract = {
16
- AliasNotFound: "ALIAS_NOT_FOUND",
17
- IdNotFound: "ID_NOT_FOUND",
18
- ScopeMismatch: "SCOPE_MISMATCH",
19
- ParentNotFound: "PARENT_NOT_FOUND"
20
- };
@@ -1,74 +0,0 @@
1
- /**
2
- * Template Schemas
3
- *
4
- * Generated from OpenAPI specification
5
- * Source: schemas/template/template.yaml
6
- */
7
- import type { DashboardMetadataContract } from "../dashboard/metadata";
8
- import type { DashboardSchemaContract } from "../dashboard/schema";
9
- import type { FilterConfigContract, StandardApiResponseContract } from "../shared/common";
10
- import type { RootEntityContract } from "../shared/enums";
11
- export interface CreateTemplateRequestContract {
12
- /**
13
- * Unique identifier
14
- *
15
- * @format uuid
16
- */
17
- global_id: string;
18
- /**
19
- * Template name
20
- *
21
- * @minLength 1
22
- * @maxLength 255
23
- */
24
- name: string;
25
- root_entity: RootEntityContract;
26
- schema: DashboardSchemaContract;
27
- filters: FilterConfigContract;
28
- metadata?: DashboardMetadataContract;
29
- }
30
- export interface TemplateContract {
31
- /**
32
- * Unique identifier
33
- *
34
- * @format uuid
35
- */
36
- global_id: string;
37
- /**
38
- * Template name
39
- */
40
- name: string;
41
- root_entity: RootEntityContract;
42
- schema: DashboardSchemaContract;
43
- filters: FilterConfigContract;
44
- metadata: DashboardMetadataContract;
45
- /**
46
- * @format date-time
47
- */
48
- created_at: Date;
49
- /**
50
- * @format date-time
51
- */
52
- updated_at: Date;
53
- /**
54
- * @format date-time
55
- * @nullable true
56
- */
57
- deleted_at?: Date | null;
58
- }
59
- export interface TemplateListResponseContract extends StandardApiResponseContract {
60
- data: TemplateContract[];
61
- }
62
- export interface TemplateResponseContract extends StandardApiResponseContract {
63
- data: TemplateContract;
64
- }
65
- export interface UpdateTemplateRequestContract {
66
- /**
67
- * @minLength 1
68
- * @maxLength 255
69
- */
70
- name?: string;
71
- schema?: DashboardSchemaContract;
72
- filters?: FilterConfigContract;
73
- metadata?: DashboardMetadataContract;
74
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Template Schemas
4
- *
5
- * Generated from OpenAPI specification
6
- * Source: schemas/template/template.yaml
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });