@antcde/connect-ts 0.4.25 → 0.4.26-rc.1

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 (134) hide show
  1. package/build/AntConnect.d.ts +4 -0
  2. package/build/AntConnect.d.ts.map +1 -1
  3. package/build/AntConnect.js +4 -0
  4. package/build/comms/signalTypes.d.ts +18 -0
  5. package/build/comms/signalTypes.d.ts.map +1 -1
  6. package/build/index.d.ts +5 -34
  7. package/build/index.d.ts.map +1 -1
  8. package/build/index.js +8 -3
  9. package/build/service-runtime.d.ts +6 -0
  10. package/build/service-runtime.d.ts.map +1 -0
  11. package/build/service-runtime.js +7 -0
  12. package/build/service-types-app.d.ts +2 -0
  13. package/build/service-types-app.d.ts.map +1 -0
  14. package/build/service-types-app.js +3 -0
  15. package/build/service-types.d.ts +35 -0
  16. package/build/service-types.d.ts.map +1 -0
  17. package/build/service-types.js +7 -0
  18. package/build/services/AppService/factory/accessRequests.d.ts +19 -0
  19. package/build/services/AppService/factory/accessRequests.d.ts.map +1 -0
  20. package/build/services/AppService/factory/accessRequests.js +17 -0
  21. package/build/services/AppService/factory/assignments.d.ts +57 -0
  22. package/build/services/AppService/factory/assignments.d.ts.map +1 -0
  23. package/build/services/AppService/factory/assignments.js +30 -0
  24. package/build/services/AppService/factory/channels.d.ts +35 -0
  25. package/build/services/AppService/factory/channels.d.ts.map +1 -0
  26. package/build/services/AppService/factory/channels.js +18 -0
  27. package/build/services/AppService/factory/formData.d.ts +14 -0
  28. package/build/services/AppService/factory/formData.d.ts.map +1 -0
  29. package/build/services/AppService/factory/formData.js +50 -0
  30. package/build/services/AppService/factory/media.d.ts +17 -0
  31. package/build/services/AppService/factory/media.d.ts.map +1 -0
  32. package/build/services/AppService/factory/media.js +10 -0
  33. package/build/services/AppService/factory/subscriptions.d.ts +73 -0
  34. package/build/services/AppService/factory/subscriptions.d.ts.map +1 -0
  35. package/build/services/AppService/factory/subscriptions.js +39 -0
  36. package/build/services/AppService/index.d.ts +56 -0
  37. package/build/services/AppService/index.d.ts.map +1 -0
  38. package/build/services/AppService/index.js +67 -0
  39. package/build/services/AppService/types/accessRequests.d.ts +158 -0
  40. package/build/services/AppService/types/accessRequests.d.ts.map +1 -0
  41. package/build/services/AppService/types/app.d.ts +124 -0
  42. package/build/services/AppService/types/app.d.ts.map +1 -0
  43. package/build/services/AppService/types/app.js +6 -0
  44. package/build/services/AppService/types/appCategories.d.ts +16 -0
  45. package/build/services/AppService/types/appCategories.d.ts.map +1 -0
  46. package/build/services/AppService/types/appChangelog.d.ts +31 -0
  47. package/build/services/AppService/types/appChangelog.d.ts.map +1 -0
  48. package/build/services/AppService/types/appChangelog.js +1 -0
  49. package/build/services/AppService/types/appList.d.ts +183 -0
  50. package/build/services/AppService/types/appList.d.ts.map +1 -0
  51. package/build/services/AppService/types/appList.js +1 -0
  52. package/build/services/{AppManifest.d.ts → AppService/types/appManifest.d.ts} +16 -1
  53. package/build/services/AppService/types/appManifest.d.ts.map +1 -0
  54. package/build/services/AppService/types/appManifest.js +4 -0
  55. package/build/services/AppService/types/appMedia.d.ts +136 -0
  56. package/build/services/AppService/types/appMedia.d.ts.map +1 -0
  57. package/build/services/AppService/types/appMedia.js +1 -0
  58. package/build/services/AppService/types/appRequests.d.ts +113 -0
  59. package/build/services/AppService/types/appRequests.d.ts.map +1 -0
  60. package/build/services/AppService/types/appRequests.js +1 -0
  61. package/build/services/AppService/types/appScopes.d.ts +165 -0
  62. package/build/services/AppService/types/appScopes.d.ts.map +1 -0
  63. package/build/services/AppService/types/appScopes.js +1 -0
  64. package/build/services/AppService/types/channels.d.ts +45 -0
  65. package/build/services/AppService/types/channels.d.ts.map +1 -0
  66. package/build/services/AppService/types/channels.js +1 -0
  67. package/build/services/AppService/types/pricingTiers.d.ts +111 -0
  68. package/build/services/AppService/types/pricingTiers.d.ts.map +1 -0
  69. package/build/services/AppService/types/pricingTiers.js +1 -0
  70. package/build/services/AppService/types/publisherStats.d.ts +20 -0
  71. package/build/services/AppService/types/publisherStats.d.ts.map +1 -0
  72. package/build/services/AppService/types/publisherStats.js +1 -0
  73. package/build/services/AppService/types/releaseChannels.d.ts +127 -0
  74. package/build/services/AppService/types/releaseChannels.d.ts.map +1 -0
  75. package/build/services/AppService/types/releaseChannels.js +1 -0
  76. package/build/services/AppService/types/seats.d.ts +220 -0
  77. package/build/services/AppService/types/seats.d.ts.map +1 -0
  78. package/build/services/AppService/types/seats.js +4 -0
  79. package/build/services/AppService/types/subscriptions.d.ts +182 -0
  80. package/build/services/AppService/types/subscriptions.d.ts.map +1 -0
  81. package/build/services/AppService/types/subscriptions.js +1 -0
  82. package/build/services/AppService/types.d.ts +16 -0
  83. package/build/services/AppService/types.d.ts.map +1 -0
  84. package/build/services/AppService/types.js +18 -0
  85. package/build/services/DmsService.d.ts +13 -0
  86. package/build/services/DmsService.d.ts.map +1 -1
  87. package/build/services/DmsServiceImpl.d.ts.map +1 -1
  88. package/build/services/DmsServiceImpl.js +8 -0
  89. package/build/services/ProjectService.d.ts +1 -0
  90. package/build/services/ProjectService.d.ts.map +1 -1
  91. package/build/services/ReleaseService.d.ts +1 -0
  92. package/build/services/ReleaseService.d.ts.map +1 -1
  93. package/build/services/SecretService.d.ts +22 -0
  94. package/build/services/SecretService.d.ts.map +1 -0
  95. package/build/services/SecretService.js +21 -0
  96. package/build/services/SecretService.types.d.ts +147 -0
  97. package/build/services/SecretService.types.d.ts.map +1 -0
  98. package/build/services/SecretService.types.js +1 -0
  99. package/build/services/SecretSharing.types.d.ts +112 -0
  100. package/build/services/SecretSharing.types.d.ts.map +1 -0
  101. package/build/services/SecretSharing.types.js +1 -0
  102. package/build/services/TableService.js +7 -7
  103. package/build/services/TaskService.d.ts +3 -3
  104. package/build/services/TaskService.d.ts.map +1 -1
  105. package/build/services/TaskService.js +1 -1
  106. package/build/services/TaskService.types.d.ts +21 -4
  107. package/build/services/TaskService.types.d.ts.map +1 -1
  108. package/build/services/TaskServiceQueries.d.ts +2 -0
  109. package/build/services/TaskServiceQueries.d.ts.map +1 -1
  110. package/build/services/TaskServiceQueries.js +9 -1
  111. package/build/services/TaskTemplate.types.d.ts +74 -1
  112. package/build/services/TaskTemplate.types.d.ts.map +1 -1
  113. package/build/services/UserService.js +4 -4
  114. package/build/services/Webhook/TriggerHistoryService.d.ts +1 -1
  115. package/build/services/Webhook/TriggerHistoryService.d.ts.map +1 -1
  116. package/build/services/Webhook/TriggerSecretService.d.ts +88 -0
  117. package/build/services/Webhook/TriggerSecretService.d.ts.map +1 -0
  118. package/build/services/Webhook/TriggerSecretService.js +9 -0
  119. package/build/services/Webhook/TriggerService.d.ts +28 -0
  120. package/build/services/Webhook/TriggerService.d.ts.map +1 -1
  121. package/build/services/Webhook/TriggerService.js +10 -0
  122. package/build/services/Websockets/StoreEvents.d.ts +31 -0
  123. package/build/services/Websockets/StoreEvents.d.ts.map +1 -0
  124. package/build/services/Websockets/StoreEvents.js +5 -0
  125. package/package.json +6 -6
  126. package/schemas/app-config.schema.json +6 -0
  127. package/build/services/AppManifest.d.ts.map +0 -1
  128. package/build/services/AppService.d.ts +0 -57
  129. package/build/services/AppService.d.ts.map +0 -1
  130. package/build/services/AppService.js +0 -47
  131. package/build/services/AppService.types.d.ts +0 -173
  132. package/build/services/AppService.types.d.ts.map +0 -1
  133. /package/build/services/{AppManifest.js → AppService/types/accessRequests.js} +0 -0
  134. /package/build/services/{AppService.types.js → AppService/types/appCategories.js} +0 -0
