openmates 0.15.0-alpha.2 → 0.15.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2OC3X4RC.js → chunk-GTFUGLRD.js} +6776 -505
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +59 -3
- package/dist/index.js +6 -5283
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ declare class OpenMatesWsClient {
|
|
|
161
161
|
refreshToken: string | null;
|
|
162
162
|
userAgent?: string;
|
|
163
163
|
cookies?: Record<string, string>;
|
|
164
|
+
taskUpdateJobs?: boolean;
|
|
164
165
|
});
|
|
165
166
|
open(timeoutMs?: number): Promise<void>;
|
|
166
167
|
close(): void;
|
|
@@ -1096,7 +1097,7 @@ interface BankTransferStatus {
|
|
|
1096
1097
|
interface GiftCardBankTransferStatus extends BankTransferStatus {
|
|
1097
1098
|
gift_card_code?: string | null;
|
|
1098
1099
|
}
|
|
1099
|
-
interface ApiKeyCreateOptions {
|
|
1100
|
+
interface ApiKeyCreateOptions$1 {
|
|
1100
1101
|
name: string;
|
|
1101
1102
|
fullAccess?: boolean;
|
|
1102
1103
|
scopes?: Record<string, unknown>;
|
|
@@ -1108,6 +1109,23 @@ interface CreatedApiKeyResult {
|
|
|
1108
1109
|
key: unknown;
|
|
1109
1110
|
crypto: ApiKeyCryptoMaterial;
|
|
1110
1111
|
}
|
|
1112
|
+
interface ApiKeyRecord$1 {
|
|
1113
|
+
id: string;
|
|
1114
|
+
name: string;
|
|
1115
|
+
key_prefix: string;
|
|
1116
|
+
created_at?: string | null;
|
|
1117
|
+
expires_at?: string | null;
|
|
1118
|
+
last_used_at?: string | null;
|
|
1119
|
+
full_access?: boolean;
|
|
1120
|
+
scopes?: Record<string, unknown>;
|
|
1121
|
+
credit_limit?: Record<string, unknown> | null;
|
|
1122
|
+
pending_device_count?: number;
|
|
1123
|
+
encrypted_name?: string | null;
|
|
1124
|
+
encrypted_key_prefix?: string | null;
|
|
1125
|
+
}
|
|
1126
|
+
interface ApiKeyListResult {
|
|
1127
|
+
api_keys: ApiKeyRecord$1[];
|
|
1128
|
+
}
|
|
1111
1129
|
interface AuthMethodsStatus {
|
|
1112
1130
|
has_passkey?: boolean;
|
|
1113
1131
|
has_2fa?: boolean;
|
|
@@ -1599,7 +1617,10 @@ declare class OpenMatesClient {
|
|
|
1599
1617
|
createPlanVerification(planId: string, input: UserPlanVerificationRecord & Record<string, unknown>): Promise<UserPlanVerificationRecord>;
|
|
1600
1618
|
addPlanVerificationEvidence(planId: string, verificationId: string, input: Partial<UserPlanVerificationRecord>): Promise<UserPlanVerificationRecord>;
|
|
1601
1619
|
settingsGet(path: string, apiKey?: string): Promise<unknown>;
|
|
1602
|
-
createApiKey(options: ApiKeyCreateOptions): Promise<CreatedApiKeyResult>;
|
|
1620
|
+
createApiKey(options: ApiKeyCreateOptions$1): Promise<CreatedApiKeyResult>;
|
|
1621
|
+
listApiKeys(): Promise<ApiKeyListResult>;
|
|
1622
|
+
revokeApiKey(id: string): Promise<unknown>;
|
|
1623
|
+
private decryptApiKeyList;
|
|
1603
1624
|
settingsPost(path: string, body: Record<string, unknown>, apiKey?: string): Promise<unknown>;
|
|
1604
1625
|
settingsDelete(path: string, body?: Record<string, unknown>, apiKey?: string): Promise<unknown>;
|
|
1605
1626
|
settingsPatch(path: string, body: Record<string, unknown>, apiKey?: string): Promise<unknown>;
|
|
@@ -4810,6 +4831,30 @@ interface ConfirmedMutationOptions {
|
|
|
4810
4831
|
interface RequestOptions {
|
|
4811
4832
|
query?: Record<string, string | number | boolean | undefined | null>;
|
|
4812
4833
|
}
|
|
4834
|
+
interface ApiKeyCreateOptions {
|
|
4835
|
+
name: string;
|
|
4836
|
+
fullAccess?: boolean;
|
|
4837
|
+
scopes?: Record<string, unknown>;
|
|
4838
|
+
creditLimit?: Record<string, unknown> | null;
|
|
4839
|
+
expiresAt?: string | null;
|
|
4840
|
+
}
|
|
4841
|
+
interface ApiKeyRecord {
|
|
4842
|
+
id: string;
|
|
4843
|
+
name: string;
|
|
4844
|
+
keyPrefix: string;
|
|
4845
|
+
createdAt?: string | null;
|
|
4846
|
+
expiresAt?: string | null;
|
|
4847
|
+
lastUsedAt?: string | null;
|
|
4848
|
+
lastUsedLabel: string;
|
|
4849
|
+
fullAccess: boolean;
|
|
4850
|
+
scopes: Record<string, unknown>;
|
|
4851
|
+
creditLimit?: Record<string, unknown> | null;
|
|
4852
|
+
pendingDeviceCount: number;
|
|
4853
|
+
}
|
|
4854
|
+
interface ApiKeyCreateResult {
|
|
4855
|
+
apiKey: string;
|
|
4856
|
+
key: ApiKeyRecord;
|
|
4857
|
+
}
|
|
4813
4858
|
interface ApplicationPreviewStartOptions {
|
|
4814
4859
|
chatId: string;
|
|
4815
4860
|
sharedContext?: string;
|
|
@@ -4913,6 +4958,7 @@ declare class OpenMates {
|
|
|
4913
4958
|
readonly embeds: OpenMatesEmbeds;
|
|
4914
4959
|
readonly feedback: OpenMatesFeedback;
|
|
4915
4960
|
readonly inspirations: OpenMatesInspirations;
|
|
4961
|
+
readonly apiKeys: OpenMatesApiKeys;
|
|
4916
4962
|
readonly learningMode: OpenMatesLearningMode;
|
|
4917
4963
|
readonly memories: OpenMatesMemories;
|
|
4918
4964
|
readonly newChatSuggestions: OpenMatesNewChatSuggestions;
|
|
@@ -5019,6 +5065,16 @@ declare class OpenMatesSettings {
|
|
|
5019
5065
|
confirmed: true;
|
|
5020
5066
|
}): Promise<Record<string, unknown>>;
|
|
5021
5067
|
}
|
|
5068
|
+
declare class OpenMatesApiKeys {
|
|
5069
|
+
private readonly client;
|
|
5070
|
+
constructor(client: OpenMates);
|
|
5071
|
+
list(): Promise<{
|
|
5072
|
+
apiKeys: ApiKeyRecord[];
|
|
5073
|
+
}>;
|
|
5074
|
+
create(options: ApiKeyCreateOptions): Promise<ApiKeyCreateResult>;
|
|
5075
|
+
revoke(id: string): Promise<Record<string, unknown>>;
|
|
5076
|
+
private decryptRecord;
|
|
5077
|
+
}
|
|
5022
5078
|
declare class OpenMatesMemories {
|
|
5023
5079
|
private readonly client;
|
|
5024
5080
|
constructor(client: OpenMates);
|
|
@@ -5268,4 +5324,4 @@ type AssistantFeedbackDecision = {
|
|
|
5268
5324
|
};
|
|
5269
5325
|
declare function buildAssistantFeedbackDecision(rating: number): AssistantFeedbackDecision;
|
|
5270
5326
|
|
|
5271
|
-
export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type AssistantFeedbackDecision, type AuthMethodsStatus, type AuthoritativeChatReconciliation, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedDraft, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type DraftRecord, type EncryptedChatMetadata, type EncryptedDraft, type EncryptedDraftRecord, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, SUPPORT_URL, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds, reconcileAuthoritativeChats, renderSupportInfo };
|
|
5327
|
+
export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type ApiKeyCreateOptions, type ApiKeyCreateResult, type ApiKeyRecord, type AssistantFeedbackDecision, type AuthMethodsStatus, type AuthoritativeChatReconciliation, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedDraft, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type DraftRecord, type EncryptedChatMetadata, type EncryptedDraft, type EncryptedDraftRecord, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, SUPPORT_URL, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds, reconcileAuthoritativeChats, renderSupportInfo };
|