@meshery/schemas 1.2.14 → 1.2.16

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 (151) hide show
  1. package/dist/cloudApi.d.mts +1516 -1516
  2. package/dist/cloudApi.d.ts +1516 -1516
  3. package/dist/constructs/v1alpha1/capability/Capability.d.ts +114 -0
  4. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +2 -0
  5. package/dist/constructs/v1alpha1/core/Core.d.ts +832 -0
  6. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +2 -0
  7. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +53 -0
  8. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +2 -0
  9. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1937 -0
  10. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +2 -0
  11. package/dist/constructs/v1beta1/academy/Academy.d.ts +6417 -0
  12. package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +2 -0
  13. package/dist/constructs/v1beta1/badge/Badge.d.ts +546 -0
  14. package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +2 -0
  15. package/dist/constructs/v1beta1/capability/Capability.d.ts +114 -0
  16. package/dist/constructs/v1beta1/capability/CapabilitySchema.d.ts +2 -0
  17. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +53 -0
  18. package/dist/constructs/v1beta1/catalog/CatalogSchema.d.ts +2 -0
  19. package/dist/constructs/v1beta1/category/Category.d.ts +46 -0
  20. package/dist/constructs/v1beta1/category/CategorySchema.d.ts +2 -0
  21. package/dist/constructs/v1beta1/component/Component.d.ts +869 -0
  22. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +2 -0
  23. package/dist/constructs/v1beta1/connection/Connection.d.ts +1300 -0
  24. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +2 -0
  25. package/dist/constructs/v1beta1/core/Core.d.ts +832 -0
  26. package/dist/constructs/v1beta1/core/CoreSchema.d.ts +2 -0
  27. package/dist/constructs/v1beta1/credential/Credential.d.ts +530 -0
  28. package/dist/constructs/v1beta1/credential/CredentialSchema.d.ts +2 -0
  29. package/dist/constructs/v1beta1/environment/Environment.d.ts +759 -0
  30. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +2 -0
  31. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6338 -0
  32. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +2 -0
  33. package/dist/constructs/v1beta1/event/Event.d.ts +570 -0
  34. package/dist/constructs/v1beta1/event/EventSchema.d.ts +2 -0
  35. package/dist/constructs/v1beta1/feature/Feature.d.ts +308 -0
  36. package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +2 -0
  37. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +983 -0
  38. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +2 -0
  39. package/dist/constructs/v1beta1/key/Key.d.ts +514 -0
  40. package/dist/constructs/v1beta1/key/KeySchema.d.ts +2 -0
  41. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +642 -0
  42. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +2 -0
  43. package/dist/constructs/v1beta1/model/Model.d.ts +659 -0
  44. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +2 -0
  45. package/dist/constructs/v1beta1/organization/Organization.d.ts +1598 -0
  46. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +2 -0
  47. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +18407 -0
  48. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +2 -0
  49. package/dist/constructs/v1beta1/plan/Plan.d.ts +149 -0
  50. package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +2 -0
  51. package/dist/constructs/v1beta1/relationship/Relationship.d.ts +1921 -0
  52. package/dist/constructs/v1beta1/relationship/RelationshipSchema.d.ts +2 -0
  53. package/dist/constructs/v1beta1/role/Role.d.ts +745 -0
  54. package/dist/constructs/v1beta1/role/RoleSchema.d.ts +2 -0
  55. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +374 -0
  56. package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.ts +2 -0
  57. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +68 -0
  58. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +2 -0
  59. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +752 -0
  60. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +2 -0
  61. package/dist/constructs/v1beta1/support/Support.d.ts +91 -0
  62. package/dist/constructs/v1beta1/support/SupportSchema.d.ts +2 -0
  63. package/dist/constructs/v1beta1/team/Team.d.ts +846 -0
  64. package/dist/constructs/v1beta1/team/TeamSchema.d.ts +2 -0
  65. package/dist/constructs/v1beta1/token/Token.d.ts +539 -0
  66. package/dist/constructs/v1beta1/token/TokenSchema.d.ts +2 -0
  67. package/dist/constructs/v1beta1/user/User.d.ts +1677 -0
  68. package/dist/constructs/v1beta1/user/UserSchema.d.ts +2 -0
  69. package/dist/constructs/v1beta1/view/View.d.ts +759 -0
  70. package/dist/constructs/v1beta1/view/ViewSchema.d.ts +2 -0
  71. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4947 -0
  72. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +2 -0
  73. package/dist/constructs/v1beta2/academy/Academy.d.ts +7762 -0
  74. package/dist/constructs/v1beta2/academy/AcademySchema.d.ts +2 -0
  75. package/dist/constructs/v1beta2/badge/Badge.d.ts +563 -0
  76. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +2 -0
  77. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +53 -0
  78. package/dist/constructs/v1beta2/catalog/CatalogSchema.d.ts +2 -0
  79. package/dist/constructs/v1beta2/component/Component.d.ts +887 -0
  80. package/dist/constructs/v1beta2/component/ComponentSchema.d.ts +2 -0
  81. package/dist/constructs/v1beta2/connection/Connection.d.ts +1330 -0
  82. package/dist/constructs/v1beta2/connection/ConnectionSchema.d.ts +2 -0
  83. package/dist/constructs/v1beta2/core/Core.d.ts +866 -0
  84. package/dist/constructs/v1beta2/core/CoreSchema.d.ts +2 -0
  85. package/dist/constructs/v1beta2/credential/Credential.d.ts +519 -0
  86. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +2 -0
  87. package/dist/constructs/v1beta2/design/Design.d.ts +19039 -0
  88. package/dist/constructs/v1beta2/design/DesignSchema.d.ts +2 -0
  89. package/dist/constructs/v1beta2/event/Event.d.ts +626 -0
  90. package/dist/constructs/v1beta2/event/EventSchema.d.ts +2 -0
  91. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +1052 -0
  92. package/dist/constructs/v1beta2/invitation/InvitationSchema.d.ts +2 -0
  93. package/dist/constructs/v1beta2/key/Key.d.ts +524 -0
  94. package/dist/constructs/v1beta2/key/KeySchema.d.ts +2 -0
  95. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +652 -0
  96. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +2 -0
  97. package/dist/constructs/v1beta2/model/Model.d.ts +697 -0
  98. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +2 -0
  99. package/dist/constructs/v1beta2/organization/Organization.d.ts +1915 -0
  100. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +2 -0
  101. package/dist/constructs/v1beta2/plan/Plan.d.ts +162 -0
  102. package/dist/constructs/v1beta2/plan/PlanSchema.d.ts +2 -0
  103. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2134 -0
  104. package/dist/constructs/v1beta2/relationship/RelationshipSchema.d.ts +2 -0
  105. package/dist/constructs/v1beta2/role/Role.d.ts +752 -0
  106. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +2 -0
  107. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +431 -0
  108. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +2 -0
  109. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +785 -0
  110. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.d.ts +2 -0
  111. package/dist/constructs/v1beta2/team/Team.d.ts +960 -0
  112. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +2 -0
  113. package/dist/constructs/v1beta2/token/Token.d.ts +544 -0
  114. package/dist/constructs/v1beta2/token/TokenSchema.d.ts +2 -0
  115. package/dist/constructs/v1beta2/user/User.d.ts +1677 -0
  116. package/dist/constructs/v1beta2/user/UserSchema.d.ts +2 -0
  117. package/dist/constructs/v1beta2/view/View.d.ts +767 -0
  118. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +2 -0
  119. package/dist/constructs/v1beta3/academy/Academy.d.ts +7762 -0
  120. package/dist/constructs/v1beta3/academy/AcademySchema.d.ts +2 -0
  121. package/dist/constructs/v1beta3/component/Component.d.ts +892 -0
  122. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +2 -0
  123. package/dist/constructs/v1beta3/connection/Connection.d.ts +1414 -0
  124. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +2 -0
  125. package/dist/constructs/v1beta3/design/Design.d.ts +5704 -0
  126. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +2 -0
  127. package/dist/constructs/v1beta3/environment/Environment.d.ts +785 -0
  128. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +2 -0
  129. package/dist/constructs/v1beta3/event/Event.d.ts +720 -0
  130. package/dist/constructs/v1beta3/event/EventSchema.d.ts +2 -0
  131. package/dist/constructs/v1beta3/filter/Filter.d.ts +1452 -0
  132. package/dist/constructs/v1beta3/filter/FilterSchema.d.ts +2 -0
  133. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1060 -0
  134. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +2 -0
  135. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +813 -0
  136. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.d.ts +2 -0
  137. package/dist/constructs/v1beta3/plan/Plan.d.ts +199 -0
  138. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +2 -0
  139. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2134 -0
  140. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +2 -0
  141. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +915 -0
  142. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +2 -0
  143. package/dist/constructs/v1beta3/token/Token.d.ts +544 -0
  144. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +2 -0
  145. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +5086 -0
  146. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +2 -0
  147. package/dist/index.js +1 -1
  148. package/dist/index.mjs +1 -1
  149. package/dist/mesheryApi.d.mts +546 -546
  150. package/dist/mesheryApi.d.ts +546 -546
  151. package/package.json +2 -2
