@antcde/connect-ts 0.4.26 → 0.4.27-rc.2

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 (214) hide show
  1. package/README.md +67 -3
  2. package/build/AntConnect.d.ts +8 -0
  3. package/build/AntConnect.d.ts.map +1 -1
  4. package/build/AntConnect.js +8 -0
  5. package/build/AntHttpClient.d.ts +0 -5
  6. package/build/AntHttpClient.d.ts.map +1 -1
  7. package/build/AntHttpClient.js +0 -5
  8. package/build/ai/index.d.ts +5 -0
  9. package/build/ai/index.d.ts.map +1 -0
  10. package/build/ai/index.js +3 -0
  11. package/build/ai/mutationDescriptors.d.ts +3 -0
  12. package/build/ai/mutationDescriptors.d.ts.map +1 -0
  13. package/build/ai/mutationDescriptors.js +207 -0
  14. package/build/ai/mutationTargets.d.ts +21 -0
  15. package/build/ai/mutationTargets.d.ts.map +1 -0
  16. package/build/ai/mutationTargets.js +72 -0
  17. package/build/ai/queryDescriptors.d.ts +3 -0
  18. package/build/ai/queryDescriptors.d.ts.map +1 -0
  19. package/build/ai/queryDescriptors.js +174 -0
  20. package/build/ai/types.d.ts +35 -0
  21. package/build/ai/types.d.ts.map +1 -0
  22. package/build/comms/client.js +1 -1
  23. package/build/comms/hostAPI.js +1 -1
  24. package/build/comms/models.d.ts +20 -2
  25. package/build/comms/models.d.ts.map +1 -1
  26. package/build/comms/signalChangeTypes.d.ts +27 -1
  27. package/build/comms/signalChangeTypes.d.ts.map +1 -1
  28. package/build/comms/signalChangeTypes.js +7 -0
  29. package/build/comms/signalTypes.d.ts +21 -3
  30. package/build/comms/signalTypes.d.ts.map +1 -1
  31. package/build/index.d.ts +8 -35
  32. package/build/index.d.ts.map +1 -1
  33. package/build/index.js +8 -3
  34. package/build/service-runtime.d.ts +9 -0
  35. package/build/service-runtime.d.ts.map +1 -0
  36. package/build/service-runtime.js +10 -0
  37. package/build/service-types-app.d.ts +2 -0
  38. package/build/service-types-app.d.ts.map +1 -0
  39. package/build/service-types-app.js +3 -0
  40. package/build/service-types.d.ts +37 -0
  41. package/build/service-types.d.ts.map +1 -0
  42. package/build/service-types.js +7 -0
  43. package/build/services/AiService.d.ts +18 -0
  44. package/build/services/AiService.d.ts.map +1 -0
  45. package/build/services/AiService.js +9 -0
  46. package/build/services/AppService/factory/accessRequests.d.ts +19 -0
  47. package/build/services/AppService/factory/accessRequests.d.ts.map +1 -0
  48. package/build/services/AppService/factory/accessRequests.js +17 -0
  49. package/build/services/AppService/factory/assignments.d.ts +57 -0
  50. package/build/services/AppService/factory/assignments.d.ts.map +1 -0
  51. package/build/services/AppService/factory/assignments.js +30 -0
  52. package/build/services/AppService/factory/channels.d.ts +35 -0
  53. package/build/services/AppService/factory/channels.d.ts.map +1 -0
  54. package/build/services/AppService/factory/channels.js +18 -0
  55. package/build/services/AppService/factory/formData.d.ts +14 -0
  56. package/build/services/AppService/factory/formData.d.ts.map +1 -0
  57. package/build/services/AppService/factory/formData.js +50 -0
  58. package/build/services/AppService/factory/media.d.ts +17 -0
  59. package/build/services/AppService/factory/media.d.ts.map +1 -0
  60. package/build/services/AppService/factory/media.js +10 -0
  61. package/build/services/AppService/factory/resourceAccess.d.ts +21 -0
  62. package/build/services/AppService/factory/resourceAccess.d.ts.map +1 -0
  63. package/build/services/AppService/factory/resourceAccess.js +37 -0
  64. package/build/services/AppService/factory/resourceCommerce.d.ts +52 -0
  65. package/build/services/AppService/factory/resourceCommerce.d.ts.map +1 -0
  66. package/build/services/AppService/factory/resourceCommerce.js +18 -0
  67. package/build/services/AppService/factory/resourceSnapshot.d.ts +62 -0
  68. package/build/services/AppService/factory/resourceSnapshot.d.ts.map +1 -0
  69. package/build/services/AppService/factory/resourceSnapshot.js +34 -0
  70. package/build/services/AppService/factory/resources.d.ts +153 -0
  71. package/build/services/AppService/factory/resources.d.ts.map +1 -0
  72. package/build/services/AppService/factory/resources.js +44 -0
  73. package/build/services/AppService/factory/subscriptions.d.ts +73 -0
  74. package/build/services/AppService/factory/subscriptions.d.ts.map +1 -0
  75. package/build/services/AppService/factory/subscriptions.js +39 -0
  76. package/build/services/AppService/index.d.ts +59 -0
  77. package/build/services/AppService/index.d.ts.map +1 -0
  78. package/build/services/AppService/index.js +76 -0
  79. package/build/services/AppService/types/accessRequests.d.ts +164 -0
  80. package/build/services/AppService/types/accessRequests.d.ts.map +1 -0
  81. package/build/services/AppService/types/app.d.ts +124 -0
  82. package/build/services/AppService/types/app.d.ts.map +1 -0
  83. package/build/services/AppService/types/app.js +6 -0
  84. package/build/services/AppService/types/appCategories.d.ts +16 -0
  85. package/build/services/AppService/types/appCategories.d.ts.map +1 -0
  86. package/build/services/AppService/types/appCategories.js +1 -0
  87. package/build/services/AppService/types/appChangelog.d.ts +31 -0
  88. package/build/services/AppService/types/appChangelog.d.ts.map +1 -0
  89. package/build/services/AppService/types/appChangelog.js +1 -0
  90. package/build/services/AppService/types/appConfigStatus.d.ts +68 -0
  91. package/build/services/AppService/types/appConfigStatus.d.ts.map +1 -0
  92. package/build/services/AppService/types/appConfigStatus.js +11 -0
  93. package/build/services/AppService/types/appList.d.ts +211 -0
  94. package/build/services/AppService/types/appList.d.ts.map +1 -0
  95. package/build/services/AppService/types/appList.js +1 -0
  96. package/build/services/AppService/types/appManifest.d.ts +100 -0
  97. package/build/services/AppService/types/appManifest.d.ts.map +1 -0
  98. package/build/services/AppService/types/appManifest.js +4 -0
  99. package/build/services/AppService/types/appMedia.d.ts +136 -0
  100. package/build/services/AppService/types/appMedia.d.ts.map +1 -0
  101. package/build/services/AppService/types/appMedia.js +1 -0
  102. package/build/services/AppService/types/appRequests.d.ts +126 -0
  103. package/build/services/AppService/types/appRequests.d.ts.map +1 -0
  104. package/build/services/AppService/types/appRequests.js +1 -0
  105. package/build/services/AppService/types/appScopes.d.ts +165 -0
  106. package/build/services/AppService/types/appScopes.d.ts.map +1 -0
  107. package/build/services/AppService/types/appScopes.js +1 -0
  108. package/build/services/AppService/types/channels.d.ts +45 -0
  109. package/build/services/AppService/types/channels.d.ts.map +1 -0
  110. package/build/services/AppService/types/channels.js +1 -0
  111. package/build/services/AppService/types/pricingTiers.d.ts +111 -0
  112. package/build/services/AppService/types/pricingTiers.d.ts.map +1 -0
  113. package/build/services/AppService/types/pricingTiers.js +1 -0
  114. package/build/services/AppService/types/publisherStats.d.ts +20 -0
  115. package/build/services/AppService/types/publisherStats.d.ts.map +1 -0
  116. package/build/services/AppService/types/publisherStats.js +1 -0
  117. package/build/services/AppService/types/releaseChannels.d.ts +127 -0
  118. package/build/services/AppService/types/releaseChannels.d.ts.map +1 -0
  119. package/build/services/AppService/types/releaseChannels.js +1 -0
  120. package/build/services/AppService/types/resourceEntitlements.d.ts +101 -0
  121. package/build/services/AppService/types/resourceEntitlements.d.ts.map +1 -0
  122. package/build/services/AppService/types/resourceEntitlements.js +1 -0
  123. package/build/services/AppService/types/resourceReleases.d.ts +143 -0
  124. package/build/services/AppService/types/resourceReleases.d.ts.map +1 -0
  125. package/build/services/AppService/types/resourceReleases.js +1 -0
  126. package/build/services/AppService/types/resourceRequests.d.ts +105 -0
  127. package/build/services/AppService/types/resourceRequests.d.ts.map +1 -0
  128. package/build/services/AppService/types/resourceRequests.js +1 -0
  129. package/build/services/AppService/types/seats.d.ts +220 -0
  130. package/build/services/AppService/types/seats.d.ts.map +1 -0
  131. package/build/services/AppService/types/seats.js +4 -0
  132. package/build/services/AppService/types/sellableResources.d.ts +189 -0
  133. package/build/services/AppService/types/sellableResources.d.ts.map +1 -0
  134. package/build/services/AppService/types/sellableResources.js +1 -0
  135. package/build/services/AppService/types/snapshotPayload.d.ts +146 -0
  136. package/build/services/AppService/types/snapshotPayload.d.ts.map +1 -0
  137. package/build/services/AppService/types/snapshotPayload.js +16 -0
  138. package/build/services/AppService/types/snapshotSources.d.ts +98 -0
  139. package/build/services/AppService/types/snapshotSources.d.ts.map +1 -0
  140. package/build/services/AppService/types/snapshotSources.js +7 -0
  141. package/build/services/AppService/types/subscriptions.d.ts +182 -0
  142. package/build/services/AppService/types/subscriptions.d.ts.map +1 -0
  143. package/build/services/AppService/types/subscriptions.js +1 -0
  144. package/build/services/AppService/types.d.ts +23 -0
  145. package/build/services/AppService/types.d.ts.map +1 -0
  146. package/build/services/AppService/types.js +25 -0
  147. package/build/services/DmsService.d.ts +13 -0
  148. package/build/services/DmsService.d.ts.map +1 -1
  149. package/build/services/DmsServiceImpl.d.ts.map +1 -1
  150. package/build/services/DmsServiceImpl.js +8 -0
  151. package/build/services/LicenseService.d.ts +1 -1
  152. package/build/services/LicenseService.d.ts.map +1 -1
  153. package/build/services/LicenseService.js +1 -1
  154. package/build/services/OAuthClientService.d.ts +20 -0
  155. package/build/services/OAuthClientService.d.ts.map +1 -0
  156. package/build/services/OAuthClientService.js +12 -0
  157. package/build/services/OAuthClientService.types.d.ts +37 -0
  158. package/build/services/OAuthClientService.types.d.ts.map +1 -0
  159. package/build/services/OAuthClientService.types.js +4 -0
  160. package/build/services/ProjectService.d.ts +1 -0
  161. package/build/services/ProjectService.d.ts.map +1 -1
  162. package/build/services/ReleaseService.d.ts +1 -0
  163. package/build/services/ReleaseService.d.ts.map +1 -1
  164. package/build/services/SecretService.d.ts +22 -0
  165. package/build/services/SecretService.d.ts.map +1 -0
  166. package/build/services/SecretService.js +21 -0
  167. package/build/services/SecretService.types.d.ts +147 -0
  168. package/build/services/SecretService.types.d.ts.map +1 -0
  169. package/build/services/SecretService.types.js +1 -0
  170. package/build/services/SecretSharing.types.d.ts +112 -0
  171. package/build/services/SecretSharing.types.d.ts.map +1 -0
  172. package/build/services/SecretSharing.types.js +1 -0
  173. package/build/services/TableService.js +7 -7
  174. package/build/services/TaskService.d.ts +3 -3
  175. package/build/services/TaskService.d.ts.map +1 -1
  176. package/build/services/TaskService.js +1 -1
  177. package/build/services/TaskService.types.d.ts +21 -4
  178. package/build/services/TaskService.types.d.ts.map +1 -1
  179. package/build/services/TaskServiceQueries.d.ts +2 -0
  180. package/build/services/TaskServiceQueries.d.ts.map +1 -1
  181. package/build/services/TaskServiceQueries.js +13 -2
  182. package/build/services/TaskTemplate.types.d.ts +74 -1
  183. package/build/services/TaskTemplate.types.d.ts.map +1 -1
  184. package/build/services/TokenService.d.ts +5 -1
  185. package/build/services/TokenService.d.ts.map +1 -1
  186. package/build/services/TokenService.js +1 -2
  187. package/build/services/UserService.d.ts +3 -0
  188. package/build/services/UserService.d.ts.map +1 -1
  189. package/build/services/UserService.js +4 -4
  190. package/build/services/Webhook/TriggerHistoryService.d.ts +1 -1
  191. package/build/services/Webhook/TriggerHistoryService.d.ts.map +1 -1
  192. package/build/services/Webhook/TriggerSecretService.d.ts +88 -0
  193. package/build/services/Webhook/TriggerSecretService.d.ts.map +1 -0
  194. package/build/services/Webhook/TriggerSecretService.js +9 -0
  195. package/build/services/Webhook/TriggerService.d.ts +28 -0
  196. package/build/services/Webhook/TriggerService.d.ts.map +1 -1
  197. package/build/services/Webhook/TriggerService.js +10 -0
  198. package/build/services/Websockets/StoreEvents.d.ts +44 -0
  199. package/build/services/Websockets/StoreEvents.d.ts.map +1 -0
  200. package/build/services/Websockets/StoreEvents.js +5 -0
  201. package/build/services/userPreferences.d.ts +37 -0
  202. package/build/services/userPreferences.d.ts.map +1 -0
  203. package/build/services/userPreferences.js +39 -0
  204. package/package.json +8 -7
  205. package/schemas/app-config.schema.json +85 -8
  206. package/build/services/AppManifest.d.ts +0 -39
  207. package/build/services/AppManifest.d.ts.map +0 -1
  208. package/build/services/AppService.d.ts +0 -57
  209. package/build/services/AppService.d.ts.map +0 -1
  210. package/build/services/AppService.js +0 -47
  211. package/build/services/AppService.types.d.ts +0 -173
  212. package/build/services/AppService.types.d.ts.map +0 -1
  213. /package/build/{services/AppManifest.js → ai/types.js} +0 -0
  214. /package/build/services/{AppService.types.js → AppService/types/accessRequests.js} +0 -0
