@fusebase/fusebase-gate-sdk 1.0.2-sdk.0

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 (88) hide show
  1. package/README.md +52 -0
  2. package/dist/apis/CustomDashboardRowsApi.d.ts +113 -0
  3. package/dist/apis/CustomDashboardRowsApi.js +122 -0
  4. package/dist/apis/DashboardDataApi.d.ts +98 -0
  5. package/dist/apis/DashboardDataApi.js +91 -0
  6. package/dist/apis/DashboardRelationsApi.d.ts +92 -0
  7. package/dist/apis/DashboardRelationsApi.js +117 -0
  8. package/dist/apis/DashboardsApi.d.ts +405 -0
  9. package/dist/apis/DashboardsApi.js +507 -0
  10. package/dist/apis/DatabasesApi.d.ts +134 -0
  11. package/dist/apis/DatabasesApi.js +162 -0
  12. package/dist/apis/HealthApi.d.ts +19 -0
  13. package/dist/apis/HealthApi.js +28 -0
  14. package/dist/apis/OrgUsersApi.d.ts +22 -0
  15. package/dist/apis/OrgUsersApi.js +29 -0
  16. package/dist/apis/ResolveApi.d.ts +20 -0
  17. package/dist/apis/ResolveApi.js +29 -0
  18. package/dist/apis/TemplatesApi.d.ts +100 -0
  19. package/dist/apis/TemplatesApi.js +124 -0
  20. package/dist/apis/TokensApi.d.ts +71 -0
  21. package/dist/apis/TokensApi.js +95 -0
  22. package/dist/extras/fetchWithRetry.d.ts +30 -0
  23. package/dist/extras/fetchWithRetry.js +53 -0
  24. package/dist/extras/messaging.d.ts +81 -0
  25. package/dist/extras/messaging.js +16 -0
  26. package/dist/index.d.ts +11 -0
  27. package/dist/index.js +31 -0
  28. package/dist/runtime/index.d.ts +5 -0
  29. package/dist/runtime/index.js +21 -0
  30. package/dist/runtime/transport.d.ts +28 -0
  31. package/dist/runtime/transport.js +237 -0
  32. package/dist/runtime/types.d.ts +52 -0
  33. package/dist/runtime/types.js +23 -0
  34. package/dist/types/common/portal-form.d.ts +14 -0
  35. package/dist/types/common/portal-form.js +8 -0
  36. package/dist/types/dashboard/custom-item.d.ts +53 -0
  37. package/dist/types/dashboard/custom-item.js +22 -0
  38. package/dist/types/dashboard/dashboard.d.ts +421 -0
  39. package/dist/types/dashboard/dashboard.js +8 -0
  40. package/dist/types/dashboard/dashboards.d.ts +19 -0
  41. package/dist/types/dashboard/dashboards.js +8 -0
  42. package/dist/types/dashboard/data.d.ts +10 -0
  43. package/dist/types/dashboard/data.js +8 -0
  44. package/dist/types/dashboard/export.d.ts +11 -0
  45. package/dist/types/dashboard/export.js +8 -0
  46. package/dist/types/dashboard/index.d.ts +215 -0
  47. package/dist/types/dashboard/index.js +34 -0
  48. package/dist/types/dashboard/intent.d.ts +243 -0
  49. package/dist/types/dashboard/intent.js +8 -0
  50. package/dist/types/dashboard/items.d.ts +14 -0
  51. package/dist/types/dashboard/items.js +8 -0
  52. package/dist/types/dashboard/metadata.d.ts +12 -0
  53. package/dist/types/dashboard/metadata.js +8 -0
  54. package/dist/types/dashboard/render.d.ts +188 -0
  55. package/dist/types/dashboard/render.js +51 -0
  56. package/dist/types/dashboard/rows.d.ts +77 -0
  57. package/dist/types/dashboard/rows.js +14 -0
  58. package/dist/types/dashboard/schema.d.ts +172 -0
  59. package/dist/types/dashboard/schema.js +17 -0
  60. package/dist/types/dashboard/values.d.ts +187 -0
  61. package/dist/types/dashboard/values.js +8 -0
  62. package/dist/types/dashboard/view.d.ts +249 -0
  63. package/dist/types/dashboard/view.js +8 -0
  64. package/dist/types/database/database.d.ts +203 -0
  65. package/dist/types/database/database.js +8 -0
  66. package/dist/types/database/export.d.ts +11 -0
  67. package/dist/types/database/export.js +8 -0
  68. package/dist/types/index.d.ts +31 -0
  69. package/dist/types/index.js +30 -0
  70. package/dist/types/org-user/org-user.d.ts +19 -0
  71. package/dist/types/org-user/org-user.js +6 -0
  72. package/dist/types/relations/relations.d.ts +138 -0
  73. package/dist/types/relations/relations.js +14 -0
  74. package/dist/types/resolve/resolve.d.ts +86 -0
  75. package/dist/types/resolve/resolve.js +20 -0
  76. package/dist/types/shared/common.d.ts +122 -0
  77. package/dist/types/shared/common.js +24 -0
  78. package/dist/types/shared/enums.d.ts +64 -0
  79. package/dist/types/shared/enums.js +52 -0
  80. package/dist/types/shared/health.d.ts +12 -0
  81. package/dist/types/shared/health.js +8 -0
  82. package/dist/types/shared/parameters.d.ts +95 -0
  83. package/dist/types/shared/parameters.js +2 -0
  84. package/dist/types/template/template.d.ts +74 -0
  85. package/dist/types/template/template.js +8 -0
  86. package/dist/types/token/token.d.ts +184 -0
  87. package/dist/types/token/token.js +8 -0
  88. package/package.json +16 -0
