@nodetool-ai/protocol 0.8.13 → 0.8.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 (215) hide show
  1. package/dist/.nodetool-build-stamp +1 -1
  2. package/dist/agent-model-fit.d.ts +35 -0
  3. package/dist/agent-model-fit.d.ts.map +1 -0
  4. package/dist/agent-model-fit.js +62 -0
  5. package/dist/agent-model-fit.js.map +1 -0
  6. package/dist/api-schemas/agent-access.d.ts +40 -0
  7. package/dist/api-schemas/agent-access.d.ts.map +1 -1
  8. package/dist/api-schemas/agent-access.js +24 -1
  9. package/dist/api-schemas/agent-access.js.map +1 -1
  10. package/dist/api-schemas/api-error-code.d.ts +35 -1
  11. package/dist/api-schemas/api-error-code.d.ts.map +1 -1
  12. package/dist/api-schemas/api-error-code.js +34 -0
  13. package/dist/api-schemas/api-error-code.js.map +1 -1
  14. package/dist/api-schemas/applications.js +1 -1
  15. package/dist/api-schemas/applications.js.map +1 -1
  16. package/dist/api-schemas/asset-editor-tool-contracts.d.ts +10 -0
  17. package/dist/api-schemas/asset-editor-tool-contracts.d.ts.map +1 -1
  18. package/dist/api-schemas/asset-editor-tool-contracts.js +27 -0
  19. package/dist/api-schemas/asset-editor-tool-contracts.js.map +1 -1
  20. package/dist/api-schemas/assets.d.ts +99 -0
  21. package/dist/api-schemas/assets.d.ts.map +1 -1
  22. package/dist/api-schemas/assets.js +101 -11
  23. package/dist/api-schemas/assets.js.map +1 -1
  24. package/dist/api-schemas/cloud-local.d.ts +194 -0
  25. package/dist/api-schemas/cloud-local.d.ts.map +1 -0
  26. package/dist/api-schemas/cloud-local.js +88 -0
  27. package/dist/api-schemas/cloud-local.js.map +1 -0
  28. package/dist/api-schemas/cloud-transfer-local.d.ts +1110 -0
  29. package/dist/api-schemas/cloud-transfer-local.d.ts.map +1 -0
  30. package/dist/api-schemas/cloud-transfer-local.js +251 -0
  31. package/dist/api-schemas/cloud-transfer-local.js.map +1 -0
  32. package/dist/api-schemas/deleted-documents.d.ts +45 -0
  33. package/dist/api-schemas/deleted-documents.d.ts.map +1 -0
  34. package/dist/api-schemas/deleted-documents.js +30 -0
  35. package/dist/api-schemas/deleted-documents.js.map +1 -0
  36. package/dist/api-schemas/document-sharing.d.ts +171 -1
  37. package/dist/api-schemas/document-sharing.d.ts.map +1 -1
  38. package/dist/api-schemas/document-sharing.js +37 -5
  39. package/dist/api-schemas/document-sharing.js.map +1 -1
  40. package/dist/api-schemas/index.d.ts +8 -0
  41. package/dist/api-schemas/index.d.ts.map +1 -1
  42. package/dist/api-schemas/index.js +8 -0
  43. package/dist/api-schemas/index.js.map +1 -1
  44. package/dist/api-schemas/messages.d.ts +30 -0
  45. package/dist/api-schemas/messages.d.ts.map +1 -1
  46. package/dist/api-schemas/messages.js +32 -1
  47. package/dist/api-schemas/messages.js.map +1 -1
  48. package/dist/api-schemas/openverse.d.ts +2 -0
  49. package/dist/api-schemas/openverse.d.ts.map +1 -1
  50. package/dist/api-schemas/projects.d.ts +412 -0
  51. package/dist/api-schemas/projects.d.ts.map +1 -1
  52. package/dist/api-schemas/projects.js +212 -2
  53. package/dist/api-schemas/projects.js.map +1 -1
  54. package/dist/api-schemas/receive.d.ts +113 -0
  55. package/dist/api-schemas/receive.d.ts.map +1 -0
  56. package/dist/api-schemas/receive.js +86 -0
  57. package/dist/api-schemas/receive.js.map +1 -0
  58. package/dist/api-schemas/sdk-execution-v1.d.ts +0 -2
  59. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -1
  60. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -1
  61. package/dist/api-schemas/sdk-v1-http-operations.js +7 -1
  62. package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -1
  63. package/dist/api-schemas/search.d.ts +306 -0
  64. package/dist/api-schemas/search.d.ts.map +1 -0
  65. package/dist/api-schemas/search.js +145 -0
  66. package/dist/api-schemas/search.js.map +1 -0
  67. package/dist/api-schemas/settings.d.ts +129 -0
  68. package/dist/api-schemas/settings.d.ts.map +1 -1
  69. package/dist/api-schemas/settings.js +66 -2
  70. package/dist/api-schemas/settings.js.map +1 -1
  71. package/dist/api-schemas/storage.d.ts +236 -0
  72. package/dist/api-schemas/storage.d.ts.map +1 -1
  73. package/dist/api-schemas/storage.js +133 -0
  74. package/dist/api-schemas/storage.js.map +1 -1
  75. package/dist/api-schemas/storyboards.d.ts +55 -0
  76. package/dist/api-schemas/storyboards.d.ts.map +1 -1
  77. package/dist/api-schemas/storyboards.js +55 -8
  78. package/dist/api-schemas/storyboards.js.map +1 -1
  79. package/dist/api-schemas/sync.d.ts +78 -0
  80. package/dist/api-schemas/sync.d.ts.map +1 -0
  81. package/dist/api-schemas/sync.js +78 -0
  82. package/dist/api-schemas/sync.js.map +1 -0
  83. package/dist/api-schemas/text-documents.d.ts +145 -0
  84. package/dist/api-schemas/text-documents.d.ts.map +1 -0
  85. package/dist/api-schemas/text-documents.js +98 -0
  86. package/dist/api-schemas/text-documents.js.map +1 -0
  87. package/dist/api-schemas/timeline-tool-contracts.d.ts +42 -2
  88. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -1
  89. package/dist/api-schemas/timeline-tool-contracts.js +54 -3
  90. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -1
  91. package/dist/api-schemas/timeline-tool-params.d.ts +1 -1
  92. package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -1
  93. package/dist/api-schemas/timeline-tool-params.js +5 -0
  94. package/dist/api-schemas/timeline-tool-params.js.map +1 -1
  95. package/dist/api-schemas/timeline.d.ts +2 -0
  96. package/dist/api-schemas/timeline.d.ts.map +1 -1
  97. package/dist/api-schemas/timeline.js +7 -2
  98. package/dist/api-schemas/timeline.js.map +1 -1
  99. package/dist/api-schemas/transfer.d.ts +890 -0
  100. package/dist/api-schemas/transfer.d.ts.map +1 -0
  101. package/dist/api-schemas/transfer.js +297 -0
  102. package/dist/api-schemas/transfer.js.map +1 -0
  103. package/dist/api-schemas/workflows.d.ts +301 -1
  104. package/dist/api-schemas/workflows.d.ts.map +1 -1
  105. package/dist/api-schemas/workflows.js +110 -8
  106. package/dist/api-schemas/workflows.js.map +1 -1
  107. package/dist/api-schemas/workspace.d.ts +0 -22
  108. package/dist/api-schemas/workspace.d.ts.map +1 -1
  109. package/dist/api-schemas/workspace.js +0 -21
  110. package/dist/api-schemas/workspace.js.map +1 -1
  111. package/dist/api-types.d.ts +67 -6
  112. package/dist/api-types.d.ts.map +1 -1
  113. package/dist/api-types.js +3 -0
  114. package/dist/api-types.js.map +1 -1
  115. package/dist/asset-file-name.d.ts +3 -2
  116. package/dist/asset-file-name.d.ts.map +1 -1
  117. package/dist/asset-file-name.js +6 -3
  118. package/dist/asset-file-name.js.map +1 -1
  119. package/dist/bridge-frames.js +1 -1
  120. package/dist/bridge-frames.js.map +1 -1
  121. package/dist/chat-attachment.d.ts +28 -0
  122. package/dist/chat-attachment.d.ts.map +1 -0
  123. package/dist/chat-attachment.js +101 -0
  124. package/dist/chat-attachment.js.map +1 -0
  125. package/dist/closure.d.ts +39 -0
  126. package/dist/closure.d.ts.map +1 -0
  127. package/dist/closure.js +142 -0
  128. package/dist/closure.js.map +1 -0
  129. package/dist/cloud-profile.d.ts +4 -6
  130. package/dist/cloud-profile.d.ts.map +1 -1
  131. package/dist/cloud-profile.js +19 -16
  132. package/dist/cloud-profile.js.map +1 -1
  133. package/dist/comfy-graph.js +1 -1
  134. package/dist/comfy-graph.js.map +1 -1
  135. package/dist/creative.d.ts +23 -0
  136. package/dist/creative.d.ts.map +1 -1
  137. package/dist/creative.js +7 -0
  138. package/dist/creative.js.map +1 -1
  139. package/dist/document-embeds.d.ts +25 -0
  140. package/dist/document-embeds.d.ts.map +1 -0
  141. package/dist/document-embeds.js +74 -0
  142. package/dist/document-embeds.js.map +1 -0
  143. package/dist/graph.d.ts +12 -0
  144. package/dist/graph.d.ts.map +1 -1
  145. package/dist/graph.js +63 -5
  146. package/dist/graph.js.map +1 -1
  147. package/dist/identity-encoding.d.ts +2 -0
  148. package/dist/identity-encoding.d.ts.map +1 -0
  149. package/dist/identity-encoding.js +56 -0
  150. package/dist/identity-encoding.js.map +1 -0
  151. package/dist/index.d.ts +9 -0
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +9 -0
  154. package/dist/index.js.map +1 -1
  155. package/dist/markdown-blocks.d.ts +154 -0
  156. package/dist/markdown-blocks.d.ts.map +1 -0
  157. package/dist/markdown-blocks.js +585 -0
  158. package/dist/markdown-blocks.js.map +1 -0
  159. package/dist/messages.d.ts +2 -9
  160. package/dist/messages.d.ts.map +1 -1
  161. package/dist/messages.js +19 -2
  162. package/dist/messages.js.map +1 -1
  163. package/dist/missing-runtime-package.d.ts +1 -3
  164. package/dist/missing-runtime-package.d.ts.map +1 -1
  165. package/dist/missing-runtime-package.js +1 -3
  166. package/dist/missing-runtime-package.js.map +1 -1
  167. package/dist/processing-messages.schema.json +0 -2
  168. package/dist/project-directories.d.ts +127 -0
  169. package/dist/project-directories.d.ts.map +1 -0
  170. package/dist/project-directories.js +208 -0
  171. package/dist/project-directories.js.map +1 -0
  172. package/dist/python-packs.d.ts +10 -1
  173. package/dist/python-packs.d.ts.map +1 -1
  174. package/dist/python-packs.js +13 -2
  175. package/dist/python-packs.js.map +1 -1
  176. package/dist/run-trace.js +1 -1
  177. package/dist/run-trace.js.map +1 -1
  178. package/dist/runtime-npm-packages.d.ts +3 -13
  179. package/dist/runtime-npm-packages.d.ts.map +1 -1
  180. package/dist/runtime-npm-packages.js +3 -37
  181. package/dist/runtime-npm-packages.js.map +1 -1
  182. package/dist/sandbox-host.d.ts +1 -1
  183. package/dist/sandbox-host.d.ts.map +1 -1
  184. package/dist/sandbox-host.js +1 -50
  185. package/dist/sandbox-host.js.map +1 -1
  186. package/dist/search-metadata.d.ts +137 -0
  187. package/dist/search-metadata.d.ts.map +1 -0
  188. package/dist/search-metadata.js +122 -0
  189. package/dist/search-metadata.js.map +1 -0
  190. package/dist/storyboard-markdown.d.ts +154 -0
  191. package/dist/storyboard-markdown.d.ts.map +1 -0
  192. package/dist/storyboard-markdown.js +905 -0
  193. package/dist/storyboard-markdown.js.map +1 -0
  194. package/dist/toolSchemas.d.ts +46 -0
  195. package/dist/toolSchemas.d.ts.map +1 -1
  196. package/dist/toolSchemas.js +87 -3
  197. package/dist/toolSchemas.js.map +1 -1
  198. package/dist/triggers.d.ts +6 -0
  199. package/dist/triggers.d.ts.map +1 -1
  200. package/dist/triggers.js +10 -1
  201. package/dist/triggers.js.map +1 -1
  202. package/dist/workflow-document-revision.d.ts +1 -1
  203. package/dist/workflow-document-revision.d.ts.map +1 -1
  204. package/dist/workflow-document-revision.js +2 -1
  205. package/dist/workflow-document-revision.js.map +1 -1
  206. package/dist/ws-commands.d.ts +21 -1
  207. package/dist/ws-commands.d.ts.map +1 -1
  208. package/dist/ws-commands.js +15 -1
  209. package/dist/ws-commands.js.map +1 -1
  210. package/dist/zod-schema.d.ts.map +1 -1
  211. package/dist/zod-schema.js +15 -3
  212. package/dist/zod-schema.js.map +1 -1
  213. package/package.json +7 -1
  214. package/schema/sdk-v1.execution.schema.json +0 -4
  215. package/schema/sdk-v1.manifest.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-transfer-local.d.ts","sourceRoot":"","sources":["../../src/api-schemas/cloud-transfer-local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,oDAAoD;AACpD,eAAO,MAAM,oBAAoB;;;iBAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB;;;;iBAE/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGxE,eAAO,MAAM,gBAAgB;;;;;;iBAK3B,CAAC;AAEH,eAAO,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC"}
