@@ -101,6 +101,10 @@ export namespace ResourceClaimClaimResponse {
101101 capacity : number ;
102102
103103 claimed : number ;
104+
105+ resourceId : string ;
106+
107+ resourceSlug : string ;
104108 }
105109}
106110
@@ -162,14 +166,65 @@ export namespace ResourceClaimReleaseResponse {
162166 capacity : number ;
163167
164168 claimed : number ;
169+
170+ resourceId : string ;
171+
172+ resourceSlug : string ;
165173 }
166174}
167175
168176export interface ResourceClaimUsageResponse {
177+ claims : Array < ResourceClaimUsageResponse . Claim > ;
178+
169179 usage : Array < ResourceClaimUsageResponse . Usage > ;
170180}
171181
172182export namespace ResourceClaimUsageResponse {
183+ export interface Claim {
184+ id : string ;
185+
186+ /**
187+ * Epoch milliseconds.
188+ */
189+ claimedAt : number ;
190+
191+ /**
192+ * Epoch milliseconds.
193+ */
194+ createdAt : number ;
195+
196+ externalId : string | null ;
197+
198+ livemode : boolean ;
199+
200+ organizationId : string ;
201+
202+ pricingModelId : string ;
203+
204+ releaseReason : string | null ;
205+
206+ resourceId : string ;
207+
208+ subscriptionId : string ;
209+
210+ subscriptionItemFeatureId : string ;
211+
212+ /**
213+ * Epoch milliseconds.
214+ */
215+ updatedAt : number ;
216+
217+ /**
218+ * JSON object
219+ */
220+ metadata ?: { [ key : string ] : string | number | boolean } | null ;
221+
222+ /**
223+ * Epoch milliseconds.
224+ */
225+ releasedAt ?: number | null ;
226+ }
227+
173228 export interface Usage {
174229 available : number ;
175230
@@ -190,12 +245,13 @@ export interface ResourceClaimClaimParams {
190245 resourceSlug : string ;
191246
192247 /**
193- * Create a single pet-style claim with this external identifier.
248+ * Create a single named claim with this external identifier (idempotent) .
194249 */
195250 externalId ?: string ;
196251
197252 /**
198- * Create multiple pet-style claims with these external identifiers.
253+ * Create multiple named claims with these external identifiers (idempotent per
254+ * ID).
199255 */
200256 externalIds ?: Array < string > ;
201257
@@ -205,8 +261,7 @@ export interface ResourceClaimClaimParams {
205261 metadata ?: { [ key : string ] : string | number | boolean } ;
206262
207263 /**
208- * Create N anonymous (cattle-style) claims. Each claim will have externalId =
209- * null.
264+ * Create N anonymous claims without external identifiers.
210265 */
211266 quantity ?: number ;
212267}
@@ -218,24 +273,24 @@ export interface ResourceClaimReleaseParams {
218273 resourceSlug : string ;
219274
220275 /**
221- * Release specific claims by their claim IDs (works for both cattle and pet
222- * claims)
276+ * Release specific claims by their claim IDs (works for both anonymous and named
277+ * claims).
223278 */
224279 claimIds ?: Array < string > ;
225280
226281 /**
227- * Release a specific pet-style claim by its externalId
282+ * Release a specific named claim by its external identifier.
228283 */
229284 externalId ?: string ;
230285
231286 /**
232- * Release multiple pet-style claims by their externalIds
287+ * Release multiple named claims by their external identifiers.
233288 */
234289 externalIds ?: Array < string > ;
235290
236291 /**
237- * Release N anonymous (cattle-style) claims . Only releases claims where externalId
238- * IS NULL. Will not release pet-style claims with externalIds .
292+ * Release N anonymous claims (FIFO order) . Only releases claims without external
293+ * identifiers .
239294 */
240295 quantity ?: number ;
241296}
0 commit comments