@inferencesh/sdk 0.18.0 → 0.19.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.
- package/README.md +0 -1
- package/dist/types.d.ts +5 -20
- package/dist/types.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -557,7 +557,6 @@ Runs a task on inference.sh.
|
|
|
557
557
|
| `params.input` | `object` | Yes | Input parameters for the app |
|
|
558
558
|
| `params.setup` | `object` | No | Setup parameters (affects worker warmth/scheduling) |
|
|
559
559
|
| `params.infra` | `string` | No | Infrastructure: `'cloud'` or `'private'` |
|
|
560
|
-
| `params.variant` | `string` | No | App variant to use |
|
|
561
560
|
| `params.session` | `string` | No | Session ID or `'new'` to start a new session |
|
|
562
561
|
| `params.session_timeout` | `number` | No | Session timeout in seconds (1-3600, only with `session: 'new'`) |
|
|
563
562
|
|
package/dist/types.d.ts
CHANGED
|
@@ -461,9 +461,6 @@ export interface AppVersionInput {
|
|
|
461
461
|
[key: string]: AppFunction;
|
|
462
462
|
};
|
|
463
463
|
default_function?: string;
|
|
464
|
-
variants?: {
|
|
465
|
-
[key: string]: AppVariant;
|
|
466
|
-
};
|
|
467
464
|
env?: {
|
|
468
465
|
[key: string]: string;
|
|
469
466
|
};
|
|
@@ -1170,18 +1167,6 @@ export interface AppResources {
|
|
|
1170
1167
|
gpu: AppGPUResource;
|
|
1171
1168
|
ram: number;
|
|
1172
1169
|
}
|
|
1173
|
-
/**
|
|
1174
|
-
* AppVariant is a named resource/env configuration variant.
|
|
1175
|
-
*/
|
|
1176
|
-
export interface AppVariant {
|
|
1177
|
-
name: string;
|
|
1178
|
-
order: number;
|
|
1179
|
-
resources: AppResources;
|
|
1180
|
-
env: {
|
|
1181
|
-
[key: string]: string;
|
|
1182
|
-
};
|
|
1183
|
-
python: string;
|
|
1184
|
-
}
|
|
1185
1170
|
/**
|
|
1186
1171
|
* SecretRequirement defines a secret that an app requires to run.
|
|
1187
1172
|
*/
|
|
@@ -1258,9 +1243,6 @@ export interface AppVersionDTO extends BaseModelDTO {
|
|
|
1258
1243
|
[key: string]: AppFunction;
|
|
1259
1244
|
};
|
|
1260
1245
|
default_function?: string;
|
|
1261
|
-
variants: {
|
|
1262
|
-
[key: string]: AppVariant;
|
|
1263
|
-
};
|
|
1264
1246
|
env: {
|
|
1265
1247
|
[key: string]: string;
|
|
1266
1248
|
};
|
|
@@ -4053,7 +4035,6 @@ export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
4053
4035
|
app?: AppDTO;
|
|
4054
4036
|
app_version_id: string;
|
|
4055
4037
|
app_version?: AppVersionDTO;
|
|
4056
|
-
app_variant: string;
|
|
4057
4038
|
function: string;
|
|
4058
4039
|
infra: Infra;
|
|
4059
4040
|
workers: string[];
|
|
@@ -5329,7 +5310,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
|
5329
5310
|
* TODO: retire once CLIs older than the session-token release are gone.
|
|
5330
5311
|
*/
|
|
5331
5312
|
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
5332
|
-
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
5313
|
+
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:marketplace_publish" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
5333
5314
|
/**
|
|
5334
5315
|
* Capacity limits — scale with tier
|
|
5335
5316
|
*/
|
|
@@ -5352,6 +5333,10 @@ export declare const ResourceTaskExecutions: EntitlementResource;
|
|
|
5352
5333
|
*/
|
|
5353
5334
|
export declare const ResourceFeatureBYOK: EntitlementResource;
|
|
5354
5335
|
export declare const ResourceFeatureSeedance: EntitlementResource;
|
|
5336
|
+
/**
|
|
5337
|
+
* Granted per team: the marketplace takes submissions by invitation.
|
|
5338
|
+
*/
|
|
5339
|
+
export declare const ResourceFeatureMarketplacePublish: EntitlementResource;
|
|
5355
5340
|
/**
|
|
5356
5341
|
* Legacy feature gates — kept for DB compatibility, no longer gated
|
|
5357
5342
|
*/
|
package/dist/types.js
CHANGED
|
@@ -907,6 +907,10 @@ export const ResourceTaskExecutions = "task_executions";
|
|
|
907
907
|
*/
|
|
908
908
|
export const ResourceFeatureBYOK = "feature:byok";
|
|
909
909
|
export const ResourceFeatureSeedance = "feature:seedance";
|
|
910
|
+
/**
|
|
911
|
+
* Granted per team: the marketplace takes submissions by invitation.
|
|
912
|
+
*/
|
|
913
|
+
export const ResourceFeatureMarketplacePublish = "feature:marketplace_publish";
|
|
910
914
|
/**
|
|
911
915
|
* Legacy feature gates — kept for DB compatibility, no longer gated
|
|
912
916
|
*/
|