@siglume/api-sdk 0.10.6 → 0.10.8
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 +99 -91
- package/dist/bin/siglume.cjs +336 -10
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +336 -10
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +336 -10
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +82 -0
- package/dist/cli/index.d.ts +82 -0
- package/dist/cli/index.js +336 -10
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +243 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -1
- package/dist/index.d.ts +103 -1
- package/dist/index.js +243 -1
- package/dist/index.js.map +1 -1
- package/package.json +58 -58
package/dist/index.d.cts
CHANGED
|
@@ -190,6 +190,27 @@ declare const ListingCurrency: {
|
|
|
190
190
|
readonly JPY: "JPY";
|
|
191
191
|
};
|
|
192
192
|
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
193
|
+
declare const PersistenceMode: {
|
|
194
|
+
readonly NONE: "none";
|
|
195
|
+
readonly LOCAL: "local";
|
|
196
|
+
readonly PLATFORM: "platform";
|
|
197
|
+
readonly DEVELOPER_SERVER: "developer_server";
|
|
198
|
+
};
|
|
199
|
+
type PersistenceMode = (typeof PersistenceMode)[keyof typeof PersistenceMode];
|
|
200
|
+
interface CapabilityPersistencePolicy {
|
|
201
|
+
mode: PersistenceMode;
|
|
202
|
+
schema_version?: string;
|
|
203
|
+
scope?: string;
|
|
204
|
+
restore_required?: boolean;
|
|
205
|
+
max_bytes?: number;
|
|
206
|
+
endpoint?: string | null;
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* JSON Schema for persisted game save data.
|
|
210
|
+
* Required when store_vertical is "game" and mode is not "none".
|
|
211
|
+
*/
|
|
212
|
+
save_data_schema?: Record<string, unknown>;
|
|
213
|
+
}
|
|
193
214
|
interface ConnectedAccountRef {
|
|
194
215
|
provider_key: string;
|
|
195
216
|
session_token: string;
|
|
@@ -210,6 +231,8 @@ interface AppManifest {
|
|
|
210
231
|
price_model?: PriceModel;
|
|
211
232
|
price_value_minor?: number;
|
|
212
233
|
currency: ListingCurrency;
|
|
234
|
+
allow_free_trial: boolean;
|
|
235
|
+
free_trial_duration_days?: number;
|
|
213
236
|
jurisdiction: string;
|
|
214
237
|
applicable_regulations?: string[];
|
|
215
238
|
data_residency?: string;
|
|
@@ -219,10 +242,14 @@ interface AppManifest {
|
|
|
219
242
|
support_contact?: string;
|
|
220
243
|
seller_homepage_url?: string;
|
|
221
244
|
seller_social_url?: string;
|
|
245
|
+
publisher_type?: "user" | "company";
|
|
246
|
+
company_id?: string;
|
|
247
|
+
publisher_company_id?: string;
|
|
222
248
|
store_vertical: StoreVertical;
|
|
223
249
|
compatibility_tags?: string[];
|
|
224
250
|
example_prompts?: string[];
|
|
225
251
|
latency_tier?: string;
|
|
252
|
+
persistence?: CapabilityPersistencePolicy;
|
|
226
253
|
}
|
|
227
254
|
interface ExecutionContext {
|
|
228
255
|
agent_id: string;
|
|
@@ -377,6 +404,8 @@ interface AppListingRecord {
|
|
|
377
404
|
price_model?: string | null;
|
|
378
405
|
price_value_minor: number;
|
|
379
406
|
currency: string;
|
|
407
|
+
allow_free_trial: boolean;
|
|
408
|
+
free_trial_duration_days: number;
|
|
380
409
|
short_description?: string | null;
|
|
381
410
|
description?: string | null;
|
|
382
411
|
docs_url?: string | null;
|
|
@@ -384,13 +413,53 @@ interface AppListingRecord {
|
|
|
384
413
|
seller_display_name?: string | null;
|
|
385
414
|
seller_homepage_url?: string | null;
|
|
386
415
|
seller_social_url?: string | null;
|
|
416
|
+
publisher_type?: string | null;
|
|
417
|
+
publisher_company_id?: string | null;
|
|
418
|
+
company_id?: string | null;
|
|
419
|
+
company_name?: string | null;
|
|
420
|
+
company_publish_status?: string | null;
|
|
421
|
+
company_terms_version?: string | null;
|
|
387
422
|
review_status?: string | null;
|
|
388
423
|
review_note?: string | null;
|
|
389
424
|
submission_blockers: string[];
|
|
425
|
+
persistence: Record<string, unknown>;
|
|
390
426
|
created_at?: string | null;
|
|
391
427
|
updated_at?: string | null;
|
|
392
428
|
raw: Record<string, unknown>;
|
|
393
429
|
}
|
|
430
|
+
interface CompanyPublisherRecord {
|
|
431
|
+
company_id: string;
|
|
432
|
+
name: string;
|
|
433
|
+
status: string;
|
|
434
|
+
description?: string | null;
|
|
435
|
+
is_founder: boolean;
|
|
436
|
+
membership_role?: string | null;
|
|
437
|
+
membership_status?: string | null;
|
|
438
|
+
can_publish: boolean;
|
|
439
|
+
can_approve: boolean;
|
|
440
|
+
approval_required: boolean;
|
|
441
|
+
paid_listing_allowed: boolean;
|
|
442
|
+
disabled_reasons: string[];
|
|
443
|
+
company_terms_version?: string | null;
|
|
444
|
+
active_listing_count: number;
|
|
445
|
+
pending_approval_count: number;
|
|
446
|
+
settlement_wallet_ready: boolean;
|
|
447
|
+
settlement_wallets: Array<Record<string, unknown>>;
|
|
448
|
+
raw: Record<string, unknown>;
|
|
449
|
+
}
|
|
450
|
+
interface CapabilitySaveStateRecord {
|
|
451
|
+
capability_key: string;
|
|
452
|
+
save_key: string;
|
|
453
|
+
schema_version: string;
|
|
454
|
+
revision: number;
|
|
455
|
+
payload: Record<string, unknown>;
|
|
456
|
+
metadata: Record<string, unknown>;
|
|
457
|
+
checksum?: string | null;
|
|
458
|
+
updated_at?: string | null;
|
|
459
|
+
created_at?: string | null;
|
|
460
|
+
exists: boolean;
|
|
461
|
+
raw: Record<string, unknown>;
|
|
462
|
+
}
|
|
394
463
|
interface ConnectedAccountOAuthStart {
|
|
395
464
|
authorize_url: string;
|
|
396
465
|
state: string;
|
|
@@ -1574,6 +1643,19 @@ interface SiglumeClientShape {
|
|
|
1574
1643
|
cursor?: string;
|
|
1575
1644
|
}): Promise<CursorPage<AppListingRecord>>;
|
|
1576
1645
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
1646
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
1647
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
1648
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
1649
|
+
decision: "approve" | "reject";
|
|
1650
|
+
reason?: string;
|
|
1651
|
+
}): Promise<AppListingRecord>;
|
|
1652
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1653
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
1654
|
+
schema_version?: string;
|
|
1655
|
+
expected_revision?: number | null;
|
|
1656
|
+
metadata?: Record<string, unknown>;
|
|
1657
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
1658
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1577
1659
|
list_capabilities(options?: {
|
|
1578
1660
|
mine?: boolean;
|
|
1579
1661
|
status?: string;
|
|
@@ -2116,6 +2198,19 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2116
2198
|
cursor?: string;
|
|
2117
2199
|
}): Promise<CursorPageResult<AppListingRecord>>;
|
|
2118
2200
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
2201
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
2202
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
2203
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
2204
|
+
decision: "approve" | "reject";
|
|
2205
|
+
reason?: string;
|
|
2206
|
+
}): Promise<AppListingRecord>;
|
|
2207
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
2208
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
2209
|
+
schema_version?: string;
|
|
2210
|
+
expected_revision?: number | null;
|
|
2211
|
+
metadata?: Record<string, unknown>;
|
|
2212
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
2213
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
2119
2214
|
list_bundles(options?: {
|
|
2120
2215
|
mine?: boolean;
|
|
2121
2216
|
status?: string;
|
|
@@ -2702,6 +2797,13 @@ declare class SiglumeBuyerClient {
|
|
|
2702
2797
|
buyer_currency?: string;
|
|
2703
2798
|
buyer_token?: string;
|
|
2704
2799
|
}): Promise<Subscription>;
|
|
2800
|
+
start_trial(options: {
|
|
2801
|
+
capability_key: string;
|
|
2802
|
+
agent_id?: string;
|
|
2803
|
+
bind_agent?: boolean;
|
|
2804
|
+
binding_status?: string;
|
|
2805
|
+
}): Promise<Subscription>;
|
|
2806
|
+
get_trial_quota(): Promise<Record<string, unknown>>;
|
|
2705
2807
|
invoke(options: {
|
|
2706
2808
|
capability_key: string;
|
|
2707
2809
|
input: Record<string, unknown>;
|
|
@@ -3081,4 +3183,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3081
3183
|
|
|
3082
3184
|
declare function renderJson(value: unknown): string;
|
|
3083
3185
|
|
|
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 };
|
|
3186
|
+
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 CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CompanyPublisherRecord, 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, PersistenceMode, 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
|
@@ -190,6 +190,27 @@ declare const ListingCurrency: {
|
|
|
190
190
|
readonly JPY: "JPY";
|
|
191
191
|
};
|
|
192
192
|
type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
|
|
193
|
+
declare const PersistenceMode: {
|
|
194
|
+
readonly NONE: "none";
|
|
195
|
+
readonly LOCAL: "local";
|
|
196
|
+
readonly PLATFORM: "platform";
|
|
197
|
+
readonly DEVELOPER_SERVER: "developer_server";
|
|
198
|
+
};
|
|
199
|
+
type PersistenceMode = (typeof PersistenceMode)[keyof typeof PersistenceMode];
|
|
200
|
+
interface CapabilityPersistencePolicy {
|
|
201
|
+
mode: PersistenceMode;
|
|
202
|
+
schema_version?: string;
|
|
203
|
+
scope?: string;
|
|
204
|
+
restore_required?: boolean;
|
|
205
|
+
max_bytes?: number;
|
|
206
|
+
endpoint?: string | null;
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* JSON Schema for persisted game save data.
|
|
210
|
+
* Required when store_vertical is "game" and mode is not "none".
|
|
211
|
+
*/
|
|
212
|
+
save_data_schema?: Record<string, unknown>;
|
|
213
|
+
}
|
|
193
214
|
interface ConnectedAccountRef {
|
|
194
215
|
provider_key: string;
|
|
195
216
|
session_token: string;
|
|
@@ -210,6 +231,8 @@ interface AppManifest {
|
|
|
210
231
|
price_model?: PriceModel;
|
|
211
232
|
price_value_minor?: number;
|
|
212
233
|
currency: ListingCurrency;
|
|
234
|
+
allow_free_trial: boolean;
|
|
235
|
+
free_trial_duration_days?: number;
|
|
213
236
|
jurisdiction: string;
|
|
214
237
|
applicable_regulations?: string[];
|
|
215
238
|
data_residency?: string;
|
|
@@ -219,10 +242,14 @@ interface AppManifest {
|
|
|
219
242
|
support_contact?: string;
|
|
220
243
|
seller_homepage_url?: string;
|
|
221
244
|
seller_social_url?: string;
|
|
245
|
+
publisher_type?: "user" | "company";
|
|
246
|
+
company_id?: string;
|
|
247
|
+
publisher_company_id?: string;
|
|
222
248
|
store_vertical: StoreVertical;
|
|
223
249
|
compatibility_tags?: string[];
|
|
224
250
|
example_prompts?: string[];
|
|
225
251
|
latency_tier?: string;
|
|
252
|
+
persistence?: CapabilityPersistencePolicy;
|
|
226
253
|
}
|
|
227
254
|
interface ExecutionContext {
|
|
228
255
|
agent_id: string;
|
|
@@ -377,6 +404,8 @@ interface AppListingRecord {
|
|
|
377
404
|
price_model?: string | null;
|
|
378
405
|
price_value_minor: number;
|
|
379
406
|
currency: string;
|
|
407
|
+
allow_free_trial: boolean;
|
|
408
|
+
free_trial_duration_days: number;
|
|
380
409
|
short_description?: string | null;
|
|
381
410
|
description?: string | null;
|
|
382
411
|
docs_url?: string | null;
|
|
@@ -384,13 +413,53 @@ interface AppListingRecord {
|
|
|
384
413
|
seller_display_name?: string | null;
|
|
385
414
|
seller_homepage_url?: string | null;
|
|
386
415
|
seller_social_url?: string | null;
|
|
416
|
+
publisher_type?: string | null;
|
|
417
|
+
publisher_company_id?: string | null;
|
|
418
|
+
company_id?: string | null;
|
|
419
|
+
company_name?: string | null;
|
|
420
|
+
company_publish_status?: string | null;
|
|
421
|
+
company_terms_version?: string | null;
|
|
387
422
|
review_status?: string | null;
|
|
388
423
|
review_note?: string | null;
|
|
389
424
|
submission_blockers: string[];
|
|
425
|
+
persistence: Record<string, unknown>;
|
|
390
426
|
created_at?: string | null;
|
|
391
427
|
updated_at?: string | null;
|
|
392
428
|
raw: Record<string, unknown>;
|
|
393
429
|
}
|
|
430
|
+
interface CompanyPublisherRecord {
|
|
431
|
+
company_id: string;
|
|
432
|
+
name: string;
|
|
433
|
+
status: string;
|
|
434
|
+
description?: string | null;
|
|
435
|
+
is_founder: boolean;
|
|
436
|
+
membership_role?: string | null;
|
|
437
|
+
membership_status?: string | null;
|
|
438
|
+
can_publish: boolean;
|
|
439
|
+
can_approve: boolean;
|
|
440
|
+
approval_required: boolean;
|
|
441
|
+
paid_listing_allowed: boolean;
|
|
442
|
+
disabled_reasons: string[];
|
|
443
|
+
company_terms_version?: string | null;
|
|
444
|
+
active_listing_count: number;
|
|
445
|
+
pending_approval_count: number;
|
|
446
|
+
settlement_wallet_ready: boolean;
|
|
447
|
+
settlement_wallets: Array<Record<string, unknown>>;
|
|
448
|
+
raw: Record<string, unknown>;
|
|
449
|
+
}
|
|
450
|
+
interface CapabilitySaveStateRecord {
|
|
451
|
+
capability_key: string;
|
|
452
|
+
save_key: string;
|
|
453
|
+
schema_version: string;
|
|
454
|
+
revision: number;
|
|
455
|
+
payload: Record<string, unknown>;
|
|
456
|
+
metadata: Record<string, unknown>;
|
|
457
|
+
checksum?: string | null;
|
|
458
|
+
updated_at?: string | null;
|
|
459
|
+
created_at?: string | null;
|
|
460
|
+
exists: boolean;
|
|
461
|
+
raw: Record<string, unknown>;
|
|
462
|
+
}
|
|
394
463
|
interface ConnectedAccountOAuthStart {
|
|
395
464
|
authorize_url: string;
|
|
396
465
|
state: string;
|
|
@@ -1574,6 +1643,19 @@ interface SiglumeClientShape {
|
|
|
1574
1643
|
cursor?: string;
|
|
1575
1644
|
}): Promise<CursorPage<AppListingRecord>>;
|
|
1576
1645
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
1646
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
1647
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
1648
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
1649
|
+
decision: "approve" | "reject";
|
|
1650
|
+
reason?: string;
|
|
1651
|
+
}): Promise<AppListingRecord>;
|
|
1652
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1653
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
1654
|
+
schema_version?: string;
|
|
1655
|
+
expected_revision?: number | null;
|
|
1656
|
+
metadata?: Record<string, unknown>;
|
|
1657
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
1658
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
1577
1659
|
list_capabilities(options?: {
|
|
1578
1660
|
mine?: boolean;
|
|
1579
1661
|
status?: string;
|
|
@@ -2116,6 +2198,19 @@ declare class SiglumeClient implements SiglumeClientShape {
|
|
|
2116
2198
|
cursor?: string;
|
|
2117
2199
|
}): Promise<CursorPageResult<AppListingRecord>>;
|
|
2118
2200
|
get_listing(listing_id: string): Promise<AppListingRecord>;
|
|
2201
|
+
list_company_publishers(): Promise<CompanyPublisherRecord[]>;
|
|
2202
|
+
request_company_publish_approval(listing_id: string, note?: string): Promise<AppListingRecord>;
|
|
2203
|
+
decide_company_publish_approval(listing_id: string, options: {
|
|
2204
|
+
decision: "approve" | "reject";
|
|
2205
|
+
reason?: string;
|
|
2206
|
+
}): Promise<AppListingRecord>;
|
|
2207
|
+
get_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
2208
|
+
put_capability_state(capability_key: string, save_key?: string, payload?: Record<string, unknown>, options?: {
|
|
2209
|
+
schema_version?: string;
|
|
2210
|
+
expected_revision?: number | null;
|
|
2211
|
+
metadata?: Record<string, unknown>;
|
|
2212
|
+
}): Promise<CapabilitySaveStateRecord>;
|
|
2213
|
+
delete_capability_state(capability_key: string, save_key?: string): Promise<CapabilitySaveStateRecord>;
|
|
2119
2214
|
list_bundles(options?: {
|
|
2120
2215
|
mine?: boolean;
|
|
2121
2216
|
status?: string;
|
|
@@ -2702,6 +2797,13 @@ declare class SiglumeBuyerClient {
|
|
|
2702
2797
|
buyer_currency?: string;
|
|
2703
2798
|
buyer_token?: string;
|
|
2704
2799
|
}): Promise<Subscription>;
|
|
2800
|
+
start_trial(options: {
|
|
2801
|
+
capability_key: string;
|
|
2802
|
+
agent_id?: string;
|
|
2803
|
+
bind_agent?: boolean;
|
|
2804
|
+
binding_status?: string;
|
|
2805
|
+
}): Promise<Subscription>;
|
|
2806
|
+
get_trial_quota(): Promise<Record<string, unknown>>;
|
|
2705
2807
|
invoke(options: {
|
|
2706
2808
|
capability_key: string;
|
|
2707
2809
|
input: Record<string, unknown>;
|
|
@@ -3081,4 +3183,4 @@ declare function validate_tool_manual(manualInput: ManualInput): [boolean, ToolM
|
|
|
3081
3183
|
|
|
3082
3184
|
declare function renderJson(value: unknown): string;
|
|
3083
3185
|
|
|
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 };
|
|
3186
|
+
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 CapabilityPersistencePolicy, type CapabilityPublishedEvent, type CapabilitySaveStateRecord, type CassetteFile, type CassetteInteraction, type Change, ChangeLevel, type CompanyPublisherRecord, 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, PersistenceMode, 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 };
|