@oxy.so/contracts 5.8.0 → 6.1.0

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 (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -3,480 +3,166 @@ import { z } from 'zod';
3
3
  export declare const productDefinitionSchema: z.ZodObject<{
4
4
  schemaVersion: z.ZodLiteral<1>;
5
5
  id: z.ZodString;
6
- ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
6
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
7
7
  applicationId: z.ZodString;
8
- }, "strict", z.ZodTypeAny, {
9
- id: string;
10
- schemaVersion: 1;
11
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
12
- applicationId: string;
13
- }, {
14
- id: string;
15
- schemaVersion: 1;
16
- ownerAccountId: string;
17
- applicationId: string;
18
- }>;
8
+ }, z.core.$strict>;
19
9
  export declare const subjectProductAccessQuerySchema: z.ZodObject<{
20
10
  schemaVersion: z.ZodLiteral<1>;
21
- subjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
11
+ subjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
22
12
  productId: z.ZodString;
23
- }, "strict", z.ZodTypeAny, {
24
- schemaVersion: 1;
25
- subjectAccountId: string & z.BRAND<"OxyAccountId">;
26
- productId: string;
27
- }, {
28
- schemaVersion: 1;
29
- subjectAccountId: string;
30
- productId: string;
31
- }>;
13
+ }, z.core.$strict>;
32
14
  /** Every quota declares its combination rule; there is no commercial default. */
33
- export declare const productBenefitSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
15
+ export declare const productBenefitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
16
  kind: z.ZodLiteral<"capability">;
35
17
  productId: z.ZodString;
36
18
  key: z.ZodString;
37
- }, "strict", z.ZodTypeAny, {
38
- kind: "capability";
39
- key: string;
40
- productId: string;
41
- }, {
42
- kind: "capability";
43
- key: string;
44
- productId: string;
45
- }>, z.ZodObject<{
19
+ }, z.core.$strict>, z.ZodObject<{
46
20
  kind: z.ZodLiteral<"quota">;
47
21
  productId: z.ZodString;
48
22
  key: z.ZodString;
49
23
  unit: z.ZodString;
50
24
  included: z.ZodNumber;
51
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
52
- }, "strict", z.ZodTypeAny, {
53
- kind: "quota";
54
- key: string;
55
- unit: string;
56
- included: number;
57
- productId: string;
58
- combination: "maximum" | "sum" | "exclusive";
59
- }, {
60
- kind: "quota";
61
- key: string;
62
- unit: string;
63
- included: number;
64
- productId: string;
65
- combination: "maximum" | "sum" | "exclusive";
66
- }>]>;
25
+ combination: z.ZodEnum<{
26
+ maximum: "maximum";
27
+ sum: "sum";
28
+ exclusive: "exclusive";
29
+ }>;
30
+ }, z.core.$strict>], "kind">;
67
31
  /** A version names a frozen offer. An empty bundle grants nothing. */
