@siglume/api-sdk 0.10.7 → 1.0.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.
@@ -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;
@@ -169,10 +190,14 @@ interface AppManifest {
169
190
  support_contact?: string;
170
191
  seller_homepage_url?: string;
171
192
  seller_social_url?: string;
193
+ publisher_type?: "user" | "company";
194
+ company_id?: string;
195
+ publisher_company_id?: string;
172
196
  store_vertical: StoreVertical;
173
197
  compatibility_tags?: string[];
174
198
  example_prompts?: string[];
175
199
  latency_tier?: string;
200
+ persistence?: CapabilityPersistencePolicy;
176
201
  }
177
202
  declare const ToolManualPermissionClass: {
178
203
  readonly READ_ONLY: "read_only";
@@ -267,29 +292,52 @@ interface AppListingRecord {
267
292
  seller_display_name?: string | null;
268
293
  seller_homepage_url?: string | null;
269
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;
270
301
  review_status?: string | null;
271
302
  review_note?: string | null;
272
303
  submission_blockers: string[];
304
+ persistence: Record<string, unknown>;
273
305
  created_at?: string | null;
274
306
  updated_at?: string | null;
275
307
  raw: Record<string, unknown>;
276
308
  }
277
- interface ConnectedAccountOAuthStart {
278
- authorize_url: string;
279
- state: string;
280
- provider_key: string;
281
- scopes: string[];
282
- pkce_method?: string | null;
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>;
283
328
  }
284
- interface ConnectedAccountLifecycleResult {
285
- connected_account_id: string;
286
- provider_key: string;
287
- expires_at?: string | null;
288
- scopes: string[];
289
- refreshed_at?: string | null;
290
- connection_status?: string | null;
291
- provider_revoked?: boolean | null;
292
- revoked_at?: string | null;
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>;
293
341
  }
294
342
  interface BundleMember {
295
343
  capability_listing_id: string;
@@ -326,7 +374,6 @@ interface AutoRegistrationReceipt {
326
374
  auto_manifest: Record<string, unknown>;
327
375
  confidence: Record<string, unknown>;
328
376
  validation_report?: Record<string, unknown>;
329
- oauth_status?: Record<string, unknown>;
330
377
  review_url?: string | null;
331
378
  trace_id?: string | null;
332
379
  request_id?: string | null;
@@ -371,7 +418,6 @@ interface SandboxSession {
371
418
  dry_run_supported: boolean;
372
419
  approval_mode?: string | null;
373
420
  required_connected_accounts: unknown[];
374
- connected_accounts: Array<Record<string, unknown>>;
375
421
  stub_providers_enabled: boolean;
376
422
  simulated_receipts: boolean;
377
423
  approval_simulator: boolean;
@@ -407,19 +453,6 @@ interface GrantBindingResult {
407
453
  request_id?: string | null;
408
454
  raw: Record<string, unknown>;
409
455
  }
410
- interface ConnectedAccountRecord {
411
- connected_account_id: string;
412
- provider_key: string;
413
- account_role: string;
414
- display_name?: string | null;
415
- environment?: string | null;
416
- connection_status?: string | null;
417
- scopes: string[];
418
- metadata: Record<string, unknown>;
419
- created_at?: string | null;
420
- updated_at?: string | null;
421
- raw: Record<string, unknown>;
422
- }
423
456
  interface UsageEventRecord {
424
457
  usage_event_id: string;
425
458
  capability_key?: string | null;
@@ -1347,7 +1380,6 @@ interface SiglumeClientShape {
1347
1380
  source_code?: string;
1348
1381
  source_url?: string;
1349
1382
  runtime_validation?: Record<string, unknown>;
1350
- oauth_credentials?: Record<string, unknown> | unknown[];
1351
1383
  source_context?: Record<string, unknown>;
1352
1384
  input_form_spec?: Record<string, unknown>;
1353
1385
  }): Promise<AutoRegistrationReceipt>;
@@ -1363,6 +1395,19 @@ interface SiglumeClientShape {
1363
1395
  cursor?: string;
1364
1396
  }): Promise<CursorPage<AppListingRecord>>;
1365
1397
  get_listing(listing_id: string): Promise<AppListingRecord>;
1398
+ list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1399
+ request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1400
+ decide_company_publish_approval(listing_id: string, options: {
1401
+ decision: "approve" | "reject";
1402
+ reason?: string;
1403
+ }): Promise<AppListingRecord>;
1404
+ get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1405
+ put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1406
+ schema_version?: string;
1407
+ expected_revision?: number | null;
1408
+ metadata?: Record<string, unknown>;
1409
+ }): Promise<CapabilitySaveStateRecord>;
1410
+ delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1366
1411
  list_capabilities(options?: {
1367
1412
  mine?: boolean;
1368
1413
  status?: string;
@@ -1403,34 +1448,6 @@ interface SiglumeClientShape {
1403
1448
  }): Promise<BundleListingRecord>;
1404
1449
  remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
1405
1450
  submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
1406
- start_connected_account_oauth(input: {
1407
- listing_id: string;
1408
- redirect_uri: string;
1409
- scopes?: string[];
1410
- account_role?: string;
1411
- }): Promise<ConnectedAccountOAuthStart>;
1412
- set_listing_oauth_credentials(listing_id: string, input: {
1413
- provider_key: string;
1414
- client_id: string;
1415
- client_secret: string;
1416
- authorize_url: string;
1417
- token_url: string;
1418
- revoke_url?: string;
1419
- display_name?: string;
1420
- scope_separator?: string;
1421
- token_endpoint_auth?: string;
1422
- pkce_required?: boolean;
1423
- refresh_supported?: boolean;
1424
- available_scopes?: string[];
1425
- required_scopes?: string[];
1426
- }): Promise<Record<string, unknown>>;
1427
- get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
1428
- complete_connected_account_oauth(input: {
1429
- state: string;
1430
- code: string;
1431
- }): Promise<Record<string, unknown>>;
1432
- refresh_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1433
- revoke_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1434
1451
  get_developer_portal(): Promise<DeveloperPortalSummary>;
1435
1452
  create_sandbox_session(options: {
1436
1453
  agent_id: string;
@@ -1777,12 +1794,6 @@ interface SiglumeClientShape {
1777
1794
  agent_id: string;
1778
1795
  binding_status?: string;
1779
1796
  }): Promise<GrantBindingResult>;
1780
- list_connected_accounts(options?: {
1781
- provider_key?: string;
1782
- environment?: string;
1783
- limit?: number;
1784
- cursor?: string;
1785
- }): Promise<CursorPage<ConnectedAccountRecord>>;
1786
1797
  create_support_case(subject: string, body: string, options?: {
1787
1798
  trace_id?: string;
1788
1799
  case_type?: string;
@@ -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;
@@ -169,10 +190,14 @@ interface AppManifest {
169
190
  support_contact?: string;
170
191
  seller_homepage_url?: string;
171
192
  seller_social_url?: string;
193
+ publisher_type?: "user" | "company";
194
+ company_id?: string;
195
+ publisher_company_id?: string;
172
196
  store_vertical: StoreVertical;
173
197
  compatibility_tags?: string[];
174
198
  example_prompts?: string[];
175
199
  latency_tier?: string;
200
+ persistence?: CapabilityPersistencePolicy;
176
201
  }
177
202
  declare const ToolManualPermissionClass: {
178
203
  readonly READ_ONLY: "read_only";
@@ -267,29 +292,52 @@ interface AppListingRecord {
267
292
  seller_display_name?: string | null;
268
293
  seller_homepage_url?: string | null;
269
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;
270
301
  review_status?: string | null;
271
302
  review_note?: string | null;
272
303
  submission_blockers: string[];
304
+ persistence: Record<string, unknown>;
273
305
  created_at?: string | null;
274
306
  updated_at?: string | null;
275
307
  raw: Record<string, unknown>;
276
308
  }
277
- interface ConnectedAccountOAuthStart {
278
- authorize_url: string;
279
- state: string;
280
- provider_key: string;
281
- scopes: string[];
282
- pkce_method?: string | null;
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>;
283
328
  }
284
- interface ConnectedAccountLifecycleResult {
285
- connected_account_id: string;
286
- provider_key: string;
287
- expires_at?: string | null;
288
- scopes: string[];
289
- refreshed_at?: string | null;
290
- connection_status?: string | null;
291
- provider_revoked?: boolean | null;
292
- revoked_at?: string | null;
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>;
293
341
  }
294
342
  interface BundleMember {
295
343
  capability_listing_id: string;
@@ -326,7 +374,6 @@ interface AutoRegistrationReceipt {
326
374
  auto_manifest: Record<string, unknown>;
327
375
  confidence: Record<string, unknown>;
328
376
  validation_report?: Record<string, unknown>;
329
- oauth_status?: Record<string, unknown>;
330
377
  review_url?: string | null;
331
378
  trace_id?: string | null;
332
379
  request_id?: string | null;
@@ -371,7 +418,6 @@ interface SandboxSession {
371
418
  dry_run_supported: boolean;
372
419
  approval_mode?: string | null;
373
420
  required_connected_accounts: unknown[];
374
- connected_accounts: Array<Record<string, unknown>>;
375
421
  stub_providers_enabled: boolean;
376
422
  simulated_receipts: boolean;
377
423
  approval_simulator: boolean;
@@ -407,19 +453,6 @@ interface GrantBindingResult {
407
453
  request_id?: string | null;
408
454
  raw: Record<string, unknown>;
409
455
  }
410
- interface ConnectedAccountRecord {
411
- connected_account_id: string;
412
- provider_key: string;
413
- account_role: string;
414
- display_name?: string | null;
415
- environment?: string | null;
416
- connection_status?: string | null;
417
- scopes: string[];
418
- metadata: Record<string, unknown>;
419
- created_at?: string | null;
420
- updated_at?: string | null;
421
- raw: Record<string, unknown>;
422
- }
423
456
  interface UsageEventRecord {
424
457
  usage_event_id: string;
425
458
  capability_key?: string | null;
@@ -1347,7 +1380,6 @@ interface SiglumeClientShape {
1347
1380
  source_code?: string;
1348
1381
  source_url?: string;
1349
1382
  runtime_validation?: Record<string, unknown>;
1350
- oauth_credentials?: Record<string, unknown> | unknown[];
1351
1383
  source_context?: Record<string, unknown>;
1352
1384
  input_form_spec?: Record<string, unknown>;
1353
1385
  }): Promise<AutoRegistrationReceipt>;
@@ -1363,6 +1395,19 @@ interface SiglumeClientShape {
1363
1395
  cursor?: string;
1364
1396
  }): Promise<CursorPage<AppListingRecord>>;
1365
1397
  get_listing(listing_id: string): Promise<AppListingRecord>;
1398
+ list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1399
+ request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1400
+ decide_company_publish_approval(listing_id: string, options: {
1401
+ decision: "approve" | "reject";
1402
+ reason?: string;
1403
+ }): Promise<AppListingRecord>;
1404
+ get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1405
+ put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1406
+ schema_version?: string;
1407
+ expected_revision?: number | null;
1408
+ metadata?: Record<string, unknown>;
1409
+ }): Promise<CapabilitySaveStateRecord>;
1410
+ delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1366
1411
  list_capabilities(options?: {
1367
1412
  mine?: boolean;
1368
1413
  status?: string;
@@ -1403,34 +1448,6 @@ interface SiglumeClientShape {
1403
1448
  }): Promise<BundleListingRecord>;
1404
1449
  remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
1405
1450
  submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
1406
- start_connected_account_oauth(input: {
1407
- listing_id: string;
1408
- redirect_uri: string;
1409
- scopes?: string[];
1410
- account_role?: string;
1411
- }): Promise<ConnectedAccountOAuthStart>;
1412
- set_listing_oauth_credentials(listing_id: string, input: {
1413
- provider_key: string;
1414
- client_id: string;
1415
- client_secret: string;
1416
- authorize_url: string;
1417
- token_url: string;
1418
- revoke_url?: string;
1419
- display_name?: string;
1420
- scope_separator?: string;
1421
- token_endpoint_auth?: string;
1422
- pkce_required?: boolean;
1423
- refresh_supported?: boolean;
1424
- available_scopes?: string[];
1425
- required_scopes?: string[];
1426
- }): Promise<Record<string, unknown>>;
1427
- get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
1428
- complete_connected_account_oauth(input: {
1429
- state: string;
1430
- code: string;
1431
- }): Promise<Record<string, unknown>>;
1432
- refresh_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1433
- revoke_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1434
1451
  get_developer_portal(): Promise<DeveloperPortalSummary>;
1435
1452
  create_sandbox_session(options: {
1436
1453
  agent_id: string;
@@ -1777,12 +1794,6 @@ interface SiglumeClientShape {
1777
1794
  agent_id: string;
1778
1795
  binding_status?: string;
1779
1796
  }): Promise<GrantBindingResult>;
1780
- list_connected_accounts(options?: {
1781
- provider_key?: string;
1782
- environment?: string;
1783
- limit?: number;
1784
- cursor?: string;
1785
- }): Promise<CursorPage<ConnectedAccountRecord>>;
1786
1797
  create_support_case(subject: string, body: string, options?: {
1787
1798
  trace_id?: string;
1788
1799
  case_type?: string;