@antcde/connect-ts 0.4.27-rc.1 → 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 (92) hide show
  1. package/README.md +67 -3
  2. package/build/AntConnect.d.ts +2 -0
  3. package/build/AntConnect.d.ts.map +1 -1
  4. package/build/AntConnect.js +2 -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/ai/types.js +1 -0
  23. package/build/comms/client.js +1 -1
  24. package/build/comms/hostAPI.js +1 -1
  25. package/build/comms/models.d.ts +20 -2
  26. package/build/comms/models.d.ts.map +1 -1
  27. package/build/index.d.ts +3 -1
  28. package/build/index.d.ts.map +1 -1
  29. package/build/service-runtime.d.ts +3 -0
  30. package/build/service-runtime.d.ts.map +1 -1
  31. package/build/service-runtime.js +3 -0
  32. package/build/service-types-app.d.ts +1 -1
  33. package/build/service-types-app.d.ts.map +1 -1
  34. package/build/service-types.d.ts +2 -1
  35. package/build/service-types.d.ts.map +1 -1
  36. package/build/services/AiService.d.ts +18 -0
  37. package/build/services/AiService.d.ts.map +1 -0
  38. package/build/services/AiService.js +9 -0
  39. package/build/services/AppService/factory/resourceAccess.d.ts +21 -0
  40. package/build/services/AppService/factory/resourceAccess.d.ts.map +1 -0
  41. package/build/services/AppService/factory/resourceAccess.js +37 -0
  42. package/build/services/AppService/factory/resourceCommerce.d.ts +52 -0
  43. package/build/services/AppService/factory/resourceCommerce.d.ts.map +1 -0
  44. package/build/services/AppService/factory/resourceCommerce.js +18 -0
  45. package/build/services/AppService/factory/resourceSnapshot.d.ts +62 -0
  46. package/build/services/AppService/factory/resourceSnapshot.d.ts.map +1 -0
  47. package/build/services/AppService/factory/resourceSnapshot.js +34 -0
  48. package/build/services/AppService/factory/resources.d.ts +153 -0
  49. package/build/services/AppService/factory/resources.d.ts.map +1 -0
  50. package/build/services/AppService/factory/resources.js +44 -0
  51. package/build/services/AppService/index.d.ts +2 -1
  52. package/build/services/AppService/index.d.ts.map +1 -1
  53. package/build/services/AppService/index.js +9 -2
  54. package/build/services/AppService/types/appList.d.ts +28 -0
  55. package/build/services/AppService/types/appList.d.ts.map +1 -1
  56. package/build/services/AppService/types/appManifest.d.ts +46 -0
  57. package/build/services/AppService/types/appManifest.d.ts.map +1 -1
  58. package/build/services/AppService/types/appRequests.d.ts +13 -0
  59. package/build/services/AppService/types/appRequests.d.ts.map +1 -1
  60. package/build/services/AppService/types/resourceEntitlements.d.ts +101 -0
  61. package/build/services/AppService/types/resourceEntitlements.d.ts.map +1 -0
  62. package/build/services/AppService/types/resourceEntitlements.js +1 -0
  63. package/build/services/AppService/types/resourceReleases.d.ts +143 -0
  64. package/build/services/AppService/types/resourceReleases.d.ts.map +1 -0
  65. package/build/services/AppService/types/resourceReleases.js +1 -0
  66. package/build/services/AppService/types/resourceRequests.d.ts +105 -0
  67. package/build/services/AppService/types/resourceRequests.d.ts.map +1 -0
  68. package/build/services/AppService/types/resourceRequests.js +1 -0
  69. package/build/services/AppService/types/sellableResources.d.ts +189 -0
  70. package/build/services/AppService/types/sellableResources.d.ts.map +1 -0
  71. package/build/services/AppService/types/sellableResources.js +1 -0
  72. package/build/services/AppService/types/snapshotPayload.d.ts +146 -0
  73. package/build/services/AppService/types/snapshotPayload.d.ts.map +1 -0
  74. package/build/services/AppService/types/snapshotPayload.js +16 -0
  75. package/build/services/AppService/types/snapshotSources.d.ts +98 -0
  76. package/build/services/AppService/types/snapshotSources.d.ts.map +1 -0
  77. package/build/services/AppService/types/snapshotSources.js +7 -0
  78. package/build/services/AppService/types.d.ts +6 -0
  79. package/build/services/AppService/types.d.ts.map +1 -1
  80. package/build/services/AppService/types.js +6 -0
  81. package/build/services/TokenService.d.ts +0 -1
  82. package/build/services/TokenService.d.ts.map +1 -1
  83. package/build/services/TokenService.js +0 -2
  84. package/build/services/UserService.d.ts +3 -0
  85. package/build/services/UserService.d.ts.map +1 -1
  86. package/build/services/Websockets/StoreEvents.d.ts +14 -1
  87. package/build/services/Websockets/StoreEvents.d.ts.map +1 -1
  88. package/build/services/userPreferences.d.ts +37 -0
  89. package/build/services/userPreferences.d.ts.map +1 -0
  90. package/build/services/userPreferences.js +39 -0
  91. package/package.json +3 -2
  92. package/schemas/app-config.schema.json +79 -8