68
- export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
32
+ export declare const productOfferSchema: z.ZodObject<{
69
33
  schemaVersion: z.ZodLiteral<1>;
70
34
  id: z.ZodString;
71
35
  version: z.ZodNumber;
72
- kind: z.ZodEnum<["individual", "bundle"]>;
73
- benefits: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
36
+ kind: z.ZodEnum<{
37
+ bundle: "bundle";
38
+ individual: "individual";
39
+ }>;
40
+ benefits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
74
41
  kind: z.ZodLiteral<"capability">;
75
42
  productId: z.ZodString;
76
43
  key: z.ZodString;
77
- }, "strict", z.ZodTypeAny, {
78
- kind: "capability";
79
- key: string;
80
- productId: string;
81
- }, {
82
- kind: "capability";
83
- key: string;
84
- productId: string;
85
- }>, z.ZodObject<{
44
+ }, z.core.$strict>, z.ZodObject<{
86
45
  kind: z.ZodLiteral<"quota">;
87
46
  productId: z.ZodString;
88
47
  key: z.ZodString;
89
48
  unit: z.ZodString;
90
49
  included: z.ZodNumber;
91
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
92
- }, "strict", z.ZodTypeAny, {
93
- kind: "quota";
94
- key: string;
95
- unit: string;
96
- included: number;
97
- productId: string;
98
- combination: "maximum" | "sum" | "exclusive";
99
- }, {
100
- kind: "quota";
101
- key: string;
102
- unit: string;
103
- included: number;
104
- productId: string;
105
- combination: "maximum" | "sum" | "exclusive";
106
- }>]>, "many">;
107
- }, "strict", z.ZodTypeAny, {
108
- kind: "bundle" | "individual";
109
- id: string;
110
- schemaVersion: 1;
111
- version: number;
112
- benefits: ({
113
- kind: "capability";
114
- key: string;
115
- productId: string;
116
- } | {
117
- kind: "quota";
118
- key: string;
119
- unit: string;
120
- included: number;
121
- productId: string;
122
- combination: "maximum" | "sum" | "exclusive";
123
- })[];
124
- }, {
125
- kind: "bundle" | "individual";
126
- id: string;
127
- schemaVersion: 1;
128
- version: number;
129
- benefits: ({
130
- kind: "capability";
131
- key: string;
132
- productId: string;
133
- } | {
134
- kind: "quota";
135
- key: string;
136
- unit: string;
137
- included: number;
138
- productId: string;
139
- combination: "maximum" | "sum" | "exclusive";
140
- })[];
141
- }>, {
142
- kind: "bundle" | "individual";
143
- id: string;
144
- schemaVersion: 1;
145
- version: number;
146
- benefits: ({
147
- kind: "capability";
148
- key: string;
149
- productId: string;
150
- } | {
151
- kind: "quota";
152
- key: string;
153
- unit: string;
154
- included: number;
155
- productId: string;
156
- combination: "maximum" | "sum" | "exclusive";
157
- })[];
158
- }, {
159
- kind: "bundle" | "individual";
160
- id: string;
161
- schemaVersion: 1;
162
- version: number;
163
- benefits: ({
164
- kind: "capability";
165
- key: string;
166
- productId: string;
167
- } | {
168
- kind: "quota";
169
- key: string;
170
- unit: string;
171
- included: number;
172
- productId: string;
173
- combination: "maximum" | "sum" | "exclusive";
174
- })[];
175
- }>;
50
+ combination: z.ZodEnum<{
51
+ maximum: "maximum";
52
+ sum: "sum";
53
+ exclusive: "exclusive";
54
+ }>;
55
+ }, z.core.$strict>], "kind">>;
56
+ }, z.core.$strict>;
176
57
  export declare const productSubscriptionSourceSchema: z.ZodObject<{
177
58
  schemaVersion: z.ZodLiteral<1>;
178
59
  id: z.ZodString;
179
- beneficiaryAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
180
- payerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
181
- provider: z.ZodEnum<["stripe", "peable"]>;
60
+ beneficiaryAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
61
+ payerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
62
+ provider: z.ZodEnum<{
63
+ stripe: "stripe";
64
+ peable: "peable";
65
+ }>;
182
66
  providerSubscriptionId: z.ZodString;
183
- status: z.ZodEnum<["active", "trialing", "past_due", "unpaid", "canceled", "paused", "incomplete", "incomplete_expired"]>;
184
- period: z.ZodEffects<z.ZodObject<{
67
+ status: z.ZodEnum<{
68
+ active: "active";
69
+ incomplete: "incomplete";
70
+ canceled: "canceled";
71
+ incomplete_expired: "incomplete_expired";
72
+ past_due: "past_due";
73
+ paused: "paused";
74
+ trialing: "trialing";
75
+ unpaid: "unpaid";
76
+ }>;
77
+ period: z.ZodObject<{
185
78
  start: z.ZodString;
186
79
  end: z.ZodString;
187
- }, "strict", z.ZodTypeAny, {
188
- start: string;
189
- end: string;
190
- }, {
191
- start: string;
192
- end: string;
193
- }>, {
194
- start: string;
195
- end: string;
196
- }, {
197
- start: string;
198
- end: string;
199
- }>;
80
+ }, z.core.$strict>;
200
81
  cancelAtPeriodEnd: z.ZodBoolean;
201
- }, "strict", z.ZodTypeAny, {
202
- status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
203
- id: string;
204
- schemaVersion: 1;
205
- provider: "stripe" | "peable";
206
- cancelAtPeriodEnd: boolean;
207
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
208
- payerAccountId: string & z.BRAND<"OxyAccountId">;
209
- providerSubscriptionId: string;
210
- period: {
211
- start: string;
212
- end: string;
213
- };
214
- }, {
215
- status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
216
- id: string;
217
- schemaVersion: 1;
218
- provider: "stripe" | "peable";
219
- cancelAtPeriodEnd: boolean;
220
- beneficiaryAccountId: string;
221
- payerAccountId: string;
222
- providerSubscriptionId: string;
223
- period: {
224
- start: string;
225
- end: string;
226
- };
227
- }>;
82
+ }, z.core.$strict>;
228
83
  /** A frozen paid-period/offer segment; upgrades append, never rewrite it. */
