@siglume/api-sdk 0.10.6 → 0.10.8
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 +99 -91
- package/dist/bin/siglume.cjs +336 -10
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +336 -10
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +336 -10
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +82 -0
- package/dist/cli/index.d.ts +82 -0
- package/dist/cli/index.js +336 -10
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +243 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -1
- package/dist/index.d.ts +103 -1
- package/dist/index.js +243 -1
- package/dist/index.js.map +1 -1
- package/package.json +58 -58
package/dist/cli/index.d.cts
CHANGED
|
@@ -144,6 +144,27 @@ declare const ListingCurrency: {
|
|
|
144
144
|
readonly JPY: "JPY";
|
|
145
145
|
};
|
|
146
146
|
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
147
|
+
declare const PersistenceMode: {
|
|
148
|
+
readonly NONE: "none";
|
|
149
|
+
readonly LOCAL: "local";
|
|
150
|
+
readonly PLATFORM: "platform";
|
|
151
|
+
readonly DEVELOPER_SERVER: "developer_server";
|
|
152
|
+
};
|
|
153
|
+
type PersistenceMode = (typeof PersistenceMode)[keyof typeof PersistenceMode];
|
|
154
|
+
interface CapabilityPersistencePolicy {
|
|
155
|
+
mode: PersistenceMode;
|
|
156
|
+
schema_version?: string;
|
|
157
|
+
scope?: string;
|
|
158
|
+
restore_required?: boolean;
|
|
159
|
+
max_bytes?: number;
|
|
160
|
+
endpoint?: string | null;
|
|
161
|
+
description?: string;
|
|
162
|
+
/**
|
|
163
|
+
* JSON Schema for persisted game save data.
|
|
164
|
+
* Required when store_vertical is "game" and mode is not "none".
|
|
165
|
+
*/
|
|
166
|
+
save_data_schema?: Record<string, unknown>;
|
|
167
|
+
}
|
|
147
168
|
interface AppManifest {
|
|
148
169
|
capability_key: string;
|
|
149
170
|
version?: string;
|
|
@@ -158,6 +179,8 @@ interface AppManifest {
|
|
|
158
179
|
price_model?: PriceModel;
|
|
159
180
|
price_value_minor?: number;
|
|
160
181
|
currency: ListingCurrency;
|
|
182
|
+
allow_free_trial: boolean;
|
|
183
|
+
free_trial_duration_days?: number;
|
|
161
184
|
jurisdiction: string;
|
|
162
185
|
applicable_regulations?: string[];
|
|
163
186
|
data_residency?: string;
|
|
@@ -167,10 +190,14 @@ interface AppManifest {
|
|
|
167
190
|
support_contact?: string;
|
|
168
191
|
seller_homepage_url?: string;
|
|
169
192
|
seller_social_url?: string;
|
|
193
|
+
publisher_type?: "user" | "company";
|
|
194
|
+
company_id?: string;
|
|
195
|
+
publisher_company_id?: string;
|
|
170
196
|
store_vertical: StoreVertical;
|
|
171
197
|
compatibility_tags?: string[];
|
|
172
198
|
example_prompts?: string[];
|
|
173
199
|
latency_tier?: string;
|
|
200
|
+
persistence?: CapabilityPersistencePolicy;
|
|
174
201
|
}
|
|
175
202
|
declare const ToolManualPermissionClass: {
|
|
176
203
|
readonly READ_ONLY: "read_only";
|
|
@@ -256,6 +283,8 @@ interface AppListingRecord {
|
|
|
256
283
|
price_model?: string | null;
|
|
257
284
|
price_value_minor: number;
|
|
258
285
|
currency: string;
|
|
286
|
+
allow_free_trial: boolean;
|
|
287
|
+
free_trial_duration_days: number;
|
|
259
288
|
short_description?: string | null;
|
|
260
289
|
description?: string | null;
|
|
261
290
|
docs_url?: string | null;
|
|
@@ -263,13 +292,53 @@ interface AppListingRecord {
|
|
|
263
292
|
seller_display_name?: string | null;
|
|
264
293
|
seller_homepage_url?: string | null;
|
|
265
294
|
seller_social_url?: string | null;
|
|
295
|
+
publisher_type?: string | null;
|
|
296
|
+
publisher_company_id?: string | null;
|
|
297
|
+
company_id?: string | null;
|
|
298
|
+
company_name?: string | null;
|
|
299
|
+
company_publish_status?: string | null;
|
|
300
|
+
company_terms_version?: string | null;
|
|
266
301
|
review_status?: string | null;
|
|
267
302
|
review_note?: string | null;
|
|
268
303
|
submission_blockers: string[];
|
|
304
|
+
persistence: Record<string, unknown>;
|
|
269
305
|
created_at?: string | null;
|
|
270
306
|
updated_at?: string | null;
|
|
271
307
|
raw: Record<string, unknown>;
|
|
272
308
|
}
|
|
309
|
+
interface CompanyPublisherRecord {
|
|
310
|
+
company_id: string;
|
|
311
|
+
name: string;
|
|
312
|
+
status: string;
|
|
313
|
+
description?: string | null;
|
|
314
|
+
is_founder: boolean;
|
|
315
|
+
membership_role?: string | null;
|
|
316
|
+
membership_status?: string | null;
|
|
317
|
+
can_publish: boolean;
|
|
318
|
+
can_approve: boolean;
|
|
319
|
+
approval_required: boolean;
|
|
320
|
+
paid_listing_allowed: boolean;
|
|
321
|
+
disabled_reasons: string[];
|
|
322
|
+
company_terms_version?: string | null;
|
|
323
|
+
active_listing_count: number;
|
|
324
|
+
pending_approval_count: number;
|
|
325
|
+
settlement_wallet_ready: boolean;
|
|
326
|
+
settlement_wallets: Array<Record<string, unknown>>;
|
|
327
|
+
raw: Record<string, unknown>;
|
|
328
|
+
}
|
|
329
|
+
interface CapabilitySaveStateRecord {
|
|
330
|
+
capability_key: string;
|
|
331
|
+
save_key: string;
|
|
332
|
+
schema_version: string;
|
|
333
|
+
revision: number;
|
|
334
|
+
payload: Record<string, unknown>;
|
|
335
|
+
metadata: Record<string, unknown>;
|
|
336
|
+
checksum?: string | null;
|
|
337
|
+
updated_at?: string | null;
|
|
338
|
+
created_at?: string | null;
|
|
339
|
+
exists: boolean;
|
|
340
|
+
raw: Record<string, unknown>;
|
|
341
|
+
}
|
|
273
342
|
interface ConnectedAccountOAuthStart {
|
|
274
343
|
authorize_url: string;
|
|
275
344
|
state: string;
|
|
@@ -1359,6 +1428,19 @@ interface SiglumeClientShape {
|
|
|
1359
1428
|
cursor?: string;
|
|
1360
1429
|
}): Promise<CursorPage<AppListingRecord>>;
|
|
1361
1430
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
1431
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
1432
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
1433
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
1434
|
+
decision: "approve" | "reject";
|
|
1435
|
+
reason?: string;
|
|
1436
|
+
}): Promise<AppListingRecord>;
|
|
1437
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1438
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
1439
|
+
schema_version?: string;
|
|
1440
|
+
expected_revision?: number | null;
|
|
1441
|
+
metadata?: Record<string, unknown>;
|
|
1442
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
1443
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1362
1444
|
list_capabilities(options?: {
|
|
1363
1445
|
mine?: boolean;
|
|
1364
1446
|
status?: string;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -144,6 +144,27 @@ declare const ListingCurrency: {
|
|
|
144
144
|
readonly JPY: "JPY";
|
|
145
145
|
};
|
|
146
146
|
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
147
|
+
declare const PersistenceMode: {
|
|
148
|
+
readonly NONE: "none";
|
|
149
|
+
readonly LOCAL: "local";
|
|
150
|
+
readonly PLATFORM: "platform";
|
|
151
|
+
readonly DEVELOPER_SERVER: "developer_server";
|
|
152
|
+
};
|
|
153
|
+
type PersistenceMode = (typeof PersistenceMode)[keyof typeof PersistenceMode];
|
|
154
|
+
interface CapabilityPersistencePolicy {
|
|
155
|
+
mode: PersistenceMode;
|
|
156
|
+
schema_version?: string;
|
|
157
|
+
scope?: string;
|
|
158
|
+
restore_required?: boolean;
|
|
159
|
+
max_bytes?: number;
|
|
160
|
+
endpoint?: string | null;
|
|
161
|
+
description?: string;
|
|
162
|
+
/**
|
|
163
|
+
* JSON Schema for persisted game save data.
|
|
164
|
+
* Required when store_vertical is "game" and mode is not "none".
|
|
165
|
+
*/
|
|
166
|
+
save_data_schema?: Record<string, unknown>;
|
|
167
|
+
}
|
|
147
168
|
interface AppManifest {
|
|
148
169
|
capability_key: string;
|
|
149
170
|
version?: string;
|
|
@@ -158,6 +179,8 @@ interface AppManifest {
|
|
|
158
179
|
price_model?: PriceModel;
|
|
159
180
|
price_value_minor?: number;
|
|
160
181
|
currency: ListingCurrency;
|
|
182
|
+
allow_free_trial: boolean;
|
|
183
|
+
free_trial_duration_days?: number;
|
|
161
184
|
jurisdiction: string;
|
|
162
185
|
applicable_regulations?: string[];
|
|
163
186
|
data_residency?: string;
|
|
@@ -167,10 +190,14 @@ interface AppManifest {
|
|
|
167
190
|
support_contact?: string;
|
|
168
191
|
seller_homepage_url?: string;
|
|
169
192
|
seller_social_url?: string;
|
|
193
|
+
publisher_type?: "user" | "company";
|
|
194
|
+
company_id?: string;
|
|
195
|
+
publisher_company_id?: string;
|
|
170
196
|
store_vertical: StoreVertical;
|
|
171
197
|
compatibility_tags?: string[];
|
|
172
198
|
example_prompts?: string[];
|
|
173
199
|
latency_tier?: string;
|
|
200
|
+
persistence?: CapabilityPersistencePolicy;
|
|
174
201
|
}
|
|
175
202
|
declare const ToolManualPermissionClass: {
|
|
176
203
|
readonly READ_ONLY: "read_only";
|
|
@@ -256,6 +283,8 @@ interface AppListingRecord {
|
|
|
256
283
|
price_model?: string | null;
|
|
257
284
|
price_value_minor: number;
|
|
258
285
|
currency: string;
|
|
286
|
+
allow_free_trial: boolean;
|
|
287
|
+
free_trial_duration_days: number;
|
|
259
288
|
short_description?: string | null;
|
|
260
289
|
description?: string | null;
|
|
261
290
|
docs_url?: string | null;
|
|
@@ -263,13 +292,53 @@ interface AppListingRecord {
|
|
|
263
292
|
seller_display_name?: string | null;
|
|
264
293
|
seller_homepage_url?: string | null;
|
|
265
294
|
seller_social_url?: string | null;
|
|
295
|
+
publisher_type?: string | null;
|
|
296
|
+
publisher_company_id?: string | null;
|
|
297
|
+
company_id?: string | null;
|
|
298
|
+
company_name?: string | null;
|
|
299
|
+
company_publish_status?: string | null;
|
|
300
|
+
company_terms_version?: string | null;
|
|
266
301
|
review_status?: string | null;
|
|
267
302
|
review_note?: string | null;
|
|
268
303
|
submission_blockers: string[];
|
|
304
|
+
persistence: Record<string, unknown>;
|
|
269
305
|
created_at?: string | null;
|
|
270
306
|
updated_at?: string | null;
|
|
271
307
|
raw: Record<string, unknown>;
|
|
272
308
|
}
|
|
309
|
+
interface CompanyPublisherRecord {
|
|
310
|
+
company_id: string;
|
|
311
|
+
name: string;
|
|
312
|
+
status: string;
|
|
313
|
+
description?: string | null;
|
|
314
|
+
is_founder: boolean;
|
|
315
|
+
membership_role?: string | null;
|
|
316
|
+
membership_status?: string | null;
|
|
317
|
+
can_publish: boolean;
|
|
318
|
+
can_approve: boolean;
|
|
319
|
+
approval_required: boolean;
|
|
320
|
+
paid_listing_allowed: boolean;
|
|
321
|
+
disabled_reasons: string[];
|
|
322
|
+
company_terms_version?: string | null;
|
|
323
|
+
active_listing_count: number;
|
|
324
|
+
pending_approval_count: number;
|
|
325
|
+
settlement_wallet_ready: boolean;
|
|
326
|
+
settlement_wallets: Array<Record<string, unknown>>;
|
|
327
|
+
raw: Record<string, unknown>;
|
|
328
|
+
}
|
|
329
|
+
interface CapabilitySaveStateRecord {
|
|
330
|
+
capability_key: string;
|
|
331
|
+
save_key: string;
|
|
332
|
+
schema_version: string;
|
|
333
|
+
revision: number;
|
|
334
|
+
payload: Record<string, unknown>;
|
|
335
|
+
metadata: Record<string, unknown>;
|
|
336
|
+
checksum?: string | null;
|
|
337
|
+
updated_at?: string | null;
|
|
338
|
+
created_at?: string | null;
|
|
339
|
+
exists: boolean;
|
|
340
|
+
raw: Record<string, unknown>;
|
|
341
|
+
}
|
|
273
342
|
interface ConnectedAccountOAuthStart {
|
|
274
343
|
authorize_url: string;
|
|
275
344
|
state: string;
|
|
@@ -1359,6 +1428,19 @@ interface SiglumeClientShape {
|
|
|
1359
1428
|
cursor?: string;
|
|
1360
1429
|
}): Promise<CursorPage<AppListingRecord>>;
|
|
1361
1430
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
1431
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
1432
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
1433
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
1434
|
+
decision: "approve" | "reject";
|
|
1435
|
+
reason?: string;
|
|
1436
|
+
}): Promise<AppListingRecord>;
|
|
1437
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1438
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
1439
|
+
schema_version?: string;
|
|
1440
|
+
expected_revision?: number | null;
|
|
1441
|
+
metadata?: Record<string, unknown>;
|
|
1442
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
1443
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1362
1444
|
list_capabilities(options?: {
|
|
1363
1445
|
mine?: boolean;
|
|
1364
1446
|
status?: string;
|