@snaptrude/plugin-core 0.8.0 → 0.9.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 (111) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/api-manifest.full.json +1350 -89
  3. package/api-manifest.json +826 -40
  4. package/dist/api/analysis/daylight.d.ts +603 -0
  5. package/dist/api/analysis/daylight.d.ts.map +1 -0
  6. package/dist/api/analysis/heatmaps.d.ts +438 -14
  7. package/dist/api/analysis/heatmaps.d.ts.map +1 -1
  8. package/dist/api/analysis/index.d.ts +15 -0
  9. package/dist/api/analysis/index.d.ts.map +1 -1
  10. package/dist/api/analysis/solar.d.ts +249 -0
  11. package/dist/api/analysis/solar.d.ts.map +1 -0
  12. package/dist/api/analysis/weather.d.ts +193 -0
  13. package/dist/api/analysis/weather.d.ts.map +1 -0
  14. package/dist/api/core/camera/index.d.ts +37 -0
  15. package/dist/api/core/camera/index.d.ts.map +1 -1
  16. package/dist/api/core/geom/create/index.d.ts +318 -1
  17. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  18. package/dist/api/core/index.d.ts +9 -0
  19. package/dist/api/core/index.d.ts.map +1 -1
  20. package/dist/api/core/io/export/index.d.ts +3 -1
  21. package/dist/api/core/io/export/index.d.ts.map +1 -1
  22. package/dist/api/core/io/import/index.d.ts +61 -0
  23. package/dist/api/core/io/import/index.d.ts.map +1 -1
  24. package/dist/api/core/mode/index.d.ts +99 -0
  25. package/dist/api/core/mode/index.d.ts.map +1 -0
  26. package/dist/api/core/storeys/index.d.ts +251 -0
  27. package/dist/api/core/storeys/index.d.ts.map +1 -0
  28. package/dist/api/core/tags.d.ts +24 -0
  29. package/dist/api/core/tags.d.ts.map +1 -1
  30. package/dist/api/core/zoom/index.d.ts +4 -0
  31. package/dist/api/core/zoom/index.d.ts.map +1 -1
  32. package/dist/api/design/create/index.d.ts +115 -4
  33. package/dist/api/design/create/index.d.ts.map +1 -1
  34. package/dist/api/design/delete/index.d.ts +3 -0
  35. package/dist/api/design/delete/index.d.ts.map +1 -1
  36. package/dist/api/design/query/geometry/index.d.ts +112 -0
  37. package/dist/api/design/query/geometry/index.d.ts.map +1 -1
  38. package/dist/api/design/query/index.d.ts +4 -0
  39. package/dist/api/design/query/index.d.ts.map +1 -1
  40. package/dist/api/design/query/referenceLines.d.ts +45 -0
  41. package/dist/api/design/query/referenceLines.d.ts.map +1 -0
  42. package/dist/api/design/query/spaces.d.ts +173 -0
  43. package/dist/api/design/query/spaces.d.ts.map +1 -1
  44. package/dist/api/design/transform/index.d.ts +12 -0
  45. package/dist/api/design/transform/index.d.ts.map +1 -1
  46. package/dist/api/design/update/index.d.ts +51 -1
  47. package/dist/api/design/update/index.d.ts.map +1 -1
  48. package/dist/api/entity/buildableEnvelope.d.ts +4 -0
  49. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
  50. package/dist/api/entity/referenceLine.d.ts +8 -0
  51. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  52. package/dist/api/entity/story.d.ts +20 -0
  53. package/dist/api/entity/story.d.ts.map +1 -1
  54. package/dist/api/index.d.ts +5 -0
  55. package/dist/api/index.d.ts.map +1 -1
  56. package/dist/api/presentation/export.d.ts +4 -0
  57. package/dist/api/presentation/export.d.ts.map +1 -1
  58. package/dist/api/presentation/import.d.ts +6 -0
  59. package/dist/api/presentation/import.d.ts.map +1 -1
  60. package/dist/api/presentation/index.d.ts +9 -0
  61. package/dist/api/presentation/index.d.ts.map +1 -1
  62. package/dist/api/presentation/placedViews.d.ts +370 -0
  63. package/dist/api/presentation/placedViews.d.ts.map +1 -0
  64. package/dist/api/presentation/shapes.d.ts +481 -0
  65. package/dist/api/presentation/shapes.d.ts.map +1 -0
  66. package/dist/api/program/site.d.ts +94 -0
  67. package/dist/api/program/site.d.ts.map +1 -1
  68. package/dist/api/program/spreadsheet.d.ts +260 -28
  69. package/dist/api/program/spreadsheet.d.ts.map +1 -1
  70. package/dist/api/workspace/index.d.ts +460 -0
  71. package/dist/api/workspace/index.d.ts.map +1 -0
  72. package/dist/index.cjs +2625 -1758
  73. package/dist/index.cjs.map +1 -1
  74. package/dist/index.js +2515 -1758
  75. package/dist/index.js.map +1 -1
  76. package/package.json +3 -2
  77. package/scripts/generate-manifest.mjs +45 -0
  78. package/src/api/analysis/daylight.ts +470 -0
  79. package/src/api/analysis/heatmaps.ts +444 -17
  80. package/src/api/analysis/index.ts +15 -0
  81. package/src/api/analysis/solar.ts +237 -0
  82. package/src/api/analysis/weather.ts +179 -0
  83. package/src/api/core/camera/index.ts +39 -0
  84. package/src/api/core/geom/create/index.ts +344 -1
  85. package/src/api/core/index.ts +9 -0
  86. package/src/api/core/io/export/index.ts +3 -1
  87. package/src/api/core/io/import/index.ts +64 -0
  88. package/src/api/core/mode/index.ts +96 -0
  89. package/src/api/core/storeys/index.ts +279 -0
  90. package/src/api/core/tags.ts +27 -0
  91. package/src/api/core/zoom/index.ts +4 -0
  92. package/src/api/design/create/index.ts +138 -1
  93. package/src/api/design/delete/index.ts +3 -0
  94. package/src/api/design/query/geometry/index.ts +125 -3
  95. package/src/api/design/query/index.ts +4 -0
  96. package/src/api/design/query/referenceLines.ts +52 -0
  97. package/src/api/design/query/spaces.ts +143 -0
  98. package/src/api/design/transform/index.ts +12 -0
  99. package/src/api/design/update/index.ts +66 -1
  100. package/src/api/entity/buildableEnvelope.ts +4 -0
  101. package/src/api/entity/referenceLine.ts +8 -0
  102. package/src/api/entity/story.ts +20 -0
  103. package/src/api/index.ts +5 -0
  104. package/src/api/presentation/export.ts +4 -0
  105. package/src/api/presentation/import.ts +6 -0
  106. package/src/api/presentation/index.ts +9 -0
  107. package/src/api/presentation/placedViews.ts +363 -0
  108. package/src/api/presentation/shapes.ts +274 -0
  109. package/src/api/program/site.ts +95 -0
  110. package/src/api/program/spreadsheet.ts +251 -6
  111. package/src/api/workspace/index.ts +516 -0
