Migrate Nostr session sharing to ACP (#10022)
Co-authored-by: Douwe M Osinga <douwe@sidewalklabs.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -648,10 +648,6 @@ export type ImageContent = {
|
||||
mimeType: string;
|
||||
};
|
||||
|
||||
export type ImportSessionNostrRequest = {
|
||||
deeplink: string;
|
||||
};
|
||||
|
||||
export type InferenceMetadata = {
|
||||
provider: string;
|
||||
requestedModel: string;
|
||||
@@ -1448,17 +1444,6 @@ export type SetupResponse = {
|
||||
success: boolean;
|
||||
};
|
||||
|
||||
export type ShareSessionNostrRequest = {
|
||||
relays?: Array<string>;
|
||||
};
|
||||
|
||||
export type ShareSessionNostrResponse = {
|
||||
deeplink: string;
|
||||
eventId: string;
|
||||
nevent: string;
|
||||
relays: Array<string>;
|
||||
};
|
||||
|
||||
export type SlashCommand = {
|
||||
command: string;
|
||||
command_type: CommandType;
|
||||
@@ -4060,37 +4045,6 @@ export type UnpauseScheduleResponses = {
|
||||
|
||||
export type UnpauseScheduleResponse = UnpauseScheduleResponses[keyof UnpauseScheduleResponses];
|
||||
|
||||
export type ImportSessionNostrData = {
|
||||
body: ImportSessionNostrRequest;
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/sessions/import/nostr';
|
||||
};
|
||||
|
||||
export type ImportSessionNostrErrors = {
|
||||
/**
|
||||
* Bad request - Invalid Nostr share link
|
||||
*/
|
||||
400: unknown;
|
||||
/**
|
||||
* Unauthorized - Invalid or missing API key
|
||||
*/
|
||||
401: unknown;
|
||||
/**
|
||||
* Internal server error
|
||||
*/
|
||||
500: unknown;
|
||||
};
|
||||
|
||||
export type ImportSessionNostrResponses = {
|
||||
/**
|
||||
* Nostr shared session imported successfully
|
||||
*/
|
||||
200: Session;
|
||||
};
|
||||
|
||||
export type ImportSessionNostrResponse = ImportSessionNostrResponses[keyof ImportSessionNostrResponses];
|
||||
|
||||
export type SessionCancelData = {
|
||||
body: CancelRequest;
|
||||
path: {
|
||||
@@ -4328,42 +4282,6 @@ export type UpdateSessionNameResponses = {
|
||||
200: unknown;
|
||||
};
|
||||
|
||||
export type ShareSessionNostrData = {
|
||||
body: ShareSessionNostrRequest;
|
||||
path: {
|
||||
/**
|
||||
* Unique identifier for the session
|
||||
*/
|
||||
session_id: string;
|
||||
};
|
||||
query?: never;
|
||||
url: '/sessions/{session_id}/share/nostr';
|
||||
};
|
||||
|
||||
export type ShareSessionNostrErrors = {
|
||||
/**
|
||||
* Unauthorized - Invalid or missing API key
|
||||
*/
|
||||
401: unknown;
|
||||
/**
|
||||
* Session not found
|
||||
*/
|
||||
404: unknown;
|
||||
/**
|
||||
* Internal server error
|
||||
*/
|
||||
500: unknown;
|
||||
};
|
||||
|
||||
export type ShareSessionNostrResponses = {
|
||||
/**
|
||||
* Session shared to Nostr successfully
|
||||
*/
|
||||
200: ShareSessionNostrResponse;
|
||||
};
|
||||
|
||||
export type ShareSessionNostrResponse2 = ShareSessionNostrResponses[keyof ShareSessionNostrResponses];
|
||||
|
||||
export type UpdateSessionUserRecipeValuesData = {
|
||||
body: UpdateSessionUserRecipeValuesRequest;
|
||||
path: {
|
||||
|
||||
Reference in New Issue
Block a user