@antcde/connect-ts 0.4.27-rc.1 → 0.4.27-rc.3

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 (95) 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 +44 -0
  42. package/build/services/AppService/factory/resourceChannels.d.ts +89 -0
  43. package/build/services/AppService/factory/resourceChannels.d.ts.map +1 -0
  44. package/build/services/AppService/factory/resourceChannels.js +19 -0
  45. package/build/services/AppService/factory/resourceCommerce.d.ts +52 -0
  46. package/build/services/AppService/factory/resourceCommerce.d.ts.map +1 -0
  47. package/build/services/AppService/factory/resourceCommerce.js +18 -0
  48. package/build/services/AppService/factory/resourceSnapshot.d.ts +62 -0
  49. package/build/services/AppService/factory/resourceSnapshot.d.ts.map +1 -0
  50. package/build/services/AppService/factory/resourceSnapshot.js +34 -0
  51. package/build/services/AppService/factory/resources.d.ts +154 -0
  52. package/build/services/AppService/factory/resources.d.ts.map +1 -0
  53. package/build/services/AppService/factory/resources.js +40 -0
  54. package/build/services/AppService/index.d.ts +2 -1
  55. package/build/services/AppService/index.d.ts.map +1 -1
  56. package/build/services/AppService/index.js +9 -2
  57. package/build/services/AppService/types/appList.d.ts +28 -0
  58. package/build/services/AppService/types/appList.d.ts.map +1 -1
  59. package/build/services/AppService/types/appManifest.d.ts +46 -0
  60. package/build/services/AppService/types/appManifest.d.ts.map +1 -1
  61. package/build/services/AppService/types/appRequests.d.ts +13 -0
  62. package/build/services/AppService/types/appRequests.d.ts.map +1 -1
  63. package/build/services/AppService/types/resourceEntitlements.d.ts +109 -0
  64. package/build/services/AppService/types/resourceEntitlements.d.ts.map +1 -0
  65. package/build/services/AppService/types/resourceEntitlements.js +1 -0
  66. package/build/services/AppService/types/resourceReleases.d.ts +223 -0
  67. package/build/services/AppService/types/resourceReleases.d.ts.map +1 -0
  68. package/build/services/AppService/types/resourceReleases.js +1 -0
  69. package/build/services/AppService/types/resourceRequests.d.ts +115 -0
  70. package/build/services/AppService/types/resourceRequests.d.ts.map +1 -0
  71. package/build/services/AppService/types/resourceRequests.js +1 -0
  72. package/build/services/AppService/types/sellableResources.d.ts +189 -0
  73. package/build/services/AppService/types/sellableResources.d.ts.map +1 -0
  74. package/build/services/AppService/types/sellableResources.js +1 -0
  75. package/build/services/AppService/types/snapshotPayload.d.ts +146 -0
  76. package/build/services/AppService/types/snapshotPayload.d.ts.map +1 -0
  77. package/build/services/AppService/types/snapshotPayload.js +16 -0
  78. package/build/services/AppService/types/snapshotSources.d.ts +98 -0
  79. package/build/services/AppService/types/snapshotSources.d.ts.map +1 -0
  80. package/build/services/AppService/types/snapshotSources.js +7 -0
  81. package/build/services/AppService/types.d.ts +6 -0
  82. package/build/services/AppService/types.d.ts.map +1 -1
  83. package/build/services/AppService/types.js +6 -0
  84. package/build/services/TokenService.d.ts +0 -1
  85. package/build/services/TokenService.d.ts.map +1 -1
  86. package/build/services/TokenService.js +0 -2
  87. package/build/services/UserService.d.ts +3 -0
  88. package/build/services/UserService.d.ts.map +1 -1
  89. package/build/services/Websockets/StoreEvents.d.ts +14 -1
  90. package/build/services/Websockets/StoreEvents.d.ts.map +1 -1
  91. package/build/services/userPreferences.d.ts +37 -0
  92. package/build/services/userPreferences.d.ts.map +1 -0
  93. package/build/services/userPreferences.js +39 -0
  94. package/package.json +3 -2
  95. package/schemas/app-config.schema.json +79 -8