@@ -0,0 +1,460 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../types";
3
+ /**
4
+ * `snaptrude.workspace.*` — the dashboard surface: projects and teams outside the
5
+ * open canvas.
6
+ *
7
+ * This namespace reads and creates the containers a design lives in — the
8
+ * project itself and the team it belongs to — mirroring the Snaptrude dashboard.
9
+ * Teams are **read-only** here (no create/invite/delete in v1, a deliberate
10
+ * safety decision); there are no folders in v1. A `projectId` is the project's
11
+ * floorkey. Plan limits are enforced by the backend — a limit rejection surfaces
12
+ * as a normal host error.
13
+ *
14
+ * - {@linkcode PluginWorkspaceApi.projects} — Create, copy, list, read & rename projects
15
+ * - {@linkcode PluginWorkspaceApi.teams} — Read teams and their members
16
+ */
17
+ export declare abstract class PluginWorkspaceApi {
18
+ /** Projects — create, copy, list, read & rename. See {@linkcode PluginWorkspaceProjectsApi}. */
19
+ abstract projects: PluginWorkspaceProjectsApi;
20
+ /** Teams — read teams and their members. See {@linkcode PluginWorkspaceTeamsApi}. */
21
+ abstract teams: PluginWorkspaceTeamsApi;
22
+ constructor();
23
+ }
24
+ /**
25
+ * `workspace.projects.*` — create, copy, list, read & rename projects.
26
+ *
27
+ * A **project** is a single Snaptrude model, identified by its `projectId`
28
+ * (floorkey). Reads never throw for a miss ({@linkcode PluginWorkspaceProjectsApi.get}
29
+ * returns `null`). Create/copy/rename go through the backend, which enforces plan
30
+ * limits — a rejection surfaces as a normal host error.
31
+ *
32
+ * Accessed via `snaptrude.workspace.projects`.
33
+ */
34
+ export declare abstract class PluginWorkspaceProjectsApi {
35
+ constructor();
36
+ /**
37
+ * Create a new, empty BIM project.
38
+ *
39
+ * Creates the project on the backend and returns its `projectId` (floorkey).
40
+ * Pass `options.teamId` to create it inside a team (otherwise it lands in the
41
+ * user's personal workspace) and `options.unit` to set the default length unit.
42
+ *
43
+ * @param name - Display name of the new project.
44
+ * @param options - Optional `unit` (default length unit) and `teamId` (owning team).
45
+ * @returns The new project's `projectId`.
46
+ * @throws If the backend rejects the create (e.g. a plan project limit).
47
+ *
48
+ * @examplePrompt Create a new project called Tower Study
49
+ * @examplePrompt Start a new project in the Acme team
50
+ * @examplePrompt Make a fresh project using millimeters
51
+ * @examplePrompt Create an empty project for me to work in
52
+ *
53
+ * # Example
54
+ * ```ts
55
+ * const { projectId } = await snaptrude.workspace.projects.create("Tower Study", {
56
+ * teamId: "team_1",
57
+ * unit: "mm",
58
+ * })
59
+ * ```
60
+ */
61
+ abstract create(name: string, options?: {
62
+ unit?: string;
63
+ teamId?: string;
64
+ }): PluginApiReturn<PluginWorkspaceProjectsCreateResult>;
65
+ /**
66
+ * Copy the **current** project into a new project — the dashboard's "Save As".
67
+ *
68
+ * Duplicates the project that is currently open into a new project with the
69
+ * given name, and returns the new `projectId`. Pass `options.teamId` to place
70
+ * the copy in a specific team.
71
+ *
72
+ * @param name - Display name for the copy.
73
+ * @param options - Optional `teamId` (team to place the copy in).
74
+ * @returns The new project's `projectId`.
75
+ * @throws If the backend rejects the copy (e.g. a plan project limit).
76
+ *
77
+ * @examplePrompt Save this project as a new copy called Tower Study v2
78
+ * @examplePrompt Duplicate the current project into the Acme team
79
+ * @examplePrompt Make a copy of this project so I can try changes
80
+ *
81
+ * # Example
82
+ * ```ts
83
+ * const { projectId } = await snaptrude.workspace.projects.copy("Tower Study v2")
84
+ * ```
85
+ */
86
+ abstract copy(name: string, options?: {
87
+ teamId?: string;
88
+ }): PluginApiReturn<PluginWorkspaceProjectsCopyResult>;
89
+ /**
90
+ * List the projects the user can access.
91
+ *
92
+ * Returns a {@linkcode PluginProjectRef} per project. Pass `options.teamId` to
93
+ * scope the list to a single team; omit it for the user's accessible projects.
94
+ *
95
+ * @param options - Optional `teamId` filter.
96
+ * @returns A {@linkcode PluginWorkspaceProjectsListResult} with a `projects`
97
+ * array (empty when there are none).
98
+ *
99
+ * @examplePrompt List all my projects
100
+ * @examplePrompt Show the projects in the Acme team
101
+ * @examplePrompt How many projects do I have?
102
+ * @examplePrompt What projects can I open?
103
+ *
104
+ * # Example
105
+ * ```ts
106
+ * const { projects } = await snaptrude.workspace.projects.list({ teamId: "team_1" })
107
+ * for (const p of projects) console.log(p.id, p.name)
108
+ * ```
109
+ */
110
+ abstract list(options?: {
111
+ teamId?: string;
112
+ }): PluginApiReturn<PluginWorkspaceProjectsListResult>;
113
+ /**
114
+ * Get a single project by id.
115
+ *
116
+ * @param projectId - The project's `projectId` (floorkey).
117
+ * @returns The matching {@linkcode PluginProjectRef}, or `null` if no project
118
+ * has that id / the user cannot access it.
119
+ *
120
+ * @examplePrompt Get the project with this id
121
+ * @examplePrompt Look up a project by its floorkey
122
+ * @examplePrompt What is the name of this project?
123
+ *
124
+ * # Example
125
+ * ```ts
126
+ * const project = await snaptrude.workspace.projects.get("floorkey_123")
127
+ * if (project) console.log(project.name)
128
+ * ```
129
+ */
130
+ abstract get(projectId: string): PluginApiReturn<PluginWorkspaceProjectsGetResult>;
131
+ /**
132
+ * Rename a project.
133
+ *
134
+ * @param projectId - The project's `projectId` (floorkey).
135
+ * @param name - The project's new display name.
136
+ * @returns The renamed project's `projectId`.
137
+ * @throws If no project has the given id or the rename is rejected.
138
+ *
139
+ * @examplePrompt Rename this project to Tower Study Final
140
+ * @examplePrompt Change the name of project floorkey_123
141
+ * @examplePrompt Give this project a new name
142
+ *
143
+ * # Example
144
+ * ```ts
145
+ * const { projectId } = await snaptrude.workspace.projects.rename(
146
+ * "floorkey_123",
147
+ * "Tower Study Final",
148
+ * )
149
+ * ```
150
+ */
151
+ abstract rename(projectId: string, name: string): PluginApiReturn<PluginWorkspaceProjectsRenameResult>;
152
+ }
153
+ /**
154
+ * `workspace.teams.*` — read teams and their members.
155
+ *
156
+ * A **team** is a shared workspace that owns projects and members. **Read-only**
157
+ * in v1: there is no create/invite/delete (a deliberate safety decision). Reads
158
+ * never throw for a miss ({@linkcode PluginWorkspaceTeamsApi.get} returns `null`).
159
+ *
160
+ * Accessed via `snaptrude.workspace.teams`.
161
+ */
162
+ export declare abstract class PluginWorkspaceTeamsApi {
163
+ constructor();
164
+ /**
165
+ * List the teams the user belongs to.
166
+ *
167
+ * @returns A {@linkcode PluginWorkspaceTeamsListResult} with a `teams` array
168
+ * (empty when the user belongs to none).
169
+ *
170
+ * @examplePrompt List all my teams
171
+ * @examplePrompt Which teams am I a member of?
172
+ * @examplePrompt Show every team I can access
173
+ *
174
+ * # Example
175
+ * ```ts
176
+ * const { teams } = await snaptrude.workspace.teams.list()
177
+ * for (const t of teams) console.log(t.id, t.name)
178
+ * ```
179
+ */
180
+ abstract list(): PluginApiReturn<PluginWorkspaceTeamsListResult>;
181
+ /**
182
+ * Get a single team by id.
183
+ *
184
+ * @param teamId - The id of the team to read.
185
+ * @returns The matching {@linkcode PluginTeamRef}, or `null` if no team has that
186
+ * id / the user is not a member.
187
+ *
188
+ * @examplePrompt Get the team with id team_1
189
+ * @examplePrompt Look up a team by its id
190
+ * @examplePrompt What is the name of this team?
191
+ *
192
+ * # Example
193
+ * ```ts
194
+ * const team = await snaptrude.workspace.teams.get("team_1")
195
+ * if (team) console.log(team.name)
196
+ * ```
197
+ */
198
+ abstract get(teamId: string): PluginApiReturn<PluginWorkspaceTeamsGetResult>;
199
+ /**
200
+ * List the members of a team.
201
+ *
202
+ * @param teamId - The id of the team whose members to list.
203
+ * @returns A {@linkcode PluginWorkspaceTeamsListMembersResult} with a `members`
204
+ * array (empty when the team has none / is missing).
205
+ *
206
+ * @examplePrompt List the members of the Acme team
207
+ * @examplePrompt Who is on team_1?
208
+ * @examplePrompt How many people are in this team?
209
+ *
210
+ * # Example
211
+ * ```ts
212
+ * const { members } = await snaptrude.workspace.teams.listMembers("team_1")
213
+ * for (const m of members) console.log(m.name, m.email)
214
+ * ```
215
+ */
216
+ abstract listMembers(teamId: string): PluginApiReturn<PluginWorkspaceTeamsListMembersResult>;
217
+ }
218
+ /**
219
+ * A project reference — a conservative projection of a project, never the raw
220
+ * backend payload.
221
+ *
222
+ * | Property | Type | Description |
223
+ * |---|---|---|
224
+ * | `id` | `string` | The project's `projectId` (floorkey) |
225
+ * | `name` | `string` | Display name |
226
+ * | `teamId` | `string?` | Owning team id (absent for personal projects) |
227
+ * | `createdAt` | `string?` | Creation timestamp (ISO 8601) when known |
228
+ * | `modifiedAt` | `string?` | Last-modified timestamp (ISO 8601) when known |
229
+ */
230
+ export declare const PluginProjectRef: z.ZodObject<{
231
+ id: z.ZodString;
232
+ name: z.ZodString;
233
+ teamId: z.ZodOptional<z.ZodString>;
234
+ createdAt: z.ZodOptional<z.ZodString>;
235
+ modifiedAt: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>;
237
+ export type PluginProjectRef = z.infer<typeof PluginProjectRef>;
238
+ /**
239
+ * A team reference — a conservative projection of a team, never the raw backend
240
+ * payload.
241
+ *
242
+ * | Property | Type | Description |
243
+ * |---|---|---|
244
+ * | `id` | `string` | Stable team id |
245
+ * | `name` | `string` | Display name |
246
+ * | `role` | `string?` | The user's role in the team when known |
247
+ */
248
+ export declare const PluginTeamRef: z.ZodObject<{
249
+ id: z.ZodString;
250
+ name: z.ZodString;
251
+ role: z.ZodOptional<z.ZodString>;
252
+ }, z.core.$strip>;
253
+ export type PluginTeamRef = z.infer<typeof PluginTeamRef>;
254
+ /**
255
+ * A team member reference — a conservative projection of a member, never the raw
256
+ * backend payload.
257
+ *
258
+ * | Property | Type | Description |
259
+ * |---|---|---|
260
+ * | `id` | `string` | Stable user id |
261
+ * | `name` | `string` | Display name |
262
+ * | `email` | `string?` | Email address when known |
263
+ * | `role` | `string?` | The member's role in the team when known |
264
+ */
265
+ export declare const PluginTeamMemberRef: z.ZodObject<{
266
+ id: z.ZodString;
267
+ name: z.ZodString;
268
+ email: z.ZodOptional<z.ZodString>;
269
+ role: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>;
271
+ export type PluginTeamMemberRef = z.infer<typeof PluginTeamMemberRef>;
272
+ /**
273
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.create} (options flattened).
274
+ *
275
+ * | Property | Type | Description |
276
+ * |---|---|---|
277
+ * | `name` | `string` | Display name of the new project |
278
+ * | `unit` | `string?` | Default length unit |
279
+ * | `teamId` | `string?` | Owning team id (personal workspace if omitted) |
280
+ */
281
+ export declare const PluginWorkspaceProjectsCreateArgs: z.ZodObject<{
282
+ name: z.ZodString;
283
+ unit: z.ZodOptional<z.ZodString>;
284
+ teamId: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strip>;
286
+ export type PluginWorkspaceProjectsCreateArgs = z.infer<typeof PluginWorkspaceProjectsCreateArgs>;
287
+ /**
288
+ * Result of {@linkcode PluginWorkspaceProjectsApi.create}.
289
+ *
290
+ * | Property | Type | Description |
291
+ * |---|---|---|
292
+ * | `projectId` | `string` | The id (floorkey) of the created project |
293
+ */
294
+ export declare const PluginWorkspaceProjectsCreateResult: z.ZodObject<{
295
+ projectId: z.ZodString;
296
+ }, z.core.$strip>;
297
+ export type PluginWorkspaceProjectsCreateResult = z.infer<typeof PluginWorkspaceProjectsCreateResult>;
298
+ /**
299
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.copy} (options flattened).
300
+ *
301
+ * | Property | Type | Description |
302
+ * |---|---|---|
303
+ * | `name` | `string` | Display name for the copy |
304
+ * | `teamId` | `string?` | Team to place the copy in |
305
+ */
306
+ export declare const PluginWorkspaceProjectsCopyArgs: z.ZodObject<{
307
+ name: z.ZodString;
308
+ teamId: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strip>;
310
+ export type PluginWorkspaceProjectsCopyArgs = z.infer<typeof PluginWorkspaceProjectsCopyArgs>;
311
+ /**
312
+ * Result of {@linkcode PluginWorkspaceProjectsApi.copy}.
313
+ *
314
+ * | Property | Type | Description |
315
+ * |---|---|---|
316
+ * | `projectId` | `string` | The id (floorkey) of the copied project |
317
+ */
318
+ export declare const PluginWorkspaceProjectsCopyResult: z.ZodObject<{
319
+ projectId: z.ZodString;
320
+ }, z.core.$strip>;
321
+ export type PluginWorkspaceProjectsCopyResult = z.infer<typeof PluginWorkspaceProjectsCopyResult>;
322
+ /**
323
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.list} (options flattened).
324
+ *
325
+ * | Property | Type | Description |
326
+ * |---|---|---|
327
+ * | `teamId` | `string?` | Scope the list to this team; omit for all accessible projects |
328
+ */
329
+ export declare const PluginWorkspaceProjectsListArgs: z.ZodObject<{
330
+ teamId: z.ZodOptional<z.ZodString>;
331
+ }, z.core.$strip>;
332
+ export type PluginWorkspaceProjectsListArgs = z.infer<typeof PluginWorkspaceProjectsListArgs>;
333
+ /**
334
+ * Result of {@linkcode PluginWorkspaceProjectsApi.list}.
335
+ *
336
+ * | Property | Type | Description |
337
+ * |---|---|---|
338
+ * | `projects` | {@linkcode PluginProjectRef}`[]` | Accessible projects (empty when none) |
339
+ */
340
+ export declare const PluginWorkspaceProjectsListResult: z.ZodObject<{
341
+ projects: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ name: z.ZodString;
344
+ teamId: z.ZodOptional<z.ZodString>;
345
+ createdAt: z.ZodOptional<z.ZodString>;
346
+ modifiedAt: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strip>>;
348
+ }, z.core.$strip>;
349
+ export type PluginWorkspaceProjectsListResult = z.infer<typeof PluginWorkspaceProjectsListResult>;
350
+ /**
351
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.get}.
352
+ *
353
+ * | Property | Type | Description |
354
+ * |---|---|---|
355
+ * | `projectId` | `string` | The project's `projectId` (floorkey) |
356
+ */
357
+ export declare const PluginWorkspaceProjectsGetArgs: z.ZodObject<{
358
+ projectId: z.ZodString;
359
+ }, z.core.$strip>;
360
+ export type PluginWorkspaceProjectsGetArgs = z.infer<typeof PluginWorkspaceProjectsGetArgs>;
361
+ /**
362
+ * Result of {@linkcode PluginWorkspaceProjectsApi.get} — the project, or `null`
363
+ * when no project has the given id.
364
+ */
365
+ export declare const PluginWorkspaceProjectsGetResult: z.ZodNullable<z.ZodObject<{
366
+ id: z.ZodString;
367
+ name: z.ZodString;
368
+ teamId: z.ZodOptional<z.ZodString>;
369
+ createdAt: z.ZodOptional<z.ZodString>;
370
+ modifiedAt: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strip>>;
372
+ export type PluginWorkspaceProjectsGetResult = z.infer<typeof PluginWorkspaceProjectsGetResult>;
373
+ /**
374
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.rename}.
375
+ *
376
+ * | Property | Type | Description |
377
+ * |---|---|---|
378
+ * | `projectId` | `string` | The project's `projectId` (floorkey) |
379
+ * | `name` | `string` | The project's new display name |
380
+ */
381
+ export declare const PluginWorkspaceProjectsRenameArgs: z.ZodObject<{
382
+ projectId: z.ZodString;
383
+ name: z.ZodString;
384
+ }, z.core.$strip>;
385
+ export type PluginWorkspaceProjectsRenameArgs = z.infer<typeof PluginWorkspaceProjectsRenameArgs>;
386
+ /**
387
+ * Result of {@linkcode PluginWorkspaceProjectsApi.rename}.
388
+ *
389
+ * | Property | Type | Description |
390
+ * |---|---|---|
391
+ * | `projectId` | `string` | The id (floorkey) of the renamed project |
392
+ */
393
+ export declare const PluginWorkspaceProjectsRenameResult: z.ZodObject<{
394
+ projectId: z.ZodString;
395
+ }, z.core.$strip>;
396
+ export type PluginWorkspaceProjectsRenameResult = z.infer<typeof PluginWorkspaceProjectsRenameResult>;
397
+ /**
398
+ * Result of {@linkcode PluginWorkspaceTeamsApi.list}.
399
+ *
400
+ * | Property | Type | Description |
401
+ * |---|---|---|
402
+ * | `teams` | {@linkcode PluginTeamRef}`[]` | The user's teams (empty when none) |
403
+ */
404
+ export declare const PluginWorkspaceTeamsListResult: z.ZodObject<{
405
+ teams: z.ZodArray<z.ZodObject<{
406
+ id: z.ZodString;
407
+ name: z.ZodString;
408
+ role: z.ZodOptional<z.ZodString>;
409
+ }, z.core.$strip>>;
410
+ }, z.core.$strip>;
411
+ export type PluginWorkspaceTeamsListResult = z.infer<typeof PluginWorkspaceTeamsListResult>;
412
+ /**
413
+ * Arguments for {@linkcode PluginWorkspaceTeamsApi.get}.
414
+ *
415
+ * | Property | Type | Description |
416
+ * |---|---|---|
417
+ * | `teamId` | `string` | The id of the team to read |
418
+ */
419
+ export declare const PluginWorkspaceTeamsGetArgs: z.ZodObject<{
420
+ teamId: z.ZodString;
421
+ }, z.core.$strip>;
422
+ export type PluginWorkspaceTeamsGetArgs = z.infer<typeof PluginWorkspaceTeamsGetArgs>;
423
+ /**
424
+ * Result of {@linkcode PluginWorkspaceTeamsApi.get} — the team, or `null` when no
425
+ * team has the given id.
426
+ */
427
+ export declare const PluginWorkspaceTeamsGetResult: z.ZodNullable<z.ZodObject<{
428
+ id: z.ZodString;
429
+ name: z.ZodString;
430
+ role: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strip>>;
432
+ export type PluginWorkspaceTeamsGetResult = z.infer<typeof PluginWorkspaceTeamsGetResult>;
433
+ /**
434
+ * Arguments for {@linkcode PluginWorkspaceTeamsApi.listMembers}.
435
+ *
436
+ * | Property | Type | Description |
437
+ * |---|---|---|
438
+ * | `teamId` | `string` | The id of the team whose members to list |
439
+ */
440
+ export declare const PluginWorkspaceTeamsListMembersArgs: z.ZodObject<{
441
+ teamId: z.ZodString;
442
+ }, z.core.$strip>;
443
+ export type PluginWorkspaceTeamsListMembersArgs = z.infer<typeof PluginWorkspaceTeamsListMembersArgs>;
444
+ /**
445
+ * Result of {@linkcode PluginWorkspaceTeamsApi.listMembers}.
446
+ *
447
+ * | Property | Type | Description |
448
+ * |---|---|---|
449
+ * | `members` | {@linkcode PluginTeamMemberRef}`[]` | The team's members (empty when none) |
450
+ */
451
+ export declare const PluginWorkspaceTeamsListMembersResult: z.ZodObject<{
452
+ members: z.ZodArray<z.ZodObject<{
453
+ id: z.ZodString;
454
+ name: z.ZodString;
455
+ email: z.ZodOptional<z.ZodString>;
456
+ role: z.ZodOptional<z.ZodString>;
457
+ }, z.core.$strip>>;
458
+ }, z.core.$strip>;
459
+ export type PluginWorkspaceTeamsListMembersResult = z.infer<typeof PluginWorkspaceTeamsListMembersResult>;
460
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 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