229
84
  export declare const productOfferSegmentSchema: z.ZodObject<{
230
85
  schemaVersion: z.ZodLiteral<1>;
231
86
  id: z.ZodString;
232
87
  subscriptionId: z.ZodString;
233
- beneficiaryAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
88
+ beneficiaryAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
234
89
  offerId: z.ZodString;
235
90
  offerVersion: z.ZodNumber;
236
- origin: z.ZodEnum<["individual", "bundle"]>;
237
- period: z.ZodEffects<z.ZodObject<{
91
+ origin: z.ZodEnum<{
92
+ bundle: "bundle";
93
+ individual: "individual";
94
+ }>;
95
+ period: z.ZodObject<{
238
96
  start: z.ZodString;
239
97
  end: z.ZodString;
240
- }, "strict", z.ZodTypeAny, {
241
- start: string;
242
- end: string;
243
- }, {
244
- start: string;
245
- end: string;
246
- }>, {
247
- start: string;
248
- end: string;
249
- }, {
250
- start: string;
251
- end: string;
252
- }>;
253
- }, "strict", z.ZodTypeAny, {
254
- id: string;
255
- schemaVersion: 1;
256
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
257
- period: {
258
- start: string;
259
- end: string;
260
- };
261
- subscriptionId: string;
262
- offerId: string;
263
- offerVersion: number;
264
- origin: "bundle" | "individual";
265
- }, {
266
- id: string;
267
- schemaVersion: 1;
268
- beneficiaryAccountId: string;
269
- period: {
270
- start: string;
271
- end: string;
272
- };
273
- subscriptionId: string;
274
- offerId: string;
275
- offerVersion: number;
276
- origin: "bundle" | "individual";
277
- }>;
98
+ }, z.core.$strict>;
99
+ }, z.core.$strict>;
278
100
  /** Provenance survives cancellation: deactivate a source, never delete history. */
279
101
  export declare const productAccessGrantSchema: z.ZodObject<{
280
102
  schemaVersion: z.ZodLiteral<1>;
281
103
  id: z.ZodString;
282
104
  sourceSegmentId: z.ZodString;
283
- beneficiaryAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
105
+ beneficiaryAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
284
106
  offerId: z.ZodString;
285
107
  offerVersion: z.ZodNumber;
286
- origin: z.ZodEnum<["individual", "bundle"]>;
287
- benefit: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
108
+ origin: z.ZodEnum<{
109
+ bundle: "bundle";
110
+ individual: "individual";
111
+ }>;
112
+ benefit: z.ZodDiscriminatedUnion<[z.ZodObject<{
288
113
  kind: z.ZodLiteral<"capability">;
289
114
  productId: z.ZodString;
290
115
  key: z.ZodString;
291
- }, "strict", z.ZodTypeAny, {
292
- kind: "capability";
293
- key: string;
294
- productId: string;
295
- }, {
296
- kind: "capability";
297
- key: string;
298
- productId: string;
299
- }>, z.ZodObject<{
116
+ }, z.core.$strict>, z.ZodObject<{
300
117
  kind: z.ZodLiteral<"quota">;
301
118
  productId: z.ZodString;
302
119
  key: z.ZodString;
303
120
  unit: z.ZodString;
304
121
  included: z.ZodNumber;
305
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
306
- }, "strict", z.ZodTypeAny, {
307
- kind: "quota";
308
- key: string;
309
- unit: string;
310
- included: number;
311
- productId: string;
312
- combination: "maximum" | "sum" | "exclusive";
313
- }, {
314
- kind: "quota";
315
- key: string;
316
- unit: string;
317
- included: number;
318
- productId: string;
319
- combination: "maximum" | "sum" | "exclusive";
320
- }>]>;
321
- period: z.ZodEffects<z.ZodObject<{
122
+ combination: z.ZodEnum<{
123
+ maximum: "maximum";
124
+ sum: "sum";
125
+ exclusive: "exclusive";
126
+ }>;
127
+ }, z.core.$strict>], "kind">;
128
+ period: z.ZodObject<{
322
129
  start: z.ZodString;
323
130
  end: z.ZodString;
324
- }, "strict", z.ZodTypeAny, {
325
- start: string;
326
- end: string;
327
- }, {
328
- start: string;
329
- end: string;
330
- }>, {
331
- start: string;
332
- end: string;
333
- }, {
334
- start: string;
335
- end: string;
336
- }>;
131
+ }, z.core.$strict>;
337
132
  revokedAt: z.ZodNullable<z.ZodString>;
