@stacknet/rackutils 0.3.0 → 0.3.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.
- package/dist/components/index.cjs +7 -6
- package/dist/components/index.d.cts +18 -1
- package/dist/components/index.d.ts +18 -1
- package/dist/components/index.js +7 -6
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +42 -5
- package/dist/hooks/index.d.ts +42 -5
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -6
- package/dist/types/index.d.cts +21 -1
- package/dist/types/index.d.ts +21 -1
- package/package.json +1 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -230,6 +230,26 @@ interface TrendingRepo extends RepoInfo {
|
|
|
230
230
|
usage: number;
|
|
231
231
|
score: number;
|
|
232
232
|
}
|
|
233
|
+
interface PaginationInfo {
|
|
234
|
+
/** Total items across all pages */
|
|
235
|
+
total: number;
|
|
236
|
+
/** Items per page */
|
|
237
|
+
limit: number;
|
|
238
|
+
/** Whether more items exist beyond this page */
|
|
239
|
+
has_more: boolean;
|
|
240
|
+
/** Opaque cursor for fetching the next page (null if no more) */
|
|
241
|
+
next_cursor: string | null;
|
|
242
|
+
}
|
|
243
|
+
interface PaginatedResult<T> {
|
|
244
|
+
items: T[];
|
|
245
|
+
pagination: PaginationInfo;
|
|
246
|
+
}
|
|
247
|
+
interface PaginationParams {
|
|
248
|
+
/** Max items to return (default 50, max 100) */
|
|
249
|
+
limit?: number;
|
|
250
|
+
/** Opaque cursor from a previous response's next_cursor */
|
|
251
|
+
cursor?: string;
|
|
252
|
+
}
|
|
233
253
|
interface CostEstimate {
|
|
234
254
|
type: 'skill' | 'tensor';
|
|
235
255
|
totalBytes: number;
|
|
@@ -239,4 +259,4 @@ interface CostEstimate {
|
|
|
239
259
|
registrationCostTokens: number;
|
|
240
260
|
}
|
|
241
261
|
|
|
242
|
-
export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
|
|
262
|
+
export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PaginatedResult, PaginationInfo, PaginationParams, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -230,6 +230,26 @@ interface TrendingRepo extends RepoInfo {
|
|
|
230
230
|
usage: number;
|
|
231
231
|
score: number;
|
|
232
232
|
}
|
|
233
|
+
interface PaginationInfo {
|
|
234
|
+
/** Total items across all pages */
|
|
235
|
+
total: number;
|
|
236
|
+
/** Items per page */
|
|
237
|
+
limit: number;
|
|
238
|
+
/** Whether more items exist beyond this page */
|
|
239
|
+
has_more: boolean;
|
|
240
|
+
/** Opaque cursor for fetching the next page (null if no more) */
|
|
241
|
+
next_cursor: string | null;
|
|
242
|
+
}
|
|
243
|
+
interface PaginatedResult<T> {
|
|
244
|
+
items: T[];
|
|
245
|
+
pagination: PaginationInfo;
|
|
246
|
+
}
|
|
247
|
+
interface PaginationParams {
|
|
248
|
+
/** Max items to return (default 50, max 100) */
|
|
249
|
+
limit?: number;
|
|
250
|
+
/** Opaque cursor from a previous response's next_cursor */
|
|
251
|
+
cursor?: string;
|
|
252
|
+
}
|
|
233
253
|
interface CostEstimate {
|
|
234
254
|
type: 'skill' | 'tensor';
|
|
235
255
|
totalBytes: number;
|
|
@@ -239,4 +259,4 @@ interface CostEstimate {
|
|
|
239
259
|
registrationCostTokens: number;
|
|
240
260
|
}
|
|
241
261
|
|
|
242
|
-
export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
|
|
262
|
+
export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PaginatedResult, PaginationInfo, PaginationParams, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
|