@@ -0,0 +1,101 @@
1
+ import type { ResourceVersionSummary } from './resourceReleases';
2
+ /**
3
+ * Entitlement-side shapes for sellable resources (AAD-898): a license's claim,
4
+ * and the reasons the access layer refuses a read.
5
+ *
6
+ * Split out of `sellableResources.ts` purely for file size; every type here is
7
+ * re-exported through the same barrel and the public surface is unchanged.
8
+ */
9
+ /**
10
+ * Why an access-layer read was refused — the discriminator to branch on.
11
+ *
12
+ * The HTTP status is NOT sufficient: three distinct states share 403, and they
13
+ * call for three different things from the user (buy it / contact the publisher
14
+ * / renew). Always read `reason`.
15
+ *
16
+ * | reason | status | what it means |
17
+ * | --- | --- | --- |
18
+ * | `not_entitled` | 403 | this license has never held it — offer a purchase |
19
+ * | `entitlement_revoked` | 403 | the publisher revoked it — contact them |
20
+ * | `subscription_expired` | 403 | the subscription lapsed — renew |
21
+ * | `subscription_pending_approval` | 403 | awaiting the publisher's approval — wait, do NOT render as expired |
22
+ * | `version_withdrawn` | 409 | the pinned build was pulled — offer the Update action |
23
+ * | `version_not_ready` | 409 | the payload has not finished preparing — poll |
24
+ * | `payload_backend_not_implemented` | 501 | no backend registered yet (the phase-1 default) |
25
+ *
26
+ * A 404 is separate and deliberate: an unknown resource AND a private listing
27
+ * this license has no relationship with both 404, so the API never confirms that
28
+ * another license's unpublished product exists.
29
+ */
30
+ export type ResourceAccessReason = 'not_entitled' | 'entitlement_revoked' | 'subscription_expired' | 'subscription_pending_approval' | 'version_withdrawn' | 'version_not_ready' | 'payload_backend_not_implemented';
31
+ /** The body of a refused access-layer read. */
32
+ export interface ResourceAccessError {
33
+ message: string;
34
+ reason: ResourceAccessReason;
35
+ }
36
+ /**
37
+ * Release state, independent of commercial state. Present when the publisher
38
+ * pulled the build this license is pinned to. Recovery is `moveResourceToChannelVersion()`.
39
+ */
40
+ export interface ResourceAccessBlock {
41
+ blocked: true;
42
+ reason: 'version_withdrawn';
43
+ withdrawn_version_id: string | null;
44
+ /**
45
+ * The build that was pulled, and what the channel serves instead. Version
46
+ * STRINGS, not just ids, so the recovery banner can name both — this is what
47
+ * lets resources render the same withdrawn band as apps instead of a
48
+ * resource-only lookalike.
49
+ */
50
+ withdrawn_version: {
51
+ id: string;
52
+ version: string;
53
+ } | null;
54
+ update_to_version: {
55
+ id: string;
56
+ version: string;
57
+ } | null;
58
+ }
59
+ /**
60
+ * A license's claim on a resource.
61
+ *
62
+ * ⚠️ `is_live` and `access_block` are INDEPENDENT and both must be checked. A
63
+ * fully paid-up buyer whose build was pulled is `is_live: true` with an
64
+ * `access_block`; a lapsed buyer whose build is fine is the reverse. Treating
65
+ * either one alone as "can I read this" gets one of the two cases wrong.
66
+ */
67
+ export interface ResourceEntitlementSummary {
68
+ id: string;
69
+ license_id: string;
70
+ /**
71
+ * The version this license actually runs — the pin. This is the ONLY correct
72
+ * answer to "which version am I on?"; what a channel currently offers is a
73
+ * different question, and the two differ exactly when an update is available.
74
+ */
75
+ pinned_version: ResourceVersionSummary | null;
76
+ channel_id: string | null;
77
+ /** The channel this license draws from, named — so a row can say which. */
78
+ channel: {
79
+ id: string;
80
+ name: string;
81
+ } | null;
82
+ auto_update: boolean;
83
+ revoked_at: string | null;
84
+ /** Commercial standing: not revoked, and any backing subscription still live. */
85
+ is_live: boolean;
86
+ access_block: ResourceAccessBlock | null;
87
+ }
88
+ export interface ResourceEntitlement extends ResourceEntitlementSummary {
89
+ resource_id: string;
90
+ license: {
91
+ id: string;
92
+ name: string;
93
+ } | null;
94
+ subscription_id: string | null;
95
+ /** Lifetime call total. Not a time series — see `fetchResourceConsumers`. */
96
+ call_count: number;
97
+ last_called_at: string | null;
98
+ created_at: string;
99
+ updated_at: string;
100
+ }
101
+ //# sourceMappingURL=resourceEntitlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceEntitlements.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/resourceEntitlements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAEhE;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,oBAAoB,GAC1B,cAAc,GACd,qBAAqB,GACrB,sBAAsB,GACtB,+BAA+B,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,iCAAiC,CAAA;AAEvC,+CAA+C;AAC/C,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,IAAI,CAAA;IACb,MAAM,EAAE,mBAAmB,CAAA;IAC3B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC;;;;;OAKG;IACH,iBAAiB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACzD,iBAAiB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,cAAc,EAAE,sBAAsB,GAAG,IAAI,CAAA;IAC7C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,2EAA2E;IAC3E,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC5C,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,iFAAiF;IACjF,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAA;CACzC;AAED,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;IACrE,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC5C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,143 @@
1
+ import type { SnapshotPayloadConfig, SnapshotPayloadSchema } from './snapshotPayload';
2
+ import type { SnapshotErrorCode, SnapshotErrorContext } from './snapshotSources';
3
+ /**
4
+ * Release-side shapes for sellable resources (AAD-898): versions, channels, and
5
+ * the impact preview an unpublish is confirmed against.
6
+ *
7
+ * Split out of `sellableResources.ts` purely for file size; every type here is
8
+ * re-exported through the same barrel and the public surface is unchanged.
9
+ */
10
+ /**
11
+ * Whether a version's payload is ready to be served.
12
+ *
13
+ * **This is the asynchronous completion signal, and since AAD-939 it is genuinely
14
+ * asynchronous.** A `snapshot` version is created `pending` and a QUEUED JOB flips
15
+ * it to `ready` or `failed`. Poll `fetchResourceVersion()` until this leaves
16
+ * `pending`; on `failed`, show `payload_error`.
17
+ *
18
+ * Before AAD-939 every version came back `ready`, so code that ignored this field
19
+ * still worked by accident. It no longer does — a UI built against the create
20
+ * response silently shows nothing while the job runs, and its Publish button 422s.
21
+ */
22
+ export type ResourcePayloadState = 'pending' | 'ready' | 'failed';
23
+ /** The trimmed version shape embedded on channels and entitlements. */
24
+ export interface ResourceVersionSummary {
25
+ id: string;
26
+ version: string;
27
+ payload_state: ResourcePayloadState;
28
+ }
29
+ export interface ResourceVersion {
30
+ id: string;
31
+ resource_id: string;
32
+ version: string;
33
+ release_notes: string | null;
34
+ payload_state: ResourcePayloadState;
35
+ /**
36
+ * Publisher-facing failure reason when `payload_state` is `failed`.
37
+ *
38
+ * English-only. Use it as the FALLBACK and branch on `payload_error_code` — a
39
+ * prose string cannot be localised for the nl/de builds, and the numbers in it
40
+ * cannot be read reliably.
41
+ */
42
+ payload_error: string | null;
43
+ /** Machine-readable failure, for branching and translation (AAD-939). */
44
+ payload_error_code: SnapshotErrorCode | null;
45
+ /**
46
+ * The numbers behind the failure.
47
+ *
48
+ * This is the ONLY place they exist for a failed version: a version can fail
49
+ * without ever being previewed, because the source table grew between previewing
50
+ * and the job running — which is exactly the case the refuse-rather-than-truncate
51
+ * design exists for.
52
+ */
53
+ payload_error_context: SnapshotErrorContext | null;
54
+ /**
55
+ * The declared field names/types/nullability/ordering of the payload. Null until
56
+ * the materialisation job records it; AAD-942 builds structural diffs on top.
57
+ *
58
+ * Typed for snapshots because they are the only payload type that records one
59
+ * today. Narrow with `isSnapshotPayloadSchema()` rather than casting if you render
60
+ * `fields` — AAD-899 may store a different shape here.
61
+ */
62
+ payload_schema: SnapshotPayloadSchema | null;
63
+ /**
64
+ * What the publisher selected: source table, columns, filters, declarations
65
+ * (AAD-939).
66
+ *
67
+ * ⚠️ **PUBLISHER-ONLY, and ABSENT rather than null for anyone else.** It names the
68
+ * publisher's own dynamic table and its column ids, which a buyer is not entitled
69
+ * to — buyers get the data and the declared schema. Check presence, do not assume
70
+ * a null: the key is omitted entirely for a non-publisher.
71
+ */
72
+ payload_config?: SnapshotPayloadConfig | Record<string, unknown> | null;
73
+ /**
74
+ * Rows in the materialised dataset, flattened out of `payload_schema`.
75
+ *
76
+ * Null before materialisation, so "not known yet" and "zero rows" stay
77
+ * distinguishable — a dataset genuinely can be empty.
78
+ */
79
+ row_count: number | null;
80
+ /** Size in bytes of the canonical JSON representation. Null before materialisation. */
81
+ byte_size: number | null;
82
+ /**
83
+ * The channels this version is live on. A version can serve several.
84
+ *
85
+ * `published_at` is when this version became THAT channel's active version. Null
86
+ * if it was set outside the publish path.
87
+ */
88
+ serving_channels: Array<{
89
+ id: string;
90
+ name: string;
91
+ is_default: boolean;
92
+ published_at: string | null;
93
+ }>;
94
+ /**
95
+ * When this version FIRST went live anywhere, or null if it never has.
96
+ *
97
+ * **This is the field to label "published".** `created_at` is when the version was
98
+ * registered and `payload_schema.materialised_at` is when the artifact was built —
99
+ * for a version created and published days apart, neither is the publish date. A
100
+ * later rollback onto this version does not rewrite it; first means first.
101
+ */
102
+ first_published_at: string | null;
103
+ /**
104
+ * Which table this version publishes, available from the moment it is declared.
105
+ *
106
+ * Present even while `pending` or `failed`, when `payload_schema` is still null —
107
+ * the row that most needs to say where it came from is the one that failed.
108
+ *
109
+ * ⚠️ **PUBLISHER-ONLY, and ABSENT rather than null for anyone else**, for the same
110
+ * reason as `payload_config`: it names the publisher's table.
111
+ */
112
+ source?: {
113
+ table_id: string;
114
+ table_name: string | null;
115
+ } | null;
116
+ created_at: string;
117
+ updated_at: string;
118
+ }
119
+ /** A release channel. `active_version` is null when the channel serves nothing. */
120
+ export interface ResourceChannel {
121
+ id: string;
122
+ resource_id: string;
123
+ name: string;
124
+ description: string | null;
125
+ color: string | null;
126
+ sort_order: number;
127
+ is_default: boolean;
128
+ active_version: ResourceVersionSummary | null;
129
+ /** Convenience mirror of `active_version !== null`. */
130
+ is_publishing: boolean;
131
+ created_at: string;
132
+ updated_at: string;
133
+ }
134
+ /** Who an unpublish would cut off. */
135
+ export interface ResourceUnpublishImpact {
136
+ licenses: number;
137
+ holders: Array<{
138
+ license_id: string;
139
+ license_name: string | null;
140
+ version_id: string | null;
141
+ }>;
142
+ }
143
+ //# sourceMappingURL=resourceReleases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceReleases.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/resourceReleases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAEhF;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEjE,uEAAuE;AACvE,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,oBAAoB,CAAA;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,aAAa,EAAE,oBAAoB,CAAA;IACnC;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,yEAAyE;IACzE,kBAAkB,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C;;;;;;;OAOG;IACH,qBAAqB,EAAE,oBAAoB,GAAG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,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC;QACb,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1B,CAAC,CAAA;CACH"}
@@ -0,0 +1,105 @@
1
+ import type { AppTrustLevel } from './app';
2
+ import type { ResourceCategory, ResourcePayloadType } from './sellableResources';
3
+ import type { SnapshotPayloadConfig } from './snapshotPayload';
4
+ /**
5
+ * Request-side shapes for sellable resources (AAD-898): list params and the
6
+ * bodies sent when creating or acquiring.
7
+ *
8
+ * Split out of `sellableResources.ts` purely for file size; every type here is
9
+ * re-exported through the same barrel and the public surface is unchanged.
10
+ */
11
+ /**
12
+ * Which slice of the catalogue to list.
13
+ *
14
+ * - `browse` — publicly browsable, published listings
15
+ * - `owned` — this license's own listings, INCLUDING unpublished ones (the
16
+ * publisher's recovery surface, so the release gate does not apply)
17
+ * - `my_access` — listings this license is entitled to
18
+ */
19
+ export type ResourceStoreMode = 'browse' | 'owned' | 'my_access';
20
+ /** Same sort vocabulary as `FetchAppsParams`, so a merged view can sort as one. */
21
+ export type ResourceSortOption = 'updated_at' | 'title_asc' | 'title_desc' | 'trust' | 'newest' | 'popular';
22
+ export interface FetchResourcesParams {
23
+ store_mode?: ResourceStoreMode;
24
+ search?: string;
25
+ category?: ResourceCategory;
26
+ payload_type?: ResourcePayloadType;
27
+ featured?: boolean;
28
+ /**
29
+ * Publisher license id. Mirrors `FetchAppsParams` so Discover's publisher
30
+ * filter narrows BOTH lists — without it a merged grid filtered to one
31
+ * publisher kept showing every resource.
32
+ */
33
+ publisher?: string;
34
+ /** Same vocabulary as apps, so the sidebar's trust filter applies to both. */
35
+ trust_level?: AppTrustLevel;
36
+ sort?: ResourceSortOption;
37
+ /**
38
+ * Optional cap, 1–50. The endpoint is otherwise UNPAGINATED, matching
39
+ * `/store/apps`. Do not introduce a default limit client-side — a featured
40
+ * rail derived by filtering an already-fetched response would silently drop
41
+ * entries past the cutoff.
42
+ */
43
+ limit?: number;
44
+ }
45
+ export interface CreateSellableResourceData {
46
+ title: string;
47
+ tagline?: string | null;
48
+ description?: string | null;
49
+ icon?: string | null;
50
+ color?: string | null;
51
+ /** Fixed at creation — it decides which backend serves reads. */
52
+ payload_type: ResourcePayloadType;
53
+ category: ResourceCategory;
54
+ availability?: 'always_available' | 'request_access' | 'private';
55
+ access_model?: 'free' | 'subscription';
56
+ access_level?: 'community' | 'enterprise';
57
+ }
58
+ /** `payload_type` is absent deliberately: it cannot change after creation. */
59
+ export interface UpdateSellableResourceData {
60
+ title?: string;
61
+ tagline?: string | null;
62
+ description?: string | null;
63
+ icon?: string | null;
64
+ color?: string | null;
65
+ category?: ResourceCategory;
66
+ availability?: 'always_available' | 'request_access' | 'private';
67
+ access_model?: 'free' | 'subscription';
68
+ access_level?: 'community' | 'enterprise';
69
+ }
70
+ export interface CreateResourceVersionData {
71
+ /** Semantic, e.g. `1.0.0`. The store never renumbers a release. */
72
+ version: string;
73
+ release_notes?: string | null;
74
+ /**
75
+ * Payload-type specific.
76
+ *
77
+ * For a `snapshot` resource this is REQUIRED and fully validated (AAD-939): the
78
+ * source table, the explicit column selection, and the personal-data declaration.
79
+ * Validate the selection with `previewResourceSnapshot()` first — it uses the same
80
+ * rules, so a selection that previews cleanly creates cleanly.
81
+ *
82
+ * For an `endpoint` resource it stays free-form until AAD-899 defines it.
83
+ */
84
+ payload_config?: SnapshotPayloadConfig | Record<string, unknown> | null;
85
+ }
86
+ export interface CreateResourceChannelData {
87
+ name: string;
88
+ description?: string | null;
89
+ color?: string | null;
90
+ sort_order?: number;
91
+ }
92
+ /**
93
+ * Buying a resource.
94
+ *
95
+ * Omit `pricing_tier_id` for a FREE resource — it is acquired directly and the
96
+ * response is a `ResourceEntitlementSummary`. For a subscription resource
97
+ * the tier is required and the response is a `Subscription` in
98
+ * `pending_approval`, which grants NO access until the publisher approves.
99
+ */
100
+ export interface AcquireResourceData {
101
+ pricing_tier_id?: string;
102
+ /** Optional buyer note to the publisher (PO number, billing contact, …). */
103
+ message?: string;
104
+ }
105
+ //# sourceMappingURL=resourceRequests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceRequests.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/resourceRequests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAE9D;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAA;AAEhE,mFAAmF;AACnF,MAAM,MAAM,kBAAkB,GACxB,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,SAAS,CAAA;AAEf,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC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AE,MAAM,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,189 @@
1
+ import type { AppLicense } from './app';
2
+ import type { AppTierSummary } from './appList';
3
+ import type { PricingTier } from './pricingTiers';
4
+ import type { ResourceEntitlementSummary } from './resourceEntitlements';
5
+ import type { ResourceChannel, ResourceVersion } from './resourceReleases';
6
+ import type { Subscription } from './subscriptions';
7
+ /**
8
+ * Sellable resources — the Store's second sellable thing alongside apps
9
+ * (AAD-898). Access to a dataset, a live feed, a processing API, a calculation
10
+ * service, a relay to an external system.
11
+ *
12
+ * The whole surface sits behind ONE backend feature flag, default off. Read it
13
+ * from {@link StoreCapabilities} via `fetchStoreCapabilities()` BEFORE rendering
14
+ * anything: with the flag off every `/store/resources` route returns 404 by
15
+ * design, so probing them is not a substitute — and the acceptance criterion is
16
+ * that the store UI is indistinguishable from today when the flag is off.
17
+ *
18
+ * Resources are a SIBLING of apps, not a variant of them. They share commerce
19
+ * (`PricingTier`, `Subscription` — both already polymorphic) and share no
20
+ * install/seat machinery: an entitlement is LICENSE-LEVEL. There are no seats,
21
+ * no per-user grants and no project activation.
22
+ *
23
+ * The rest of the surface lives in sibling files, all re-exported through the
24
+ * same barrel: `resourceReleases` (versions, channels), `resourceEntitlements`
25
+ * (claims, refusal reasons) and `resourceRequests` (list params, request bodies).
26
+ */
27
+ /**
28
+ * What backs a resource when an entitled caller reads it.
29
+ *
30
+ * - `snapshot` — a materialised dataset (AAD-939)
31
+ * - `endpoint` — live dispatch to the publisher's trigger (AAD-899)
32
+ */
33
+ export type ResourcePayloadType = 'snapshot' | 'endpoint';
34
+ /** Discover subcategory, under the "Services" kind (AAD-935 item 1). */
35
+ export type ResourceCategory = 'data' | 'service';
36
+ /** Which optional Store surfaces this deployment has switched on. */
37
+ export interface StoreCapabilities {
38
+ /**
39
+ * The sellable-resource surface. When false, render exactly as before: no
40
+ * Services category, no resource rows, no filter options, no dead tabs.
41
+ */
42
+ resources_enabled: boolean;
43
+ /**
44
+ * Whether THIS license may publish a DATA listing (AAD-939).
45
+ *
46
+ * A per-license grant sitting UNDER `resources_enabled`, off by default: v1 is
47
+ * first-party publishers only, granted by an operator, and it stays off in
48
+ * production until the legal position resolves. Always false when
49
+ * `resources_enabled` is false.
50
+ *
51
+ * **Hide the create-a-dataset action when this is false.** Creating a `data`
52
+ * listing without the grant is a 403, and discovering that after the publisher has
53
+ * filled in a form is not "disabled means disabled in the UI". Creating a
54
+ * `service` listing is unaffected.
55
+ */
56
+ resources_can_publish_data: boolean;
57
+ /**
58
+ * Which dynamic-table column types a dataset can publish (AAD-939).
59
+ *
60
+ * **Grey out unpublishable columns against THIS, never a hardcoded list.** A
61
+ * client-side copy that drifted from the server's would offer a column that then
62
+ * 422s at create, and the failure would land on the publisher rather than on
63
+ * whoever changed the list. Values match `SnapshotFieldType`.
64
+ */
65
+ resources_snapshot_field_types: string[];
66
+ /**
67
+ * Whether the per-license data-publishing grant is globally waived on this
68
+ * deployment (AAD-939) — development and staging only.
69
+ *
70
+ * `resources_can_publish_data` alone cannot say WHY this license may publish: a
71
+ * real grant and an open gate look identical. This distinguishes them, which is
72
+ * what lets a dev/staging build show "publishing gate is open" rather than
73
+ * implying every license has been individually approved.
74
+ *
75
+ * Diagnostic, not behavioural — branch on `resources_can_publish_data`. Reported
76
+ * raw, so it is visible even while `resources_enabled` is false: a bypass sitting
77
+ * armed behind a disabled surface is still worth surfacing.
78
+ */
79
+ resources_data_publishing_gate_bypassed: boolean;
80
+ }
81
+ /**
82
+ * A storefront row.
83
+ *
84
+ * Field names deliberately match `ListApp` for every shared card concept, so a
85
+ * Discover view can merge apps and resources into one array without translating
86
+ * anything.
87
+ *
88
+ * ⚠️ **Do not build client-side pagination over a merged list.** Two
89
+ * independently paginated lists cannot be merged into one correctly ordered
90
+ * page. Both `/store/apps` and `/store/resources` are currently UNPAGINATED, so
91
+ * a plain concatenation is correct today; when a unified server-side endpoint
92
+ * arrives it will replace the merge wholesale. Keep the merge behind a single
93
+ * composable so that swap is one file.
94
+ *
95
+ * There is no `kind` field — adding one would change the app payload while the
96
+ * flag is off. Stamp it client-side at merge time.
97
+ */
98
+ export interface SellableResourceListItem {
99
+ id: string;
100
+ title: string;
101
+ tagline: string | null;
102
+ icon: string | null;
103
+ image: string | null;
104
+ color: string | null;
105
+ payload_type: ResourcePayloadType;
106
+ category: ResourceCategory;
107
+ availability: 'always_available' | 'request_access' | 'private';
108
+ access_model: 'free' | 'subscription';
109
+ access_level: 'community' | 'enterprise';
110
+ trust_level: 'standard' | 'verified' | 'certified';
111
+ is_featured: boolean;
112
+ /**
113
+ * The publisher. Same `AppLicense` shape apps use, `theme` included, so a
114
+ * merged Discover grid renders the publisher swatch in the publisher's own
115
+ * colour on both card kinds rather than greying out one of them.
116
+ */
117
+ license: AppLicense | null;
118
+ /**
119
+ * Free/paid spread across active tiers — the SAME summary apps carry, from the
120
+ * shared presenter rather than a lookalike, so one card footer renders both.
121
+ * Null when the resource is not subscription-model.
122
+ */
123
+ tier_summary?: AppTierSummary | null;
124
+ /**
125
+ * Distinct non-revoked entitlements. The neutral popularity scalar: apps emit
126
+ * the same field name with the same meaning (distinct external installs), so a
127
+ * merged list can rank both kinds on it.
128
+ */
129
+ consumer_count?: number;
130
+ /** Whether the VIEWING license holds a non-revoked entitlement. */
131
+ has_access: boolean;
132
+ entitlement: ResourceEntitlementSummary | null;
133
+ /** Whether any channel currently serves a version. */
134
+ is_published: boolean;
135
+ created_at: string;
136
+ updated_at: string;
137
+ }
138
+ /** The full listing — the contract a buyer sees before purchasing. */
139
+ export interface SellableResource extends SellableResourceListItem {
140
+ description: string | null;
141
+ channels: ResourceChannel[];
142
+ /**
143
+ * The versions THIS viewer may see — not the whole catalogue.
144
+ *
145
+ * A publisher gets everything they have registered. Everyone else gets exactly
146
+ * two kinds, because they are the two a buyer surface resolves out of this list
147
+ * and both need the full version (`entitlement.pinned_version` and
148
+ * `channel.active_version` are summaries, without the declared schema or counts):
149
+ *
150
+ * 1. what each channel currently SERVES — the offer, and the Move target, and
151
+ * 2. the version this viewer is PINNED to — which stays here after it has been
152
+ * superseded and is no longer any channel's active version.
153
+ *
154
+ * That second one matters: publishing moves nobody, so a buyer routinely sits on
155
+ * a version no channel serves, and dropping it would blank the "what I have" side
156
+ * of their before/after comparison the moment the publisher released anything.
157
+ *
158
+ * Unreleased drafts and retired builds belong to the publisher alone — the raw
159
+ * list endpoint (`fetchResourceVersions`) is publisher-only for that reason.
160
+ * Still resolve "which version am I on?" from `entitlement.pinned_version`.
161
+ */
162
+ versions: ResourceVersion[];
163
+ pricing_tiers: PricingTier[];
164
+ }
165
+ /** An entry in the buyer's "My Access" list. */
166
+ export interface ResourceAccessEntry extends ResourceEntitlementSummary {
167
+ resource: {
168
+ id: string;
169
+ title: string;
170
+ tagline: string | null;
171
+ icon: string | null;
172
+ color: string | null;
173
+ payload_type: ResourcePayloadType;
174
+ category: ResourceCategory;
175
+ };
176
+ /** Whether this license's channel serves a version newer than the pin. */
177
+ update_available: boolean;
178
+ }
179
+ /** A row of the publisher's consumption view. Lifetime totals, not a time series. */
180
+ export interface ResourceConsumer {
181
+ license_id: string;
182
+ license_name: string | null;
183
+ call_count: number;
184
+ last_called_at: string | null;
185
+ is_revoked: boolean;
186
+ }
187
+ /** Re-exported for convenience: a resource purchase yields a normal Subscription. */
188
+ export type ResourceSubscription = Subscription;
189
+ //# sourceMappingURL=sellableResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellableResources.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/sellableResources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EA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