@siglume/api-sdk 0.10.8 → 1.1.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.
@@ -178,6 +178,7 @@ interface AppManifest {
178
178
  permission_scopes?: string[];
179
179
  price_model?: PriceModel;
180
180
  price_value_minor?: number;
181
+ pricing_plan?: PricingPlan;
181
182
  currency: ListingCurrency;
182
183
  allow_free_trial: boolean;
183
184
  free_trial_duration_days?: number;
@@ -261,6 +262,28 @@ interface EnvelopeMeta {
261
262
  request_id?: string | null;
262
263
  trace_id?: string | null;
263
264
  }
265
+ interface PricingPlanItem {
266
+ key?: string | null;
267
+ label?: string | null;
268
+ price_minor?: number | null;
269
+ amount_minor?: number | null;
270
+ currency?: string | null;
271
+ unit_label?: string | null;
272
+ description?: string | null;
273
+ conditions?: unknown;
274
+ receipt_code?: string | null;
275
+ }
276
+ interface PricingPlan {
277
+ billing_model?: string | null;
278
+ display_name?: string | null;
279
+ summary?: string | null;
280
+ description?: string | null;
281
+ currency?: string | null;
282
+ unit_label?: string | null;
283
+ free_upfront_invocation?: boolean | null;
284
+ fallback_note?: string | null;
285
+ items?: PricingPlanItem[];
286
+ }
264
287
  interface CursorPage<T> {
265
288
  items: T[];
266
289
  next_cursor?: string | null;
@@ -282,6 +305,7 @@ interface AppListingRecord {
282
305
  dry_run_supported: boolean;
283
306
  price_model?: string | null;
284
307
  price_value_minor: number;
308
+ pricing_plan?: PricingPlan | null;
285
309
  currency: string;
286
310
  allow_free_trial: boolean;
287
311
  free_trial_duration_days: number;
@@ -339,23 +363,6 @@ interface CapabilitySaveStateRecord {
339
363
  exists: boolean;
340
364
  raw: Record<string, unknown>;
341
365
  }
342
- interface ConnectedAccountOAuthStart {
343
- authorize_url: string;
344
- state: string;
345
- provider_key: string;
346
- scopes: string[];
347
- pkce_method?: string | null;
348
- }
349
- interface ConnectedAccountLifecycleResult {
350
- connected_account_id: string;
351
- provider_key: string;
352
- expires_at?: string | null;
353
- scopes: string[];
354
- refreshed_at?: string | null;
355
- connection_status?: string | null;
356
- provider_revoked?: boolean | null;
357
- revoked_at?: string | null;
358
- }
359
366
  interface BundleMember {
360
367
  capability_listing_id: string;
361
368
  capability_key?: string | null;
@@ -391,7 +398,6 @@ interface AutoRegistrationReceipt {
391
398
  auto_manifest: Record<string, unknown>;
392
399
  confidence: Record<string, unknown>;
393
400
  validation_report?: Record<string, unknown>;
394
- oauth_status?: Record<string, unknown>;
395
401
  review_url?: string | null;
396
402
  trace_id?: string | null;
397
403
  request_id?: string | null;
@@ -436,7 +442,6 @@ interface SandboxSession {
436
442
  dry_run_supported: boolean;
437
443
  approval_mode?: string | null;
438
444
  required_connected_accounts: unknown[];
439
- connected_accounts: Array<Record<string, unknown>>;
440
445
  stub_providers_enabled: boolean;
441
446
  simulated_receipts: boolean;
442
447
  approval_simulator: boolean;
@@ -472,19 +477,6 @@ interface GrantBindingResult {
472
477
  request_id?: string | null;
473
478
  raw: Record<string, unknown>;
474
479
  }
475
- interface ConnectedAccountRecord {
476
- connected_account_id: string;
477
- provider_key: string;
478
- account_role: string;
479
- display_name?: string | null;
480
- environment?: string | null;
481
- connection_status?: string | null;
482
- scopes: string[];
483
- metadata: Record<string, unknown>;
484
- created_at?: string | null;
485
- updated_at?: string | null;
486
- raw: Record<string, unknown>;
487
- }
488
480
  interface UsageEventRecord {
489
481
  usage_event_id: string;
490
482
  capability_key?: string | null;
@@ -1412,7 +1404,6 @@ interface SiglumeClientShape {
1412
1404
  source_code?: string;
1413
1405
  source_url?: string;
1414
1406
  runtime_validation?: Record<string, unknown>;
1415
- oauth_credentials?: Record<string, unknown> | unknown[];
1416
1407
  source_context?: Record<string, unknown>;
1417
1408
  input_form_spec?: Record<string, unknown>;
1418
1409
  }): Promise<AutoRegistrationReceipt>;
@@ -1481,34 +1472,6 @@ interface SiglumeClientShape {
1481
1472
  }): Promise<BundleListingRecord>;
1482
1473
  remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
1483
1474
  submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
1484
- start_connected_account_oauth(input: {
1485
- listing_id: string;
1486
- redirect_uri: string;
1487
- scopes?: string[];
1488
- account_role?: string;
1489
- }): Promise<ConnectedAccountOAuthStart>;
1490
- set_listing_oauth_credentials(listing_id: string, input: {
1491
- provider_key: string;
1492
- client_id: string;
1493
- client_secret: string;
1494
- authorize_url: string;
1495
- token_url: string;
1496
- revoke_url?: string;
1497
- display_name?: string;
1498
- scope_separator?: string;
1499
- token_endpoint_auth?: string;
1500
- pkce_required?: boolean;
1501
- refresh_supported?: boolean;
1502
- available_scopes?: string[];
1503
- required_scopes?: string[];
1504
- }): Promise<Record<string, unknown>>;
1505
- get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
1506
- complete_connected_account_oauth(input: {
1507
- state: string;
1508
- code: string;
1509
- }): Promise<Record<string, unknown>>;
1510
- refresh_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1511
- revoke_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1512
1475
  get_developer_portal(): Promise<DeveloperPortalSummary>;
1513
1476
  create_sandbox_session(options: {
1514
1477
  agent_id: string;
@@ -1855,12 +1818,6 @@ interface SiglumeClientShape {
1855
1818
  agent_id: string;
1856
1819
  binding_status?: string;
1857
1820
  }): Promise<GrantBindingResult>;
1858
- list_connected_accounts(options?: {
1859
- provider_key?: string;
1860
- environment?: string;
1861
- limit?: number;
1862
- cursor?: string;
1863
- }): Promise<CursorPage<ConnectedAccountRecord>>;
1864
1821
  create_support_case(subject: string, body: string, options?: {
1865
1822
  trace_id?: string;
1866
1823
  case_type?: string;
@@ -178,6 +178,7 @@ interface AppManifest {
178
178
  permission_scopes?: string[];
179
179
  price_model?: PriceModel;
180
180
  price_value_minor?: number;
181
+ pricing_plan?: PricingPlan;
181
182
  currency: ListingCurrency;
182
183
  allow_free_trial: boolean;
183
184
  free_trial_duration_days?: number;
@@ -261,6 +262,28 @@ interface EnvelopeMeta {
261
262
  request_id?: string | null;
262
263
  trace_id?: string | null;
263
264
  }
265
+ interface PricingPlanItem {
266
+ key?: string | null;
267
+ label?: string | null;
268
+ price_minor?: number | null;
269
+ amount_minor?: number | null;
270
+ currency?: string | null;
271
+ unit_label?: string | null;
272
+ description?: string | null;
273
+ conditions?: unknown;
274
+ receipt_code?: string | null;
275
+ }
276
+ interface PricingPlan {
277
+ billing_model?: string | null;
278
+ display_name?: string | null;
279
+ summary?: string | null;
280
+ description?: string | null;
281
+ currency?: string | null;
282
+ unit_label?: string | null;
283
+ free_upfront_invocation?: boolean | null;
284
+ fallback_note?: string | null;
285
+ items?: PricingPlanItem[];
286
+ }
264
287
  interface CursorPage<T> {
265
288
  items: T[];
266
289
  next_cursor?: string | null;
@@ -282,6 +305,7 @@ interface AppListingRecord {
282
305
  dry_run_supported: boolean;
283
306
  price_model?: string | null;
284
307
  price_value_minor: number;
308
+ pricing_plan?: PricingPlan | null;
285
309
  currency: string;
286
310
  allow_free_trial: boolean;
287
311
  free_trial_duration_days: number;
@@ -339,23 +363,6 @@ interface CapabilitySaveStateRecord {
339
363
  exists: boolean;
340
364
  raw: Record<string, unknown>;
341
365
  }
342
- interface ConnectedAccountOAuthStart {
343
- authorize_url: string;
344
- state: string;
345
- provider_key: string;
346
- scopes: string[];
347
- pkce_method?: string | null;
348
- }
349
- interface ConnectedAccountLifecycleResult {
350
- connected_account_id: string;
351
- provider_key: string;
352
- expires_at?: string | null;
353
- scopes: string[];
354
- refreshed_at?: string | null;
355
- connection_status?: string | null;
356
- provider_revoked?: boolean | null;
357
- revoked_at?: string | null;
358
- }
359
366
  interface BundleMember {
360
367
  capability_listing_id: string;
361
368
  capability_key?: string | null;
@@ -391,7 +398,6 @@ interface AutoRegistrationReceipt {
391
398
  auto_manifest: Record<string, unknown>;
392
399
  confidence: Record<string, unknown>;
393
400
  validation_report?: Record<string, unknown>;
394
- oauth_status?: Record<string, unknown>;
395
401
  review_url?: string | null;
396
402
  trace_id?: string | null;
397
403
  request_id?: string | null;
@@ -436,7 +442,6 @@ interface SandboxSession {
436
442
  dry_run_supported: boolean;
437
443
  approval_mode?: string | null;
438
444
  required_connected_accounts: unknown[];
439
- connected_accounts: Array<Record<string, unknown>>;
440
445
  stub_providers_enabled: boolean;
441
446
  simulated_receipts: boolean;
442
447
  approval_simulator: boolean;
@@ -472,19 +477,6 @@ interface GrantBindingResult {
472
477
  request_id?: string | null;
473
478
  raw: Record<string, unknown>;
474
479
  }
475
- interface ConnectedAccountRecord {
476
- connected_account_id: string;
477
- provider_key: string;
478
- account_role: string;
479
- display_name?: string | null;
480
- environment?: string | null;
481
- connection_status?: string | null;
482
- scopes: string[];
483
- metadata: Record<string, unknown>;
484
- created_at?: string | null;
485
- updated_at?: string | null;
486
- raw: Record<string, unknown>;
487
- }
488
480
  interface UsageEventRecord {
489
481
  usage_event_id: string;
490
482
  capability_key?: string | null;
@@ -1412,7 +1404,6 @@ interface SiglumeClientShape {
1412
1404
  source_code?: string;
1413
1405
  source_url?: string;
1414
1406
  runtime_validation?: Record<string, unknown>;
1415
- oauth_credentials?: Record<string, unknown> | unknown[];
1416
1407
  source_context?: Record<string, unknown>;
1417
1408
  input_form_spec?: Record<string, unknown>;
1418
1409
  }): Promise<AutoRegistrationReceipt>;
@@ -1481,34 +1472,6 @@ interface SiglumeClientShape {
1481
1472
  }): Promise<BundleListingRecord>;
1482
1473
  remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
1483
1474
  submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
1484
- start_connected_account_oauth(input: {
1485
- listing_id: string;
1486
- redirect_uri: string;
1487
- scopes?: string[];
1488
- account_role?: string;
1489
- }): Promise<ConnectedAccountOAuthStart>;
1490
- set_listing_oauth_credentials(listing_id: string, input: {
1491
- provider_key: string;
1492
- client_id: string;
1493
- client_secret: string;
1494
- authorize_url: string;
1495
- token_url: string;
1496
- revoke_url?: string;
1497
- display_name?: string;
1498
- scope_separator?: string;
1499
- token_endpoint_auth?: string;
1500
- pkce_required?: boolean;
1501
- refresh_supported?: boolean;
1502
- available_scopes?: string[];
1503
- required_scopes?: string[];
1504
- }): Promise<Record<string, unknown>>;
1505
- get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
1506
- complete_connected_account_oauth(input: {
1507
- state: string;
1508
- code: string;
1509
- }): Promise<Record<string, unknown>>;
1510
- refresh_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1511
- revoke_connected_account(account_id: string): Promise<ConnectedAccountLifecycleResult>;
1512
1475
  get_developer_portal(): Promise<DeveloperPortalSummary>;
1513
1476
  create_sandbox_session(options: {
1514
1477
  agent_id: string;
@@ -1855,12 +1818,6 @@ interface SiglumeClientShape {
1855
1818
  agent_id: string;
1856
1819
  binding_status?: string;
1857
1820
  }): Promise<GrantBindingResult>;
1858
- list_connected_accounts(options?: {
1859
- provider_key?: string;
1860
- environment?: string;
1861
- limit?: number;
1862
- cursor?: string;
1863
- }): Promise<CursorPage<ConnectedAccountRecord>>;
1864
1821
  create_support_case(subject: string, body: string, options?: {
1865
1822
  trace_id?: string;
1866
1823
  case_type?: string;