@@ -0,0 +1,251 @@
1
+ import { z } from "zod";
2
+ import { revisionSetFile } from "./receive.js";
3
+ import { transferAttemptResult, transferDecision, transferDocumentKind, transferFailure, transferFileOperation, transferMissingFile, transferOperation } from "./transfer.js";
4
+ // The transfer client of the server bundled with a native app
5
+ // (docs/plans/native-cloud-sync/technical-design.md, K9, WP2.7). The app
6
+ // names the cloud server origin and account, and hands the short-lived access
7
+ // token for the calls that reach the cloud (SR3). The local server derives the
8
+ // server key from the origin, so a send or receive captured for one server is
9
+ // never continued with another server's token.
10
+ const fullId = z.string().regex(/^[0-9a-f]{32}$/, "A full id is 32 lowercase hex characters");
11
+ /** The cloud server and account a call acts for. */
12
+ export const cloudTransferAccount = z.object({
13
+ /** The cloud server origin, such as `https://api.nodetool.ai`, with no path. */
14
+ origin: z.string().min(1).max(512),
15
+ account_id: z.string().min(1).max(256)
16
+ });
17
+ /** An account plus the access token for the calls that reach the cloud. */
18
+ export const cloudTransferSession = cloudTransferAccount.extend({
19
+ access_token: z.string().min(1).max(4096)
20
+ });
21
+ // ── send.capture ─────────────────────────────────────────────────
22
+ export const captureSendInput = cloudTransferAccount.extend({
23
+ project_id: fullId,
24
+ /** The name a first publication gives the cloud project. */
25
+ project_name: z.string().min(1).max(512).optional(),
26
+ device_name: z.string().min(1).max(256).optional()
27
+ });
28
+ export const capturedSend = z.object({
29
+ status: z.literal("captured"),
30
+ transfer_id: z.string(),
31
+ first_publication: z.boolean(),
32
+ operations: z.array(transferOperation),
33
+ /** The captured documents, so the sheet names the document of each operation. */
34
+ documents: z.array(z.object({ kind: transferDocumentKind, local_id: z.string(), cloud_id: z.string(), name: z.string() })),
35
+ /** Files the send puts, also for documents it leaves unchanged (review F33). */
36
+ file_operations: z.array(transferFileOperation),
37
+ missing_files: z.array(transferMissingFile),
38
+ /** Documents sent from their rows because their files are gone from the folder (CF3, review F37). */
39
+ missing_document_files: z.array(z.object({ kind: transferDocumentKind, id: z.string(), name: z.string() })),
40
+ skipped: z.array(z.object({
41
+ kind: transferDocumentKind,
42
+ id: z.string(),
43
+ name: z.string(),
44
+ reason: z.literal("invalid_file"),
45
+ detail: z.string()
46
+ })),
47
+ deleted_locally: z.array(z.object({ kind: transferDocumentKind, local_id: z.string(), cloud_id: z.string(), base_hash: z.string() })),
48
+ /**
49
+ * Workspace files sent earlier and gone from the folder since, for the
50
+ * deletion review. Absent from a server that predates them.
51
+ */
52
+ deleted_workspace_files: z.array(z.object({ path: z.string(), base_hash: z.string() })).optional()
53
+ });
54
+ /**
55
+ * The capture did not start: these assets have a file outside the project
56
+ * folder, which the Collect step must copy in first (CF6).
57
+ */
58
+ export const captureSendOutput = z.discriminatedUnion("status", [
59
+ capturedSend,
60
+ z.object({ status: z.literal("collect_first"), external: z.array(z.string()), message: z.string() })
61
+ ]);
62
+ // ── send.run ─────────────────────────────────────────────────────
63
+ export const runSendInput = cloudTransferSession.extend({
64
+ transfer_id: fullId,
65
+ decisions: z.array(transferDecision).max(10_000).optional(),
66
+ /**
67
+ * Documents the deletion review confirmed for deletion on the cloud, each
68
+ * with the cloud hash the review showed. That hash is the delete's
69
+ * precondition (V4, review F40).
70
+ */
71
+ confirm_deletes: z
72
+ .array(z.object({ kind: transferDocumentKind, cloud_id: fullId, cloud_hash: z.string().regex(/^[0-9a-f]{64}$/) }))
73
+ .max(10_000)
74
+ .optional(),
75
+ /**
76
+ * Workspace files the deletion review confirmed for deletion on the cloud,
77
+ * each with the base hash the capture listed. Only the project's owner
78
+ * deletes a file.
79
+ */
80
+ confirm_workspace_deletes: z
81
+ .array(z.object({ path: z.string(), base_hash: z.string().regex(/^[0-9a-f]{64}$/) }))
82
+ .max(100_000)
83
+ .optional(),
84
+ /**
85
+ * The workspace files the review included, each with the hash the capture
86
+ * listed. They are optional and off by default (SR7), so a reviewed send
87
+ * puts only these.
88
+ */
89
+ include_workspace_files: z
90
+ .array(z.object({ path: z.string(), hash: z.string().regex(/^[0-9a-f]{64}$/) }))
91
+ .max(100_000)
92
+ .optional(),
93
+ /** The missing files the review confirmed, exactly as the capture listed them (X7, review F36). */
94
+ confirm_missing_files: z.array(transferMissingFile).max(100_000).optional()
95
+ });
96
+ export const runSendOutput = z.discriminatedUnion("status", [
97
+ z.object({
98
+ status: z.literal("committed"),
99
+ transfer_id: z.string(),
100
+ result: transferAttemptResult
101
+ }),
102
+ z.object({ status: z.literal("refused"), transfer_id: z.string(), failures: z.array(transferFailure) }),
103
+ /** The send lists missing files the review did not confirm. Nothing was sent (review F36). */
104
+ z.object({
105
+ status: z.literal("missing_files_unconfirmed"),
106
+ transfer_id: z.string(),
107
+ missing_files: z.array(transferMissingFile)
108
+ })
109
+ ]);
110
+ // ── send.cancel ──────────────────────────────────────────────────
111
+ export const cancelSendInput = cloudTransferSession.extend({ transfer_id: fullId });
112
+ export const cancelSendOutput = z.object({ state: z.enum(["cancelled", "committed"]) });
113
+ // ── receive.capture ──────────────────────────────────────────────
114
+ export const receiveDocumentStatus = z.enum([
115
+ "new",
116
+ "same",
117
+ "cloud_changed",
118
+ "local_changed",
119
+ "both_changed",
120
+ "local_deleted"
121
+ ]);
122
+ export const receiveDecision = z.enum(["receive", "keep_local"]);
123
+ export const captureReceiveInput = cloudTransferSession.extend({ project_id: fullId });
124
+ /** A document of a receive's review. */
125
+ export const receiveReviewDocument = z.object({
126
+ kind: transferDocumentKind,
127
+ cloud_id: z.string(),
128
+ local_id: z.string(),
129
+ name: z.string(),
130
+ /**
131
+ * The content hash of the cloud revision the sheet shows. A send that
132
+ * the cloud refuses with this stored hash was reviewed already.
133
+ */
134
+ content_hash: z.string(),
135
+ /**
136
+ * The hash of this computer's copy when the set was captured, or null
137
+ * when it has none. A receive the person approved for other hashes asks
138
+ * again (review F46).
139
+ */
140
+ local_hash: z.string().nullable(),
141
+ status: receiveDocumentStatus,
142
+ /**
143
+ * Files of the document whose cloud bytes this folder does not hold. A
144
+ * document whose own content is the same still has work when this is
145
+ * above 0 (reviews F33, F51).
146
+ */
147
+ changed_files: z.number().int().nonnegative(),
148
+ /** The decision taken without the person, or null when the review sheet must ask. */
149
+ decision: receiveDecision.nullable(),
150
+ files: z.array(revisionSetFile),
151
+ missing_files: z.array(z.string()),
152
+ /**
153
+ * Files the owner erased in the cloud, whose entries show File erased.
154
+ * Optional so a client built before erases still reads the review.
155
+ */
156
+ erased_files: z.array(z.string()).optional()
157
+ });
158
+ /**
159
+ * A workspace file of the owner's cloud folder that changed since the base
160
+ * (technical design, "Receiving workspace files", RW6). Received workspace
161
+ * files are optional: `included` is false until the person ticks the row,
162
+ * except for a `same` file, which only records its base (RW7).
163
+ */
164
+ export const receiveReviewWorkspaceFile = z.object({
165
+ path: z.string(),
166
+ hash: z.string(),
167
+ size: z.number().int().nonnegative(),
168
+ local_hash: z.string().nullable(),
169
+ status: z.enum(["same", "new", "cloud_changed", "both_changed", "local_deleted"]),
170
+ included: z.boolean()
171
+ });
172
+ export const captureReceiveOutput = z.object({
173
+ set_id: z.string(),
174
+ documents: z.array(receiveReviewDocument),
175
+ /** Optional so a client built before workspace files still reads the review. */
176
+ workspace_files: z.array(receiveReviewWorkspaceFile).optional(),
177
+ /** Paths with a base that the cloud folder no longer lists. The local files are kept (OQ14). */
178
+ cloud_deleted_workspace_files: z.array(z.string()).optional()
179
+ });
180
+ // ── receive.run ──────────────────────────────────────────────────
181
+ export const runReceiveInput = cloudTransferSession.extend({
182
+ set_id: fullId,
183
+ decisions: z
184
+ .array(z.object({ kind: transferDocumentKind, document_id: fullId, decision: receiveDecision }))
185
+ .max(10_000)
186
+ .optional(),
187
+ /** The workspace files the person ticked, by path and the hash the sheet showed (RW7). */
188
+ include_workspace_files: z
189
+ .array(z.object({ path: z.string(), hash: z.string() }))
190
+ .max(10_000)
191
+ .optional()
192
+ });
193
+ const documentNamed = z.object({ kind: transferDocumentKind, id: z.string(), name: z.string() });
194
+ export const receiveResult = z.object({
195
+ received: z.array(documentNamed),
196
+ changed_during_receive: z.array(documentNamed),
197
+ not_received: z.array(documentNamed.extend({ status: receiveDocumentStatus })),
198
+ kept_beside: z.array(z.object({ asset_id: z.string(), path: z.string(), kept_path: z.string() })),
199
+ missing_files: z.array(z.string()),
200
+ /** Files the owner erased in the cloud. Optional as in the review document. */
201
+ erased_files: z.array(z.string()).optional(),
202
+ file_kept: z.array(z.object({ kind: transferDocumentKind, id: z.string() })),
203
+ /** Workspace files placed at their paths. */
204
+ received_workspace_files: z.array(z.string()).optional(),
205
+ /** Workspace files changed on both sides, received beside the local file (V11). */
206
+ kept_beside_workspace_files: z.array(z.object({ path: z.string(), kept_path: z.string() })).optional(),
207
+ /** Workspace files the person left out. The next receive offers them again. */
208
+ not_received_workspace_files: z.array(z.string()).optional(),
209
+ /** Workspace files deleted in the cloud. The local files are kept. */
210
+ cloud_deleted_workspace_files: z.array(z.string()).optional()
211
+ });
212
+ export const runReceiveOutput = z.discriminatedUnion("status", [
213
+ z.object({ status: z.literal("finished"), set_id: z.string(), result: receiveResult }),
214
+ z.object({ status: z.literal("expired"), set_id: z.string() }),
215
+ /**
216
+ * The review must be shown again: a document changed here after the review
217
+ * (Y3), or the cloud's set expired and a new one shows other content (Y7).
218
+ * `set_id` is the set to review, which may be a new one, and `documents`
219
+ * its review when the run produced it (reviews F31, F32).
220
+ */
221
+ z.object({
222
+ status: z.literal("waiting_for_review"),
223
+ set_id: z.string(),
224
+ documents: z.array(receiveReviewDocument).optional(),
225
+ workspace_files: z.array(receiveReviewWorkspaceFile).optional()
226
+ })
227
+ ]);
228
+ // ── receive.cancel ───────────────────────────────────────────────
229
+ /** Closes a receive's review: releases the set and clears the local receive (review F41). */
230
+ export const cancelReceiveInput = cloudTransferSession.extend({ set_id: fullId });
231
+ /** `applied`: the receive committed already, and a resume finishes placing its files. */
232
+ export const cancelReceiveOutput = z.object({ state: z.enum(["cancelled", "applied"]) });
233
+ // ── link ─────────────────────────────────────────────────────────
234
+ /** Whether a local project is linked, so the app offers Publish to Cloud or Synchronize. */
235
+ export const linkStatusInput = cloudTransferAccount.extend({ project_id: fullId });
236
+ export const linkStatusOutput = z.discriminatedUnion("state", [
237
+ /** Not linked: the app offers Publish to Cloud. */
238
+ z.object({ state: z.literal("unlinked") }),
239
+ /** Linked to a cloud project of this server and account: the app offers Synchronize. */
240
+ z.object({ state: z.literal("linked"), cloud_project_id: z.string() }),
241
+ /** Linked to another cloud server or account: the app offers neither. */
242
+ z.object({ state: z.literal("linked_elsewhere") })
243
+ ]);
244
+ // ── resume ───────────────────────────────────────────────────────
245
+ /** Continues every send and receive of this account that a restart interrupted. */
246
+ export const resumeTransfersInput = cloudTransferSession;
247
+ export const resumeTransfersOutput = z.object({
248
+ sends: z.array(runSendOutput),
249
+ receives: z.array(runReceiveOutput)
250
+ });
251
+ //# sourceMappingURL=cloud-transfer-local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-transfer-local.js","sourceRoot":"","sources":["../../src/api-schemas/cloud-transfer-local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAEvB,8DAA8D;AAC9D,yEAAyE;AACzE,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,+CAA+C;AAE/C,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,0CAA0C,CAAC,CAAC;AAE9F,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,gFAAgF;IAChF,MAAM,EAAE,CAAC,CAAC,MAAM,EAA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CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;AAEzF,oEAAoE;AACpE,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;IAC5D,mDAAmD;IACnD,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAC1C,wFAAwF;IACxF,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IACtE,yEAAyE;IACzE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;CACnD,CAAC,CAAC;AAGH,oEAAoE;AACpE,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AACzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const deletedDocumentKind: z.ZodEnum<{
3
+ project: "project";
4
+ timeline: "timeline";
5
+ workflow: "workflow";
6
+ }>;
7
+ export type DeletedDocumentKind = z.infer<typeof deletedDocumentKind>;
8
+ export declare const deletedDocumentRef: z.ZodObject<{
9
+ kind: z.ZodEnum<{
10
+ project: "project";
11
+ timeline: "timeline";
12
+ workflow: "workflow";
13
+ }>;
14
+ document_id: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export type DeletedDocumentRef = z.infer<typeof deletedDocumentRef>;
17
+ export declare const deletedDocumentResponse: z.ZodObject<{
18
+ kind: z.ZodString;
19
+ document_id: z.ZodString;
20
+ project_id: z.ZodNullable<z.ZodString>;
21
+ name: z.ZodString;
22
+ deleted_at: z.ZodString;
23
+ purge_at: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type DeletedDocumentResponse = z.infer<typeof deletedDocumentResponse>;
26
+ export declare const listDeletedInput: z.ZodObject<{
27
+ project_id: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ export declare const listDeletedOutput: z.ZodObject<{
30
+ documents: z.ZodArray<z.ZodObject<{
31
+ kind: z.ZodString;
32
+ document_id: z.ZodString;
33
+ project_id: z.ZodNullable<z.ZodString>;
34
+ name: z.ZodString;
35
+ deleted_at: z.ZodString;
36
+ purge_at: z.ZodString;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>;
39
+ export declare const restoreDeletedOutput: z.ZodObject<{
40
+ restored: z.ZodLiteral<true>;
41
+ }, z.core.$strip>;
42
+ export declare const endRestorePeriodOutput: z.ZodObject<{
43
+ ended: z.ZodLiteral<true>;
44
+ }, z.core.$strip>;
45
+ //# sourceMappingURL=deleted-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleted-documents.d.ts","sourceRoot":"","sources":["../../src/api-schemas/deleted-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;EAA8C,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;iBAG7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;iBAQlC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAG9E,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;iBAE5B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;iBAA0C,CAAC;AAG5E,eAAO,MAAM,sBAAsB;;iBAAuC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ // Deleted documents and projects kept for their restore period
3
+ // (docs/plans/native-cloud-sync/technical-design.md, "Deletion, restore and
4
+ // storage", PRD D4). Only the owner lists, restores or ends the period.
5
+ export const deletedDocumentKind = z.enum(["workflow", "timeline", "project"]);
6
+ export const deletedDocumentRef = z.object({
7
+ kind: deletedDocumentKind,
8
+ document_id: z.string().min(1).max(256)
9
+ });
10
+ export const deletedDocumentResponse = z.object({
11
+ kind: z.string(),
12
+ document_id: z.string(),
13
+ project_id: z.string().nullable(),
14
+ name: z.string(),
15
+ deleted_at: z.string(),
16
+ /** After this time the document is gone and cannot be restored. */
17
+ purge_at: z.string()
18
+ });
19
+ // ── list ──────────────────────────────────────────────────────────
20
+ export const listDeletedInput = z.object({
21
+ project_id: z.string().min(1).max(256).optional()
22
+ });
23
+ export const listDeletedOutput = z.object({
24
+ documents: z.array(deletedDocumentResponse)
25
+ });
26
+ // ── restore ───────────────────────────────────────────────────────
27
+ export const restoreDeletedOutput = z.object({ restored: z.literal(true) });
28
+ // ── endRestorePeriod ──────────────────────────────────────────────
29
+ export const endRestorePeriodOutput = z.object({ ended: z.literal(true) });
30
+ //# sourceMappingURL=deleted-documents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleted-documents.js","sourceRoot":"","sources":["../../src/api-schemas/deleted-documents.ts"],"names":[],"mappings":"AAAA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AE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE5E,qEAAqE;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
@@ -40,6 +40,12 @@ export declare const documentCollaboratorItem: z.ZodObject<{
40
40
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ share_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ options: z.ZodOptional<z.ZodObject<{
45
+ allow_history: z.ZodBoolean;
46
+ allow_download: z.ZodBoolean;
47
+ allow_duplicate: z.ZodBoolean;
48
+ }, z.core.$strip>>;
43
49
  }, z.core.$strip>;
44
50
  export type DocumentCollaboratorItem = z.infer<typeof documentCollaboratorItem>;
45
51
  export declare const documentShareItem: z.ZodObject<{
@@ -51,6 +57,13 @@ export declare const documentShareItem: z.ZodObject<{
51
57
  }>;
52
58
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
59
  revoked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ disabled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ options: z.ZodOptional<z.ZodObject<{
62
+ allow_history: z.ZodBoolean;
63
+ allow_download: z.ZodBoolean;
64
+ allow_duplicate: z.ZodBoolean;
65
+ }, z.core.$strip>>;
66
+ owner_notice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
67
  }, z.core.$strip>;
55
68
  export type DocumentShareItem = z.infer<typeof documentShareItem>;
56
69
  export declare const documentSharingGetOutput: z.ZodObject<{
@@ -64,6 +77,12 @@ export declare const documentSharingGetOutput: z.ZodObject<{
64
77
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
78
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
79
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ share_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ options: z.ZodOptional<z.ZodObject<{
82
+ allow_history: z.ZodBoolean;
83
+ allow_download: z.ZodBoolean;
84
+ allow_duplicate: z.ZodBoolean;
85
+ }, z.core.$strip>>;
67
86
  }, z.core.$strip>>;
68
87
  shares: z.ZodArray<z.ZodObject<{
69
88
  id: z.ZodString;
@@ -74,7 +93,58 @@ export declare const documentSharingGetOutput: z.ZodObject<{
74
93
  }>;
75
94
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
95
  revoked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ disabled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ options: z.ZodOptional<z.ZodObject<{
98
+ allow_history: z.ZodBoolean;
99
+ allow_download: z.ZodBoolean;
100
+ allow_duplicate: z.ZodBoolean;
101
+ }, z.core.$strip>>;
102
+ owner_notice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
103
  }, z.core.$strip>>;
104
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ user_id: z.ZodString;
106
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ access: z.ZodObject<{
109
+ role: z.ZodEnum<{
110
+ editor: "editor";
111
+ owner: "owner";
112
+ viewer: "viewer";
113
+ }>;
114
+ options: z.ZodObject<{
115
+ allow_history: z.ZodBoolean;
116
+ allow_download: z.ZodBoolean;
117
+ allow_duplicate: z.ZodBoolean;
118
+ }, z.core.$strip>;
119
+ grants: z.ZodArray<z.ZodObject<{
120
+ source: z.ZodEnum<{
121
+ invitation: "invitation";
122
+ link: "link";
123
+ owner: "owner";
124
+ public: "public";
125
+ }>;
126
+ grant_id: z.ZodNullable<z.ZodString>;
127
+ share_id: z.ZodNullable<z.ZodString>;
128
+ role: z.ZodEnum<{
129
+ editor: "editor";
130
+ owner: "owner";
131
+ viewer: "viewer";
132
+ }>;
133
+ options: z.ZodObject<{
134
+ allow_history: z.ZodBoolean;
135
+ allow_download: z.ZodBoolean;
136
+ allow_duplicate: z.ZodBoolean;
137
+ }, z.core.$strip>;
138
+ link_disabled: z.ZodBoolean;
139
+ }, z.core.$strip>>;
140
+ given_by: z.ZodObject<{
141
+ role: z.ZodArray<z.ZodNumber>;
142
+ allow_history: z.ZodArray<z.ZodNumber>;
143
+ allow_download: z.ZodArray<z.ZodNumber>;
144
+ allow_duplicate: z.ZodArray<z.ZodNumber>;
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>;
147
+ }, z.core.$strip>>>;
78
148
  }, z.core.$strip>;
79
149
  export type DocumentSharingGetOutput = z.infer<typeof documentSharingGetOutput>;
80
150
  export declare const documentSharingCreateLinkInput: z.ZodObject<{
@@ -120,7 +190,10 @@ export declare const documentSharingSetRoleInput: z.ZodObject<{
120
190
  viewer: "viewer";
121
191
  }>;
122
192
  }, z.core.$strip>;
123
- /** Give a person from the user directory access by name, without a link. */
193
+ /**
194
+ * Give a person from the user directory access by name, without a link.
195
+ * The options are the invitation's own.
196
+ */
124
197
  export declare const documentSharingInviteInput: z.ZodObject<{
125
198
  type: z.ZodEnum<{
126
199
  application: "application";
@@ -136,6 +209,60 @@ export declare const documentSharingInviteInput: z.ZodObject<{
136
209
  editor: "editor";
137
210
  viewer: "viewer";
138
211
  }>;
212
+ options: z.ZodOptional<z.ZodObject<{
213
+ allow_history: z.ZodOptional<z.ZodBoolean>;
214
+ allow_download: z.ZodOptional<z.ZodBoolean>;
215
+ allow_duplicate: z.ZodOptional<z.ZodBoolean>;
216
+ }, z.core.$strip>>;
217
+ }, z.core.$strip>;
218
+ /** Change a link's options. They apply to everyone who joined through it. */
219
+ export declare const documentSharingSetLinkOptionsInput: z.ZodObject<{
220
+ type: z.ZodEnum<{
221
+ application: "application";
222
+ jsscript: "jsscript";
223
+ script: "script";
224
+ sketch: "sketch";
225
+ storyboard: "storyboard";
226
+ timeline: "timeline";
227
+ }>;
228
+ id: z.ZodString;
229
+ share_id: z.ZodString;
230
+ options: z.ZodObject<{
231
+ allow_history: z.ZodOptional<z.ZodBoolean>;
232
+ allow_download: z.ZodOptional<z.ZodBoolean>;
233
+ allow_duplicate: z.ZodOptional<z.ZodBoolean>;
234
+ }, z.core.$strip>;
235
+ }, z.core.$strip>;
236
+ /** Change the options of a person's invitation. */
237
+ export declare const documentSharingSetInvitationOptionsInput: z.ZodObject<{
238
+ type: z.ZodEnum<{
239
+ application: "application";
240
+ jsscript: "jsscript";
241
+ script: "script";
242
+ sketch: "sketch";
243
+ storyboard: "storyboard";
244
+ timeline: "timeline";
245
+ }>;
246
+ id: z.ZodString;
247
+ user_id: z.ZodString;
248
+ options: z.ZodObject<{
249
+ allow_history: z.ZodOptional<z.ZodBoolean>;
250
+ allow_download: z.ZodOptional<z.ZodBoolean>;
251
+ allow_duplicate: z.ZodOptional<z.ZodBoolean>;
252
+ }, z.core.$strip>;
253
+ }, z.core.$strip>;
254
+ /** Dismiss the owner notice on a link. */
255
+ export declare const documentSharingDismissNoticeInput: z.ZodObject<{
256
+ type: z.ZodEnum<{
257
+ application: "application";
258
+ jsscript: "jsscript";
259
+ script: "script";
260
+ sketch: "sketch";
261
+ storyboard: "storyboard";
262
+ timeline: "timeline";
263
+ }>;
264
+ id: z.ZodString;
265
+ share_id: z.ZodString;
139
266
  }, z.core.$strip>;
140
267
  export declare const documentSharingRemoveCollaboratorInput: z.ZodObject<{
141
268
  type: z.ZodEnum<{
@@ -214,4 +341,47 @@ export declare const documentSharedWithMeOutput: z.ZodObject<{
214
341
  }, z.core.$strip>>;
215
342
  }, z.core.$strip>;
216
343
  export type DocumentSharedWithMeOutput = z.infer<typeof documentSharedWithMeOutput>;
344
+ /** The caller's role and options on a document, null without access. */
345
+ export declare const documentSharingAccessOutput: z.ZodObject<{
346
+ access: z.ZodNullable<z.ZodObject<{
347
+ role: z.ZodEnum<{
348
+ editor: "editor";
349
+ owner: "owner";
350
+ viewer: "viewer";
351
+ }>;
352
+ options: z.ZodObject<{
353
+ allow_history: z.ZodBoolean;
354
+ allow_download: z.ZodBoolean;
355
+ allow_duplicate: z.ZodBoolean;
356
+ }, z.core.$strip>;
357
+ grants: z.ZodArray<z.ZodObject<{
358
+ source: z.ZodEnum<{
359
+ invitation: "invitation";
360
+ link: "link";
361
+ owner: "owner";
362
+ public: "public";
363
+ }>;
364
+ grant_id: z.ZodNullable<z.ZodString>;
365
+ share_id: z.ZodNullable<z.ZodString>;
366
+ role: z.ZodEnum<{
367
+ editor: "editor";
368
+ owner: "owner";
369
+ viewer: "viewer";
370
+ }>;
371
+ options: z.ZodObject<{
372
+ allow_history: z.ZodBoolean;
373
+ allow_download: z.ZodBoolean;
374
+ allow_duplicate: z.ZodBoolean;
375
+ }, z.core.$strip>;
376
+ link_disabled: z.ZodBoolean;
377
+ }, z.core.$strip>>;
378
+ given_by: z.ZodObject<{
379
+ role: z.ZodArray<z.ZodNumber>;
380
+ allow_history: z.ZodArray<z.ZodNumber>;
381
+ allow_download: z.ZodArray<z.ZodNumber>;
382
+ allow_duplicate: z.ZodArray<z.ZodNumber>;
383
+ }, z.core.$strip>;
384
+ }, z.core.$strip>>;
385
+ }, z.core.$strip>;
386
+ export type DocumentSharingAccessOutput = z.infer<typeof documentSharingAccessOutput>;
217
387
  //# sourceMappingURL=document-sharing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document-sharing.d.ts","sourceRoot":"","sources":["../../src/api-schemas/document-sharing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,uCAAuC;AACvC,eAAO,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