@@ -0,0 +1,960 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export interface paths {
7
+ "/api/identity/orgs/{orgId}/teams": {
8
+ /** Gets all teams within an organization */
9
+ get: operations["getTeams"];
10
+ /** Creates a new team within an organization */
11
+ post: operations["createTeam"];
12
+ };
13
+ "/api/identity/orgs/{orgId}/teams/{teamId}": {
14
+ /** Gets a team by its ID */
15
+ get: operations["getTeamById"];
16
+ /** Updates a team's information */
17
+ put: operations["updateTeam"];
18
+ /** Deletes a team by its ID */
19
+ delete: operations["deleteTeam"];
20
+ };
21
+ "/api/identity/teams/{teamId}/users": {
22
+ /** Gets all users that belong to a team */
23
+ get: operations["getTeamUsers"];
24
+ };
25
+ "/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}": {
26
+ /** Assigns a user to a team */
27
+ post: operations["addUserToTeam"];
28
+ /** Unassigns a user from a team */
29
+ delete: operations["removeUserFromTeam"];
30
+ };
31
+ "/api/identity/orgs/{orgId}/teams/{teamId}/users": {
32
+ get: operations["listUsersNotInTeam"];
33
+ };
34
+ }
35
+
36
+ export interface components {
37
+ schemas: {
38
+ /** @description A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams */
39
+ Team: {
40
+ /**
41
+ * Format: uuid
42
+ * @description Team ID
43
+ */
44
+ id: string;
45
+ /** @description Team name */
46
+ name: string;
47
+ /** @description Team description */
48
+ description?: string;
49
+ /**
50
+ * Format: uuid
51
+ * @description User ID of the owner of the team
52
+ */
53
+ owner?: string;
54
+ /** @description Additional metadata for the team */
55
+ metadata?: { [key: string]: unknown };
56
+ /**
57
+ * Format: date-time
58
+ * @description Timestamp when the team was created.
59
+ */
60
+ createdAt: string;
61
+ /**
62
+ * Format: date-time
63
+ * @description Timestamp when the team was last updated.
64
+ */
65
+ updatedAt: string;
66
+ /**
67
+ * Format: date-time
68
+ * @description Timestamp when the team was soft-deleted, if applicable.
69
+ */
70
+ deletedAt?: string;
71
+ };
72
+ /** @description Payload for creating a new team */
73
+ TeamPayload: {
74
+ /** @description Team name. Provide a meaningful name that represents this team. */
75
+ name: string;
76
+ /** @description A detailed description of the team's purpose and responsibilities. */
77
+ description?: string;
78
+ };
79
+ /** @description Payload for updating an existing team */
80
+ TeamUpdatePayload: {
81
+ /** @description Updated team name */
82
+ name?: string;
83
+ /** @description Updated team description */
84
+ description?: string;
85
+ };
86
+ /** @description Paginated list of teams */
87
+ TeamPage: {
88
+ /** @description Current page number of the result set. */
89
+ page?: number;
90
+ /** @description Number of items per page. */
91
+ page_size?: number;
92
+ /** @description Total number of items available. */
93
+ total_count?: number;
94
+ /** @description The teams of the teampage. */
95
+ teams?: {
96
+ /**
97
+ * Format: uuid
98
+ * @description Team ID
99
+ */
100
+ id: string;
101
+ /** @description Team name */
102
+ name: string;
103
+ /** @description Team description */
104
+ description?: string;
105
+ /**
106
+ * Format: uuid
107
+ * @description User ID of the owner of the team
108
+ */
109
+ owner?: string;
110
+ /** @description Additional metadata for the team */
111
+ metadata?: { [key: string]: unknown };
112
+ /**
113
+ * Format: date-time
114
+ * @description Timestamp when the team was created.
115
+ */
116
+ createdAt: string;
117
+ /**
118
+ * Format: date-time
119
+ * @description Timestamp when the team was last updated.
120
+ */
121
+ updatedAt: string;
122
+ /**
123
+ * Format: date-time
124
+ * @description Timestamp when the team was soft-deleted, if applicable.
125
+ */
126
+ deletedAt?: string;
127
+ }[];
128
+ };
129
+ /** @description Join row between users and teams. The schema name is `UsersTeamsMapping` (rather than `TeamsUsersMapping`) so that pop's tableize default produces the live DB table name `users_teams_mappings`, eliminating the need for an explicit `TableName()` helper on the generated Go struct. */
130
+ UsersTeamsMapping: {
131
+ /** Format: uuid */
132
+ id?: string;
133
+ /**
134
+ * Format: uuid
135
+ * @description Team ID
136
+ */
137
+ teamId?: string;
138
+ /**
139
+ * Format: uuid
140
+ * @description User ID
141
+ */
142
+ userId?: string;
143
+ /**
144
+ * Format: uuid
145
+ * @description Optional role assigned to this team membership. Nullable because a membership may exist without an explicit role (e.g., team-admin assignments are stamped on insert; non-owner adds may leave `role_id` null until a role is assigned). References `roles.id`.
146
+ */
147
+ roleId?: string;
148
+ /**
149
+ * Format: date-time
150
+ * @description Timestamp when the mapping was created.
151
+ */
152
+ createdAt?: string;
153
+ /**
154
+ * Format: date-time
155
+ * @description Timestamp when the mapping was last updated.
156
+ */
157
+ updatedAt?: string;
158
+ /**
159
+ * Format: date-time
160
+ * @description Timestamp when the mapping was soft-deleted, if applicable.
161
+ */
162
+ deletedAt?: string;
163
+ };
164
+ /** @description Paginated list of user-team mappings */
165
+ UsersTeamsMappingPage: {
166
+ /** @description Current page number of the result set. */
167
+ page?: number;
168
+ /** @description Number of items per page. */
169
+ page_size?: number;
170
+ /** @description Total number of items available. */
171
+ total_count?: number;
172
+ /** @description The user-team mappings on the current page. */
173
+ usersTeamsMapping?: {
174
+ /** Format: uuid */
175
+ id?: string;
176
+ /**
177
+ * Format: uuid
178
+ * @description Team ID
179
+ */
180
+ teamId?: string;
181
+ /**
182
+ * Format: uuid
183
+ * @description User ID
184
+ */
185
+ userId?: string;
186
+ /**
187
+ * Format: uuid
188
+ * @description Optional role assigned to this team membership. Nullable because a membership may exist without an explicit role (e.g., team-admin assignments are stamped on insert; non-owner adds may leave `role_id` null until a role is assigned). References `roles.id`.
189
+ */
190
+ roleId?: string;
191
+ /**
192
+ * Format: date-time
193
+ * @description Timestamp when the mapping was created.
194
+ */
195
+ createdAt?: string;
196
+ /**
197
+ * Format: date-time
198
+ * @description Timestamp when the mapping was last updated.
199
+ */
200
+ updatedAt?: string;
201
+ /**
202
+ * Format: date-time
203
+ * @description Timestamp when the mapping was soft-deleted, if applicable.
204
+ */
205
+ deletedAt?: string;
206
+ }[];
207
+ };
208
+ /** @description A user who is a prospective or existing team member. Returned by the "list users in team" endpoint. `joinedAt` is the first canonicalised projection field — other user fields (`id`, `firstName`, `lastName`, `email`, `avatarUrl`) continue to flow through `additionalProperties` pending migration of the user schema to the canonical-casing contract. See meshery/schemas#832 for the per-field roadmap. */
209
+ TeamMember: {
210
+ /**
211
+ * Format: date-time
212
+ * @description Timestamp when the user joined the team. Server-computed from the earliest matching row in `users_teams_mapping` for this (team, user) pair. Server-managed; clients cannot set this.
213
+ */
214
+ joinedAt?: string;
215
+ } & { [key: string]: unknown };
216
+ /** @description Paginated list of team members. */
217
+ TeamMembersPage: {
218
+ /** @description Current page number of the result set. */
219
+ page?: number;
220
+ /** @description Number of items per page. */
221
+ page_size?: number;
222
+ /** @description Total number of items available. */
223
+ total_count?: number;
224
+ /** @description The data of the teammemberspage. */
225
+ data?: ({
226
+ /**
227
+ * Format: date-time
228
+ * @description Timestamp when the user joined the team. Server-computed from the earliest matching row in `users_teams_mapping` for this (team, user) pair. Server-managed; clients cannot set this.
229
+ */
230
+ joinedAt?: string;
231
+ } & { [key: string]: unknown })[];
232
+ };
233
+ };
234
+ responses: {
235
+ /** ok */
236
+ 200: {
237
+ content: {
238
+ "text/plain": string;
239
+ };
240
+ };
241
+ /** Invalid request body or request param */
242
+ 400: {
243
+ content: {
244
+ "text/plain": string;
245
+ };
246
+ };
247
+ /** Expired JWT token used or insufficient privilege */
248
+ 401: {
249
+ content: {
250
+ "text/plain": string;
251
+ };
252
+ };
253
+ /** Result not found */
254
+ 404: {
255
+ content: {
256
+ "text/plain": string;
257
+ };
258
+ };
259
+ /** Internal server error */
260
+ 500: {
261
+ content: {
262
+ "text/plain": string;
263
+ };
264
+ };
265
+ };
266
+ parameters: {
267
+ /** @description Team ID */
268
+ teamId: string;
269
+ /** @description Organization ID */
270
+ orgId: string;
271
+ /** @description User ID */
272
+ userId: string;
273
+ /** @description Get responses that match search param value */
274
+ search: string;
275
+ /** @description Get ordered responses */
276
+ order: string;
277
+ /** @description Get responses by page */
278
+ page: string;
279
+ /** @description Get responses by pagesize */
280
+ pagesize: string;
281
+ };
282
+ requestBodies: {
283
+ /** Body for creating a team */
284
+ teamPayload: {
285
+ content: {
286
+ "application/json": {
287
+ /** @description Team name. Provide a meaningful name that represents this team. */
288
+ name: string;
289
+ /** @description A detailed description of the team's purpose and responsibilities. */
290
+ description?: string;
291
+ };
292
+ };
293
+ };
294
+ /** Body for updating a team */
295
+ teamUpdatePayload: {
296
+ content: {
297
+ "application/json": {
298
+ /** @description Updated team name */
299
+ name?: string;
300
+ /** @description Updated team description */
301
+ description?: string;
302
+ };
303
+ };
304
+ };
305
+ };
306
+ }
307
+
308
+ export interface operations {
309
+ /** Gets all teams within an organization */
310
+ getTeams: {
311
+ parameters: {
312
+ path: {
313
+ /** Organization ID */
314
+ orgId: string;
315
+ };
316
+ query: {
317
+ /** Get responses that match search param value */
318
+ search?: string;
319
+ /** Get ordered responses */
320
+ order?: string;
321
+ /** Get responses by page */
322
+ page?: string;
323
+ /** Get responses by pagesize */
324
+ pagesize?: string;
325
+ };
326
+ };
327
+ responses: {
328
+ /** Teams */
329
+ 200: {
330
+ content: {
331
+ "application/json": {
332
+ /** @description Current page number of the result set. */
333
+ page?: number;
334
+ /** @description Number of items per page. */
335
+ page_size?: number;
336
+ /** @description Total number of items available. */
337
+ total_count?: number;
338
+ /** @description The teams of the teampage. */
339
+ teams?: {
340
+ /**
341
+ * Format: uuid
342
+ * @description Team ID
343
+ */
344
+ id: string;
345
+ /** @description Team name */
346
+ name: string;
347
+ /** @description Team description */
348
+ description?: string;
349
+ /**
350
+ * Format: uuid
351
+ * @description User ID of the owner of the team
352
+ */
353
+ owner?: string;
354
+ /** @description Additional metadata for the team */
355
+ metadata?: { [key: string]: unknown };
356
+ /**
357
+ * Format: date-time
358
+ * @description Timestamp when the team was created.
359
+ */
360
+ createdAt: string;
361
+ /**
362
+ * Format: date-time
363
+ * @description Timestamp when the team was last updated.
364
+ */
365
+ updatedAt: string;
366
+ /**
367
+ * Format: date-time
368
+ * @description Timestamp when the team was soft-deleted, if applicable.
369
+ */
370
+ deletedAt?: string;
371
+ }[];
372
+ };
373
+ };
374
+ };
375
+ /** Expired JWT token used or insufficient privilege */
376
+ 401: {
377
+ content: {
378
+ "text/plain": string;
379
+ };
380
+ };
381
+ /** Result not found */
382
+ 404: {
383
+ content: {
384
+ "text/plain": string;
385
+ };
386
+ };
387
+ /** Internal server error */
388
+ 500: {
389
+ content: {
390
+ "text/plain": string;
391
+ };
392
+ };
393
+ };
394
+ };
395
+ /** Creates a new team within an organization */
396
+ createTeam: {
397
+ parameters: {
398
+ path: {
399
+ /** Organization ID */
400
+ orgId: string;
401
+ };
402
+ };
403
+ responses: {
404
+ /** Created team */
405
+ 201: {
406
+ content: {
407
+ "application/json": {
408
+ /**
409
+ * Format: uuid
410
+ * @description Team ID
411
+ */
412
+ id: string;
413
+ /** @description Team name */
414
+ name: string;
415
+ /** @description Team description */
416
+ description?: string;
417
+ /**
418
+ * Format: uuid
419
+ * @description User ID of the owner of the team
420
+ */
421
+ owner?: string;
422
+ /** @description Additional metadata for the team */
423
+ metadata?: { [key: string]: unknown };
424
+ /**
425
+ * Format: date-time
426
+ * @description Timestamp when the team was created.
427
+ */
428
+ createdAt: string;
429
+ /**
430
+ * Format: date-time
431
+ * @description Timestamp when the team was last updated.
432
+ */
433
+ updatedAt: string;
434
+ /**
435
+ * Format: date-time
436
+ * @description Timestamp when the team was soft-deleted, if applicable.
437
+ */
438
+ deletedAt?: string;
439
+ };
440
+ };
441
+ };
442
+ /** Invalid request body or request param */
443
+ 400: {
444
+ content: {
445
+ "text/plain": string;
446
+ };
447
+ };
448
+ /** Expired JWT token used or insufficient privilege */
449
+ 401: {
450
+ content: {
451
+ "text/plain": string;
452
+ };
453
+ };
454
+ /** Result not found */
455
+ 404: {
456
+ content: {
457
+ "text/plain": string;
458
+ };
459
+ };
460
+ /** Internal server error */
461
+ 500: {
462
+ content: {
463
+ "text/plain": string;
464
+ };
465
+ };
466
+ };
467
+ /** Body for creating a team */
468
+ requestBody: {
469
+ content: {
470
+ "application/json": {
471
+ /** @description Team name. Provide a meaningful name that represents this team. */
472
+ name: string;
473
+ /** @description A detailed description of the team's purpose and responsibilities. */
474
+ description?: string;
475
+ };
476
+ };
477
+ };
478
+ };
479
+ /** Gets a team by its ID */
480
+ getTeamById: {
481
+ parameters: {
482
+ path: {
483
+ /** Organization ID */
484
+ orgId: string;
485
+ /** Team ID */
486
+ teamId: string;
487
+ };
488
+ };
489
+ responses: {
490
+ /** Team */
491
+ 200: {
492
+ content: {
493
+ "application/json": {
494
+ /**
495
+ * Format: uuid
496
+ * @description Team ID
497
+ */
498
+ id: string;
499
+ /** @description Team name */
500
+ name: string;
501
+ /** @description Team description */
502
+ description?: string;
503
+ /**
504
+ * Format: uuid
505
+ * @description User ID of the owner of the team
506
+ */
507
+ owner?: string;
508
+ /** @description Additional metadata for the team */
509
+ metadata?: { [key: string]: unknown };
510
+ /**
511
+ * Format: date-time
512
+ * @description Timestamp when the team was created.
513
+ */
514
+ createdAt: string;
515
+ /**
516
+ * Format: date-time
517
+ * @description Timestamp when the team was last updated.
518
+ */
519
+ updatedAt: string;
520
+ /**
521
+ * Format: date-time
522
+ * @description Timestamp when the team was soft-deleted, if applicable.
523
+ */
524
+ deletedAt?: string;
525
+ };
526
+ };
527
+ };
528
+ /** Invalid request body or request param */
529
+ 400: {
530
+ content: {
531
+ "text/plain": string;
532
+ };
533
+ };
534
+ /** Expired JWT token used or insufficient privilege */
535
+ 401: {
536
+ content: {
537
+ "text/plain": string;
538
+ };
539
+ };
540
+ /** Result not found */
541
+ 404: {
542
+ content: {
543
+ "text/plain": string;
544
+ };
545
+ };
546
+ /** Internal server error */
547
+ 500: {
548
+ content: {
549
+ "text/plain": string;
550
+ };
551
+ };
552
+ };
553
+ };
554
+ /** Updates a team's information */
555
+ updateTeam: {
556
+ parameters: {
557
+ path: {
558
+ /** Organization ID */
559
+ orgId: string;
560
+ /** Team ID */
561
+ teamId: string;
562
+ };
563
+ };
564
+ responses: {
565
+ /** Updated team */
566
+ 200: {
567
+ content: {
568
+ "application/json": {
569
+ /**
570
+ * Format: uuid
571
+ * @description Team ID
572
+ */
573
+ id: string;
574
+ /** @description Team name */
575
+ name: string;
576
+ /** @description Team description */
577
+ description?: string;
578
+ /**
579
+ * Format: uuid
580
+ * @description User ID of the owner of the team
581
+ */
582
+ owner?: string;
583
+ /** @description Additional metadata for the team */
584
+ metadata?: { [key: string]: unknown };
585
+ /**
586
+ * Format: date-time
587
+ * @description Timestamp when the team was created.
588
+ */
589
+ createdAt: string;
590
+ /**
591
+ * Format: date-time
592
+ * @description Timestamp when the team was last updated.
593
+ */
594
+ updatedAt: string;
595
+ /**
596
+ * Format: date-time
597
+ * @description Timestamp when the team was soft-deleted, if applicable.
598
+ */
599
+ deletedAt?: string;
600
+ };
601
+ };
602
+ };
603
+ /** Invalid request body or request param */
604
+ 400: {
605
+ content: {
606
+ "text/plain": string;
607
+ };
608
+ };
609
+ /** Expired JWT token used or insufficient privilege */
610
+ 401: {
611
+ content: {
612
+ "text/plain": string;
613
+ };
614
+ };
615
+ /** Result not found */
616
+ 404: {
617
+ content: {
618
+ "text/plain": string;
619
+ };
620
+ };
621
+ /** Internal server error */
622
+ 500: {
623
+ content: {
624
+ "text/plain": string;
625
+ };
626
+ };
627
+ };
628
+ /** Body for updating a team */
629
+ requestBody: {
630
+ content: {
631
+ "application/json": {
632
+ /** @description Updated team name */
633
+ name?: string;
634
+ /** @description Updated team description */
635
+ description?: string;
636
+ };
637
+ };
638
+ };
639
+ };
640
+ /** Deletes a team by its ID */
641
+ deleteTeam: {
642
+ parameters: {
643
+ path: {
644
+ /** Organization ID */
645
+ orgId: string;
646
+ /** Team ID */
647
+ teamId: string;
648
+ };
649
+ };
650
+ responses: {
651
+ /** Team deleted */
652
+ 204: never;
653
+ /** Invalid request body or request param */
654
+ 400: {
655
+ content: {
656
+ "text/plain": string;
657
+ };
658
+ };
659
+ /** Expired JWT token used or insufficient privilege */
660
+ 401: {
661
+ content: {
662
+ "text/plain": string;
663
+ };
664
+ };
665
+ /** Result not found */
666
+ 404: {
667
+ content: {
668
+ "text/plain": string;
669
+ };
670
+ };
671
+ /** Internal server error */
672
+ 500: {
673
+ content: {
674
+ "text/plain": string;
675
+ };
676
+ };
677
+ };
678
+ };
679
+ /** Gets all users that belong to a team */
680
+ getTeamUsers: {
681
+ parameters: {
682
+ path: {
683
+ /** Team ID */
684
+ teamId: string;
685
+ };
686
+ query: {
687
+ /** Get responses that match search param value */
688
+ search?: string;
689
+ /** Get ordered responses */
690
+ order?: string;
691
+ /** Get responses by page */
692
+ page?: string;
693
+ /** Get responses by pagesize */
694
+ pagesize?: string;
695
+ };
696
+ };
697
+ responses: {
698
+ /** Team users mapping */
699
+ 200: {
700
+ content: {
701
+ "application/json": {
702
+ /** @description Current page number of the result set. */
703
+ page?: number;
704
+ /** @description Number of items per page. */
705
+ page_size?: number;
706
+ /** @description Total number of items available. */
707
+ total_count?: number;
708
+ /** @description The user-team mappings on the current page. */
709
+ usersTeamsMapping?: {
710
+ /** Format: uuid */
711
+ id?: string;
712
+ /**
713
+ * Format: uuid
714
+ * @description Team ID
715
+ */
716
+ teamId?: string;
717
+ /**
718
+ * Format: uuid
719
+ * @description User ID
720
+ */
721
+ userId?: string;
722
+ /**
723
+ * Format: uuid
724
+ * @description Optional role assigned to this team membership. Nullable because a membership may exist without an explicit role (e.g., team-admin assignments are stamped on insert; non-owner adds may leave `role_id` null until a role is assigned). References `roles.id`.
725
+ */
726
+ roleId?: string;
727
+ /**
728
+ * Format: date-time
729
+ * @description Timestamp when the mapping was created.
730
+ */
731
+ createdAt?: string;
732
+ /**
733
+ * Format: date-time
734
+ * @description Timestamp when the mapping was last updated.
735
+ */
736
+ updatedAt?: string;
737
+ /**
738
+ * Format: date-time
739
+ * @description Timestamp when the mapping was soft-deleted, if applicable.
740
+ */
741
+ deletedAt?: string;
742
+ }[];
743
+ };
744
+ };
745
+ };
746
+ /** Invalid request body or request param */
747
+ 400: {
748
+ content: {
749
+ "text/plain": string;
750
+ };
751
+ };
752
+ /** Expired JWT token used or insufficient privilege */
753
+ 401: {
754
+ content: {
755
+ "text/plain": string;
756
+ };
757
+ };
758
+ /** Result not found */
759
+ 404: {
760
+ content: {
761
+ "text/plain": string;
762
+ };
763
+ };
764
+ /** Internal server error */
765
+ 500: {
766
+ content: {
767
+ "text/plain": string;
768
+ };
769
+ };
770
+ };
771
+ };
772
+ /** Assigns a user to a team */
773
+ addUserToTeam: {
774
+ parameters: {
775
+ path: {
776
+ /** Organization ID */
777
+ orgId: string;
778
+ /** Team ID */
779
+ teamId: string;
780
+ /** User ID */
781
+ userId: string;
782
+ };
783
+ };
784
+ responses: {
785
+ /** User added to team */
786
+ 201: {
787
+ content: {
788
+ "application/json": {
789
+ /** Format: uuid */
790
+ id?: string;
791
+ /**
792
+ * Format: uuid
793
+ * @description Team ID
794
+ */
795
+ teamId?: string;
796
+ /**
797
+ * Format: uuid
798
+ * @description User ID
799
+ */
800
+ userId?: string;
801
+ /**
802
+ * Format: uuid
803
+ * @description Optional role assigned to this team membership. Nullable because a membership may exist without an explicit role (e.g., team-admin assignments are stamped on insert; non-owner adds may leave `role_id` null until a role is assigned). References `roles.id`.
804
+ */
805
+ roleId?: string;
806
+ /**
807
+ * Format: date-time
808
+ * @description Timestamp when the mapping was created.
809
+ */
810
+ createdAt?: string;
811
+ /**
812
+ * Format: date-time
813
+ * @description Timestamp when the mapping was last updated.
814
+ */
815
+ updatedAt?: string;
816
+ /**
817
+ * Format: date-time
818
+ * @description Timestamp when the mapping was soft-deleted, if applicable.
819
+ */
820
+ deletedAt?: string;
821
+ };
822
+ };
823
+ };
824
+ /** Invalid request body or request param */
825
+ 400: {
826
+ content: {
827
+ "text/plain": string;
828
+ };
829
+ };
830
+ /** Expired JWT token used or insufficient privilege */
831
+ 401: {
832
+ content: {
833
+ "text/plain": string;
834
+ };
835
+ };
836
+ /** Result not found */
837
+ 404: {
838
+ content: {
839
+ "text/plain": string;
840
+ };
841
+ };
842
+ /** Internal server error */
843
+ 500: {
844
+ content: {
845
+ "text/plain": string;
846
+ };
847
+ };
848
+ };
849
+ };
850
+ /** Unassigns a user from a team */
851
+ removeUserFromTeam: {
852
+ parameters: {
853
+ path: {
854
+ /** Organization ID */
855
+ orgId: string;
856
+ /** Team ID */
857
+ teamId: string;
858
+ /** User ID */
859
+ userId: string;
860
+ };
861
+ };
862
+ responses: {
863
+ /** User removed from team */
864
+ 204: never;
865
+ /** Invalid request body or request param */
866
+ 400: {
867
+ content: {
868
+ "text/plain": string;
869
+ };
870
+ };
871
+ /** Expired JWT token used or insufficient privilege */
872
+ 401: {
873
+ content: {
874
+ "text/plain": string;
875
+ };
876
+ };
877
+ /** Result not found */
878
+ 404: {
879
+ content: {
880
+ "text/plain": string;
881
+ };
882
+ };
883
+ /** Internal server error */
884
+ 500: {
885
+ content: {
886
+ "text/plain": string;
887
+ };
888
+ };
889
+ };
890
+ };
891
+ listUsersNotInTeam: {
892
+ parameters: {
893
+ path: {
894
+ /** Organization ID */
895
+ orgId: string;
896
+ /** Team ID */
897
+ teamId: string;
898
+ };
899
+ query: {
900
+ /** Get responses that match search param value */
901
+ search?: string;
902
+ /** Get ordered responses */
903
+ order?: string;
904
+ /** Get responses by page */
905
+ page?: string;
906
+ /** Get responses by pagesize */
907
+ pagesize?: string;
908
+ };
909
+ };
910
+ responses: {
911
+ /** Users not currently in the team */
912
+ 200: {
913
+ content: {
914
+ "application/json": {
915
+ /** @description Current page number of the result set. */
916
+ page?: number;
917
+ /** @description Number of items per page. */
918
+ page_size?: number;
919
+ /** @description Total number of items available. */
920
+ total_count?: number;
921
+ /** @description The data of the teammemberspage. */
922
+ data?: ({
923
+ /**
924
+ * Format: date-time
925
+ * @description Timestamp when the user joined the team. Server-computed from the earliest matching row in `users_teams_mapping` for this (team, user) pair. Server-managed; clients cannot set this.
926
+ */
927
+ joinedAt?: string;
928
+ } & { [key: string]: unknown })[];
929
+ };
930
+ };
931
+ };
932
+ /** Invalid request body or request param */
933
+ 400: {
934
+ content: {
935
+ "text/plain": string;
936
+ };
937
+ };
938
+ /** Expired JWT token used or insufficient privilege */
939
+ 401: {
940
+ content: {
941
+ "text/plain": string;
942
+ };
943
+ };
944
+ /** Result not found */
945
+ 404: {
946
+ content: {
947
+ "text/plain": string;
948
+ };
949
+ };
950
+ /** Internal server error */
951
+ 500: {
952
+ content: {
953
+ "text/plain": string;
954
+ };
955
+ };
956
+ };
957
+ };
958
+ }
959
+
960
+ export interface external {}