@@ -101,7 +101,20 @@ export interface FetchAppsParams extends LabelFilterParams {
101
101
  exclude_id?: string | null;
102
102
  /** Cap the result count (1-50). Used by App Detail carousels. */
103
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[];
104
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';
105
118
  export interface UninstallConflict {
106
119
  message: string;
107
120
  projects: {
@@ -1 +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,WAAW,iBAAiB;IAChC,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,4BAA4B,EAAE,MAAM,CAAA;IACpC,0BAA0B,EAAE,MAAM,CAAA;IAClC,+EAA+E;IAC/E,QAAQ,EAAE,gBAAgB,EAAE,CAAA;IAC5B,+EAA+E;IAC/E,QAAQ,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,mEAAmE;IACnE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,mEAAmE;IACnE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,sDAAsD;IACtD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,yFAAyF;IACzF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IAC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A;CACxB"}
@@ -0,0 +1,109 @@
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
+ * | `channel_not_accessible` | 403 | they DID buy it, but the track is restricted and their license is not listed — ask the publisher, never offer a purchase |
23
+ * | `version_withdrawn` | 409 | the pinned build was pulled — offer the Update action |
24
+ * | `version_not_ready` | 409 | the payload has not finished preparing — poll |
25
+ * | `payload_backend_not_implemented` | 501 | no backend registered yet (the phase-1 default) |
26
+ *
27
+ * A 404 is separate and deliberate: an unknown resource AND a private listing
28
+ * this license has no relationship with both 404, so the API never confirms that
29
+ * another license's unpublished product exists.
30
+ */
31
+ export type ResourceAccessReason = 'not_entitled' | 'entitlement_revoked' | 'subscription_expired' | 'subscription_pending_approval'
32
+ /**
33
+ * AAD-949. Reachable ONLY by a license holding a live entitlement — the
34
+ * entitlement checks run first — so the remedy is "ask the publisher to add
35
+ * you to that track", never "buy this". Must not be collapsed into
36
+ * `not_entitled`: the two are answered by different people.
37
+ */
38
+ | 'channel_not_accessible' | 'version_withdrawn' | 'version_not_ready' | 'payload_backend_not_implemented';
39
+ /** The body of a refused access-layer read. */
40
+ export interface ResourceAccessError {
41
+ message: string;
42
+ reason: ResourceAccessReason;
43
+ }
44
+ /**
45
+ * Release state, independent of commercial state. Present when the publisher
46
+ * pulled the build this license is pinned to. Recovery is `moveResourceToChannelVersion()`.
47
+ */
48
+ export interface ResourceAccessBlock {
49
+ blocked: true;
50
+ reason: 'version_withdrawn';
51
+ withdrawn_version_id: string | null;
52
+ /**
53
+ * The build that was pulled, and what the channel serves instead. Version
54
+ * STRINGS, not just ids, so the recovery banner can name both — this is what
55
+ * lets resources render the same withdrawn band as apps instead of a
56
+ * resource-only lookalike.
57
+ */
58
+ withdrawn_version: {
59
+ id: string;
60
+ version: string;
61
+ } | null;
62
+ update_to_version: {
63
+ id: string;
64
+ version: string;
65
+ } | null;
66
+ }
67
+ /**
68
+ * A license's claim on a resource.
69
+ *
70
+ * ⚠️ `is_live` and `access_block` are INDEPENDENT and both must be checked. A
71
+ * fully paid-up buyer whose build was pulled is `is_live: true` with an
72
+ * `access_block`; a lapsed buyer whose build is fine is the reverse. Treating
73
+ * either one alone as "can I read this" gets one of the two cases wrong.
74
+ */
75
+ export interface ResourceEntitlementSummary {
76
+ id: string;
77
+ license_id: string;
78
+ /**
79
+ * The version this license actually runs — the pin. This is the ONLY correct
80
+ * answer to "which version am I on?"; what a channel currently offers is a
81
+ * different question, and the two differ exactly when an update is available.
82
+ */
83
+ pinned_version: ResourceVersionSummary | null;
84
+ channel_id: string | null;
85
+ /** The channel this license draws from, named — so a row can say which. */
86
+ channel: {
87
+ id: string;
88
+ name: string;
89
+ } | null;
90
+ auto_update: boolean;
91
+ revoked_at: string | null;
92
+ /** Commercial standing: not revoked, and any backing subscription still live. */
93
+ is_live: boolean;
94
+ access_block: ResourceAccessBlock | null;
95
+ }
96
+ export interface ResourceEntitlement extends ResourceEntitlementSummary {
97
+ resource_id: string;
98
+ license: {
99
+ id: string;
100
+ name: string;
101
+ } | null;
102
+ subscription_id: string | null;
103
+ /** Lifetime call total. Not a time series — see `fetchResourceConsumers`. */
104
+ call_count: number;
105
+ last_called_at: string | null;
106
+ created_at: string;
107
+ updated_at: string;
108
+ }
109
+ //# 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;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,oBAAoB,GAC1B,cAAc,GACd,qBAAqB,GACrB,sBAAsB,GACtB,+BAA+B;AACjC;;;;;GAKG;GACD,wBAAwB,GACxB,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,223 @@
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
+ /**
120
+ * Who may draw releases from a channel (AAD-949).
121
+ *
122
+ * - `'default'` — every ENTITLED license may use the channel; the member pivot is
123
+ * ignored even if rows exist
124
+ * - `'specific_licenses'` — only entitled licenses on the member pivot may use it
125
+ *
126
+ * ⚠️ **This narrows an entitlement; it never grants one.** The app store's
127
+ * identically-named mode does double duty — there, channel membership is itself a
128
+ * route into entitlement. On a resource it is not: entitlement always comes from a
129
+ * purchase, so adding a license to a channel gives it nothing it did not already
130
+ * have. A member with no entitlement is refused `not_entitled`.
131
+ */
132
+ export type ResourceChannelAccessMode = 'default' | 'specific_licenses';
133
+ /**
134
+ * Per-channel commercial bypass (AAD-949).
135
+ *
136
+ * - `'free'` — members of this channel are not blocked by a lapsed subscription
137
+ * - `null` — inherit the resource's access model (default)
138
+ *
139
+ * Only valid on a `specific_licenses` channel of a subscription resource; anything
140
+ * else is a 422 on `errors.access_override`. It relaxes the commercial gate for an
141
+ * entitlement that ALREADY exists and cannot create one.
142
+ */
143
+ export type ResourceChannelAccessOverride = 'free' | null;
144
+ /** A release channel. `active_version` is null when the channel serves nothing. */
145
+ export interface ResourceChannel {
146
+ id: string;
147
+ resource_id: string;
148
+ name: string;
149
+ description: string | null;
150
+ color: string | null;
151
+ sort_order: number;
152
+ is_default: boolean;
153
+ access_mode: ResourceChannelAccessMode;
154
+ access_override: ResourceChannelAccessOverride;
155
+ /**
156
+ * Whether the CURRENT license is on this channel's member pivot.
157
+ *
158
+ * Do not render this as "has access": it is one of two conditions, and the other
159
+ * (an entitlement) is not visible here. It is only meaningful when `access_mode`
160
+ * is `specific_licenses`.
161
+ */
162
+ is_member: boolean;
163
+ /**
164
+ * How many licenses are on the pivot. **Publisher-only — `null` for anyone
165
+ * else**, rather than 0, so "not shown to you" and "nobody is a member" stay
166
+ * distinguishable.
167
+ */
168
+ member_count: number | null;
169
+ active_version: ResourceVersionSummary | null;
170
+ /** Convenience mirror of `active_version !== null`. */
171
+ is_publishing: boolean;
172
+ created_at: string;
173
+ updated_at: string;
174
+ }
175
+ /**
176
+ * Partial update — omit a key to leave it alone, send `null` to clear a nullable
177
+ * one. `name` is NOT required, unlike on create.
178
+ *
179
+ * The backend refuses `is_default: false` on the current default (400): a resource
180
+ * must always have exactly one, so switch by promoting another channel.
181
+ */
182
+ export interface UpdateResourceChannelData {
183
+ name?: string;
184
+ description?: string | null;
185
+ color?: string | null;
186
+ access_mode?: ResourceChannelAccessMode;
187
+ access_override?: ResourceChannelAccessOverride;
188
+ sort_order?: number;
189
+ is_default?: boolean;
190
+ }
191
+ /**
192
+ * A license on a channel's member pivot. Enough to render a chip without a
193
+ * directory lookup — the same shape the app store's channel members endpoint
194
+ * returns, so the manage-access views can share components.
195
+ */
196
+ export interface ResourceChannelMember {
197
+ id: string;
198
+ name: string;
199
+ /** Always null: the V1 Company model was removed, so no display name exists. */
200
+ company: string | null;
201
+ /** Hex string. */
202
+ theme: string;
203
+ /** When the license was added to the channel. */
204
+ added_at: string | null;
205
+ }
206
+ /** Body for `retryResourceVersion()`. Everything is optional. */
207
+ export interface RetryResourceVersionData {
208
+ /**
209
+ * Replaces the stored selection. Omit to replay exactly what failed, which is
210
+ * right for a transient fault and useless for a failure caused by the selection.
211
+ */
212
+ payload_config?: SnapshotPayloadConfig | Record<string, unknown>;
213
+ }
214
+ /** Who an unpublish would cut off. */
215
+ export interface ResourceUnpublishImpact {
216
+ licenses: number;
217
+ holders: Array<{
218
+ license_id: string;
219
+ license_name: string | null;
220
+ version_id: string | null;
221
+ }>;
222
+ }
223
+ //# 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;;;;;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AAuB;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,115 @@
1
+ import type { AppTrustLevel } from './app';
2
+ import type { ResourceChannelAccessMode, ResourceChannelAccessOverride } from './resourceReleases';
3
+ import type { ResourceCategory, ResourcePayloadType } from './sellableResources';
4
+ import type { SnapshotPayloadConfig } from './snapshotPayload';
5
+ /**
6
+ * Request-side shapes for sellable resources (AAD-898): list params and the
7
+ * bodies sent when creating or acquiring.
8
+ *
9
+ * Split out of `sellableResources.ts` purely for file size; every type here is
10
+ * re-exported through the same barrel and the public surface is unchanged.
11
+ */
12
+ /**
13
+ * Which slice of the catalogue to list.
14
+ *
15
+ * - `browse` — publicly browsable, published listings
16
+ * - `owned` — this license's own listings, INCLUDING unpublished ones (the
17
+ * publisher's recovery surface, so the release gate does not apply)
18
+ * - `my_access` — listings this license is entitled to
19
+ */
20
+ export type ResourceStoreMode = 'browse' | 'owned' | 'my_access';
21
+ /** Same sort vocabulary as `FetchAppsParams`, so a merged view can sort as one. */
22
+ export type ResourceSortOption = 'updated_at' | 'title_asc' | 'title_desc' | 'trust' | 'newest' | 'popular';
23
+ export interface FetchResourcesParams {
24
+ store_mode?: ResourceStoreMode;
25
+ search?: string;
26
+ category?: ResourceCategory;
27
+ payload_type?: ResourcePayloadType;
28
+ featured?: boolean;
29
+ /**
30
+ * Publisher license id. Mirrors `FetchAppsParams` so Discover's publisher
31
+ * filter narrows BOTH lists — without it a merged grid filtered to one
32
+ * publisher kept showing every resource.
33
+ */
34
+ publisher?: string;
35
+ /** Same vocabulary as apps, so the sidebar's trust filter applies to both. */
36
+ trust_level?: AppTrustLevel;
37
+ sort?: ResourceSortOption;
38
+ /**
39
+ * Optional cap, 1–50. The endpoint is otherwise UNPAGINATED, matching
40
+ * `/store/apps`. Do not introduce a default limit client-side — a featured
41
+ * rail derived by filtering an already-fetched response would silently drop
42
+ * entries past the cutoff.
43
+ */
44
+ limit?: number;
45
+ }
46
+ export interface CreateSellableResourceData {
47
+ title: string;
48
+ tagline?: string | null;
49
+ description?: string | null;
50
+ icon?: string | null;
51
+ color?: string | null;
52
+ /** Fixed at creation — it decides which backend serves reads. */
53
+ payload_type: ResourcePayloadType;
54
+ category: ResourceCategory;
55
+ availability?: 'always_available' | 'request_access' | 'private';
56
+ access_model?: 'free' | 'subscription';
57
+ access_level?: 'community' | 'enterprise';
58
+ }
59
+ /** `payload_type` is absent deliberately: it cannot change after creation. */
60
+ export interface UpdateSellableResourceData {
61
+ title?: string;
62
+ tagline?: string | null;
63
+ description?: string | null;
64
+ icon?: string | null;
65
+ color?: string | null;
66
+ category?: ResourceCategory;
67
+ availability?: 'always_available' | 'request_access' | 'private';
68
+ access_model?: 'free' | 'subscription';
69
+ access_level?: 'community' | 'enterprise';
70
+ }
71
+ export interface CreateResourceVersionData {
72
+ /** Semantic, e.g. `1.0.0`. The store never renumbers a release. */
73
+ version: string;
74
+ release_notes?: string | null;
75
+ /**
76
+ * Payload-type specific.
77
+ *
78
+ * For a `snapshot` resource this is REQUIRED and fully validated (AAD-939): the
79
+ * source table, the explicit column selection, and the personal-data declaration.
80
+ * Validate the selection with `previewResourceSnapshot()` first — it uses the same
81
+ * rules, so a selection that previews cleanly creates cleanly.
82
+ *
83
+ * For an `endpoint` resource it stays free-form until AAD-899 defines it.
84
+ */
85
+ payload_config?: SnapshotPayloadConfig | Record<string, unknown> | null;
86
+ }
87
+ export interface CreateResourceChannelData {
88
+ name: string;
89
+ description?: string | null;
90
+ color?: string | null;
91
+ /** Who may draw from the track. Defaults to `default` (AAD-949). */
92
+ access_mode?: ResourceChannelAccessMode;
93
+ /** Only valid on a `specific_licenses` channel of a subscription resource. */
94
+ access_override?: ResourceChannelAccessOverride;
95
+ sort_order?: number;
96
+ /**
97
+ * Marking this channel default demotes the previous default atomically. The
98
+ * first channel on a resource with no default is promoted automatically.
99
+ */
100
+ is_default?: boolean;
101
+ }
102
+ /**
103
+ * Buying a resource.
104
+ *
105
+ * Omit `pricing_tier_id` for a FREE resource — it is acquired directly and the
106
+ * response is a `ResourceEntitlementSummary`. For a subscription resource
107
+ * the tier is required and the response is a `Subscription` in
108
+ * `pending_approval`, which grants NO access until the publisher approves.
109
+ */
110
+ export interface AcquireResourceData {
111
+ pricing_tier_id?: string;
112
+ /** Optional buyer note to the publisher (PO number, billing contact, …). */
113
+ message?: string;
114
+ }
115
+ //# 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,yBAAyB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AAClG,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;IACl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