@@ -0,0 +1,124 @@
1
+ import type { ResourceLabel } from '../../LabelService';
2
+ import type { MyAccessRequestSummary } from './accessRequests';
3
+ import type { AppCategory } from './appCategories';
4
+ import type { AppMedia, AppVersion } from './appMedia';
5
+ import type { AppInProject, AppOnLicense, AppScope } from './appScopes';
6
+ import type { AppChannel } from './channels';
7
+ import type { AccessBlock } from './seats';
8
+ import type { AppSubscriptionSummary } from './subscriptions';
9
+ export type AccessLevel = 'community' | 'enterprise';
10
+ export type AppAvailability = 'always_available' | 'request_access' | 'private';
11
+ export type AppTrustLevel = 'standard' | 'verified' | 'certified';
12
+ /**
13
+ * Why a NEW access request is blocked, or null when one can be submitted (or
14
+ * the app does not use the request-access model, in which case it is not
15
+ * applicable). Consistent on both `App` and `ListApp`. Use this to render a
16
+ * meaningful state instead of a dead "Unavailable":
17
+ * - `already_installed` — the license already has the app installed
18
+ * - `already_requested` — a request is pending the publisher's response
19
+ * - `access_granted` — a prior request was approved (access is live)
20
+ */
21
+ export type RequestBlockedReason = 'already_installed' | 'already_requested' | 'access_granted' | null;
22
+ export interface AppLicense {
23
+ id: string;
24
+ name: string;
25
+ theme: string;
26
+ }
27
+ export interface App {
28
+ id: string;
29
+ title: string;
30
+ tagline: string;
31
+ description: string;
32
+ color: string;
33
+ icon: string;
34
+ image: any;
35
+ /**
36
+ * Scopes this app runs in. Both entries = multi-scope (usable at license level
37
+ * and per project, gated independently). This is the single source of truth
38
+ * for app scope.
39
+ */
40
+ supported_scopes: AppScope[];
41
+ access_level: AccessLevel;
42
+ availability: AppAvailability;
43
+ trust_level: AppTrustLevel;
44
+ is_deprecated: boolean;
45
+ deprecation_message: string | null;
46
+ can_configure_by_license: boolean;
47
+ can_request_access: boolean;
48
+ /** Why `can_request_access` is false (request-access apps only). See type doc. */
49
+ request_blocked_reason: RequestBlockedReason;
50
+ /**
51
+ * Canonical entitlement flag: the license currently has the right to
52
+ * install/use this app — installed, a live subscription (active/trial/grace,
53
+ * and for seat-based tiers the viewer holds a seat), an approved access
54
+ * grant, or a free always-available app. Consistent with `ListApp.has_access`.
55
+ */
56
+ has_access: boolean;
57
+ /**
58
+ * Set when the viewer is blocked from using the app; null otherwise. Narrow on
59
+ * `reason` first — see `AccessBlock`. The detail endpoint returns the resource
60
+ * UNWRAPPED, so this sits at the response top level, not under `data`.
61
+ */
62
+ access_block?: AccessBlock | null;
63
+ /** The viewer's license's own latest request — a summary, not the inbox resource. */
64
+ my_access_request?: MyAccessRequestSummary | null;
65
+ license_id?: string;
66
+ created_at?: string;
67
+ updated_at?: string;
68
+ path: string;
69
+ license: AppLicense;
70
+ is_owned_app: boolean;
71
+ /**
72
+ * Derived: can the current user open/use this app right now?
73
+ * Non-project app → `on_license.installed`; project app → `in_project.activated`
74
+ * (false without a project context). This is the launcher/OS-shell flag.
75
+ * For the app-detail Install/Activate/Open button decision see `AppInProject`.
76
+ */
77
+ can_open: boolean;
78
+ /** License-scope install state + capabilities (always present). */
79
+ on_license: AppOnLicense;
80
+ /**
81
+ * Project-scope activation state; null unless the app supports project scope +
82
+ * project context. See `AppInProject` for the install-vs-activation button
83
+ * decision (AAD-887): a license install is not a project activation.
84
+ */
85
+ in_project: AppInProject | null;
86
+ /**
87
+ * Does ANY addressable install have an update? An OR roll-up across the
88
+ * license link and the current project's link (AAD-906) — safe as a "show an
89
+ * update affordance at all" gate, but NOT a statement about any one install.
90
+ *
91
+ * ⚠️ True here does not mean the scope-less update call will act: a
92
+ * dual-scope app current in the project but stale at the license reads true
93
+ * while the ambient endpoint targets the project. Read `on_license` /
94
+ * `in_project` for per-install truth, and pass `update_scope` (or an explicit
95
+ * scope) to `updateInstalledApp`.
96
+ */
97
+ update_available: boolean;
98
+ /** Target version for the scope named by `update_scope`; null when current. */
99
+ update_available_version_id: string | null;
100
+ /**
101
+ * Which install scope the flat `update_available` pair describes, or null
102
+ * when nothing is behind. Pass this back as `scope` to `updateInstalledApp`.
103
+ */
104
+ update_scope: AppScope | null;
105
+ is_featured: boolean;
106
+ versions: AppVersion[];
107
+ categories: AppCategory[];
108
+ media?: AppMedia[];
109
+ labels: ResourceLabel[];
110
+ active_channel?: {
111
+ id: string;
112
+ name: string;
113
+ color?: string | null;
114
+ } | null;
115
+ /** Release channels the current viewer can install from (single-app detail). */
116
+ channels?: AppChannel[];
117
+ /** The user's remembered channel for this app (the switcher default). */
118
+ preferred_channel_id?: string | null;
119
+ install_count?: number;
120
+ access_model?: 'free' | 'subscription';
121
+ subscription?: AppSubscriptionSummary | null;
122
+ latest_changelog?: string | null;
123
+ }
124
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAE7D,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,YAAY,CAAA;AACpD,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAC/E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAA;AAEjE;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAC1B,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,IAAI,CAAA;AAEV,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;I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a,EAAE,CAAA;IACvB,cAAc,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAA;IAC3E,gFAAgF;IAChF,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;IACvB,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,cAAc,CAAA;IACtC,YAAY,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;IAC5C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC"}
@@ -0,0 +1,6 @@
1
+ export {};
2
+ // The `GET /store/apps` list row (ListApp, AppTierSummary) lives in
3
+ // `./appList.ts`. Publisher form / store-query request shapes
4
+ // (AppImpactAnalysis, AppTemplate, AppFormData, AppSortOption, FetchAppsParams,
5
+ // UninstallConflict) live in `./appRequests.ts`. Both are re-exported from the
6
+ // `./types` barrel, so import paths are unchanged.
@@ -0,0 +1,16 @@
1
+ export interface AppCategory {
2
+ id: string;
3
+ name: string;
4
+ /**
5
+ * Number of apps in this category visible to the requesting license.
6
+ * Returned by `AppCategoryResource` when the BE has the count loaded
7
+ * (browse endpoint with categories included). Optional because legacy
8
+ * call sites (e.g. category management screens) may not request it.
9
+ */
10
+ app_count?: number;
11
+ updated_at: string;
12
+ }
13
+ export interface CategoryRelationData {
14
+ categories: string[];
15
+ }
16
+ //# sourceMappingURL=appCategories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appCategories.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appCategories.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Audit-log entry for an app — captures structural events like channel
3
+ * publishes, version uploads, etc. The Manage page's "Recent publishes"
4
+ * panel reads this via GET /store/apps/{appId}/changelog.
5
+ */
6
+ export type AppChangelogActionType = 'channel_published' | (string & {});
7
+ export interface ChannelPublishedChanges {
8
+ channel_id: string;
9
+ channel_name: string;
10
+ previous_version_id: string | null;
11
+ new_version_id: string;
12
+ }
13
+ export interface AppChangelogEntry {
14
+ id: string;
15
+ app_id: string;
16
+ app_version_id: string | null;
17
+ user_id: string | null;
18
+ action_type: AppChangelogActionType;
19
+ changes: ChannelPublishedChanges | Record<string, unknown>;
20
+ created_at: string;
21
+ updated_at: string;
22
+ }
23
+ export interface FetchAppChangelogParams {
24
+ action_type?: AppChangelogActionType;
25
+ version_id?: string;
26
+ /** Filter to publishes on a single channel — for `channel_published`. */
27
+ channel_id?: string;
28
+ page?: number;
29
+ per_page?: number;
30
+ }
31
+ //# sourceMappingURL=appChangelog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appChangelog.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appChangelog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAC5B,mBAAmB,GACnB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEnB,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,EAAE,sBAAsB,CAAA;IACnC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC1D,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,183 @@
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 { AppVersionSummary } from './appMedia';
5
+ import type { AppInProject, AppOnLicense, AppScope } from './appScopes';
6
+ import type { AccessibleChannel } from './channels';
7
+ import type { CheapestTierSummary } from './pricingTiers';
8
+ import type { AccessBlock } from './seats';
9
+ import type { AppSubscriptionSummary } from './subscriptions';
10
+ /**
11
+ * Compact free/paid tier summary on a browse card (subscription-model apps
12
+ * only; null otherwise). Lets the card render "Free", "Free + paid",
13
+ * "From €X", or "Paid" without the full tier list. Complements `cheapest_tier`.
14
+ */
15
+ export interface AppTierSummary {
16
+ has_free: boolean;
17
+ has_paid: boolean;
18
+ /** Lowest paid tier amount, for "from €X". Null when there are no paid tiers. */
19
+ min_paid_amount: number | null;
20
+ /** Highest paid tier amount, for a range. Null when there are no paid tiers. */
21
+ max_amount: number | null;
22
+ /** ISO-4217 currency code (e.g. "EUR"), or null. */
23
+ currency: string | null;
24
+ }
25
+ export interface ListApp {
26
+ id: string;
27
+ title: string;
28
+ tagline: null | string;
29
+ image: string;
30
+ icon: string;
31
+ color: string;
32
+ /** Scopes this app runs in — see `App.supported_scopes`. */
33
+ supported_scopes: AppScope[];
34
+ access_level: AccessLevel;
35
+ availability: AppAvailability;
36
+ trust_level: AppTrustLevel;
37
+ is_deprecated: boolean;
38
+ deprecation_message: string | null;
39
+ can_configure_by_license: boolean;
40
+ can_request_access: boolean;
41
+ /**
42
+ * Why `can_request_access` is false (request-access apps only). Now honored on
43
+ * the list so the browse card matches the detail — render the reason instead
44
+ * of a generic "Request access" / dead state. See type doc.
45
+ */
46
+ request_blocked_reason: RequestBlockedReason;
47
+ /** Canonical entitlement flag, consistent with `App.has_access`. */
48
+ has_access: boolean;
49
+ /** The viewer's license's own latest request — a summary, not the inbox resource. */
50
+ my_access_request?: MyAccessRequestSummary | null;
51
+ /**
52
+ * As `App.access_block` (narrow on `reason` first), but nested under `data`.
53
+ * On listings a withdrawn block ALWAYS carries a non-null `update_to_version`:
54
+ * when the channel serves nothing the app is dropped from
55
+ * `installed`/`my_access`/`browse` entirely rather than listed as withdrawn, so
56
+ * a row never says "nothing to update to" — only the detail fetch sees that.
57
+ */
58
+ access_block?: AccessBlock | null;
59
+ /**
60
+ * Derived: can the current user open/use this app right now?
61
+ * Non-project app → `on_license.installed`; project app → `in_project.activated`.
62
+ * The launcher/OS-shell filter (`apps.filter(a => a.can_open)`).
63
+ * False does NOT imply "not installed" — a withdrawn install keeps
64
+ * `on_license.installed` true, so check `access_block` before offering Install.
65
+ */
66
+ can_open: boolean;
67
+ /**
68
+ * License-scope install state (always present). The LIST omits the
69
+ * release-gated `can_install` — use the single-app detail (`App`) for it.
70
+ */
71
+ on_license: AppOnLicense;
72
+ /** Project-scope activation state; null unless the app supports project scope + project context. */
73
+ in_project: AppInProject | null;
74
+ /**
75
+ * Channels the current user can open, scoped to `has_access` (inaccessible
76
+ * channels omitted). Populated on dashboard / My Apps lists (store_mode
77
+ * `installed` / `my_access`); `[]` elsewhere or when the user has no openable
78
+ * channel. `length > 1` ⇒ render the channel/version switcher; the default is
79
+ * the `is_preferred` entry, else `is_primary`.
80
+ */
81
+ accessible_channels: AccessibleChannel[];
82
+ /**
83
+ * Does ANY addressable install have an update? See `App.update_available` —
84
+ * an OR roll-up across the license and current-project links (AAD-906), not a
85
+ * statement about any single install. Narrow through `on_license` /
86
+ * `in_project` before offering a per-install action.
87
+ */
88
+ update_available: boolean;
89
+ /** Target version for the scope named by `update_scope`; null when current. */
90
+ update_available_version_id: string | null;
91
+ /**
92
+ * Which install scope the flat `update_available` pair describes, or null
93
+ * when nothing is behind. Pass this back as `scope` to `updateInstalledApp`.
94
+ *
95
+ * Load-bearing, and NOT derivable from the per-scope blocks: a project-only
96
+ * app's license enablement rows still go stale, and `updatableScopes()`
97
+ * rejects that case on both per-scope paths (`supported_scopes` lacks
98
+ * `license`; `in_project.activated` is false). This field is the only thing
99
+ * that addresses it.
100
+ */
101
+ update_scope: AppScope | null;
102
+ /**
103
+ * Publisher-curated flag. Present on every list row so the Store landing page
104
+ * can derive its featured rail by filtering an already-fetched `browse`
105
+ * response instead of issuing a second `browse&featured=true` request.
106
+ *
107
+ * Safe because `store/apps` is UNPAGINATED — the backend limits only when the
108
+ * caller passes `limit`, and `featured=true` is a plain
109
+ * `where('is_featured', true)` composed after the same browse visibility
110
+ * scopes, so `rows.filter(r => r.is_featured)` reproduces the filtered call
111
+ * exactly. If pagination is ever added, go back to the second request.
112
+ */
113
+ is_featured: boolean;
114
+ path: string;
115
+ /** Detail-only in practice — the list does NOT emit this. Use the `App` payload. */
116
+ active_channel?: {
117
+ id: string;
118
+ name: string;
119
+ color?: string | null;
120
+ } | null;
121
+ license?: AppLicense;
122
+ access_model?: 'free' | 'subscription';
123
+ install_count?: number;
124
+ /**
125
+ * The newest version this app actually SERVES (active version of some channel),
126
+ * or `null` when nothing is served (AAD-892). Was the newest *uploaded* build,
127
+ * so browse cards could advertise a version nobody was served. Render `null` as
128
+ * "no version published" — never substitute a placeholder. Absent (vs null)
129
+ * when the `versions` relation isn't loaded.
130
+ */
131
+ latest_version?: AppVersionSummary | null;
132
+ /**
133
+ * Channels currently SERVING a version — not how many channels exist. Counting
134
+ * `GET /apps/{app}/release-channels` rows instead reports "1 channel" for an app
135
+ * publishing nothing, since that endpoint deliberately returns empty channels to
136
+ * publish into (AAD-892).
137
+ *
138
+ * `store_mode=owned` ONLY (the publisher list) — absent on every other surface.
139
+ */
140
+ published_channel_count?: number;
141
+ /** Visible categories — used by storefront card chips. */
142
+ categories?: AppCategory[];
143
+ /**
144
+ * Lowest-priced active tier. Present on EVERY surface: besides the browse
145
+ * card's "From €X/seat" it is the price fallback while a subscription loads on
146
+ * My Apps, and is read by the installed tab and the App Detail related rail.
147
+ */
148
+ cheapest_tier?: CheapestTierSummary | null;
149
+ /**
150
+ * Free/paid spread across the app's active tiers (subscription apps only;
151
+ * null otherwise). Lets the card say "Free + paid plans available" — which
152
+ * `cheapest_tier` alone cannot express.
153
+ *
154
+ * `store_mode=browse` ONLY — absent on every other surface. Unlike
155
+ * `cheapest_tier`, which is needed everywhere.
156
+ */
157
+ tier_summary?: AppTierSummary | null;
158
+ /**
159
+ * Currently installed version of the `update_scope` install — pair with
160
+ * `update_to_version` for the update banner. A trimmed summary, not a full
161
+ * `AppVersion` (typing it as one compiles but reads `undefined` at runtime).
162
+ * The per-scope copies on `on_license` / `in_project` are the ones to use
163
+ * when rendering a specific install (AAD-906).
164
+ */
165
+ update_from_version?: AppVersionSummary | null;
166
+ /** The version the `update_scope` install would move to. */
167
+ update_to_version?: AppVersionSummary | null;
168
+ /**
169
+ * Lightweight subscription summary — present only for subscription-mode apps
170
+ * where the current license has an existing subscription. Use `trial_ends_at`
171
+ * / `grace_period_ends_at` to drive "in trial" / "in grace period" badges.
172
+ */
173
+ subscription?: AppSubscriptionSummary | null;
174
+ /**
175
+ * Total seats on the active subscription (seat-based tier only).
176
+ * `store_mode=my_access` ONLY, and always emitted together with `seats_used` —
177
+ * the two are read as a pair, so one without the other renders "3 of 0 seats".
178
+ */
179
+ seats_total?: number | null;
180
+ /** Currently-assigned seats. `my_access` only; see `seats_total`. */
181
+ seats_used?: number | null;
182
+ }
183
+ //# 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,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,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,IAAI,GAAG,MAAM,CAAA;IACtB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;IAC3E,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,cAAc,CAAA;IACtC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACzC;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,WAAW,EAAE,CAAA;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAC1C;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACpC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;IAC5C;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,18 +1,33 @@
1
1
  /**
2
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.
3
5
  */
