@siglume/api-sdk 0.10.1 → 0.10.2
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 +5 -4
- package/dist/bin/siglume.cjs +134 -72
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +134 -72
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +134 -72
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +10 -13
- package/dist/cli/index.d.ts +10 -13
- package/dist/cli/index.js +134 -72
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +39 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -15
- package/dist/index.d.ts +20 -15
- package/dist/index.js +39 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -195,7 +195,7 @@ interface AppManifest {
|
|
|
195
195
|
permission_class: PermissionClass;
|
|
196
196
|
approval_mode?: ApprovalMode;
|
|
197
197
|
dry_run_supported?: boolean;
|
|
198
|
-
required_connected_accounts?:
|
|
198
|
+
required_connected_accounts?: unknown[];
|
|
199
199
|
permission_scopes?: string[];
|
|
200
200
|
price_model?: PriceModel;
|
|
201
201
|
price_value_minor?: number;
|
|
@@ -380,17 +380,6 @@ interface AppListingRecord {
|
|
|
380
380
|
updated_at?: string | null;
|
|
381
381
|
raw: Record<string, unknown>;
|
|
382
382
|
}
|
|
383
|
-
interface ConnectedAccountProvider {
|
|
384
|
-
provider_key: string;
|
|
385
|
-
display_name: string;
|
|
386
|
-
auth_type: string;
|
|
387
|
-
refresh_supported: boolean;
|
|
388
|
-
pkce_required: boolean;
|
|
389
|
-
default_scopes: string[];
|
|
390
|
-
available_scopes: string[];
|
|
391
|
-
scope_separator: string;
|
|
392
|
-
notes?: string | null;
|
|
393
|
-
}
|
|
394
383
|
interface ConnectedAccountOAuthStart {
|
|
395
384
|
authorize_url: string;
|
|
396
385
|
state: string;
|
|
@@ -1614,7 +1603,6 @@ interface SiglumeClientShape {
|
|
|
1614
1603
|
}): Promise<BundleListingRecord>;
|
|
1615
1604
|
remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
|
|
1616
1605
|
submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
|
|
1617
|
-
list_connected_account_providers(): Promise<ConnectedAccountProvider[]>;
|
|
1618
1606
|
start_connected_account_oauth(input: {
|
|
1619
1607
|
listing_id: string;
|
|
1620
1608
|
redirect_uri: string;
|
|
@@ -1625,6 +1613,15 @@ interface SiglumeClientShape {
|
|
|
1625
1613
|
provider_key: string;
|
|
1626
1614
|
client_id: string;
|
|
1627
1615
|
client_secret: string;
|
|
1616
|
+
authorize_url: string;
|
|
1617
|
+
token_url: string;
|
|
1618
|
+
revoke_url?: string;
|
|
1619
|
+
display_name?: string;
|
|
1620
|
+
scope_separator?: string;
|
|
1621
|
+
token_endpoint_auth?: string;
|
|
1622
|
+
pkce_required?: boolean;
|
|
1623
|
+
refresh_supported?: boolean;
|
|
1624
|
+
available_scopes?: string[];
|
|
1628
1625
|
required_scopes?: string[];
|
|
1629
1626
|
}): Promise<Record<string, unknown>>;
|
|
1630
1627
|
get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
|
|
@@ -2142,7 +2139,6 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2142
2139
|
}): Promise<BundleListingRecord>;
|
|
2143
2140
|
remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
|
|
2144
2141
|
submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
|
|
2145
|
-
list_connected_account_providers(): Promise<ConnectedAccountProvider[]>;
|
|
2146
2142
|
start_connected_account_oauth(input: {
|
|
2147
2143
|
listing_id: string;
|
|
2148
2144
|
redirect_uri: string;
|
|
@@ -2159,6 +2155,15 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2159
2155
|
provider_key: string;
|
|
2160
2156
|
client_id: string;
|
|
2161
2157
|
client_secret: string;
|
|
2158
|
+
authorize_url: string;
|
|
2159
|
+
token_url: string;
|
|
2160
|
+
revoke_url?: string;
|
|
2161
|
+
display_name?: string;
|
|
2162
|
+
scope_separator?: string;
|
|
2163
|
+
token_endpoint_auth?: string;
|
|
2164
|
+
pkce_required?: boolean;
|
|
2165
|
+
refresh_supported?: boolean;
|
|
2166
|
+
available_scopes?: string[];
|
|
2162
2167
|
required_scopes?: string[];
|
|
2163
2168
|
}): Promise<Record<string, unknown>>;
|
|
2164
2169
|
get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
|
|
@@ -3065,4 +3070,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3065
3070
|
|
|
3066
3071
|
declare function renderJson(value: unknown): string;
|
|
3067
3072
|
|
|
3068
|
-
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
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ interface AppManifest {
|
|
|
195
195
|
permission_class: PermissionClass;
|
|
196
196
|
approval_mode?: ApprovalMode;
|
|
197
197
|
dry_run_supported?: boolean;
|
|
198
|
-
required_connected_accounts?:
|
|
198
|
+
required_connected_accounts?: unknown[];
|
|
199
199
|
permission_scopes?: string[];
|
|
200
200
|
price_model?: PriceModel;
|
|
201
201
|
price_value_minor?: number;
|
|
@@ -380,17 +380,6 @@ interface AppListingRecord {
|
|
|
380
380
|
updated_at?: string | null;
|
|
381
381
|
raw: Record<string, unknown>;
|
|
382
382
|
}
|
|
383
|
-
interface ConnectedAccountProvider {
|
|
384
|
-
provider_key: string;
|
|
385
|
-
display_name: string;
|
|
386
|
-
auth_type: string;
|
|
387
|
-
refresh_supported: boolean;
|
|
388
|
-
pkce_required: boolean;
|
|
389
|
-
default_scopes: string[];
|
|
390
|
-
available_scopes: string[];
|
|
391
|
-
scope_separator: string;
|
|
392
|
-
notes?: string | null;
|
|
393
|
-
}
|
|
394
383
|
interface ConnectedAccountOAuthStart {
|
|
395
384
|
authorize_url: string;
|
|
396
385
|
state: string;
|
|
@@ -1614,7 +1603,6 @@ interface SiglumeClientShape {
|
|
|
1614
1603
|
}): Promise<BundleListingRecord>;
|
|
1615
1604
|
remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
|
|
1616
1605
|
submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
|
|
1617
|
-
list_connected_account_providers(): Promise<ConnectedAccountProvider[]>;
|
|
1618
1606
|
start_connected_account_oauth(input: {
|
|
1619
1607
|
listing_id: string;
|
|
1620
1608
|
redirect_uri: string;
|
|
@@ -1625,6 +1613,15 @@ interface SiglumeClientShape {
|
|
|
1625
1613
|
provider_key: string;
|
|
1626
1614
|
client_id: string;
|
|
1627
1615
|
client_secret: string;
|
|
1616
|
+
authorize_url: string;
|
|
1617
|
+
token_url: string;
|
|
1618
|
+
revoke_url?: string;
|
|
1619
|
+
display_name?: string;
|
|
1620
|
+
scope_separator?: string;
|
|
1621
|
+
token_endpoint_auth?: string;
|
|
1622
|
+
pkce_required?: boolean;
|
|
1623
|
+
refresh_supported?: boolean;
|
|
1624
|
+
available_scopes?: string[];
|
|
1628
1625
|
required_scopes?: string[];
|
|
1629
1626
|
}): Promise<Record<string, unknown>>;
|
|
1630
1627
|
get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
|
|
@@ -2142,7 +2139,6 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2142
2139
|
}): Promise<BundleListingRecord>;
|
|
2143
2140
|
remove_bundle_capability(bundle_id: string, capability_listing_id: string): Promise<BundleListingRecord>;
|
|
2144
2141
|
submit_bundle_for_review(bundle_id: string): Promise<BundleListingRecord>;
|
|
2145
|
-
list_connected_account_providers(): Promise<ConnectedAccountProvider[]>;
|
|
2146
2142
|
start_connected_account_oauth(input: {
|
|
2147
2143
|
listing_id: string;
|
|
2148
2144
|
redirect_uri: string;
|
|
@@ -2159,6 +2155,15 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2159
2155
|
provider_key: string;
|
|
2160
2156
|
client_id: string;
|
|
2161
2157
|
client_secret: string;
|
|
2158
|
+
authorize_url: string;
|
|
2159
|
+
token_url: string;
|
|
2160
|
+
revoke_url?: string;
|
|
2161
|
+
display_name?: string;
|
|
2162
|
+
scope_separator?: string;
|
|
2163
|
+
token_endpoint_auth?: string;
|
|
2164
|
+
pkce_required?: boolean;
|
|
2165
|
+
refresh_supported?: boolean;
|
|
2166
|
+
available_scopes?: string[];
|
|
2162
2167
|
required_scopes?: string[];
|
|
2163
2168
|
}): Promise<Record<string, unknown>>;
|
|
2164
2169
|
get_listing_oauth_credentials_status(listing_id: string): Promise<Record<string, unknown>>;
|
|
@@ -3065,4 +3070,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3065
3070
|
|
|
3066
3071
|
declare function renderJson(value: unknown): string;
|
|
3067
3072
|
|
|
3068
|
-
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
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1650,19 +1650,6 @@ function parseBundleMember(data) {
|
|
|
1650
1650
|
link_id: stringOrNull2(data.link_id)
|
|
1651
1651
|
};
|
|
1652
1652
|
}
|
|
1653
|
-
function parseConnectedAccountProvider(data) {
|
|
1654
|
-
return {
|
|
1655
|
-
provider_key: String(data.provider_key ?? ""),
|
|
1656
|
-
display_name: String(data.display_name ?? ""),
|
|
1657
|
-
auth_type: String(data.auth_type ?? "oauth2"),
|
|
1658
|
-
refresh_supported: Boolean(data.refresh_supported ?? false),
|
|
1659
|
-
pkce_required: Boolean(data.pkce_required ?? false),
|
|
1660
|
-
default_scopes: Array.isArray(data.default_scopes) ? data.default_scopes.filter((s) => typeof s === "string") : [],
|
|
1661
|
-
available_scopes: Array.isArray(data.available_scopes) ? data.available_scopes.filter((s) => typeof s === "string") : [],
|
|
1662
|
-
scope_separator: String(data.scope_separator ?? " "),
|
|
1663
|
-
notes: stringOrNull2(data.notes)
|
|
1664
|
-
};
|
|
1665
|
-
}
|
|
1666
1653
|
function parseConnectedAccountLifecycle(data) {
|
|
1667
1654
|
return {
|
|
1668
1655
|
connected_account_id: String(data.connected_account_id ?? ""),
|
|
@@ -2788,9 +2775,13 @@ var init_client = __esm({
|
|
|
2788
2775
|
async auto_register(manifest, tool_manual, options = {}) {
|
|
2789
2776
|
const manifestPayload = coerceMapping(manifest, "manifest");
|
|
2790
2777
|
const toolManualPayload = coerceMapping(tool_manual, "tool_manual");
|
|
2778
|
+
const toolManualForRequest = { ...toolManualPayload };
|
|
2779
|
+
const embeddedInputFormSpec = toolManualForRequest.input_form_spec;
|
|
2780
|
+
delete toolManualForRequest.input_form_spec;
|
|
2781
|
+
const inputFormSpec = options.input_form_spec ?? embeddedInputFormSpec;
|
|
2791
2782
|
const payload = {
|
|
2792
2783
|
manifest: { ...manifestPayload },
|
|
2793
|
-
tool_manual:
|
|
2784
|
+
tool_manual: toolManualForRequest
|
|
2794
2785
|
};
|
|
2795
2786
|
if (options.source_url) {
|
|
2796
2787
|
payload.source_url = options.source_url;
|
|
@@ -2812,8 +2803,8 @@ var init_client = __esm({
|
|
|
2812
2803
|
if (options.source_context) {
|
|
2813
2804
|
payload.source_context = coerceMapping(options.source_context, "source_context");
|
|
2814
2805
|
}
|
|
2815
|
-
if (
|
|
2816
|
-
payload.input_form_spec = coerceMapping(
|
|
2806
|
+
if (inputFormSpec !== void 0 && inputFormSpec !== null) {
|
|
2807
|
+
payload.input_form_spec = coerceMapping(inputFormSpec, "input_form_spec");
|
|
2817
2808
|
}
|
|
2818
2809
|
for (const fieldName of [
|
|
2819
2810
|
"capability_key",
|
|
@@ -2864,7 +2855,11 @@ var init_client = __esm({
|
|
|
2864
2855
|
if (!listing_id) {
|
|
2865
2856
|
throw new SiglumeClientError("Siglume auto-register response did not include listing_id.");
|
|
2866
2857
|
}
|
|
2867
|
-
this.pendingConfirmations.set(listing_id, {
|
|
2858
|
+
this.pendingConfirmations.set(listing_id, {
|
|
2859
|
+
manifest: manifestPayload,
|
|
2860
|
+
tool_manual: toRecord2(payload.tool_manual),
|
|
2861
|
+
input_form_spec: toRecord2(payload.input_form_spec)
|
|
2862
|
+
});
|
|
2868
2863
|
return {
|
|
2869
2864
|
listing_id,
|
|
2870
2865
|
status: String(data.status ?? "draft"),
|
|
@@ -3012,11 +3007,6 @@ var init_client = __esm({
|
|
|
3012
3007
|
// ----- end bundles -------------------------------------------------------
|
|
3013
3008
|
// ----- Connected accounts (v0.7 track 3) ---------------------------------
|
|
3014
3009
|
// `resolve()` is intentionally NOT wrapped: runtime-only, never over the wire.
|
|
3015
|
-
async list_connected_account_providers() {
|
|
3016
|
-
const [data] = await this.request("GET", "/me/connected-accounts/providers");
|
|
3017
|
-
const items = Array.isArray(data.items) ? data.items : [];
|
|
3018
|
-
return items.filter((item) => isRecord2(item)).map(parseConnectedAccountProvider);
|
|
3019
|
-
}
|
|
3020
3010
|
async start_connected_account_oauth(input) {
|
|
3021
3011
|
const body = {
|
|
3022
3012
|
listing_id: input.listing_id,
|
|
@@ -3053,8 +3043,17 @@ var init_client = __esm({
|
|
|
3053
3043
|
const body = {
|
|
3054
3044
|
provider_key: input.provider_key,
|
|
3055
3045
|
client_id: input.client_id,
|
|
3056
|
-
client_secret: input.client_secret
|
|
3046
|
+
client_secret: input.client_secret,
|
|
3047
|
+
authorize_url: input.authorize_url,
|
|
3048
|
+
token_url: input.token_url
|
|
3057
3049
|
};
|
|
3050
|
+
if (input.revoke_url !== void 0) body.revoke_url = input.revoke_url;
|
|
3051
|
+
if (input.display_name !== void 0) body.display_name = input.display_name;
|
|
3052
|
+
if (input.scope_separator !== void 0) body.scope_separator = input.scope_separator;
|
|
3053
|
+
if (input.token_endpoint_auth !== void 0) body.token_endpoint_auth = input.token_endpoint_auth;
|
|
3054
|
+
if (input.pkce_required !== void 0) body.pkce_required = input.pkce_required;
|
|
3055
|
+
if (input.refresh_supported !== void 0) body.refresh_supported = input.refresh_supported;
|
|
3056
|
+
if (input.available_scopes !== void 0) body.available_scopes = input.available_scopes;
|
|
3058
3057
|
if (input.required_scopes !== void 0) body.required_scopes = input.required_scopes;
|
|
3059
3058
|
const [data] = await this.request("PUT", `/market/capabilities/${listing_id}/oauth-credentials`, {
|
|
3060
3059
|
json_body: body
|
|
@@ -6798,16 +6797,24 @@ function coerceToolManual2(manual) {
|
|
|
6798
6797
|
}
|
|
6799
6798
|
function checkSchemaForbiddenRecursive(schema, rootField2, pushIssue, path = "") {
|
|
6800
6799
|
for (const keyword of COMPOSITION_KEYWORDS) {
|
|
6801
|
-
if (keyword in schema) {
|
|
6802
|
-
|
|
6803
|
-
pushIssue(
|
|
6804
|
-
issue(
|
|
6805
|
-
"INPUT_SCHEMA",
|
|
6806
|
-
`Composition keyword '${keyword}' is not allowed in beta${path ? ` at ${path}` : ""}`,
|
|
6807
|
-
location
|
|
6808
|
-
)
|
|
6809
|
-
);
|
|
6800
|
+
if (!(keyword in schema)) {
|
|
6801
|
+
continue;
|
|
6810
6802
|
}
|
|
6803
|
+
const branches = schema[keyword];
|
|
6804
|
+
const location = path ? `${rootField2}.${path}.${keyword}` : `${rootField2}.${keyword}`;
|
|
6805
|
+
if (!Array.isArray(branches) || branches.length === 0) {
|
|
6806
|
+
pushIssue(issue("INPUT_SCHEMA", `${keyword} must be a non-empty array`, location));
|
|
6807
|
+
continue;
|
|
6808
|
+
}
|
|
6809
|
+
branches.forEach((branch, index) => {
|
|
6810
|
+
const branchPath = path ? `${path}.${keyword}[${index}]` : `${keyword}[${index}]`;
|
|
6811
|
+
const branchLocation = `${rootField2}.${branchPath}`;
|
|
6812
|
+
if (!isRecord2(branch)) {
|
|
6813
|
+
pushIssue(issue("INPUT_SCHEMA", `${keyword}[${index}] must be an object`, branchLocation));
|
|
6814
|
+
return;
|
|
6815
|
+
}
|
|
6816
|
+
checkSchemaForbiddenRecursive(branch, rootField2, pushIssue, branchPath);
|
|
6817
|
+
});
|
|
6811
6818
|
}
|
|
6812
6819
|
for (const forbidden of INPUT_SCHEMA_FORBIDDEN_KEYS) {
|
|
6813
6820
|
if (forbidden in schema) {
|