@disconnectme/lightbox-sdk 0.1.0 → 0.1.1

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/index.cjs CHANGED
@@ -100,7 +100,7 @@ var LightboxClient = class {
100
100
  */
101
101
  apps = {
102
102
  /**
103
- * Search for iOS apps by framework, permission, genre, developer, name, or bundle.
103
+ * Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
104
104
  * Requires at least one filter parameter.
105
105
  */
106
106
  search: (params) => {
@@ -109,7 +109,7 @@ var LightboxClient = class {
109
109
  /**
110
110
  * Get detailed profile for a specific app bundle.
111
111
  * Use `version` param to get a specific version, defaults to latest.
112
- * Use `include` to specify which fields to include (frameworks, permissions, privacy, urls, files, all).
112
+ * Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
113
113
  */
114
114
  get: (bundle, params) => {
115
115
  const queryParams = {};
@@ -161,15 +161,15 @@ var LightboxClient = class {
161
161
  return this.request("/v1/apps/ios/metadata/frameworks", params);
162
162
  },
163
163
  /**
164
- * Get available permissions (iOS entitlements) with app counts.
164
+ * Get available iOS entitlements with app counts.
165
165
  * Supports pagination and search.
166
- * @param params.search - Filter by permission key (case-insensitive contains)
166
+ * @param params.search - Filter by entitlement key (case-insensitive contains)
167
167
  * @param params.sort - Sort by 'popularity' (default) or 'name'
168
168
  * @param params.limit - Results per page (default 100, max 1000)
169
169
  * @param params.offset - Pagination offset
170
170
  */
171
- permissions: (params) => {
172
- return this.request("/v1/apps/ios/metadata/permissions", params);
171
+ entitlements: (params) => {
172
+ return this.request("/v1/apps/ios/metadata/entitlements", params);
173
173
  }
174
174
  }
175
175
  };
package/dist/index.d.cts CHANGED
@@ -77,7 +77,10 @@ interface AppSummary {
77
77
  rating: number | null;
78
78
  app_store_url: string | null;
79
79
  frameworks: string[];
80
- permissions: string[];
80
+ entitlements: string[];
81
+ icon: string | null;
82
+ size: number | null;
83
+ min_os_version: string | null;
81
84
  created_at: string;
82
85
  }
83
86
  interface AppProfile {
@@ -90,9 +93,14 @@ interface AppProfile {
90
93
  review_count: number | null;
91
94
  rating: number | null;
92
95
  app_store_url: string | null;
96
+ icon: string | null;
97
+ size: number | null;
98
+ min_os_version: string | null;
99
+ screenshots: string[];
100
+ usage_descriptions: Record<string, string>;
93
101
  created_at: string;
94
102
  frameworks?: string[];
95
- permissions?: string[];
103
+ entitlements?: string[];
96
104
  privacy?: unknown[];
97
105
  urls?: unknown[];
98
106
  files?: unknown[];
@@ -159,7 +167,8 @@ interface FileSearchParams extends PaginationParams {
159
167
  }
160
168
  interface AppSearchParams extends PaginationParams {
161
169
  framework?: string;
162
- permission?: string;
170
+ entitlement?: string;
171
+ usage_key?: string;
163
172
  genre?: string;
164
173
  developer?: string;
165
174
  name?: string;
@@ -185,7 +194,7 @@ interface FrameworkItem {
185
194
  name: string;
186
195
  app_count: number;
187
196
  }
188
- interface PermissionItem {
197
+ interface EntitlementItem {
189
198
  key: string;
190
199
  app_count: number;
191
200
  }
@@ -199,10 +208,10 @@ interface FrameworkListData {
199
208
  total: number;
200
209
  frameworks: FrameworkItem[];
201
210
  }
202
- interface PermissionListData {
203
- type: "permission_list";
211
+ interface EntitlementListData {
212
+ type: "entitlement_list";
204
213
  total: number;
205
- permissions: PermissionItem[];
214
+ entitlements: EntitlementItem[];
206
215
  }
207
216
  interface MetadataSearchParams extends PaginationParams {
208
217
  search?: string;
@@ -216,7 +225,7 @@ type AppVersionsResponse = APIResponse<AppVersionsData>;
216
225
  type AppFilesResponse = APIResponse<AppFilesData>;
217
226
  type GenreListResponse = APIResponse<GenreListData>;
218
227
  type FrameworkListResponse = APIResponse<FrameworkListData>;
219
- type PermissionListResponse = APIResponse<PermissionListData>;
228
+ type EntitlementListResponse = APIResponse<EntitlementListData>;
220
229
 
221
230
  interface LightboxClientConfig {
222
231
  apiKey: string;
@@ -255,14 +264,14 @@ declare class LightboxClient {
255
264
  */
256
265
  apps: {
257
266
  /**
258
- * Search for iOS apps by framework, permission, genre, developer, name, or bundle.
267
+ * Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
259
268
  * Requires at least one filter parameter.
260
269
  */
261
270
  search: (params: AppSearchParams) => Promise<AppSearchResponse>;
262
271
  /**
263
272
  * Get detailed profile for a specific app bundle.
264
273
  * Use `version` param to get a specific version, defaults to latest.
265
- * Use `include` to specify which fields to include (frameworks, permissions, privacy, urls, files, all).
274
+ * Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
266
275
  */
267
276
  get: (bundle: string, params?: AppGetParams) => Promise<AppProfileResponse>;
268
277
  /**
@@ -292,16 +301,16 @@ declare class LightboxClient {
292
301
  */
293
302
  frameworks: (params?: MetadataSearchParams) => Promise<FrameworkListResponse>;
294
303
  /**
295
- * Get available permissions (iOS entitlements) with app counts.
304
+ * Get available iOS entitlements with app counts.
296
305
  * Supports pagination and search.
297
- * @param params.search - Filter by permission key (case-insensitive contains)
306
+ * @param params.search - Filter by entitlement key (case-insensitive contains)
298
307
  * @param params.sort - Sort by 'popularity' (default) or 'name'
299
308
  * @param params.limit - Results per page (default 100, max 1000)
300
309
  * @param params.offset - Pagination offset
301
310
  */
302
- permissions: (params?: MetadataSearchParams) => Promise<PermissionListResponse>;
311
+ entitlements: (params?: MetadataSearchParams) => Promise<EntitlementListResponse>;
303
312
  };
304
313
  };
305
314
  }
306
315
 
307
- export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type PermissionItem, type PermissionListData, type PermissionListResponse };
316
+ export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams };
package/dist/index.d.ts CHANGED
@@ -77,7 +77,10 @@ interface AppSummary {
77
77
  rating: number | null;
78
78
  app_store_url: string | null;
79
79
  frameworks: string[];
80
- permissions: string[];
80
+ entitlements: string[];
81
+ icon: string | null;
82
+ size: number | null;
83
+ min_os_version: string | null;
81
84
  created_at: string;
82
85
  }
83
86
  interface AppProfile {
@@ -90,9 +93,14 @@ interface AppProfile {
90
93
  review_count: number | null;
91
94
  rating: number | null;
92
95
  app_store_url: string | null;
96
+ icon: string | null;
97
+ size: number | null;
98
+ min_os_version: string | null;
99
+ screenshots: string[];
100
+ usage_descriptions: Record<string, string>;
93
101
  created_at: string;
94
102
  frameworks?: string[];
95
- permissions?: string[];
103
+ entitlements?: string[];
96
104
  privacy?: unknown[];
97
105
  urls?: unknown[];
98
106
  files?: unknown[];
@@ -159,7 +167,8 @@ interface FileSearchParams extends PaginationParams {
159
167
  }
160
168
  interface AppSearchParams extends PaginationParams {
161
169
  framework?: string;
162
- permission?: string;
170
+ entitlement?: string;
171
+ usage_key?: string;
163
172
  genre?: string;
164
173
  developer?: string;
165
174
  name?: string;
@@ -185,7 +194,7 @@ interface FrameworkItem {
185
194
  name: string;
186
195
  app_count: number;
187
196
  }
188
- interface PermissionItem {
197
+ interface EntitlementItem {
189
198
  key: string;
190
199
  app_count: number;
191
200
  }
@@ -199,10 +208,10 @@ interface FrameworkListData {
199
208
  total: number;
200
209
  frameworks: FrameworkItem[];
201
210
  }
202
- interface PermissionListData {
203
- type: "permission_list";
211
+ interface EntitlementListData {
212
+ type: "entitlement_list";
204
213
  total: number;
205
- permissions: PermissionItem[];
214
+ entitlements: EntitlementItem[];
206
215
  }
207
216
  interface MetadataSearchParams extends PaginationParams {
208
217
  search?: string;
@@ -216,7 +225,7 @@ type AppVersionsResponse = APIResponse<AppVersionsData>;
216
225
  type AppFilesResponse = APIResponse<AppFilesData>;
217
226
  type GenreListResponse = APIResponse<GenreListData>;
218
227
  type FrameworkListResponse = APIResponse<FrameworkListData>;
219
- type PermissionListResponse = APIResponse<PermissionListData>;
228
+ type EntitlementListResponse = APIResponse<EntitlementListData>;
220
229
 
221
230
  interface LightboxClientConfig {
222
231
  apiKey: string;
@@ -255,14 +264,14 @@ declare class LightboxClient {
255
264
  */
256
265
  apps: {
257
266
  /**
258
- * Search for iOS apps by framework, permission, genre, developer, name, or bundle.
267
+ * Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
259
268
  * Requires at least one filter parameter.
260
269
  */
261
270
  search: (params: AppSearchParams) => Promise<AppSearchResponse>;
262
271
  /**
263
272
  * Get detailed profile for a specific app bundle.
264
273
  * Use `version` param to get a specific version, defaults to latest.
265
- * Use `include` to specify which fields to include (frameworks, permissions, privacy, urls, files, all).
274
+ * Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
266
275
  */
267
276
  get: (bundle: string, params?: AppGetParams) => Promise<AppProfileResponse>;
268
277
  /**
@@ -292,16 +301,16 @@ declare class LightboxClient {
292
301
  */
293
302
  frameworks: (params?: MetadataSearchParams) => Promise<FrameworkListResponse>;
294
303
  /**
295
- * Get available permissions (iOS entitlements) with app counts.
304
+ * Get available iOS entitlements with app counts.
296
305
  * Supports pagination and search.
297
- * @param params.search - Filter by permission key (case-insensitive contains)
306
+ * @param params.search - Filter by entitlement key (case-insensitive contains)
298
307
  * @param params.sort - Sort by 'popularity' (default) or 'name'
299
308
  * @param params.limit - Results per page (default 100, max 1000)
300
309
  * @param params.offset - Pagination offset
301
310
  */
302
- permissions: (params?: MetadataSearchParams) => Promise<PermissionListResponse>;
311
+ entitlements: (params?: MetadataSearchParams) => Promise<EntitlementListResponse>;
303
312
  };
304
313
  };
305
314
  }
306
315
 
307
- export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams, type PermissionItem, type PermissionListData, type PermissionListResponse };
316
+ export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams };
package/dist/index.js CHANGED
@@ -73,7 +73,7 @@ var LightboxClient = class {
73
73
  */
74
74
  apps = {
75
75
  /**
76
- * Search for iOS apps by framework, permission, genre, developer, name, or bundle.
76
+ * Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
77
77
  * Requires at least one filter parameter.
78
78
  */
79
79
  search: (params) => {
@@ -82,7 +82,7 @@ var LightboxClient = class {
82
82
  /**
83
83
  * Get detailed profile for a specific app bundle.
84
84
  * Use `version` param to get a specific version, defaults to latest.
85
- * Use `include` to specify which fields to include (frameworks, permissions, privacy, urls, files, all).
85
+ * Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
86
86
  */
87
87
  get: (bundle, params) => {
88
88
  const queryParams = {};
@@ -134,15 +134,15 @@ var LightboxClient = class {
134
134
  return this.request("/v1/apps/ios/metadata/frameworks", params);
135
135
  },
136
136
  /**
137
- * Get available permissions (iOS entitlements) with app counts.
137
+ * Get available iOS entitlements with app counts.
138
138
  * Supports pagination and search.
139
- * @param params.search - Filter by permission key (case-insensitive contains)
139
+ * @param params.search - Filter by entitlement key (case-insensitive contains)
140
140
  * @param params.sort - Sort by 'popularity' (default) or 'name'
141
141
  * @param params.limit - Results per page (default 100, max 1000)
142
142
  * @param params.offset - Pagination offset
143
143
  */
144
- permissions: (params) => {
145
- return this.request("/v1/apps/ios/metadata/permissions", params);
144
+ entitlements: (params) => {
145
+ return this.request("/v1/apps/ios/metadata/entitlements", params);
146
146
  }
147
147
  }
148
148
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@disconnectme/lightbox-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript SDK for the Lightbox Data API by Disconnect",
5
5
  "type": "module",
6
6
  "engines": {