4
6
  export type JsonSchema = Record<string, unknown>;
7
+ /** Echo channel scope for a manifest-declared topic. */
5
8
  export type AppManifestTopicScope = 'project' | 'license';
6
9
  export type AppManifestTopicDirection = 'send' | 'receive';
7
10
  export interface AppManifestTopic {
11
+ /** Echo channel scope. Defaults to 'project'. */
8
12
  scope?: AppManifestTopicScope;
13
+ /** Human-readable description, surfaced in the App Store. */
9
14
  description?: string;
15
+ /**
16
+ * Directions the app participates in. At least one required.
17
+ * Omit or leave empty to default to `['receive']`.
18
+ */
10
19
  direction?: AppManifestTopicDirection[];
20
+ /** JSON Schema describing the topic payload shape. */
11
21
  schema?: JsonSchema;
12
22
  }
13
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
+ */
14
28
  topics?: Record<string, AppManifestTopic>;
15
29
  }
30
+ /** Column type allowed in an app-config table definition. */
16
31
  export type AppManifestColumnType = 'integer' | 'text' | 'text-field' | 'boolean' | 'date' | 'link' | 'email' | 'dropdown' | 'document' | 'float' | 'sbscode' | 'table';
17
32
  export interface AppManifestColumn {
18
33
  name: string;
@@ -36,4 +51,4 @@ export interface AppManifest {
36
51
  tables?: AppManifestTable[];
37
52
  signals?: AppManifestSignals;
38
53
  }
39
- //# sourceMappingURL=AppManifest.d.ts.map
54
+ //# 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,CAAA;AAEhD,wDAAwD;AACxD,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,SAAS,CAAA;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,KAAK,CAAC,EAAE,qBAAqB,CAAA;IAC7B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,EAAE,CAAA;IACvC,sDAAsD;IACtD,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAC1C;AAED,6DAA6D;AAC7D,MAAM,MAAM,qBAAqB,GAC3B,SAAS,GACT,MAAM,GACN,YAAY,GACZ,SAAS,GACT,MAAM,GACN,MAAM,GACN,OAAO,GACP,UAAU,GACV,UAAU,GACV,OAAO,GACP,SAAS,GACT,OAAO,CAAA;AAEb,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,qBAAqB,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,EAAE,iBAAiB,EAAE,CAAA;CAC7B;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;CAC7B"}
@@ -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,MAAM,GAAG,IAAI,CAAA;IAC7B;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EA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