338
- }, "strict", z.ZodTypeAny, {
339
- id: string;
340
- schemaVersion: 1;
341
- revokedAt: string | null;
342
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
343
- period: {
344
- start: string;
345
- end: string;
346
- };
347
- offerId: string;
348
- offerVersion: number;
349
- origin: "bundle" | "individual";
350
- sourceSegmentId: string;
351
- benefit: {
352
- kind: "capability";
353
- key: string;
354
- productId: string;
355
- } | {
356
- kind: "quota";
357
- key: string;
358
- unit: string;
359
- included: number;
360
- productId: string;
361
- combination: "maximum" | "sum" | "exclusive";
362
- };
363
- }, {
364
- id: string;
365
- schemaVersion: 1;
366
- revokedAt: string | null;
367
- beneficiaryAccountId: string;
368
- period: {
369
- start: string;
370
- end: string;
371
- };
372
- offerId: string;
373
- offerVersion: number;
374
- origin: "bundle" | "individual";
375
- sourceSegmentId: string;
376
- benefit: {
377
- kind: "capability";
378
- key: string;
379
- productId: string;
380
- } | {
381
- kind: "quota";
382
- key: string;
383
- unit: string;
384
- included: number;
385
- productId: string;
386
- combination: "maximum" | "sum" | "exclusive";
387
- };
388
- }>;
133
+ }, z.core.$strict>;
389
134
  /** Access answers contain no payer, provider reference, price or account balance. */