@@ -0,0 +1,74 @@
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
+ }
@@ -0,0 +1,8 @@
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 });
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Token Schemas
3
+ *
4
+ * Generated from OpenAPI specification
5
+ * Source: schemas/token/token.yaml
6
+ */
7
+ import type { ScopeContract } from "../shared/common";
8
+ import type { PermissionContract } from "../shared/enums";
9
+ export interface CreateTokenRequestContract {
10
+ /**
11
+ * Array of scopes for the token. Must include org scope.
12
+ */
13
+ scopes: ScopeContract[];
14
+ /**
15
+ * Array of permission strings. Users can only grant permissions they themselves possess.
16
+ * See Permission enum for available permissions.
17
+ *
18
+ */
19
+ permissions: PermissionContract[];
20
+ /**
21
+ * Resource scope defining which resources this token can access.
22
+ * Required to explicitly define access restrictions.
23
+ *
24
+ */
25
+ resource_scope: ResourceScopeContract;
26
+ /**
27
+ * Optional name for the token
28
+ *
29
+ * @nullable true
30
+ */
31
+ name?: string | null;
32
+ /**
33
+ * Optional expiration date for the token
34
+ *
35
+ * @format date-time
36
+ * @nullable true
37
+ */
38
+ expires_at?: Date | null;
39
+ }
40
+ export interface CreateTokenResponseContract {
41
+ success: boolean;
42
+ /**
43
+ * @nullable true
44
+ */
45
+ message?: string | null;
46
+ data: {
47
+ /**
48
+ * The token value (only returned once on creation)
49
+ */
50
+ token: string;
51
+ /**
52
+ * @format uuid
53
+ */
54
+ global_id: string;
55
+ /**
56
+ * @nullable true
57
+ */
58
+ name?: string | null;
59
+ permissions: string[];
60
+ /**
61
+ * @format date-time
62
+ * @nullable true
63
+ */
64
+ expires_at?: Date | null;
65
+ /**
66
+ * @format date-time
67
+ */
68
+ created_at: Date;
69
+ };
70
+ }
71
+ /**
72
+ * Resource scope defining which resources a token can access.
73
+ * If both allow and deny are omitted/null, all resources are allowed.
74
+ *
75
+ */
76
+ export interface ResourceScopeContract {
77
+ /**
78
+ * Allow rules. If null/undefined, all resources are allowed unless denied.
79
+ * If empty array, all resources are denied.
80
+ *
81
+ */
82
+ allow?: ResourceScopeRuleContract[];
83
+ /**
84
+ * Deny rules. Resources matching deny rules are always denied, even if they match allow rules.
85
+ *
86
+ */
87
+ deny?: ResourceScopeRuleContract[];
88
+ }
89
+ /**
90
+ * A resource scope rule: resource type + list of ids (or "*" for all).
91
+ * resource_type e.g. "org", "token", "automation.workflow".
92
+ * ids: ["*"] for all, or ["globalId:<uuid>", ...] / ["<id>", ...] for specific resources.
93
+ */
94
+ export interface ResourceScopeRuleContract {
95
+ resource_type: string;
96
+ ids: string[];
97
+ }
98
+ export interface RevokeTokenResponseContract {
99
+ success: boolean;
100
+ message: string;
101
+ }
102
+ export interface TokenContract {
103
+ /**
104
+ * Unique identifier for the token
105
+ *
106
+ * @format uuid
107
+ */
108
+ global_id: string;
109
+ /**
110
+ * Token name
111
+ *
112
+ * @nullable true
113
+ */
114
+ name?: string | null;
115
+ /**
116
+ * Array of permission strings granted to this token
117
+ */
118
+ permissions: PermissionContract[];
119
+ /**
120
+ * Array of scopes associated with the token
121
+ *
122
+ * @nullable true
123
+ */
124
+ scopes?: ScopeContract[];
125
+ /**
126
+ * Token expiration date
127
+ *
128
+ * @format date-time
129
+ * @nullable true
130
+ */
131
+ expires_at?: Date | null;
132
+ /**
133
+ * Last time the token was used
134
+ *
135
+ * @format date-time
136
+ * @nullable true
137
+ */
138
+ last_used_at?: Date | null;
139
+ /**
140
+ * Token creation date
141
+ *
142
+ * @format date-time
143
+ */
144
+ created_at: Date;
145
+ }
146
+ export interface TokenListResponseContract {
147
+ success: boolean;
148
+ /**
149
+ * @nullable true
150
+ */
151
+ message?: string | null;
152
+ data: TokenContract[];
153
+ }
154
+ export interface TokenResponseContract {
155
+ success: boolean;
156
+ /**
157
+ * @nullable true
158
+ */
159
+ message?: string | null;
160
+ data: TokenContract;
161
+ }
162
+ export interface UpdateTokenRequestContract {
163
+ /**
164
+ * Token name
165
+ *
166
+ * @nullable true
167
+ */
168
+ name?: string | null;
169
+ /**
170
+ * Array of permission strings. Users can only grant permissions they themselves possess.
171
+ * See Permission enum for available permissions.
172
+ *
173
+ *
174
+ * @nullable true
175
+ */
176
+ permissions?: PermissionContract[];
177
+ /**
178
+ * Expiration date for the token. Set to null to remove expiration.
179
+ *
180
+ * @format date-time
181
+ * @nullable true
182
+ */
183
+ expires_at?: Date | null;
184
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Token Schemas
4
+ *
5
+ * Generated from OpenAPI specification
6
+ * Source: schemas/token/token.yaml
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@fusebase/fusebase-gate-sdk",
3
+ "version": "1.0.2-sdk.0",
4
+ "description": "TypeScript SDK for Dashboard Service API - Generated from contract introspection",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc -p tsconfig.json"
12
+ },
13
+ "devDependencies": {
14
+ "typescript": "^5.0"
15
+ }
16
+ }