@siglume/api-sdk 2.0.5 → 3.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.
package/dist/index.d.cts CHANGED
@@ -243,9 +243,6 @@ interface AppManifest {
243
243
  support_contact?: string;
244
244
  seller_homepage_url?: string;
245
245
  seller_social_url?: string;
246
- publisher_type?: "user" | "company";
247
- company_id?: string;
248
- publisher_company_id?: string;
249
246
  store_vertical: StoreVertical;
250
247
  compatibility_tags?: string[];
251
248
  example_prompts?: string[];
@@ -444,12 +441,6 @@ interface AppListingRecord {
444
441
  seller_display_name?: string | null;
445
442
  seller_homepage_url?: string | null;
446
443
  seller_social_url?: string | null;
447
- publisher_type?: string | null;
448
- publisher_company_id?: string | null;
449
- company_id?: string | null;
450
- company_name?: string | null;
451
- company_publish_status?: string | null;
452
- company_terms_version?: string | null;
453
444
  review_status?: string | null;
454
445
  review_note?: string | null;
455
446
  submission_blockers: string[];
@@ -458,26 +449,6 @@ interface AppListingRecord {
458
449
  updated_at?: string | null;
459
450
  raw: Record<string, unknown>;
460
451
  }
461
- interface CompanyPublisherRecord {
462
- company_id: string;
463
- name: string;
464
- status: string;
465
- description?: string | null;
466
- is_founder: boolean;
467
- membership_role?: string | null;
468
- membership_status?: string | null;
469
- can_publish: boolean;
470
- can_approve: boolean;
471
- approval_required: boolean;
472
- paid_listing_allowed: boolean;
473
- disabled_reasons: string[];
474
- company_terms_version?: string | null;
475
- active_listing_count: number;
476
- pending_approval_count: number;
477
- settlement_wallet_ready: boolean;
478
- settlement_wallets: Array<Record<string, unknown>>;
479
- raw: Record<string, unknown>;
480
- }
481
452
  interface CapabilitySaveStateRecord {
482
453
  capability_key: string;
483
454
  save_key: string;
@@ -540,6 +511,7 @@ interface RegistrationQuality {
540
511
  interface RegistrationConfirmation {
541
512
  listing_id: string;
542
513
  status: string;
514
+ visibility?: string | null;
543
515
  message?: string | null;
544
516
  checklist?: Record<string, boolean>;
545
517
  release: Record<string, unknown>;
@@ -1453,6 +1425,8 @@ interface SiglumeClientShape {
1453
1425
  confirm_registration(listing_id: string, options?: {
1454
1426
  manifest?: AppManifest | Record<string, unknown>;
1455
1427
  tool_manual?: ToolManual | Record<string, unknown>;
1428
+ version_bump?: "patch" | "minor" | "major";
1429
+ visibility?: "public" | "private";
1456
1430
  }): Promise<RegistrationConfirmation>;
1457
1431
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
1458
1432
  submit_review(listing_id: string): Promise<AppListingRecord>;
@@ -1462,12 +1436,6 @@ interface SiglumeClientShape {
1462
1436
  cursor?: string;
1463
1437
  }): Promise<CursorPage<AppListingRecord>>;
1464
1438
  get_listing(listing_id: string): Promise<AppListingRecord>;
1465
- list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1466
- request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1467
- decide_company_publish_approval(listing_id: string, options: {
1468
- decision: "approve" | "reject";
1469
- reason?: string;
1470
- }): Promise<AppListingRecord>;
1471
1439
  get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1472
1440
  put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1473
1441
  schema_version?: string;
@@ -1904,6 +1872,7 @@ declare class SiglumeClient implements SiglumeClientShape {
1904
1872
  manifest?: AppManifest | Record<string, unknown>;
1905
1873
  tool_manual?: ToolManual | Record<string, unknown>;
1906
1874
  version_bump?: "patch" | "minor" | "major";
1875
+ visibility?: "public" | "private";
1907
1876
  }): Promise<RegistrationConfirmation>;
1908
1877
  submit_review(listing_id: string): Promise<AppListingRecord>;
1909
1878
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
@@ -1919,12 +1888,6 @@ declare class SiglumeClient implements SiglumeClientShape {
1919
1888
  cursor?: string;
1920
1889
  }): Promise<CursorPageResult<AppListingRecord>>;
1921
1890
  get_listing(listing_id: string): Promise<AppListingRecord>;
1922
- list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1923
- request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1924
- decide_company_publish_approval(listing_id: string, options: {
1925
- decision: "approve" | "reject";
1926
- reason?: string;
1927
- }): Promise<AppListingRecord>;
1928
1891
  get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1929
1892
  put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1930
1893
  schema_version?: string;
@@ -2806,4 +2769,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
2806
2769
 
2807
2770
  declare function renderJson(value: unknown): string;
2808
2771
 
2809
- export { type AccessGrantRecord, type AccountAlert, type AccountContentDeleteResult, type AccountContentPostResult, type AccountDigest, type AccountDigestItem, type AccountDigestSummary, type AccountFeedbackSubmission, type AccountPlan, type AccountPlanCancellation, type AccountPreferences, type AccountWatchlist, type AgentCharter, type AgentRecord, type AgentThreadRecord, type AgentTopicSubscription, AnthropicProvider, type AnthropicToolDefinition, AppAdapter, AppCategory, type AppListingRecord, type AppManifest, AppTestHarness, ApprovalMode, type ApprovalPolicy, type ApprovalRequestHint, type AutoRegistrationReceipt, type Awaitable, type BillingPortalLink, type BillingTiming, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CompanyPublisherRecord, type CrossCurrencyQuote, type CursorPage, DEFAULT_OPERATION_AGENT_ID, DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type DeveloperPortalSummary, type EmbeddedWalletCharge, type EnvelopeMeta, Environment, type ExecutionArtifact, type ExecutionCompletedEvent, type ExecutionCompletedEventData, type ExecutionContext, type ExecutionFailedEvent, type ExecutionFailedEventData, ExecutionKind, type ExecutionResult, type ExpressLikeRequest, type ExpressLikeResponse, type FavoriteAgent, type FavoriteAgentMutation, type GrantBindingResult, type HeaderLike, type HealthCheckResult, InMemoryWebhookDedupe, type InstalledToolBindingPolicyRecord, type InstalledToolConnectionReadiness, type InstalledToolExecutionRecord, type InstalledToolPolicyUpdateResult, type InstalledToolReceiptRecord, type InstalledToolReceiptStepRecord, type InstalledToolRecord, type JsonObject, type JsonPrimitive, type JsonValue, LLMProvider, ListingCurrency, MINIMUM_JPY_OPERATION_PRICE_MINOR, type MarketNeedRecord, type MarketProposalActionResult, type MarketProposalRecord, type McpToolDescriptor, MeterClient, type MeterClientOptions, type MeterRecordResult, type MeteringInvoiceLinePreview, type MeteringSimulationResult, type NetworkClaimRecord, type NetworkContentDetail, type NetworkContentSummary, type NetworkEvidenceRecord, type NetworkRepliesPage, type OpenAIFunctionDefinition, OpenAIProvider, type OpenAIResponsesToolDefinition, type OperationExecution, type OperationMetadata, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, PersistenceMode, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type PricingPlan, type PricingPlanItem, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, type RewardPaidEvent, type RewardPayoutCancelledEvent, type RewardPayoutCreatedEvent, type RewardPayoutEventData, type RewardPayoutFailedEvent, type RewardPayoutProviderPendingEvent, type SandboxSession, SettlementMode, type SettlementReceipt, type SideEffectRecord, SiglumeAPIError, SiglumeAssistError, SiglumeBuyerClient, type SiglumeBuyerClientOptions, SiglumeClient, SiglumeClientError, type SiglumeClientOptions, type SiglumeClientShape, SiglumeError, SiglumeExperimentalError, SiglumeExperimentalWarning, SiglumeNotFoundError, SiglumeProjectError, SiglumeValidationError, SiglumeWebhookError, type SiglumeWebhookEvent, SiglumeWebhookPayloadError, SiglumeWebhookReplayError, SiglumeWebhookSignatureError, StoreVertical, type StructuredGenerationUsage, StubProvider, type Subscription, type SubscriptionCancelledEvent, type SubscriptionCreatedEvent, type SubscriptionLifecycleEventData, type SubscriptionPausedEvent, type SubscriptionReinstatedEvent, type SubscriptionRenewedEvent, type SupportCaseRecord, TOOL_MANUAL_DRAFT_PROMPT, type ToolManual, type ToolManualAssistAttempt, type ToolManualAssistMetadata, type ToolManualAssistResult, type ToolManualGrade, type ToolManualIssue, type ToolManualIssueSeverity, ToolManualPermissionClass, type ToolManualQualityReport, type ToolSchemaExport, type UsageEventRecord, type UsageRecord, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookCallback, type WebhookDeliveryRecord, type WebhookDispatchResult, type WebhookEventBase, type WebhookEventType, WebhookHandler, type WebhookSignatureVerification, type WebhookSubscriptionRecord, buildOperationMetadata, build_webhook_signature_header, compute_webhook_signature, defaultCapabilityKeyForOperation, defaultOperationOutputSchema, diff_manifest, diff_tool_manual, draft_tool_manual, fallbackOperationCatalog, fill_tool_manual_gaps, normalizeUsageRecord, parse_cross_currency_quote, parse_embedded_wallet_charge, parse_polygon_mandate, parse_queued_webhook_event, parse_settlement_receipt, parse_webhook_delivery, parse_webhook_event, parse_webhook_subscription, renderJson as render_json, score_tool_manual_offline, score_tool_manual_remote, simulate_embedded_wallet_charge, simulate_polygon_mandate, to_anthropic_tool, to_mcp_tool, to_openai_function, to_openai_responses_tool, tool_manual_to_dict, validate_tool_manual, verify_webhook_signature };
2772
+ export { type AccessGrantRecord, type AccountAlert, type AccountContentDeleteResult, type AccountContentPostResult, type AccountDigest, type AccountDigestItem, type AccountDigestSummary, type AccountFeedbackSubmission, type AccountPlan, type AccountPlanCancellation, type AccountPreferences, type AccountWatchlist, type AgentCharter, type AgentRecord, type AgentThreadRecord, type AgentTopicSubscription, AnthropicProvider, type AnthropicToolDefinition, AppAdapter, AppCategory, type AppListingRecord, type AppManifest, AppTestHarness, ApprovalMode, type ApprovalPolicy, type ApprovalRequestHint, type AutoRegistrationReceipt, type Awaitable, type BillingPortalLink, type BillingTiming, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CrossCurrencyQuote, type CursorPage, DEFAULT_OPERATION_AGENT_ID, DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type DeveloperPortalSummary, type EmbeddedWalletCharge, type EnvelopeMeta, Environment, type ExecutionArtifact, type ExecutionCompletedEvent, type ExecutionCompletedEventData, type ExecutionContext, type ExecutionFailedEvent, type ExecutionFailedEventData, ExecutionKind, type ExecutionResult, type ExpressLikeRequest, type ExpressLikeResponse, type FavoriteAgent, type FavoriteAgentMutation, type GrantBindingResult, type HeaderLike, type HealthCheckResult, InMemoryWebhookDedupe, type InstalledToolBindingPolicyRecord, type InstalledToolConnectionReadiness, type InstalledToolExecutionRecord, type InstalledToolPolicyUpdateResult, type InstalledToolReceiptRecord, type InstalledToolReceiptStepRecord, type InstalledToolRecord, type JsonObject, type JsonPrimitive, type JsonValue, LLMProvider, ListingCurrency, MINIMUM_JPY_OPERATION_PRICE_MINOR, type MarketNeedRecord, type MarketProposalActionResult, type MarketProposalRecord, type McpToolDescriptor, MeterClient, type MeterClientOptions, type MeterRecordResult, type MeteringInvoiceLinePreview, type MeteringSimulationResult, type NetworkClaimRecord, type NetworkContentDetail, type NetworkContentSummary, type NetworkEvidenceRecord, type NetworkRepliesPage, type OpenAIFunctionDefinition, OpenAIProvider, type OpenAIResponsesToolDefinition, type OperationExecution, type OperationMetadata, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, PersistenceMode, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type PricingPlan, type PricingPlanItem, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, type RewardPaidEvent, type RewardPayoutCancelledEvent, type RewardPayoutCreatedEvent, type RewardPayoutEventData, type RewardPayoutFailedEvent, type RewardPayoutProviderPendingEvent, type SandboxSession, SettlementMode, type SettlementReceipt, type SideEffectRecord, SiglumeAPIError, SiglumeAssistError, SiglumeBuyerClient, type SiglumeBuyerClientOptions, SiglumeClient, SiglumeClientError, type SiglumeClientOptions, type SiglumeClientShape, SiglumeError, SiglumeExperimentalError, SiglumeExperimentalWarning, SiglumeNotFoundError, SiglumeProjectError, SiglumeValidationError, SiglumeWebhookError, type SiglumeWebhookEvent, SiglumeWebhookPayloadError, SiglumeWebhookReplayError, SiglumeWebhookSignatureError, StoreVertical, type StructuredGenerationUsage, StubProvider, type Subscription, type SubscriptionCancelledEvent, type SubscriptionCreatedEvent, type SubscriptionLifecycleEventData, type SubscriptionPausedEvent, type SubscriptionReinstatedEvent, type SubscriptionRenewedEvent, type SupportCaseRecord, TOOL_MANUAL_DRAFT_PROMPT, type ToolManual, type ToolManualAssistAttempt, type ToolManualAssistMetadata, type ToolManualAssistResult, type ToolManualGrade, type ToolManualIssue, type ToolManualIssueSeverity, ToolManualPermissionClass, type ToolManualQualityReport, type ToolSchemaExport, type UsageEventRecord, type UsageRecord, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookCallback, type WebhookDeliveryRecord, type WebhookDispatchResult, type WebhookEventBase, type WebhookEventType, WebhookHandler, type WebhookSignatureVerification, type WebhookSubscriptionRecord, buildOperationMetadata, build_webhook_signature_header, compute_webhook_signature, defaultCapabilityKeyForOperation, defaultOperationOutputSchema, diff_manifest, diff_tool_manual, draft_tool_manual, fallbackOperationCatalog, fill_tool_manual_gaps, normalizeUsageRecord, parse_cross_currency_quote, parse_embedded_wallet_charge, parse_polygon_mandate, parse_queued_webhook_event, parse_settlement_receipt, parse_webhook_delivery, parse_webhook_event, parse_webhook_subscription, renderJson as render_json, score_tool_manual_offline, score_tool_manual_remote, simulate_embedded_wallet_charge, simulate_polygon_mandate, to_anthropic_tool, to_mcp_tool, to_openai_function, to_openai_responses_tool, tool_manual_to_dict, validate_tool_manual, verify_webhook_signature };
package/dist/index.d.ts CHANGED
@@ -243,9 +243,6 @@ interface AppManifest {
243
243
  support_contact?: string;
244
244
  seller_homepage_url?: string;
245
245
  seller_social_url?: string;
246
- publisher_type?: "user" | "company";
247
- company_id?: string;
248
- publisher_company_id?: string;
249
246
  store_vertical: StoreVertical;
250
247
  compatibility_tags?: string[];
251
248
  example_prompts?: string[];
@@ -444,12 +441,6 @@ interface AppListingRecord {
444
441
  seller_display_name?: string | null;
445
442
  seller_homepage_url?: string | null;
446
443
  seller_social_url?: string | null;
447
- publisher_type?: string | null;
448
- publisher_company_id?: string | null;
449
- company_id?: string | null;
450
- company_name?: string | null;
451
- company_publish_status?: string | null;
452
- company_terms_version?: string | null;
453
444
  review_status?: string | null;
454
445
  review_note?: string | null;
455
446
  submission_blockers: string[];
@@ -458,26 +449,6 @@ interface AppListingRecord {
458
449
  updated_at?: string | null;
459
450
  raw: Record<string, unknown>;
460
451
  }
461
- interface CompanyPublisherRecord {
462
- company_id: string;
463
- name: string;
464
- status: string;
465
- description?: string | null;
466
- is_founder: boolean;
467
- membership_role?: string | null;
468
- membership_status?: string | null;
469
- can_publish: boolean;
470
- can_approve: boolean;
471
- approval_required: boolean;
472
- paid_listing_allowed: boolean;
473
- disabled_reasons: string[];
474
- company_terms_version?: string | null;
475
- active_listing_count: number;
476
- pending_approval_count: number;
477
- settlement_wallet_ready: boolean;
478
- settlement_wallets: Array<Record<string, unknown>>;
479
- raw: Record<string, unknown>;
480
- }
481
452
  interface CapabilitySaveStateRecord {
482
453
  capability_key: string;
483
454
  save_key: string;
@@ -540,6 +511,7 @@ interface RegistrationQuality {
540
511
  interface RegistrationConfirmation {
541
512
  listing_id: string;
542
513
  status: string;
514
+ visibility?: string | null;
543
515
  message?: string | null;
544
516
  checklist?: Record<string, boolean>;
545
517
  release: Record<string, unknown>;
@@ -1453,6 +1425,8 @@ interface SiglumeClientShape {
1453
1425
  confirm_registration(listing_id: string, options?: {
1454
1426
  manifest?: AppManifest | Record<string, unknown>;
1455
1427
  tool_manual?: ToolManual | Record<string, unknown>;
1428
+ version_bump?: "patch" | "minor" | "major";
1429
+ visibility?: "public" | "private";
1456
1430
  }): Promise<RegistrationConfirmation>;
1457
1431
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
1458
1432
  submit_review(listing_id: string): Promise<AppListingRecord>;
@@ -1462,12 +1436,6 @@ interface SiglumeClientShape {
1462
1436
  cursor?: string;
1463
1437
  }): Promise<CursorPage<AppListingRecord>>;
1464
1438
  get_listing(listing_id: string): Promise<AppListingRecord>;
1465
- list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1466
- request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1467
- decide_company_publish_approval(listing_id: string, options: {
1468
- decision: "approve" | "reject";
1469
- reason?: string;
1470
- }): Promise<AppListingRecord>;
1471
1439
  get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1472
1440
  put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1473
1441
  schema_version?: string;
@@ -1904,6 +1872,7 @@ declare class SiglumeClient implements SiglumeClientShape {
1904
1872
  manifest?: AppManifest | Record<string, unknown>;
1905
1873
  tool_manual?: ToolManual | Record<string, unknown>;
1906
1874
  version_bump?: "patch" | "minor" | "major";
1875
+ visibility?: "public" | "private";
1907
1876
  }): Promise<RegistrationConfirmation>;
1908
1877
  submit_review(listing_id: string): Promise<AppListingRecord>;
1909
1878
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
@@ -1919,12 +1888,6 @@ declare class SiglumeClient implements SiglumeClientShape {
1919
1888
  cursor?: string;
1920
1889
  }): Promise<CursorPageResult<AppListingRecord>>;
1921
1890
  get_listing(listing_id: string): Promise<AppListingRecord>;
1922
- list_company_publishers(): Promise<CompanyPublisherRecord[]>;
1923
- request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
1924
- decide_company_publish_approval(listing_id: string, options: {
1925
- decision: "approve" | "reject";
1926
- reason?: string;
1927
- }): Promise<AppListingRecord>;
1928
1891
  get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
1929
1892
  put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
1930
1893
  schema_version?: string;
@@ -2806,4 +2769,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
2806
2769
 
2807
2770
  declare function renderJson(value: unknown): string;
2808
2771
 
2809
- export { type AccessGrantRecord, type AccountAlert, type AccountContentDeleteResult, type AccountContentPostResult, type AccountDigest, type AccountDigestItem, type AccountDigestSummary, type AccountFeedbackSubmission, type AccountPlan, type AccountPlanCancellation, type AccountPreferences, type AccountWatchlist, type AgentCharter, type AgentRecord, type AgentThreadRecord, type AgentTopicSubscription, AnthropicProvider, type AnthropicToolDefinition, AppAdapter, AppCategory, type AppListingRecord, type AppManifest, AppTestHarness, ApprovalMode, type ApprovalPolicy, type ApprovalRequestHint, type AutoRegistrationReceipt, type Awaitable, type BillingPortalLink, type BillingTiming, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CompanyPublisherRecord, type CrossCurrencyQuote, type CursorPage, DEFAULT_OPERATION_AGENT_ID, DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type DeveloperPortalSummary, type EmbeddedWalletCharge, type EnvelopeMeta, Environment, type ExecutionArtifact, type ExecutionCompletedEvent, type ExecutionCompletedEventData, type ExecutionContext, type ExecutionFailedEvent, type ExecutionFailedEventData, ExecutionKind, type ExecutionResult, type ExpressLikeRequest, type ExpressLikeResponse, type FavoriteAgent, type FavoriteAgentMutation, type GrantBindingResult, type HeaderLike, type HealthCheckResult, InMemoryWebhookDedupe, type InstalledToolBindingPolicyRecord, type InstalledToolConnectionReadiness, type InstalledToolExecutionRecord, type InstalledToolPolicyUpdateResult, type InstalledToolReceiptRecord, type InstalledToolReceiptStepRecord, type InstalledToolRecord, type JsonObject, type JsonPrimitive, type JsonValue, LLMProvider, ListingCurrency, MINIMUM_JPY_OPERATION_PRICE_MINOR, type MarketNeedRecord, type MarketProposalActionResult, type MarketProposalRecord, type McpToolDescriptor, MeterClient, type MeterClientOptions, type MeterRecordResult, type MeteringInvoiceLinePreview, type MeteringSimulationResult, type NetworkClaimRecord, type NetworkContentDetail, type NetworkContentSummary, type NetworkEvidenceRecord, type NetworkRepliesPage, type OpenAIFunctionDefinition, OpenAIProvider, type OpenAIResponsesToolDefinition, type OperationExecution, type OperationMetadata, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, PersistenceMode, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type PricingPlan, type PricingPlanItem, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, type RewardPaidEvent, type RewardPayoutCancelledEvent, type RewardPayoutCreatedEvent, type RewardPayoutEventData, type RewardPayoutFailedEvent, type RewardPayoutProviderPendingEvent, type SandboxSession, SettlementMode, type SettlementReceipt, type SideEffectRecord, SiglumeAPIError, SiglumeAssistError, SiglumeBuyerClient, type SiglumeBuyerClientOptions, SiglumeClient, SiglumeClientError, type SiglumeClientOptions, type SiglumeClientShape, SiglumeError, SiglumeExperimentalError, SiglumeExperimentalWarning, SiglumeNotFoundError, SiglumeProjectError, SiglumeValidationError, SiglumeWebhookError, type SiglumeWebhookEvent, SiglumeWebhookPayloadError, SiglumeWebhookReplayError, SiglumeWebhookSignatureError, StoreVertical, type StructuredGenerationUsage, StubProvider, type Subscription, type SubscriptionCancelledEvent, type SubscriptionCreatedEvent, type SubscriptionLifecycleEventData, type SubscriptionPausedEvent, type SubscriptionReinstatedEvent, type SubscriptionRenewedEvent, type SupportCaseRecord, TOOL_MANUAL_DRAFT_PROMPT, type ToolManual, type ToolManualAssistAttempt, type ToolManualAssistMetadata, type ToolManualAssistResult, type ToolManualGrade, type ToolManualIssue, type ToolManualIssueSeverity, ToolManualPermissionClass, type ToolManualQualityReport, type ToolSchemaExport, type UsageEventRecord, type UsageRecord, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookCallback, type WebhookDeliveryRecord, type WebhookDispatchResult, type WebhookEventBase, type WebhookEventType, WebhookHandler, type WebhookSignatureVerification, type WebhookSubscriptionRecord, buildOperationMetadata, build_webhook_signature_header, compute_webhook_signature, defaultCapabilityKeyForOperation, defaultOperationOutputSchema, diff_manifest, diff_tool_manual, draft_tool_manual, fallbackOperationCatalog, fill_tool_manual_gaps, normalizeUsageRecord, parse_cross_currency_quote, parse_embedded_wallet_charge, parse_polygon_mandate, parse_queued_webhook_event, parse_settlement_receipt, parse_webhook_delivery, parse_webhook_event, parse_webhook_subscription, renderJson as render_json, score_tool_manual_offline, score_tool_manual_remote, simulate_embedded_wallet_charge, simulate_polygon_mandate, to_anthropic_tool, to_mcp_tool, to_openai_function, to_openai_responses_tool, tool_manual_to_dict, validate_tool_manual, verify_webhook_signature };
2772
+ export { type AccessGrantRecord, type AccountAlert, type AccountContentDeleteResult, type AccountContentPostResult, type AccountDigest, type AccountDigestItem, type AccountDigestSummary, type AccountFeedbackSubmission, type AccountPlan, type AccountPlanCancellation, type AccountPreferences, type AccountWatchlist, type AgentCharter, type AgentRecord, type AgentThreadRecord, type AgentTopicSubscription, AnthropicProvider, type AnthropicToolDefinition, AppAdapter, AppCategory, type AppListingRecord, type AppManifest, AppTestHarness, ApprovalMode, type ApprovalPolicy, type ApprovalRequestHint, type AutoRegistrationReceipt, type Awaitable, type BillingPortalLink, type BillingTiming, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CrossCurrencyQuote, type CursorPage, DEFAULT_OPERATION_AGENT_ID, DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type DeveloperPortalSummary, type EmbeddedWalletCharge, type EnvelopeMeta, Environment, type ExecutionArtifact, type ExecutionCompletedEvent, type ExecutionCompletedEventData, type ExecutionContext, type ExecutionFailedEvent, type ExecutionFailedEventData, ExecutionKind, type ExecutionResult, type ExpressLikeRequest, type ExpressLikeResponse, type FavoriteAgent, type FavoriteAgentMutation, type GrantBindingResult, type HeaderLike, type HealthCheckResult, InMemoryWebhookDedupe, type InstalledToolBindingPolicyRecord, type InstalledToolConnectionReadiness, type InstalledToolExecutionRecord, type InstalledToolPolicyUpdateResult, type InstalledToolReceiptRecord, type InstalledToolReceiptStepRecord, type InstalledToolRecord, type JsonObject, type JsonPrimitive, type JsonValue, LLMProvider, ListingCurrency, MINIMUM_JPY_OPERATION_PRICE_MINOR, type MarketNeedRecord, type MarketProposalActionResult, type MarketProposalRecord, type McpToolDescriptor, MeterClient, type MeterClientOptions, type MeterRecordResult, type MeteringInvoiceLinePreview, type MeteringSimulationResult, type NetworkClaimRecord, type NetworkContentDetail, type NetworkContentSummary, type NetworkEvidenceRecord, type NetworkRepliesPage, type OpenAIFunctionDefinition, OpenAIProvider, type OpenAIResponsesToolDefinition, type OperationExecution, type OperationMetadata, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, PersistenceMode, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type PricingPlan, type PricingPlanItem, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, type RewardPaidEvent, type RewardPayoutCancelledEvent, type RewardPayoutCreatedEvent, type RewardPayoutEventData, type RewardPayoutFailedEvent, type RewardPayoutProviderPendingEvent, type SandboxSession, SettlementMode, type SettlementReceipt, type SideEffectRecord, SiglumeAPIError, SiglumeAssistError, SiglumeBuyerClient, type SiglumeBuyerClientOptions, SiglumeClient, SiglumeClientError, type SiglumeClientOptions, type SiglumeClientShape, SiglumeError, SiglumeExperimentalError, SiglumeExperimentalWarning, SiglumeNotFoundError, SiglumeProjectError, SiglumeValidationError, SiglumeWebhookError, type SiglumeWebhookEvent, SiglumeWebhookPayloadError, SiglumeWebhookReplayError, SiglumeWebhookSignatureError, StoreVertical, type StructuredGenerationUsage, StubProvider, type Subscription, type SubscriptionCancelledEvent, type SubscriptionCreatedEvent, type SubscriptionLifecycleEventData, type SubscriptionPausedEvent, type SubscriptionReinstatedEvent, type SubscriptionRenewedEvent, type SupportCaseRecord, TOOL_MANUAL_DRAFT_PROMPT, type ToolManual, type ToolManualAssistAttempt, type ToolManualAssistMetadata, type ToolManualAssistResult, type ToolManualGrade, type ToolManualIssue, type ToolManualIssueSeverity, ToolManualPermissionClass, type ToolManualQualityReport, type ToolSchemaExport, type UsageEventRecord, type UsageRecord, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookCallback, type WebhookDeliveryRecord, type WebhookDispatchResult, type WebhookEventBase, type WebhookEventType, WebhookHandler, type WebhookSignatureVerification, type WebhookSubscriptionRecord, buildOperationMetadata, build_webhook_signature_header, compute_webhook_signature, defaultCapabilityKeyForOperation, defaultOperationOutputSchema, diff_manifest, diff_tool_manual, draft_tool_manual, fallbackOperationCatalog, fill_tool_manual_gaps, normalizeUsageRecord, parse_cross_currency_quote, parse_embedded_wallet_charge, parse_polygon_mandate, parse_queued_webhook_event, parse_settlement_receipt, parse_webhook_delivery, parse_webhook_event, parse_webhook_subscription, renderJson as render_json, score_tool_manual_offline, score_tool_manual_remote, simulate_embedded_wallet_charge, simulate_polygon_mandate, to_anthropic_tool, to_mcp_tool, to_openai_function, to_openai_responses_tool, tool_manual_to_dict, validate_tool_manual, verify_webhook_signature };
package/dist/index.js CHANGED
@@ -1837,12 +1837,6 @@ function parseListing(data) {
1837
1837
  seller_display_name: stringOrNull2(data.seller_display_name),
1838
1838
  seller_homepage_url: stringOrNull2(data.seller_homepage_url),
1839
1839
  seller_social_url: stringOrNull2(data.seller_social_url),
1840
- publisher_type: stringOrNull2(data.publisher_type),
1841
- publisher_company_id: stringOrNull2(data.publisher_company_id),
1842
- company_id: stringOrNull2(data.company_id),
1843
- company_name: stringOrNull2(data.company_name),
1844
- company_publish_status: stringOrNull2(data.company_publish_status),
1845
- company_terms_version: stringOrNull2(data.company_terms_version),
1846
1840
  review_status: stringOrNull2(data.review_status),
1847
1841
  review_note: stringOrNull2(data.review_note),
1848
1842
  submission_blockers: Array.isArray(data.submission_blockers) ? data.submission_blockers.filter((item) => typeof item === "string") : [],
@@ -1852,29 +1846,6 @@ function parseListing(data) {
1852
1846
  raw: { ...data }
1853
1847
  };
1854
1848
  }
1855
- function parseCompanyPublisher(data) {
1856
- const wallets = Array.isArray(data.settlement_wallets) ? data.settlement_wallets.filter((item) => isRecord2(item)) : [];
1857
- return {
1858
- company_id: String(data.company_id ?? data.id ?? ""),
1859
- name: String(data.name ?? ""),
1860
- status: String(data.status ?? ""),
1861
- description: stringOrNull2(data.description),
1862
- is_founder: Boolean(data.is_founder ?? false),
1863
- membership_role: stringOrNull2(data.membership_role),
1864
- membership_status: stringOrNull2(data.membership_status),
1865
- can_publish: Boolean(data.can_publish ?? true),
1866
- can_approve: Boolean(data.can_approve ?? false),
1867
- approval_required: Boolean(data.approval_required ?? false),
1868
- paid_listing_allowed: Boolean(data.paid_listing_allowed ?? false),
1869
- disabled_reasons: Array.isArray(data.disabled_reasons) ? data.disabled_reasons.filter((item) => typeof item === "string") : [],
1870
- company_terms_version: stringOrNull2(data.company_terms_version),
1871
- active_listing_count: Number(data.active_listing_count ?? 0),
1872
- pending_approval_count: Number(data.pending_approval_count ?? 0),
1873
- settlement_wallet_ready: Boolean(data.settlement_wallet_ready ?? false),
1874
- settlement_wallets: wallets.map((item) => ({ ...item })),
1875
- raw: { ...data }
1876
- };
1877
- }
1878
1849
  function parseCapabilitySaveState(data) {
1879
1850
  return {
1880
1851
  capability_key: String(data.capability_key ?? ""),
@@ -2789,9 +2760,6 @@ var init_client = __esm({
2789
2760
  "support_contact",
2790
2761
  "seller_homepage_url",
2791
2762
  "seller_social_url",
2792
- "publisher_type",
2793
- "company_id",
2794
- "publisher_company_id",
2795
2763
  "store_vertical",
2796
2764
  "jurisdiction",
2797
2765
  "price_model",
@@ -2865,25 +2833,6 @@ var init_client = __esm({
2865
2833
  );
2866
2834
  }
2867
2835
  }
2868
- const explicitPublisherType = payload.publisher_type !== void 0 && payload.publisher_type !== null;
2869
- const companyId = String(payload.company_id ?? "").trim() || String(payload.publisher_company_id ?? "").trim();
2870
- const publisherType = String(payload.publisher_type ?? "user").trim().toLowerCase();
2871
- if (publisherType !== "user" && publisherType !== "company") {
2872
- throw new SiglumeClientError("AppManifest.publisher_type must be 'user' or 'company'.");
2873
- }
2874
- if (publisherType === "company" && !companyId) {
2875
- throw new SiglumeClientError("AppManifest.company_id is required when publisher_type='company'.");
2876
- }
2877
- if (publisherType === "user" && companyId) {
2878
- throw new SiglumeClientError("AppManifest.company_id cannot be combined with publisher_type='user'.");
2879
- }
2880
- if (explicitPublisherType || companyId) {
2881
- payload.publisher_type = publisherType;
2882
- }
2883
- if (companyId) {
2884
- payload.company_id = companyId;
2885
- payload.publisher_company_id = companyId;
2886
- }
2887
2836
  validateManifestPersistenceContract(payload);
2888
2837
  if (payload.manifest && typeof payload.manifest === "object") {
2889
2838
  delete payload.manifest.version;
@@ -2926,8 +2875,12 @@ var init_client = __esm({
2926
2875
  };
2927
2876
  }
2928
2877
  async confirm_registration(listing_id, options = {}) {
2929
- const { version_bump: versionBump } = options;
2878
+ const { version_bump: versionBump, visibility = "public" } = options;
2930
2879
  const payload = { approved: true };
2880
+ if (visibility !== "public" && visibility !== "private") {
2881
+ throw new Error(`visibility must be one of ["public","private"], got ${JSON.stringify(visibility)}`);
2882
+ }
2883
+ payload.visibility = visibility;
2931
2884
  if (versionBump !== void 0) {
2932
2885
  const allowed = ["patch", "minor", "major"];
2933
2886
  if (!allowed.includes(versionBump)) {
@@ -2945,6 +2898,7 @@ var init_client = __esm({
2945
2898
  return {
2946
2899
  listing_id: String(data.listing_id ?? listing_id),
2947
2900
  status: String(data.status ?? ""),
2901
+ visibility: stringOrNull2(data.visibility),
2948
2902
  message: stringOrNull2(data.message),
2949
2903
  checklist,
2950
2904
  release: toRecord2(data.release),
@@ -2991,25 +2945,6 @@ var init_client = __esm({
2991
2945
  const [data] = await this.request("GET", `/market/capabilities/${listing_id}`);
2992
2946
  return parseListing(data);
2993
2947
  }
2994
- async list_company_publishers() {
2995
- const [data] = await this.request("GET", "/market/company-publishers");
2996
- return Array.isArray(data.items) ? data.items.filter((item) => isRecord2(item)).map(parseCompanyPublisher) : [];
2997
- }
2998
- async request_company_publish_approval(listing_id, note) {
2999
- const [data] = await this.request("POST", `/market/capabilities/${listing_id}/company-publish-approval`, {
3000
- json_body: note ? { note } : {}
3001
- });
3002
- return parseListing(data);
3003
- }
3004
- async decide_company_publish_approval(listing_id, options) {
3005
- const [data] = await this.request("POST", `/market/capabilities/${listing_id}/company-publish-approval/decision`, {
3006
- json_body: {
3007
- decision: options.decision,
3008
- ...options.reason ? { reason: options.reason } : {}
3009
- }
3010
- });
3011
- return parseListing(data);
3012
- }
3013
2948
  async get_capability_state(capability_key, save_key = "default") {
3014
2949
  const [data] = await this.request("GET", `/market/capability-state/${capability_key}/${save_key}`);
3015
2950
  return parseCapabilitySaveState(data);