390
135
  export declare const subjectProductAccessSchema: z.ZodObject<{
391
136
  schemaVersion: z.ZodLiteral<1>;
392
- subjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
137
+ subjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
393
138
  productId: z.ZodString;
394
139
  evaluatedAt: z.ZodString;
395
140
  capabilities: z.ZodArray<z.ZodObject<{
396
141
  key: z.ZodString;
397
- grantIds: z.ZodArray<z.ZodString, "many">;
398
- }, "strict", z.ZodTypeAny, {
399
- key: string;
400
- grantIds: string[];
401
- }, {
402
- key: string;
403
- grantIds: string[];
404
- }>, "many">;
142
+ grantIds: z.ZodArray<z.ZodString>;
143
+ }, z.core.$strict>>;
405
144
  quotas: z.ZodArray<z.ZodObject<{
406
145
  key: z.ZodString;
407
146
  unit: z.ZodString;
408
147
  included: z.ZodNumber;
409
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
410
- grantIds: z.ZodArray<z.ZodString, "many">;
411
- }, "strict", z.ZodTypeAny, {
412
- key: string;
413
- unit: string;
414
- included: number;
415
- combination: "maximum" | "sum" | "exclusive";
416
- grantIds: string[];
417
- }, {
418
- key: string;
419
- unit: string;
420
- included: number;
421
- combination: "maximum" | "sum" | "exclusive";
422
- grantIds: string[];
423
- }>, "many">;
148
+ combination: z.ZodEnum<{
149
+ maximum: "maximum";
150
+ sum: "sum";
151
+ exclusive: "exclusive";
152
+ }>;
153
+ grantIds: z.ZodArray<z.ZodString>;
154
+ }, z.core.$strict>>;
424
155
  conflicts: z.ZodArray<z.ZodObject<{
425
156
  key: z.ZodString;
426
- reason: z.ZodEnum<["combination_mismatch", "unit_mismatch", "exclusive_overlap", "unsafe_total"]>;
427
- grantIds: z.ZodArray<z.ZodString, "many">;
428
- }, "strict", z.ZodTypeAny, {
429
- key: string;
430
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
431
- grantIds: string[];
432
- }, {
433
- key: string;
434
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
435
- grantIds: string[];
436
- }>, "many">;
437
- }, "strict", z.ZodTypeAny, {
438
- schemaVersion: 1;
439
- subjectAccountId: string & z.BRAND<"OxyAccountId">;
440
- capabilities: {
441
- key: string;
442
- grantIds: string[];
443
- }[];
444
- evaluatedAt: string;
445
- productId: string;
446
- quotas: {
447
- key: string;
448
- unit: string;
449
- included: number;
450
- combination: "maximum" | "sum" | "exclusive";
451
- grantIds: string[];
452
- }[];
453
- conflicts: {
454
- key: string;
455
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
456
- grantIds: string[];
457
- }[];
458
- }, {
459
- schemaVersion: 1;
460
- subjectAccountId: string;
461
- capabilities: {
462
- key: string;
463
- grantIds: string[];
464
- }[];
465
- evaluatedAt: string;
466
- productId: string;
467
- quotas: {
468
- key: string;
469
- unit: string;
470
- included: number;
471
- combination: "maximum" | "sum" | "exclusive";
472
- grantIds: string[];
473
- }[];
474
- conflicts: {
475
- key: string;
476
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
477
- grantIds: string[];
478
- }[];
479
- }>;
157
+ reason: z.ZodEnum<{
158
+ combination_mismatch: "combination_mismatch";
159
+ unit_mismatch: "unit_mismatch";
160
+ exclusive_overlap: "exclusive_overlap";
161
+ unsafe_total: "unsafe_total";
162
+ }>;
163
+ grantIds: z.ZodArray<z.ZodString>;
164
+ }, z.core.$strict>>;
165
+ }, z.core.$strict>;
480
166
  export type ProductBenefit = z.infer<typeof productBenefitSchema>;
481
167
  export type ProductOffer = z.infer<typeof productOfferSchema>;
482
168
  export type ProductSubscriptionSource = z.infer<typeof productSubscriptionSourceSchema>;
@@ -486,407 +172,71 @@ export type SubjectProductAccess = z.infer<typeof subjectProductAccessSchema>;
486
172
  export type ProductDefinition = z.infer<typeof productDefinitionSchema>;
487
173
  export type SubjectProductAccessQuery = z.infer<typeof subjectProductAccessQuerySchema>;
488
174
  /** Active grant periods for metering adapters; no financial/provider identity. */
