@siglume/api-sdk 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/bin/siglume.cjs +25 -0
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +25 -0
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +25 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +12 -1
- package/dist/cli/index.d.ts +12 -1
- package/dist/cli/index.js +25 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +28 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -180,6 +180,16 @@ declare const AppCategory: {
|
|
|
180
180
|
readonly OTHER: "other";
|
|
181
181
|
};
|
|
182
182
|
type AppCategory = (typeof AppCategory)[keyof typeof AppCategory];
|
|
183
|
+
declare const StoreVertical: {
|
|
184
|
+
readonly API: "api";
|
|
185
|
+
readonly GAME: "game";
|
|
186
|
+
};
|
|
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];
|
|
183
193
|
interface ConnectedAccountRef {
|
|
184
194
|
provider_key: string;
|
|
185
195
|
session_token: string;
|
|
@@ -199,7 +209,7 @@ interface AppManifest {
|
|
|
199
209
|
permission_scopes?: string[];
|
|
200
210
|
price_model?: PriceModel;
|
|
201
211
|
price_value_minor?: number;
|
|
202
|
-
currency
|
|
212
|
+
currency: ListingCurrency;
|
|
203
213
|
jurisdiction: string;
|
|
204
214
|
applicable_regulations?: string[];
|
|
205
215
|
data_residency?: string;
|
|
@@ -209,6 +219,7 @@ interface AppManifest {
|
|
|
209
219
|
support_contact?: string;
|
|
210
220
|
seller_homepage_url?: string;
|
|
211
221
|
seller_social_url?: string;
|
|
222
|
+
store_vertical: StoreVertical;
|
|
212
223
|
compatibility_tags?: string[];
|
|
213
224
|
example_prompts?: string[];
|
|
214
225
|
latency_tier?: string;
|
|
@@ -2935,7 +2946,7 @@ declare class Recorder {
|
|
|
2935
2946
|
private createFetch;
|
|
2936
2947
|
}
|
|
2937
2948
|
|
|
2938
|
-
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";
|
|
2939
2950
|
type FetchLike = typeof fetch;
|
|
2940
2951
|
interface ProviderConfig {
|
|
2941
2952
|
provider_name: string;
|
|
@@ -3070,4 +3081,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3070
3081
|
|
|
3071
3082
|
declare function renderJson(value: unknown): string;
|
|
3072
3083
|
|
|
3073
|
-
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, 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
|
@@ -180,6 +180,16 @@ declare const AppCategory: {
|
|
|
180
180
|
readonly OTHER: "other";
|
|
181
181
|
};
|
|
182
182
|
type AppCategory = (typeof AppCategory)[keyof typeof AppCategory];
|
|
183
|
+
declare const StoreVertical: {
|
|
184
|
+
readonly API: "api";
|
|
185
|
+
readonly GAME: "game";
|
|
186
|
+
};
|
|
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];
|
|
183
193
|
interface ConnectedAccountRef {
|
|
184
194
|
provider_key: string;
|
|
185
195
|
session_token: string;
|
|
@@ -199,7 +209,7 @@ interface AppManifest {
|
|
|
199
209
|
permission_scopes?: string[];
|
|
200
210
|
price_model?: PriceModel;
|
|
201
211
|
price_value_minor?: number;
|
|
202
|
-
currency
|
|
212
|
+
currency: ListingCurrency;
|
|
203
213
|
jurisdiction: string;
|
|
204
214
|
applicable_regulations?: string[];
|
|
205
215
|
data_residency?: string;
|
|
@@ -209,6 +219,7 @@ interface AppManifest {
|
|
|
209
219
|
support_contact?: string;
|
|
210
220
|
seller_homepage_url?: string;
|
|
211
221
|
seller_social_url?: string;
|
|
222
|
+
store_vertical: StoreVertical;
|
|
212
223
|
compatibility_tags?: string[];
|
|
213
224
|
example_prompts?: string[];
|
|
214
225
|
latency_tier?: string;
|
|
@@ -2935,7 +2946,7 @@ declare class Recorder {
|
|
|
2935
2946
|
private createFetch;
|
|
2936
2947
|
}
|
|
2937
2948
|
|
|
2938
|
-
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";
|
|
2939
2950
|
type FetchLike = typeof fetch;
|
|
2940
2951
|
interface ProviderConfig {
|
|
2941
2952
|
provider_name: string;
|
|
@@ -3070,4 +3081,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3070
3081
|
|
|
3071
3082
|
declare function renderJson(value: unknown): string;
|
|
3072
3083
|
|
|
3073
|
-
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, 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
|
@@ -2818,9 +2818,11 @@ var init_client = __esm({
|
|
|
2818
2818
|
"support_contact",
|
|
2819
2819
|
"seller_homepage_url",
|
|
2820
2820
|
"seller_social_url",
|
|
2821
|
+
"store_vertical",
|
|
2821
2822
|
"jurisdiction",
|
|
2822
2823
|
"price_model",
|
|
2823
2824
|
"price_value_minor",
|
|
2825
|
+
"currency",
|
|
2824
2826
|
"permission_class",
|
|
2825
2827
|
"approval_mode",
|
|
2826
2828
|
"dry_run_supported",
|
|
@@ -2833,6 +2835,21 @@ var init_client = __esm({
|
|
|
2833
2835
|
payload[fieldName] = value;
|
|
2834
2836
|
}
|
|
2835
2837
|
}
|
|
2838
|
+
if (payload.store_vertical === void 0 || payload.store_vertical === null) {
|
|
2839
|
+
throw new SiglumeClientError(
|
|
2840
|
+
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
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;
|
|
2836
2853
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2837
2854
|
delete payload.manifest.version;
|
|
2838
2855
|
}
|
|
@@ -6365,6 +6382,14 @@ var AppCategory = {
|
|
|
6365
6382
|
MONITORING: "monitoring",
|
|
6366
6383
|
OTHER: "other"
|
|
6367
6384
|
};
|
|
6385
|
+
var StoreVertical = {
|
|
6386
|
+
API: "api",
|
|
6387
|
+
GAME: "game"
|
|
6388
|
+
};
|
|
6389
|
+
var ListingCurrency = {
|
|
6390
|
+
USD: "USD",
|
|
6391
|
+
JPY: "JPY"
|
|
6392
|
+
};
|
|
6368
6393
|
var ToolManualPermissionClass = {
|
|
6369
6394
|
READ_ONLY: "read_only",
|
|
6370
6395
|
ACTION: "action",
|
|
@@ -8074,7 +8099,7 @@ Follow these rules on every response:
|
|
|
8074
8099
|
6. \`summary_for_model\` should explain the tool's capability in one short factual paragraph.
|
|
8075
8100
|
7. \`usage_hints\`, \`result_hints\`, and \`error_hints\` should help an agent decide how to invoke and explain the tool.
|
|
8076
8101
|
8. For \`action\` and \`payment\`, include owner-approval framing, idempotency, and a governing \`jurisdiction\`.
|
|
8077
|
-
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.
|
|
8078
8103
|
10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.
|
|
8079
8104
|
`;
|
|
8080
8105
|
var LLMProvider = class {
|
|
@@ -8685,6 +8710,7 @@ export {
|
|
|
8685
8710
|
ExecutionKind,
|
|
8686
8711
|
InMemoryWebhookDedupe,
|
|
8687
8712
|
LLMProvider,
|
|
8713
|
+
ListingCurrency,
|
|
8688
8714
|
MeterClient,
|
|
8689
8715
|
OpenAIProvider,
|
|
8690
8716
|
PermissionClass,
|
|
@@ -8707,6 +8733,7 @@ export {
|
|
|
8707
8733
|
SiglumeWebhookPayloadError,
|
|
8708
8734
|
SiglumeWebhookReplayError,
|
|
8709
8735
|
SiglumeWebhookSignatureError,
|
|
8736
|
+
StoreVertical,
|
|
8710
8737
|
StubProvider,
|
|
8711
8738
|
TOOL_MANUAL_DRAFT_PROMPT,
|
|
8712
8739
|
ToolManualPermissionClass,
|