@siglume/api-sdk 0.10.4 → 0.10.6
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/bin/siglume.cjs +15 -0
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +15 -0
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +15 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +6 -1
- package/dist/cli/index.d.ts +6 -1
- package/dist/cli/index.js +15 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -185,6 +185,11 @@ declare const StoreVertical: {
|
|
|
185
185
|
readonly GAME: "game";
|
|
186
186
|
};
|
|
187
187
|
type StoreVertical = (typeof StoreVertical)[keyof typeof StoreVertical];
|
|
188
|
+
declare const ListingCurrency: {
|
|
189
|
+
readonly USD: "USD";
|
|
190
|
+
readonly JPY: "JPY";
|
|
191
|
+
};
|
|
192
|
+
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
188
193
|
interface ConnectedAccountRef {
|
|
189
194
|
provider_key: string;
|
|
190
195
|
session_token: string;
|
|
@@ -204,7 +209,7 @@ interface AppManifest {
|
|
|
204
209
|
permission_scopes?: string[];
|
|
205
210
|
price_model?: PriceModel;
|
|
206
211
|
price_value_minor?: number;
|
|
207
|
-
currency
|
|
212
|
+
currency: ListingCurrency;
|
|
208
213
|
jurisdiction: string;
|
|
209
214
|
applicable_regulations?: string[];
|
|
210
215
|
data_residency?: string;
|
|
@@ -2941,7 +2946,7 @@ declare class Recorder {
|
|
|
2941
2946
|
private createFetch;
|
|
2942
2947
|
}
|
|
2943
2948
|
|
|
2944
|
-
declare const TOOL_MANUAL_DRAFT_PROMPT = "# Siglume ToolManual Draft System Prompt\n\nYou generate ToolManual payloads for the Siglume API Store.\n\nFollow these rules on every response:\n\n1. Return only the structured payload requested by the caller's JSON schema.\n2. ToolManual permission_class values are `read_only`, `action`, and `payment`.\n3. Use factual, specific language. Do not use marketing words, hype, or vague phrases.\n4. `trigger_conditions` must describe concrete situations where the tool is the right next step.\n5. `do_not_use_when` must describe concrete situations where another tool or response is safer.\n6. `summary_for_model` should explain the tool's capability in one short factual paragraph.\n7. `usage_hints`, `result_hints`, and `error_hints` should help an agent decide how to invoke and explain the tool.\n8. For `action` and `payment`, include owner-approval framing, idempotency, and a governing `jurisdiction`.\n9. For `payment`, `currency` must
|
|
2949
|
+
declare const TOOL_MANUAL_DRAFT_PROMPT = "# Siglume ToolManual Draft System Prompt\n\nYou generate ToolManual payloads for the Siglume API Store.\n\nFollow these rules on every response:\n\n1. Return only the structured payload requested by the caller's JSON schema.\n2. ToolManual permission_class values are `read_only`, `action`, and `payment`.\n3. Use factual, specific language. Do not use marketing words, hype, or vague phrases.\n4. `trigger_conditions` must describe concrete situations where the tool is the right next step.\n5. `do_not_use_when` must describe concrete situations where another tool or response is safer.\n6. `summary_for_model` should explain the tool's capability in one short factual paragraph.\n7. `usage_hints`, `result_hints`, and `error_hints` should help an agent decide how to invoke and explain the tool.\n8. For `action` and `payment`, include owner-approval framing, idempotency, and a governing `jurisdiction`.\n9. For `payment`, `currency` must match the tool's payment payload and `settlement_mode` must be one of the documented Siglume values.\n10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.\n";
|
|
2945
2950
|
type FetchLike = typeof fetch;
|
|
2946
2951
|
interface ProviderConfig {
|
|
2947
2952
|
provider_name: string;
|
|
@@ -3076,4 +3081,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3076
3081
|
|
|
3077
3082
|
declare function renderJson(value: unknown): string;
|
|
3078
3083
|
|
|
3079
|
-
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 AdsBilling, type AdsBillingSettlement, type AdsCampaignPostRecord, type AdsCampaignRecord, type AdsProfile, 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, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPublishedEvent, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type ConnectedAccountLifecycleResult, type ConnectedAccountOAuthStart, type ConnectedAccountRecord, type ConnectedAccountRef, 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, 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 PartnerApiKeyHandle, type PartnerApiKeyRecord, type PartnerDashboard, type PartnerUsage, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, 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, type WorksCategoryRecord, type WorksOwnerDashboard, type WorksOwnerDashboardAgent, type WorksOwnerDashboardOrder, type WorksOwnerDashboardPitch, type WorksOwnerDashboardStats, type WorksPosterDashboard, type WorksPosterDashboardJob, type WorksPosterDashboardOrder, type WorksPosterDashboardStats, type WorksRegistrationRecord, 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 };
|
|
3084
|
+
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 AdsBilling, type AdsBillingSettlement, type AdsCampaignPostRecord, type AdsCampaignRecord, type AdsProfile, 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, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPublishedEvent, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type ConnectedAccountLifecycleResult, type ConnectedAccountOAuthStart, type ConnectedAccountRecord, type ConnectedAccountRef, 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, 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 PartnerApiKeyHandle, type PartnerApiKeyRecord, type PartnerDashboard, type PartnerUsage, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, 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, type WorksCategoryRecord, type WorksOwnerDashboard, type WorksOwnerDashboardAgent, type WorksOwnerDashboardOrder, type WorksOwnerDashboardPitch, type WorksOwnerDashboardStats, type WorksPosterDashboard, type WorksPosterDashboardJob, type WorksPosterDashboardOrder, type WorksPosterDashboardStats, type WorksRegistrationRecord, 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
|
@@ -185,6 +185,11 @@ declare const StoreVertical: {
|
|
|
185
185
|
readonly GAME: "game";
|
|
186
186
|
};
|
|
187
187
|
type StoreVertical = (typeof StoreVertical)[keyof typeof StoreVertical];
|
|
188
|
+
declare const ListingCurrency: {
|
|
189
|
+
readonly USD: "USD";
|
|
190
|
+
readonly JPY: "JPY";
|
|
191
|
+
};
|
|
192
|
+
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
188
193
|
interface ConnectedAccountRef {
|
|
189
194
|
provider_key: string;
|
|
190
195
|
session_token: string;
|
|
@@ -204,7 +209,7 @@ interface AppManifest {
|
|
|
204
209
|
permission_scopes?: string[];
|
|
205
210
|
price_model?: PriceModel;
|
|
206
211
|
price_value_minor?: number;
|
|
207
|
-
currency
|
|
212
|
+
currency: ListingCurrency;
|
|
208
213
|
jurisdiction: string;
|
|
209
214
|
applicable_regulations?: string[];
|
|
210
215
|
data_residency?: string;
|
|
@@ -2941,7 +2946,7 @@ declare class Recorder {
|
|
|
2941
2946
|
private createFetch;
|
|
2942
2947
|
}
|
|
2943
2948
|
|
|
2944
|
-
declare const TOOL_MANUAL_DRAFT_PROMPT = "# Siglume ToolManual Draft System Prompt\n\nYou generate ToolManual payloads for the Siglume API Store.\n\nFollow these rules on every response:\n\n1. Return only the structured payload requested by the caller's JSON schema.\n2. ToolManual permission_class values are `read_only`, `action`, and `payment`.\n3. Use factual, specific language. Do not use marketing words, hype, or vague phrases.\n4. `trigger_conditions` must describe concrete situations where the tool is the right next step.\n5. `do_not_use_when` must describe concrete situations where another tool or response is safer.\n6. `summary_for_model` should explain the tool's capability in one short factual paragraph.\n7. `usage_hints`, `result_hints`, and `error_hints` should help an agent decide how to invoke and explain the tool.\n8. For `action` and `payment`, include owner-approval framing, idempotency, and a governing `jurisdiction`.\n9. For `payment`, `currency` must
|
|
2949
|
+
declare const TOOL_MANUAL_DRAFT_PROMPT = "# Siglume ToolManual Draft System Prompt\n\nYou generate ToolManual payloads for the Siglume API Store.\n\nFollow these rules on every response:\n\n1. Return only the structured payload requested by the caller's JSON schema.\n2. ToolManual permission_class values are `read_only`, `action`, and `payment`.\n3. Use factual, specific language. Do not use marketing words, hype, or vague phrases.\n4. `trigger_conditions` must describe concrete situations where the tool is the right next step.\n5. `do_not_use_when` must describe concrete situations where another tool or response is safer.\n6. `summary_for_model` should explain the tool's capability in one short factual paragraph.\n7. `usage_hints`, `result_hints`, and `error_hints` should help an agent decide how to invoke and explain the tool.\n8. For `action` and `payment`, include owner-approval framing, idempotency, and a governing `jurisdiction`.\n9. For `payment`, `currency` must match the tool's payment payload and `settlement_mode` must be one of the documented Siglume values.\n10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.\n";
|
|
2945
2950
|
type FetchLike = typeof fetch;
|
|
2946
2951
|
interface ProviderConfig {
|
|
2947
2952
|
provider_name: string;
|
|
@@ -3076,4 +3081,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3076
3081
|
|
|
3077
3082
|
declare function renderJson(value: unknown): string;
|
|
3078
3083
|
|
|
3079
|
-
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 AdsBilling, type AdsBillingSettlement, type AdsCampaignPostRecord, type AdsCampaignRecord, type AdsProfile, 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, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPublishedEvent, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type ConnectedAccountLifecycleResult, type ConnectedAccountOAuthStart, type ConnectedAccountRecord, type ConnectedAccountRef, 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, 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 PartnerApiKeyHandle, type PartnerApiKeyRecord, type PartnerDashboard, type PartnerUsage, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, 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, type WorksCategoryRecord, type WorksOwnerDashboard, type WorksOwnerDashboardAgent, type WorksOwnerDashboardOrder, type WorksOwnerDashboardPitch, type WorksOwnerDashboardStats, type WorksPosterDashboard, type WorksPosterDashboardJob, type WorksPosterDashboardOrder, type WorksPosterDashboardStats, type WorksRegistrationRecord, 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 };
|
|
3084
|
+
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 AdsBilling, type AdsBillingSettlement, type AdsCampaignPostRecord, type AdsCampaignRecord, type AdsProfile, 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, BreakingChange, type BudgetPolicy, type BundleListingRecord, type BundleMember, type CapabilityBindingRecord, type CapabilityDelistedEvent, type CapabilityEventData, type CapabilityListing, type CapabilityPublishedEvent, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type ConnectedAccountLifecycleResult, type ConnectedAccountOAuthStart, type ConnectedAccountRecord, type ConnectedAccountRef, 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, 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 PartnerApiKeyHandle, type PartnerApiKeyRecord, type PartnerDashboard, type PartnerUsage, type PaymentEventData, type PaymentFailedEvent, type PaymentSucceededEvent, PermissionClass, type PlanCheckoutSession, type PlanWeb3Mandate, type PolygonMandate, PriceModel, type QueuedWebhookEvent, type ReceiptRef, RecordMode, Recorder, type RecorderOptions, type RegistrationConfirmation, type RegistrationQuality, 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, type WorksCategoryRecord, type WorksOwnerDashboard, type WorksOwnerDashboardAgent, type WorksOwnerDashboardOrder, type WorksOwnerDashboardPitch, type WorksOwnerDashboardStats, type WorksPosterDashboard, type WorksPosterDashboardJob, type WorksPosterDashboardOrder, type WorksPosterDashboardStats, type WorksRegistrationRecord, 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
|
@@ -2822,6 +2822,7 @@ var init_client = __esm({
|
|
|
2822
2822
|
"jurisdiction",
|
|
2823
2823
|
"price_model",
|
|
2824
2824
|
"price_value_minor",
|
|
2825
|
+
"currency",
|
|
2825
2826
|
"permission_class",
|
|
2826
2827
|
"approval_mode",
|
|
2827
2828
|
"dry_run_supported",
|
|
@@ -2839,6 +2840,16 @@ var init_client = __esm({
|
|
|
2839
2840
|
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
2840
2841
|
);
|
|
2841
2842
|
}
|
|
2843
|
+
const currency = String(payload.currency ?? "").trim().toUpperCase();
|
|
2844
|
+
if (!currency) {
|
|
2845
|
+
throw new SiglumeClientError(
|
|
2846
|
+
"AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
|
|
2847
|
+
);
|
|
2848
|
+
}
|
|
2849
|
+
if (currency !== "USD" && currency !== "JPY") {
|
|
2850
|
+
throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
|
|
2851
|
+
}
|
|
2852
|
+
payload.currency = currency;
|
|
2842
2853
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2843
2854
|
delete payload.manifest.version;
|
|
2844
2855
|
}
|
|
@@ -6375,6 +6386,10 @@ var StoreVertical = {
|
|
|
6375
6386
|
API: "api",
|
|
6376
6387
|
GAME: "game"
|
|
6377
6388
|
};
|
|
6389
|
+
var ListingCurrency = {
|
|
6390
|
+
USD: "USD",
|
|
6391
|
+
JPY: "JPY"
|
|
6392
|
+
};
|
|
6378
6393
|
var ToolManualPermissionClass = {
|
|
6379
6394
|
READ_ONLY: "read_only",
|
|
6380
6395
|
ACTION: "action",
|
|
@@ -8084,7 +8099,7 @@ Follow these rules on every response:
|
|
|
8084
8099
|
6. \`summary_for_model\` should explain the tool's capability in one short factual paragraph.
|
|
8085
8100
|
7. \`usage_hints\`, \`result_hints\`, and \`error_hints\` should help an agent decide how to invoke and explain the tool.
|
|
8086
8101
|
8. For \`action\` and \`payment\`, include owner-approval framing, idempotency, and a governing \`jurisdiction\`.
|
|
8087
|
-
9. For \`payment\`, \`currency\` must
|
|
8102
|
+
9. For \`payment\`, \`currency\` must match the tool's payment payload and \`settlement_mode\` must be one of the documented Siglume values.
|
|
8088
8103
|
10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.
|
|
8089
8104
|
`;
|
|
8090
8105
|
var LLMProvider = class {
|
|
@@ -8695,6 +8710,7 @@ export {
|
|
|
8695
8710
|
ExecutionKind,
|
|
8696
8711
|
InMemoryWebhookDedupe,
|
|
8697
8712
|
LLMProvider,
|
|
8713
|
+
ListingCurrency,
|
|
8698
8714
|
MeterClient,
|
|
8699
8715
|
OpenAIProvider,
|
|
8700
8716
|
PermissionClass,
|