489
- export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject<{
175
+ export declare const subjectProductGrantSnapshotSchema: z.ZodObject<{
490
176
  schemaVersion: z.ZodLiteral<1>;
491
177
  access: z.ZodObject<{
492
178
  schemaVersion: z.ZodLiteral<1>;
493
- subjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
179
+ subjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
494
180
  productId: z.ZodString;
495
181
  evaluatedAt: z.ZodString;
496
182
  capabilities: z.ZodArray<z.ZodObject<{
497
183
  key: z.ZodString;
498
- grantIds: z.ZodArray<z.ZodString, "many">;
499
- }, "strict", z.ZodTypeAny, {
500
- key: string;
501
- grantIds: string[];
502
- }, {
503
- key: string;
504
- grantIds: string[];
505
- }>, "many">;
184
+ grantIds: z.ZodArray<z.ZodString>;
185
+ }, z.core.$strict>>;
506
186
  quotas: z.ZodArray<z.ZodObject<{
507
187
  key: z.ZodString;
508
188
  unit: z.ZodString;
509
189
  included: z.ZodNumber;
510
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
511
- grantIds: z.ZodArray<z.ZodString, "many">;
512
- }, "strict", z.ZodTypeAny, {
513
- key: string;
514
- unit: string;
515
- included: number;
516
- combination: "maximum" | "sum" | "exclusive";
517
- grantIds: string[];
518
- }, {
519
- key: string;
520
- unit: string;
521
- included: number;
522
- combination: "maximum" | "sum" | "exclusive";
523
- grantIds: string[];
524
- }>, "many">;
190
+ combination: z.ZodEnum<{
191
+ maximum: "maximum";
192
+ sum: "sum";
193
+ exclusive: "exclusive";
194
+ }>;
195
+ grantIds: z.ZodArray<z.ZodString>;
196
+ }, z.core.$strict>>;
525
197
  conflicts: z.ZodArray<z.ZodObject<{
526
198
  key: z.ZodString;
527
- reason: z.ZodEnum<["combination_mismatch", "unit_mismatch", "exclusive_overlap", "unsafe_total"]>;
528
- grantIds: z.ZodArray<z.ZodString, "many">;
529
- }, "strict", z.ZodTypeAny, {
530
- key: string;
531
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
532
- grantIds: string[];
533
- }, {
534
- key: string;
535
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
536
- grantIds: string[];
537
- }>, "many">;
538
- }, "strict", z.ZodTypeAny, {
539
- schemaVersion: 1;
540
- subjectAccountId: string & z.BRAND<"OxyAccountId">;
541
- capabilities: {
542
- key: string;
543
- grantIds: string[];
544
- }[];
545
- evaluatedAt: string;
546
- productId: string;
547
- quotas: {
548
- key: string;
549
- unit: string;
550
- included: number;
551
- combination: "maximum" | "sum" | "exclusive";
552
- grantIds: string[];
553
- }[];
554
- conflicts: {
555
- key: string;
556
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
557
- grantIds: string[];
558
- }[];
559
- }, {
560
- schemaVersion: 1;
561
- subjectAccountId: string;
562
- capabilities: {
563
- key: string;
564
- grantIds: string[];
565
- }[];
566
- evaluatedAt: string;
567
- productId: string;
568
- quotas: {
569
- key: string;
570
- unit: string;
571
- included: number;
572
- combination: "maximum" | "sum" | "exclusive";
573
- grantIds: string[];
574
- }[];
575
- conflicts: {
576
- key: string;
577
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
578
- grantIds: string[];
579
- }[];
580
- }>;
199
+ reason: z.ZodEnum<{
200
+ combination_mismatch: "combination_mismatch";
201
+ unit_mismatch: "unit_mismatch";
202
+ exclusive_overlap: "exclusive_overlap";
203
+ unsafe_total: "unsafe_total";
204
+ }>;
205
+ grantIds: z.ZodArray<z.ZodString>;
206
+ }, z.core.$strict>>;
207
+ }, z.core.$strict>;
581
208
  grants: z.ZodArray<z.ZodObject<{
582
209
  schemaVersion: z.ZodLiteral<1>;
583
210
  id: z.ZodString;
584
211
  sourceSegmentId: z.ZodString;
585
- beneficiaryAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
212
+ beneficiaryAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
586
213
  offerId: z.ZodString;
587
214
  offerVersion: z.ZodNumber;
588
- origin: z.ZodEnum<["individual", "bundle"]>;
589
- benefit: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
215
+ origin: z.ZodEnum<{
216
+ bundle: "bundle";
217
+ individual: "individual";
218
+ }>;
219
+ benefit: z.ZodDiscriminatedUnion<[z.ZodObject<{
590
220
  kind: z.ZodLiteral<"capability">;
591
221
  productId: z.ZodString;
592
222
  key: z.ZodString;
593
- }, "strict", z.ZodTypeAny, {
594
- kind: "capability";
595
- key: string;
596
- productId: string;
597
- }, {
598
- kind: "capability";
599
- key: string;
600
- productId: string;
601
- }>, z.ZodObject<{
223
+ }, z.core.$strict>, z.ZodObject<{
602
224
  kind: z.ZodLiteral<"quota">;
603
225
  productId: z.ZodString;
604
226
  key: z.ZodString;
605
227
  unit: z.ZodString;
606
228
  included: z.ZodNumber;
607
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
608
- }, "strict", z.ZodTypeAny, {
609
- kind: "quota";
610
- key: string;
611
- unit: string;
612
- included: number;
613
- productId: string;
614
- combination: "maximum" | "sum" | "exclusive";
615
- }, {
616
- kind: "quota";
617
- key: string;
618
- unit: string;
619
- included: number;
620
- productId: string;
621
- combination: "maximum" | "sum" | "exclusive";
622
- }>]>;
623
- period: z.ZodEffects<z.ZodObject<{
229
+ combination: z.ZodEnum<{
230
+ maximum: "maximum";
231
+ sum: "sum";
232
+ exclusive: "exclusive";
233
+ }>;
234
+ }, z.core.$strict>], "kind">;
235
+ period: z.ZodObject<{
624
236
  start: z.ZodString;
625
237
  end: z.ZodString;
626
- }, "strict", z.ZodTypeAny, {
627
- start: string;
628
- end: string;
629
- }, {
630
- start: string;
631
- end: string;
632
- }>, {
633
- start: string;
634
- end: string;
635
- }, {
636
- start: string;
637
- end: string;
638
- }>;
238
+ }, z.core.$strict>;
639
239
  revokedAt: z.ZodNullable<z.ZodString>;