@@ -0,0 +1,211 @@
1
+ import type { MyAccessRequestSummary } from './accessRequests';
2
+ import type { AccessLevel, AppAvailability, AppLicense, AppTrustLevel, RequestBlockedReason } from './app';
3
+ import type { AppCategory } from './appCategories';
4
+ import type { AppManifestCapabilities, AppManifestSignals } from './appManifest';
5
+ import type { AppVersionSummary } from './appMedia';
6
+ import type { AppInProject, AppOnLicense, AppScope } from './appScopes';
7
+ import type { AccessibleChannel } from './channels';
8
+ import type { CheapestTierSummary } from './pricingTiers';
9
+ import type { AccessBlock } from './seats';
10
+ import type { AppSubscriptionSummary } from './subscriptions';
11
+ /**
12
+ * Compact free/paid tier summary on a browse card (subscription-model apps
13
+ * only; null otherwise). Lets the card render "Free", "Free + paid",
14
+ * "From €X", or "Paid" without the full tier list. Complements `cheapest_tier`.
15
+ */
16
+ export interface AppTierSummary {
17
+ has_free: boolean;
18
+ has_paid: boolean;
19
+ /** Lowest paid tier amount, for "from €X". Null when there are no paid tiers. */
20
+ min_paid_amount: number | null;
21
+ /** Highest paid tier amount, for a range. Null when there are no paid tiers. */
22
+ max_amount: number | null;
23
+ /** ISO-4217 currency code (e.g. "EUR"), or null. */
24
+ currency: string | null;
25
+ }
26
+ export interface ListApp {
27
+ id: string;
28
+ title: string;
29
+ tagline: null | string;
30
+ image: string;
31
+ icon: string;
32
+ color: string;
33
+ /** Scopes this app runs in — see `App.supported_scopes`. */
34
+ supported_scopes: AppScope[];
35
+ access_level: AccessLevel;
36
+ availability: AppAvailability;
37
+ trust_level: AppTrustLevel;
38
+ is_deprecated: boolean;
39
+ deprecation_message: string | null;
40
+ can_configure_by_license: boolean;
41
+ can_request_access: boolean;
42
+ /**
43
+ * Why `can_request_access` is false (request-access apps only). Now honored on
44
+ * the list so the browse card matches the detail — render the reason instead
45
+ * of a generic "Request access" / dead state. See type doc.
46
+ */
47
+ request_blocked_reason: RequestBlockedReason;
48
+ /** Canonical entitlement flag, consistent with `App.has_access`. */
49
+ has_access: boolean;
50
+ /** The viewer's license's own latest request — a summary, not the inbox resource. */
51
+ my_access_request?: MyAccessRequestSummary | null;
52
+ /**
53
+ * As `App.access_block` (narrow on `reason` first), but nested under `data`.
54
+ * On listings a withdrawn block ALWAYS carries a non-null `update_to_version`:
55
+ * when the channel serves nothing the app is dropped from
56
+ * `installed`/`my_access`/`browse` entirely rather than listed as withdrawn, so
57
+ * a row never says "nothing to update to" — only the detail fetch sees that.
58
+ */
59
+ access_block?: AccessBlock | null;
60
+ /**
61
+ * Derived: can the current user open/use this app right now?
62
+ * Non-project app → `on_license.installed`; project app → `in_project.activated`.
63
+ * The launcher/OS-shell filter (`apps.filter(a => a.can_open)`).
64
+ * False does NOT imply "not installed" — a withdrawn install keeps
65
+ * `on_license.installed` true, so check `access_block` before offering Install.
66
+ */
67
+ can_open: boolean;
68
+ /**
69
+ * License-scope install state (always present). The LIST omits the
70
+ * release-gated `can_install` — use the single-app detail (`App`) for it.
71
+ */
72
+ on_license: AppOnLicense;
73
+ /** Project-scope activation state; null unless the app supports project scope + project context. */
74
+ in_project: AppInProject | null;
75
+ /**
76
+ * Channels the current user can open, scoped to `has_access` (inaccessible
77
+ * channels omitted). Populated on dashboard / My Apps lists (store_mode
78
+ * `installed` / `my_access`); `[]` elsewhere or when the user has no openable
79
+ * channel. `length > 1` ⇒ render the channel/version switcher; the default is
80
+ * the `is_preferred` entry, else `is_primary`.
81
+ */
82
+ accessible_channels: AccessibleChannel[];
83
+ /**
84
+ * Does ANY addressable install have an update? See `App.update_available` —
85
+ * an OR roll-up across the license and current-project links (AAD-906), not a
86
+ * statement about any single install. Narrow through `on_license` /
87
+ * `in_project` before offering a per-install action.
88
+ */
89
+ update_available: boolean;
90
+ /** Target version for the scope named by `update_scope`; null when current. */
91
+ update_available_version_id: string | null;
92
+ /**
93
+ * Which install scope the flat `update_available` pair describes, or null
94
+ * when nothing is behind. Pass this back as `scope` to `updateInstalledApp`.
95
+ *
96
+ * Load-bearing, and NOT derivable from the per-scope blocks: a project-only
97
+ * app's license enablement rows still go stale, and `updatableScopes()`
98
+ * rejects that case on both per-scope paths (`supported_scopes` lacks
99
+ * `license`; `in_project.activated` is false). This field is the only thing
100
+ * that addresses it.
101
+ */
102
+ update_scope: AppScope | null;
103
+ /**
104
+ * Publisher-curated flag. Present on every list row so the Store landing page
105
+ * can derive its featured rail by filtering an already-fetched `browse`
106
+ * response instead of issuing a second `browse&featured=true` request.
107
+ *
108
+ * Safe because `store/apps` is UNPAGINATED — the backend limits only when the
109
+ * caller passes `limit`, and `featured=true` is a plain
110
+ * `where('is_featured', true)` composed after the same browse visibility
111
+ * scopes, so `rows.filter(r => r.is_featured)` reproduces the filtered call
112
+ * exactly. If pagination is ever added, go back to the second request.
113
+ */
114
+ is_featured: boolean;
115
+ path: string;
116
+ /** Detail-only in practice — the list does NOT emit this. Use the `App` payload. */
117
+ active_channel?: {
118
+ id: string;
119
+ name: string;
120
+ color?: string | null;
121
+ } | null;
122
+ license?: AppLicense;
123
+ access_model?: 'free' | 'subscription';
124
+ install_count?: number;
125
+ /**
126
+ * The newest version this app actually SERVES (active version of some channel),
127
+ * or `null` when nothing is served (AAD-892). Was the newest *uploaded* build,
128
+ * so browse cards could advertise a version nobody was served. Render `null` as
129
+ * "no version published" — never substitute a placeholder. Absent (vs null)
130
+ * when the `versions` relation isn't loaded.
131
+ */
132
+ latest_version?: AppVersionSummary | null;
133
+ /**
134
+ * Channels currently SERVING a version — not how many channels exist. Counting
135
+ * `GET /apps/{app}/release-channels` rows instead reports "1 channel" for an app
136
+ * publishing nothing, since that endpoint deliberately returns empty channels to
137
+ * publish into (AAD-892).
138
+ *
139
+ * `store_mode=owned` ONLY (the publisher list) — absent on every other surface.
140
+ */
141
+ published_channel_count?: number;
142
+ /** Visible categories — used by storefront card chips. */
143
+ categories?: AppCategory[];
144
+ /**
145
+ * Lowest-priced active tier. Present on EVERY surface: besides the browse
146
+ * card's "From €X/seat" it is the price fallback while a subscription loads on
147
+ * My Apps, and is read by the installed tab and the App Detail related rail.
148
+ */
149
+ cheapest_tier?: CheapestTierSummary | null;
150
+ /**
151
+ * Free/paid spread across the app's active tiers (subscription apps only;
152
+ * null otherwise). Lets the card say "Free + paid plans available" — which
153
+ * `cheapest_tier` alone cannot express.
154
+ *
155
+ * `store_mode=browse` ONLY — absent on every other surface. Unlike
156
+ * `cheapest_tier`, which is needed everywhere.
157
+ */
158
+ tier_summary?: AppTierSummary | null;
159
+ /**
160
+ * Ranking fields shared with `SellableResourceListItem`, so a merged Discover
161
+ * list can sort both kinds on one key (AAD-898).
162
+ *
163
+ * ⚠️ **All three are OPTIONAL because they are emitted only when the
164
+ * sellable-resource flag is ON.** With the flag off they are absent from the
165
+ * payload entirely — that is what keeps `/store/apps` byte-identical to before
166
+ * the feature existed. Never assume they are present: guard, don't default to
167
+ * a value that would silently misorder the list.
168
+ */
169
+ created_at?: string;
170
+ updated_at?: string;
171
+ /**
172
+ * Distinct external licenses with this app installed — the neutral popularity
173
+ * scalar. `SellableResourceListItem.consumer_count` carries the same field name
174
+ * and the same meaning (its distinct non-revoked entitlements), so `popular`
175
+ * ranks both kinds comparably.
176
+ */
177
+ consumer_count?: number;
178
+ /**
179
+ * Currently installed version of the `update_scope` install — pair with
180
+ * `update_to_version` for the update banner. A trimmed summary, not a full
181
+ * `AppVersion` (typing it as one compiles but reads `undefined` at runtime).
182
+ * The per-scope copies on `on_license` / `in_project` are the ones to use
183
+ * when rendering a specific install (AAD-906).
184
+ */
185
+ update_from_version?: AppVersionSummary | null;
186
+ /** The version the `update_scope` install would move to. */
187
+ update_to_version?: AppVersionSummary | null;
188
+ /**
189
+ * Lightweight subscription summary — present only for subscription-mode apps
190
+ * where the current license has an existing subscription. Use `trial_ends_at`
191
+ * / `grace_period_ends_at` to drive "in trial" / "in grace period" badges.
192
+ */
193
+ subscription?: AppSubscriptionSummary | null;
194
+ /**
195
+ * Total seats on the active subscription (seat-based tier only).
196
+ * `store_mode=my_access` ONLY, and always emitted together with `seats_used` —
197
+ * the two are read as a pair, so one without the other renders "3 of 0 seats".
198
+ */
199
+ seats_total?: number | null;
200
+ /** Currently-assigned seats. `my_access` only; see `seats_total`. */
201
+ seats_used?: number | null;
202
+ /**
203
+ * URL-driven capabilities from the launch version's app-config.json. Present
204
+ * only when the list was fetched with `?config=capabilities` (or `all`);
205
+ * undefined otherwise. Consumed by the AI overlay to build per-app tools.
206
+ */
207
+ capabilities?: AppManifestCapabilities;
208
+ /** Declared comms signal topics (present with `?config=signals` / `all`). */
209
+ signals?: AppManifestSignals;
210
+ }
211
+ //# sourceMappingURL=appList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appList.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAC1G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAY7D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,gFAAgF;IAChF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,oDAAoD;IACpD,QAAQ,EAAE,MAAM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
+ /**
2
+ * JSON Schema document describing a topic payload shape.
3
+ * Kept as a loose record to avoid pulling in @types/json-schema — apps consume
4
+ * this as a schema document (e.g. via ajv), not as a typed value.
5
+ */
6
+ export type JsonSchema = Record<string, unknown>;
7
+ /** Echo channel scope for a manifest-declared topic. */
8
+ export type AppManifestTopicScope = 'project' | 'license';
9
+ export type AppManifestTopicDirection = 'send' | 'receive';
10
+ export interface AppManifestTopic {
11
+ /** Echo channel scope. Defaults to 'project'. */
12
+ scope?: AppManifestTopicScope;
13
+ /** Human-readable description, surfaced in the App Store. */
14
+ description?: string;
15
+ /**
16
+ * Directions the app participates in. At least one required.
17
+ * Omit or leave empty to default to `['receive']`.
18
+ */
19
+ direction?: AppManifestTopicDirection[];
20
+ /** JSON Schema describing the topic payload shape. */
21
+ schema?: JsonSchema;
22
+ }
23
+ export interface AppManifestSignals {
24
+ /**
25
+ * Generic topic pub/sub capabilities, keyed by topic name.
26
+ * Topic names must match `[A-Za-z0-9_-]` to align with Echo channel naming.
27
+ */
28
+ topics?: Record<string, AppManifestTopic>;
29
+ }
30
+ /** Column type allowed in an app-config table definition. */
31
+ export type AppManifestColumnType = 'integer' | 'text' | 'text-field' | 'boolean' | 'date' | 'link' | 'email' | 'dropdown' | 'document' | 'float' | 'sbscode' | 'table';
32
+ export interface AppManifestColumn {
33
+ name: string;
34
+ type: AppManifestColumnType;
35
+ required?: boolean;
36
+ is_unique?: boolean;
37
+ is_indexed?: boolean;
38
+ default_value?: unknown;
39
+ options_value?: string[];
40
+ hint?: string;
41
+ field_name?: string;
42
+ }
43
+ /** Where a manifest-declared table is generated when the app is installed. */
44
+ export type AppManifestTableContext = 'project' | 'license';
45
+ export interface AppManifestTable {
46
+ name: string;
47
+ /** 'project' creates the table in the project on install, 'license' at license level. Defaults to 'project'. */
48
+ context?: AppManifestTableContext;
49
+ master_table?: boolean;
50
+ columns: AppManifestColumn[];
51
+ }
52
+ export type AppManifestQueryParamType = 'string' | 'number' | 'boolean' | 'date' | 'time' | 'datetime';
53
+ /**
54
+ * Who may drive a query param. `read` params only REFLECT app state on the
55
+ * URL (the app promises to keep them in sync) — the AI and the confirm form
56
+ * may show them but not set them. `write`/`readwrite` params are commandable.
57
+ */
58
+ export type AppManifestQueryParamAccess = 'read' | 'write' | 'readwrite';
59
+ /**
60
+ * A single query param the app understands. Feeds both the host snapshot
61
+ * filter and the AI overlay, which turns it into a tool parameter schema.
62
+ * On the URL every value is a string: `number`/`boolean`/`date`/`time`/
63
+ * `datetime` are rendering + validation hints; `multiple` values serialize CSV.
64
+ */
65
+ export interface AppManifestQueryParam {
66
+ type: AppManifestQueryParamType;
67
+ description?: string;
68
+ /** Allowed values — becomes an enum constraint for the AI. */
69
+ enum?: string[];
70
+ /** Accept several values (multi-select / CSV on the wire). */
71
+ multiple?: boolean;
72
+ required?: boolean;
73
+ /** Defaults to 'readwrite' (back-compat: existing manifests stay commandable). */
74
+ access?: AppManifestQueryParamAccess;
75
+ }
76
+ /**
77
+ * A named action the app can be deep-linked into. `params` references keys
78
+ * declared in `queryParams`.
79
+ */
80
+ export interface AppManifestIntent {
81
+ id: string;
82
+ description: string;
83
+ params?: string[];
84
+ }
85
+ /**
86
+ * What the app can be driven to do via the URL. Consumed by the AI overlay
87
+ * to build per-app tools and by the host to validate app-state snapshots.
88
+ */
89
+ export interface AppManifestCapabilities {
90
+ queryParams?: Record<string, AppManifestQueryParam>;
91
+ intents?: AppManifestIntent[];
92
+ }
93
+ export interface AppManifest {
94
+ version: string;
95
+ tagline?: string;
96
+ tables?: AppManifestTable[];
97
+ signals?: AppManifestSignals;
98
+ capabilities?: AppManifestCapabilities;
99
+ }
100
+ //# sourceMappingURL=appManifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appManifest.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appManifest.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA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,EAAE,OAAO,CAAA;IACtB,OAAO,EAAE,iBAAiB,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,yBAAyB,GAC/B,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,MAAM,GACN,UAAU,CAAA;AAEhB;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAA;AAExE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,yBAAyB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,MAAM,CAAC,EAAE,2BAA2B,CAAA;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IACnD,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC3B,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,YAAY,CAAC,EAAE,uBAAuB,CAAA;CACvC"}
@@ -0,0 +1,4 @@
1
+ // Types for `app-config.json` shipped inside an app's distribution.
2
+ // Read by ant-os and the App Store to know what an app declares about itself —
3
+ // its tagline, the tables it ships with, and the signals it sends/receives.
4
+ export {};
@@ -0,0 +1,136 @@
1
+ export interface AppVersionAuthor {
2
+ id: string;
3
+ name: string;
4
+ avatar?: string | null;
5
+ }
6
+ /**
7
+ * The trimmed version shape used where only identity is needed — e.g.
8
+ * `ListApp.latest_version`. The API sends at most these keys there (`created_at`
9
+ * may be absent, hence optional); it is NOT a full `AppVersion` (no `path`,
10
+ * `external_path`, `on_license`, `in_project`), so typing those call sites as
11
+ * `AppVersion` compiles but reads `undefined` at runtime.
12
+ */
13
+ export interface AppVersionSummary {
14
+ id: string;
15
+ version: string;
16
+ /** Absent on some surfaces; explicitly null on the per-scope update fields. */
17
+ created_at?: string | null;
18
+ }
19
+ export interface AppVersion {
20
+ id: string;
21
+ app_id: string;
22
+ version: string;
23
+ created_at?: string;
24
+ updated_at?: string;
25
+ path: string;
26
+ external_path: string;
27
+ /** License-scope: is this the version installed at the license. */
28
+ on_license: {
29
+ installed: boolean;
30
+ };
31
+ /**
32
+ * Project-scope: is this the version activated in the current project.
33
+ * Null when there is no project context (or the app is not project-scope).
34
+ */
35
+ in_project: {
36
+ activated: boolean;
37
+ } | null;
38
+ release_notes?: string | null;
39
+ /** Uploaded zip size in bytes — null for external_path versions. */
40
+ build_size_bytes?: number | null;
41
+ /** Uploading user — only present when the `createdBy` relation is loaded. */
42
+ created_by?: AppVersionAuthor | null;
43
+ /** Licenses/installs currently pinned to this version. BE-populated; absent until then. */
44
+ install_count?: number | null;
45
+ /**
46
+ * The viewer holds this version and the install holding it is BLOCKED — its
47
+ * publisher pulled the channel it was installed from and there is no live
48
+ * release behind it (AAD-892). Listed so the install can be explained, but
49
+ * not openable. Detail path only.
50
+ *
51
+ * Means BLOCKED, not "off the channel". A version the viewer holds that the
52
+ * channel has merely moved PAST reads `withdrawn: false` with an empty
53
+ * `channels` array — that is a normal, openable, out-of-date install, and
54
+ * rendering it as "retracted by publisher" is wrong. Likewise a channel
55
+ * ROLLBACK produces no withdrawn version at all: the install is force-moved
56
+ * down onto the version the channel now serves, so it is never stranded.
57
+ *
58
+ * Agrees with `access_block.reason === 'version_withdrawn'` by construction —
59
+ * either predicate is safe to key blocked UI off.
60
+ */
61
+ withdrawn?: boolean;
62
+ /**
63
+ * Release channels this version is the active/published version of. Use to
64
+ * group installed versions by channel and badge the production version
65
+ * (`is_default`). A version can be active on more than one channel. Only
66
+ * present when the BE preloads it (single-app detail, version index).
67
+ *
68
+ * Empty means "not currently offered by a channel you can reach" — use it to
69
+ * decide what is INSTALLABLE, never what is INSTALLED. A version you hold
70
+ * legitimately has no channels once the channel moves on; filtering
71
+ * `versions[]` by `channels.length` therefore drops your own install.
72
+ */
73
+ channels?: Array<{
74
+ id: string;
75
+ name: string;
76
+ color?: string | null;
77
+ is_default: boolean;
78
+ }>;
79
+ }
80
+ export interface AppMedia {
81
+ id: string;
82
+ app_id: string;
83
+ source: 'file' | 'link';
84
+ type: 'image' | 'video';
85
+ sort_order: number;
86
+ caption?: string;
87
+ is_featured: boolean;
88
+ url: string;
89
+ created_at?: string;
90
+ updated_at?: string;
91
+ mime_type?: string;
92
+ file_size?: number;
93
+ formatted_file_size?: string;
94
+ width?: number;
95
+ height?: number;
96
+ provider?: 'youtube' | 'vimeo';
97
+ provider_id?: string;
98
+ thumbnail_url?: string;
99
+ embed_url?: string;
100
+ }
101
+ export interface AttachVersionToAppFormData {
102
+ app_id: string;
103
+ app_version_id: string;
104
+ }
105
+ export interface AppVersionFormData {
106
+ /** Build .zip — sent as multipart when present. */
107
+ build?: File;
108
+ external_path?: string;
109
+ release_notes?: string | null;
110
+ }
111
+ interface AppMediaCommonFormData {
112
+ caption?: string;
113
+ is_featured?: boolean;
114
+ sort_order?: number;
115
+ }
116
+ interface AppMediaFileFormData extends AppMediaCommonFormData {
117
+ source: 'file';
118
+ /** Required for a file upload — sent as multipart. */
119
+ file: File;
120
+ }
121
+ interface AppMediaLinkFormData extends AppMediaCommonFormData {
122
+ source: 'link';
123
+ /** Required for a link — YouTube/Vimeo URL. */
124
+ url: string;
125
+ }
126
+ export type AppMediaFormData = AppMediaFileFormData | AppMediaLinkFormData;
127
+ export interface UpdateAppMediaFormData {
128
+ caption?: string;
129
+ is_featured?: boolean;
130
+ sort_order?: number;
131
+ }
132
+ export interface ReorderMediaFormData {
133
+ media_ids: string[];
134
+ }
135
+ export {};
136
+ //# sourceMappingURL=appMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appMedia.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appMedia.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,UAAU,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;IAClC;;;OAGG;IACH,UAAU,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACpC,2FAA2F;IAC3F,aAAa,CAAC,EAAE,M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CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,UAAU,oBAAqB,SAAQ,sBAAsB;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,IAAI,EAAE,IAAI,CAAA;CACX;AAED,UAAU,oBAAqB,SAAQ,sBAAsB;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAA;AAE1E,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,126 @@
1
+ import type { LabelFilterParams } from '../../LabelService';
2
+ import type { AppAvailability, AppTrustLevel } from './app';
3
+ import type { AppScope } from './appScopes';
4
+ export interface AppImpactAnalysis {
5
+ license_install_count: number;
6
+ project_install_count: number;
7
+ total_install_count: number;
8
+ pending_access_request_count: number;
9
+ propagation_template_count: number;
10
+ /** Licenses that currently have the app installed (accessibility-filtered). */
11
+ licenses: AppImpactLicense[];
12
+ /** Projects that currently have the app activated (accessibility-filtered). */
13
+ projects: AppImpactProject[];
14
+ }
15
+ /** A license that currently has the app installed, shown in the force-delete impact list. */
16
+ export interface AppImpactLicense {
17
+ id: string;
18
+ /** License display name; null when the license has no name set. */
19
+ name: string | null;
20
+ }
21
+ /** A project that currently has the app activated, shown in the force-delete impact list. */
22
+ export interface AppImpactProject {
23
+ id: string;
24
+ /** Project display name; null when the project has no name set. */
25
+ name: string | null;
26
+ /** Project number; null when the project has none. */
27
+ number: string | null;
28
+ /** Name of the owning license; null when the project has no license or it is unnamed. */
29
+ license_name: string | null;
30
+ }
31
+ export interface AppTemplate {
32
+ title?: string;
33
+ readonly tagline?: string;
34
+ description?: string;
35
+ color?: string;
36
+ icon?: string;
37
+ /** Upload a new icon (File → multipart); a string is the persisted URL; null clears it. */
38
+ image?: File | string | null;
39
+ external_path?: string;
40
+ /**
41
+ * The scopes the app runs in (`min:1`, each `license`|`project`). The single
42
+ * source of truth for app scope on create/update.
43
+ */
44
+ supported_scopes?: AppScope[];
45
+ access_level?: 'community' | 'enterprise';
46
+ availability?: AppAvailability;
47
+ access_model?: 'free' | 'subscription';
48
+ readonly license_id?: string;
49
+ /**
50
+ * Required on create and update. 1 or 2 category UUIDs from the
51
+ * operator-curated catalog (`GET /store/app-categories`). Legacy apps
52
+ * without categories must supply this on the next edit or the BE
53
+ * returns 422.
54
+ */
55
+ category_ids: string[];
56
+ }
57
+ export interface AppFormData {
58
+ title?: string;
59
+ description?: string;
60
+ color?: string;
61
+ icon?: string;
62
+ external_path?: string;
63
+ image?: File | null;
64
+ availability?: AppAvailability;
65
+ /** The scopes the app runs in — persisted as `supported_scopes` (min 1). */
66
+ supported_scopes: AppScope[];
67
+ license_id: string | null;
68
+ category_ids: string[];
69
+ }
70
+ export type AppSortOption = 'updated_at' | 'title_asc' | 'title_desc' | 'trust' | 'newest' | 'popular';
71
+ export interface FetchAppsParams extends LabelFilterParams {
72
+ search?: string | null;
73
+ category_id?: string[];
74
+ /**
75
+ * - `browse` — public storefront
76
+ * - `installed` — apps installed in the current license/project context
77
+ * - `owned` — PUBLISHER view: apps published by the current license
78
+ * - `my_access` — BUYER "My Access": every app the current LICENSE has an
79
+ * entitlement to (installed, a live subscription, or an approved access
80
+ * grant), including accessible-but-not-yet-installed. License-scoped — the
81
+ * client must still filter per-user using `has_access` /
82
+ * `subscription.can_manage` (a seat-based app with no seat and no manage
83
+ * rights should be hidden).
84
+ */
85
+ store_mode?: 'browse' | 'installed' | 'owned' | 'my_access';
86
+ /**
87
+ * With `my_access`: also include always-available/system apps the user can
88
+ * open on the license (e.g. Tables, ANT Store) even when the license never
89
+ * explicitly acquired them — makes `my_access` the single source of truth
90
+ * for "apps available to this user in this context" (AAD-713).
91
+ */
92
+ include_available?: boolean;
93
+ availability?: AppAvailability;
94
+ trust_level?: AppTrustLevel;
95
+ include_deprecated?: boolean;
96
+ sort?: AppSortOption;
97
+ publisher?: string;
98
+ featured?: boolean;
99
+ level?: 'project' | 'license';
100
+ /** Drop a specific app from the result. Used by App Detail carousels. */
101
+ exclude_id?: string | null;
102
+ /** Cap the result count (1-50). Used by App Detail carousels. */
103
+ limit?: number;
104
+ /**
105
+ * Inline slices of each app's launch-version app-config.json onto the list
106
+ * items, so the client can skip the per-app config fetch. CSV on the wire
107
+ * (`?config=capabilities,tables`); `all` returns the whole manifest. The
108
+ * server resolves the version that actually launches. Off by default — omit
109
+ * to get the lean list payload.
110
+ */
111
+ config?: AppConfigSlice[];
112
+ }
113
+ /**
114
+ * Selectable slices of an app's app-config.json for the list `config` param.
115
+ * `all` = whole manifest; the named slices are additive.
116
+ */
117
+ export type AppConfigSlice = 'capabilities' | 'tables' | 'signals' | 'all';
118
+ export interface UninstallConflict {
119
+ message: string;
120
+ projects: {
121
+ id: string;
122
+ name: string;
123
+ }[];
124
+ requires_force: boolean;
125
+ }
126
+ //# sourceMappingURL=appRequests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appRequests.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appRequests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAO3C,MAAM,WA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