@remixhq/core 0.1.46 → 0.1.47
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/api.d.ts +42 -2
- package/dist/api.js +1 -1
- package/dist/{chunk-KANZPW3X.js → chunk-COO3TIHW.js} +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -72,6 +72,45 @@ type ImportHistoryResponse = {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
type Json = Record<string, unknown> | unknown[] | string | number | boolean | null;
|
|
75
|
+
type ApiResponse<T, StatusCode extends number = number> = {
|
|
76
|
+
success: boolean;
|
|
77
|
+
message: string;
|
|
78
|
+
responseObject: T;
|
|
79
|
+
statusCode: StatusCode;
|
|
80
|
+
};
|
|
81
|
+
type AppEditQueueStatus = "pending" | "enqueued" | "processing" | "succeeded" | "failed" | "cancelled";
|
|
82
|
+
type AppEditQueueItem = {
|
|
83
|
+
id: string;
|
|
84
|
+
status: AppEditQueueStatus;
|
|
85
|
+
cancellationRequested: boolean;
|
|
86
|
+
prompt: string | null;
|
|
87
|
+
messageId: string | null;
|
|
88
|
+
attachments: Array<Record<string, unknown>>;
|
|
89
|
+
error: string | null;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
runAfter: string | null;
|
|
93
|
+
priority: number;
|
|
94
|
+
threadId: string | null;
|
|
95
|
+
};
|
|
96
|
+
type AppEditQueuePage = {
|
|
97
|
+
items: AppEditQueueItem[];
|
|
98
|
+
pageInfo: {
|
|
99
|
+
limit: number;
|
|
100
|
+
offset: number;
|
|
101
|
+
hasMore: boolean;
|
|
102
|
+
} | null;
|
|
103
|
+
};
|
|
104
|
+
type AppEditQueueCancellationRequested = {
|
|
105
|
+
id: string;
|
|
106
|
+
status: "enqueued" | "processing";
|
|
107
|
+
cancellationRequested: true;
|
|
108
|
+
};
|
|
109
|
+
type AppEditQueueCancelledItem = AppEditQueueItem & {
|
|
110
|
+
status: "cancelled";
|
|
111
|
+
};
|
|
112
|
+
type AppEditQueueCancellationResult = AppEditQueueCancelledItem | AppEditQueueCancellationRequested;
|
|
113
|
+
type AppEditQueueCancellationResponse = ApiResponse<AppEditQueueCancelledItem, 200> | ApiResponse<AppEditQueueCancellationRequested, 202>;
|
|
75
114
|
type MergeRequestStatus = "open" | "approved" | "rejected" | "merged" | "closed";
|
|
76
115
|
type MergeRequest = {
|
|
77
116
|
id: string;
|
|
@@ -899,7 +938,8 @@ type ApiClient = {
|
|
|
899
938
|
limit?: number;
|
|
900
939
|
offset?: number;
|
|
901
940
|
threadId?: string;
|
|
902
|
-
}): Promise<
|
|
941
|
+
}): Promise<ApiResponse<AppEditQueuePage>>;
|
|
942
|
+
cancelAppEditQueueItem(appId: string, queueItemId: string): Promise<AppEditQueueCancellationResponse>;
|
|
903
943
|
listAppJobQueue(appId: string, params?: {
|
|
904
944
|
limit?: number;
|
|
905
945
|
offset?: number;
|
|
@@ -1292,4 +1332,4 @@ declare function createApiClient(config: CoreConfig, opts?: {
|
|
|
1292
1332
|
defaultRequestTimeoutMs?: number;
|
|
1293
1333
|
}): ApiClient;
|
|
1294
1334
|
|
|
1295
|
-
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppPreviewExpectedKind, type AppPreviewProcessStatus, type AppPreviewQuery, type AppPreviewResponse, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type AppShareLinkSummary, type AppThread, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type CreateAppShareLinkPayload, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type MobileQrPayloads, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
|
1335
|
+
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppEditQueueCancellationRequested, type AppEditQueueCancellationResponse, type AppEditQueueCancellationResult, type AppEditQueueCancelledItem, type AppEditQueueItem, type AppEditQueuePage, type AppEditQueueStatus, type AppPreviewExpectedKind, type AppPreviewProcessStatus, type AppPreviewQuery, type AppPreviewResponse, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type AppShareLinkSummary, type AppThread, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type CreateAppShareLinkPayload, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type MobileQrPayloads, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
package/dist/api.js
CHANGED
|
@@ -418,7 +418,12 @@ function createApiClient(config, opts) {
|
|
|
418
418
|
getAppMergePreview: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/merge-preview`, { method: "GET" }),
|
|
419
419
|
listAppTimeline: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/timeline${buildAppTimelineQuery(params)}`, { method: "GET" }),
|
|
420
420
|
getAppTimelineEvent: (appId, eventId) => request(`/v1/apps/${encodeURIComponent(appId)}/timeline/${encodeURIComponent(eventId)}`, { method: "GET" }),
|
|
421
|
-
listAppEditQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue${buildAppEditQueueQuery(params)}`, {
|
|
421
|
+
listAppEditQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue${buildAppEditQueueQuery(params)}`, {
|
|
422
|
+
method: "GET"
|
|
423
|
+
}),
|
|
424
|
+
cancelAppEditQueueItem: (appId, queueItemId) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue/${encodeURIComponent(queueItemId)}`, {
|
|
425
|
+
method: "DELETE"
|
|
426
|
+
}),
|
|
422
427
|
listAppJobQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/job-queue${buildAppJobQueueQuery(params)}`, { method: "GET" }),
|
|
423
428
|
getMergeRequest: (mrId) => request(`/v1/merge-requests/${encodeURIComponent(mrId)}`, { method: "GET" }),
|
|
424
429
|
presignImportUpload: (payload) => request("/v1/apps/import/upload/presign", { method: "POST", body: JSON.stringify(payload) }),
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { REMIX_ERROR_CODES, RemixErrorCode } from './errors.js';
|
|
|
3
3
|
export { CoreConfig, ResolveConfigOptions, configSchema, resolveConfig } from './config.js';
|
|
4
4
|
export { S as SessionStore, a as StoredSession, W as WithRefreshLock, c as createRefreshLock, b as createStoredSessionTokenProvider, s as shouldRefreshSoon, d as storedSessionSchema } from './tokenProvider-BP3YfJHm.js';
|
|
5
5
|
export { RemixAuthContinuationError, WorkosAuthChallenge, WorkosContinuationInput, createDefaultRefreshLock, createLocalSessionStore, createRemixAuthHelpers, defaultSessionFilePath, isInvalidGrantError, isNetworkError } from './auth.js';
|
|
6
|
-
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppPreviewExpectedKind, AppPreviewProcessStatus, AppPreviewQuery, AppPreviewResponse, AppReconcileResponse, AppSandboxCommandRun, AppShareLinkSummary, AppThread, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, CreateAppShareLinkPayload, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, MobileQrPayloads, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
6
|
+
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppEditQueueCancellationRequested, AppEditQueueCancellationResponse, AppEditQueueCancellationResult, AppEditQueueCancelledItem, AppEditQueueItem, AppEditQueuePage, AppEditQueueStatus, AppPreviewExpectedKind, AppPreviewProcessStatus, AppPreviewQuery, AppPreviewResponse, AppReconcileResponse, AppSandboxCommandRun, AppShareLinkSummary, AppThread, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, CreateAppShareLinkPayload, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, MobileQrPayloads, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import './contracts-BAr3-IX5.js';
|
package/dist/index.js
CHANGED