640
- }, "strict", z.ZodTypeAny, {
641
- id: string;
642
- schemaVersion: 1;
643
- revokedAt: string | null;
644
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
645
- period: {
646
- start: string;
647
- end: string;
648
- };
649
- offerId: string;
650
- offerVersion: number;
651
- origin: "bundle" | "individual";
652
- sourceSegmentId: string;
653
- benefit: {
654
- kind: "capability";
655
- key: string;
656
- productId: string;
657
- } | {
658
- kind: "quota";
659
- key: string;
660
- unit: string;
661
- included: number;
662
- productId: string;
663
- combination: "maximum" | "sum" | "exclusive";
664
- };
665
- }, {
666
- id: string;
667
- schemaVersion: 1;
668
- revokedAt: string | null;
669
- beneficiaryAccountId: string;
670
- period: {
671
- start: string;
672
- end: string;
673
- };
674
- offerId: string;
675
- offerVersion: number;
676
- origin: "bundle" | "individual";
677
- sourceSegmentId: string;
678
- benefit: {
679
- kind: "capability";
680
- key: string;
681
- productId: string;
682
- } | {
683
- kind: "quota";
684
- key: string;
685
- unit: string;
686
- included: number;
687
- productId: string;
688
- combination: "maximum" | "sum" | "exclusive";
689
- };
690
- }>, "many">;
691
- }, "strict", z.ZodTypeAny, {
692
- access: {
693
- schemaVersion: 1;
694
- subjectAccountId: string & z.BRAND<"OxyAccountId">;
695
- capabilities: {
696
- key: string;
697
- grantIds: string[];
698
- }[];
699
- evaluatedAt: string;
700
- productId: string;
701
- quotas: {
702
- key: string;
703
- unit: string;
704
- included: number;
705
- combination: "maximum" | "sum" | "exclusive";
706
- grantIds: string[];
707
- }[];
708
- conflicts: {
709
- key: string;
710
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
711
- grantIds: string[];
712
- }[];
713
- };
714
- schemaVersion: 1;
715
- grants: {
716
- id: string;
717
- schemaVersion: 1;
718
- revokedAt: string | null;
719
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
720
- period: {
721
- start: string;
722
- end: string;
723
- };
724
- offerId: string;
725
- offerVersion: number;
726
- origin: "bundle" | "individual";
727
- sourceSegmentId: string;
728
- benefit: {
729
- kind: "capability";
730
- key: string;
731
- productId: string;
732
- } | {
733
- kind: "quota";
734
- key: string;
735
- unit: string;
736
- included: number;
737
- productId: string;
738
- combination: "maximum" | "sum" | "exclusive";
739
- };
740
- }[];
741
- }, {
742
- access: {
743
- schemaVersion: 1;
744
- subjectAccountId: string;
745
- capabilities: {
746
- key: string;
747
- grantIds: string[];
748
- }[];
749
- evaluatedAt: string;
750
- productId: string;
751
- quotas: {
752
- key: string;
753
- unit: string;
754
- included: number;
755
- combination: "maximum" | "sum" | "exclusive";
756
- grantIds: string[];
757
- }[];
758
- conflicts: {
759
- key: string;
760
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
761
- grantIds: string[];
762
- }[];
763
- };
764
- schemaVersion: 1;
765
- grants: {
766
- id: string;
767
- schemaVersion: 1;
768
- revokedAt: string | null;
769
- beneficiaryAccountId: string;
770
- period: {
771
- start: string;
772
- end: string;
773
- };
774
- offerId: string;
775
- offerVersion: number;
776
- origin: "bundle" | "individual";
777
- sourceSegmentId: string;
778
- benefit: {
779
- kind: "capability";
780
- key: string;
781
- productId: string;
782
- } | {
783
- kind: "quota";
784
- key: string;
785
- unit: string;
786
- included: number;
787
- productId: string;
788
- combination: "maximum" | "sum" | "exclusive";
789
- };
790
- }[];
791
- }>, {
792
- access: {
793
- schemaVersion: 1;
794
- subjectAccountId: string & z.BRAND<"OxyAccountId">;
795
- capabilities: {
796
- key: string;
797
- grantIds: string[];
798
- }[];
799
- evaluatedAt: string;
800
- productId: string;
801
- quotas: {
802
- key: string;
803
- unit: string;
804
- included: number;
805
- combination: "maximum" | "sum" | "exclusive";
806
- grantIds: string[];
807
- }[];
808
- conflicts: {
809
- key: string;
810
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
811
- grantIds: string[];
812
- }[];
813
- };
814
- schemaVersion: 1;
815
- grants: {
816
- id: string;
817
- schemaVersion: 1;
818
- revokedAt: string | null;
819
- beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
820
- period: {
821
- start: string;
822
- end: string;
823
- };
824
- offerId: string;
825
- offerVersion: number;
826
- origin: "bundle" | "individual";
827
- sourceSegmentId: string;
828
- benefit: {
829
- kind: "capability";
830
- key: string;
831
- productId: string;
832
- } | {
833
- kind: "quota";
834
- key: string;
835
- unit: string;
836
- included: number;
837
- productId: string;
838
- combination: "maximum" | "sum" | "exclusive";
839
- };
840
- }[];
841
- }, {
842
- access: {
843
- schemaVersion: 1;
844
- subjectAccountId: string;
845
- capabilities: {
846
- key: string;
847
- grantIds: string[];
848
- }[];
849
- evaluatedAt: string;
850
- productId: string;
851
- quotas: {
852
- key: string;
853
- unit: string;
854
- included: number;
855
- combination: "maximum" | "sum" | "exclusive";
856
- grantIds: string[];
857
- }[];
858
- conflicts: {
859
- key: string;
860
- reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
861
- grantIds: string[];
862
- }[];
863
- };
864
- schemaVersion: 1;
865
- grants: {
866
- id: string;
867
- schemaVersion: 1;
868
- revokedAt: string | null;
869
- beneficiaryAccountId: string;
870
- period: {
871
- start: string;
872
- end: string;
873
- };
874
- offerId: string;
875
- offerVersion: number;
876
- origin: "bundle" | "individual";
877
- sourceSegmentId: string;
878
- benefit: {
879
- kind: "capability";
880
- key: string;
881
- productId: string;
882
- } | {
883
- kind: "quota";
884
- key: string;
885
- unit: string;
886
- included: number;
887
- productId: string;
888
- combination: "maximum" | "sum" | "exclusive";
889
- };
890
- }[];
891
- }>;
240
+ }, z.core.$strict>>;
241
+ }, z.core.$strict>;
892
242
  export type SubjectProductGrantSnapshot = z.infer<typeof subjectProductGrantSnapshotSchema>;