@madewithremy/admin 0.1.11 → 0.1.13
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/index.d.ts +61 -7
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/prod.js +72 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1181,9 +1181,13 @@ interface DataSourceJob {
|
|
|
1181
1181
|
budgetCredits: number | null;
|
|
1182
1182
|
budgetDollars: number | null;
|
|
1183
1183
|
maxInflightBatches: number;
|
|
1184
|
+
/** Embedding at the provider's priority tier (1.5x the embedding price). */
|
|
1185
|
+
priority: boolean;
|
|
1184
1186
|
limitObjects: number | null;
|
|
1185
1187
|
enumerationDone: boolean;
|
|
1186
1188
|
counts: {
|
|
1189
|
+
/** Keys the planning walk listed, before the change diff: progress, not work. */
|
|
1190
|
+
objectsListed: number;
|
|
1187
1191
|
objectsSeen: number;
|
|
1188
1192
|
bytesSeen: number;
|
|
1189
1193
|
objectsDispatched: number;
|
|
@@ -1210,6 +1214,10 @@ interface DataSourceJob {
|
|
|
1210
1214
|
*/
|
|
1211
1215
|
pauseReason: 'user' | 'budget' | 'errors' | 'skips' | null;
|
|
1212
1216
|
stalled: boolean;
|
|
1217
|
+
/** Times a pause for errors resumed itself on its own schedule. */
|
|
1218
|
+
autoResumes: number;
|
|
1219
|
+
/** When a pause for errors will next resume itself; null when it waits for you. */
|
|
1220
|
+
autoResumeAt: string | null;
|
|
1213
1221
|
createdAt: string;
|
|
1214
1222
|
startedAt: string | null;
|
|
1215
1223
|
finishedAt: string | null;
|
|
@@ -1278,6 +1286,8 @@ interface DataSourceConnector {
|
|
|
1278
1286
|
policy: DataSourceConnectorPolicy;
|
|
1279
1287
|
lastSyncJobId: string | null;
|
|
1280
1288
|
lastSyncedAt: string | null;
|
|
1289
|
+
/** Keys the last sync's walk listed: the bucket's size as of then. */
|
|
1290
|
+
lastSyncObjectsListed: number | null;
|
|
1281
1291
|
lastError: string | null;
|
|
1282
1292
|
/** Only on GET: how many customer keys the index tracks. */
|
|
1283
1293
|
objects?: {
|
|
@@ -1936,6 +1946,16 @@ interface DataSourcesPlacement {
|
|
|
1936
1946
|
* A sibling of `placement` because a source on the shared pool (placement
|
|
1937
1947
|
* null) can be moving too.
|
|
1938
1948
|
*/
|
|
1949
|
+
/**
|
|
1950
|
+
* Dedicated capacity's index, as Qdrant reports it: `deferred` while a bulk
|
|
1951
|
+
* load runs (the node writes, nothing is indexed), `building` while the graph
|
|
1952
|
+
* is built after one, `ready` otherwise.
|
|
1953
|
+
*/
|
|
1954
|
+
interface DataSourcesIndex {
|
|
1955
|
+
state: 'ready' | 'deferred' | 'building';
|
|
1956
|
+
indexedVectors: number;
|
|
1957
|
+
totalVectors: number;
|
|
1958
|
+
}
|
|
1939
1959
|
interface DataSourcesMigration {
|
|
1940
1960
|
/** Where it is going; null is the shared pool. */
|
|
1941
1961
|
toResourceId: string | null;
|
|
@@ -1977,6 +1997,13 @@ interface DataSourcesListEntry {
|
|
|
1977
1997
|
connector: DataSourceConnector | null;
|
|
1978
1998
|
/** An index reload in flight after an eviction, or its last failure. */
|
|
1979
1999
|
hydration: DataSourcesHydration | null;
|
|
2000
|
+
/**
|
|
2001
|
+
* Dedicated capacity only; null on the shared pool. `deferred` while a bulk
|
|
2002
|
+
* load runs (the node writes, nothing is indexed), `building` while the
|
|
2003
|
+
* index is built after one, `ready` otherwise. Search answers
|
|
2004
|
+
* `index_building` (503) in the first two states.
|
|
2005
|
+
*/
|
|
2006
|
+
index: DataSourcesIndex | null;
|
|
1980
2007
|
/** The source this one was sampled from (`datasources sample`), or null. */
|
|
1981
2008
|
sampleOf: string | null;
|
|
1982
2009
|
/** The mapper the live release declares for this source, or null. */
|
|
@@ -2695,6 +2722,11 @@ interface StartParams {
|
|
|
2695
2722
|
budgetDollars?: number;
|
|
2696
2723
|
/** Batches in flight at once (default 64, max 128). */
|
|
2697
2724
|
concurrency?: number;
|
|
2725
|
+
/**
|
|
2726
|
+
* Embed at the provider's priority tier: calls are admitted ahead of the
|
|
2727
|
+
* provider's queue at 1.5x the embedding price. Off by default.
|
|
2728
|
+
*/
|
|
2729
|
+
priority?: boolean;
|
|
2698
2730
|
/** Process only the first N objects — a sample of the corpus. */
|
|
2699
2731
|
limit?: number;
|
|
2700
2732
|
}
|
|
@@ -2746,6 +2778,8 @@ declare function get$7(ctx: AdminContext, params: JobIdParams): Promise<DataSour
|
|
|
2746
2778
|
declare function approve(ctx: AdminContext, params: JobIdParams & {
|
|
2747
2779
|
/** Batches in flight from here on (max 128); the plan was made at the job's current value. */
|
|
2748
2780
|
concurrency?: number;
|
|
2781
|
+
/** Embed at the provider's priority tier from here on (1.5x the embedding price). */
|
|
2782
|
+
priority?: boolean;
|
|
2749
2783
|
}): Promise<DataSourceJobResult>;
|
|
2750
2784
|
/** Stop dispatching batches; the ones in flight finish. */
|
|
2751
2785
|
declare function pause(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
|
|
@@ -2753,6 +2787,8 @@ declare function pause(ctx: AdminContext, params: JobIdParams): Promise<DataSour
|
|
|
2753
2787
|
declare function resume$1(ctx: AdminContext, params: JobIdParams & {
|
|
2754
2788
|
/** Batches in flight from here on (max 128). */
|
|
2755
2789
|
concurrency?: number;
|
|
2790
|
+
/** Embed at the provider's priority tier from here on (1.5x the embedding price). */
|
|
2791
|
+
priority?: boolean;
|
|
2756
2792
|
}): Promise<DataSourceJobResult>;
|
|
2757
2793
|
/** End the job. Documents already indexed stay. */
|
|
2758
2794
|
declare function cancel(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
|
|
@@ -2786,11 +2822,12 @@ type WaitResult = {
|
|
|
2786
2822
|
*/
|
|
2787
2823
|
declare function waitForPlan(ctx: AdminContext, params: WaitParams$1): Promise<WaitResult>;
|
|
2788
2824
|
/**
|
|
2789
|
-
* Poll until the job reaches a terminal state, pauses
|
|
2790
|
-
* with nothing about to move it: a gate refused an
|
|
2791
|
-
* plan waits for an approval nobody asked this wait
|
|
2792
|
-
*
|
|
2793
|
-
*
|
|
2825
|
+
* Poll until the job reaches a terminal state, pauses for the owner, or
|
|
2826
|
+
* settles in `planned` with nothing about to move it: a gate refused an
|
|
2827
|
+
* auto-approved plan, or the plan waits for an approval nobody asked this wait
|
|
2828
|
+
* to give. A pause for errors that will resume itself (`autoResumeAt` set) is
|
|
2829
|
+
* ridden through; a pause that waits for the owner is reported as `failed`
|
|
2830
|
+
* with the pause reason, since nothing more will happen without them.
|
|
2794
2831
|
*/
|
|
2795
2832
|
declare function waitForJob(ctx: AdminContext, params: WaitParams$1): Promise<WaitResult>;
|
|
2796
2833
|
/** One line of progress in the job's own terms. */
|
|
@@ -2879,6 +2916,8 @@ interface SyncParams {
|
|
|
2879
2916
|
limit?: number;
|
|
2880
2917
|
/** Batches in flight (default 64, max 128). */
|
|
2881
2918
|
concurrency?: number;
|
|
2919
|
+
/** Embed at the provider's priority tier (1.5x the embedding price). Off by default. */
|
|
2920
|
+
priority?: boolean;
|
|
2882
2921
|
}
|
|
2883
2922
|
/**
|
|
2884
2923
|
* Start a sync: list the bucket, diff by ETag, run a job over what changed.
|
|
@@ -2915,6 +2954,20 @@ declare const DEFAULT_WAIT_TIMEOUT_MS$1: number;
|
|
|
2915
2954
|
declare function hydrate(ctx: AdminContext, params: {
|
|
2916
2955
|
slug: string;
|
|
2917
2956
|
}): Promise<DataSourcesHydrateResult>;
|
|
2957
|
+
/**
|
|
2958
|
+
* Recreate a dedicated source's collection with the platform's current shape
|
|
2959
|
+
* and refill it from the stored vectors. Nothing is re-embedded. Dedicated
|
|
2960
|
+
* capacity only; refused while a job, move, hydration or candidate version is
|
|
2961
|
+
* in flight, and with `collection_shared` when another source shares the
|
|
2962
|
+
* collection on that capacity. Same response as `hydrate`: follow it with
|
|
2963
|
+
* `waitForHydration`.
|
|
2964
|
+
*
|
|
2965
|
+
* @throws AdminApiError `reindex_requires_dedicated` (422), `data_source_busy`
|
|
2966
|
+
* (422), `collection_shared` (422).
|
|
2967
|
+
*/
|
|
2968
|
+
declare function reindex(ctx: AdminContext, params: {
|
|
2969
|
+
slug: string;
|
|
2970
|
+
}): Promise<DataSourcesHydrateResult>;
|
|
2918
2971
|
interface WaitForHydrationParams {
|
|
2919
2972
|
slug: string;
|
|
2920
2973
|
timeoutMs?: number;
|
|
@@ -3109,13 +3162,14 @@ declare const dataSourceEvals_hydrate: typeof hydrate;
|
|
|
3109
3162
|
declare const dataSourceEvals_listQueries: typeof listQueries;
|
|
3110
3163
|
declare const dataSourceEvals_listRuns: typeof listRuns;
|
|
3111
3164
|
declare const dataSourceEvals_listSets: typeof listSets;
|
|
3165
|
+
declare const dataSourceEvals_reindex: typeof reindex;
|
|
3112
3166
|
declare const dataSourceEvals_run: typeof run;
|
|
3113
3167
|
declare const dataSourceEvals_sample: typeof sample;
|
|
3114
3168
|
declare const dataSourceEvals_waitForHydration: typeof waitForHydration;
|
|
3115
3169
|
declare const dataSourceEvals_waitForRun: typeof waitForRun;
|
|
3116
3170
|
declare const dataSourceEvals_waitForSet: typeof waitForSet;
|
|
3117
3171
|
declare namespace dataSourceEvals {
|
|
3118
|
-
export { type dataSourceEvals_CreateSetParams as CreateSetParams, DEFAULT_WAIT_TIMEOUT_MS$1 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceEvals_QueryInput as QueryInput, type dataSourceEvals_RunParams as RunParams, type dataSourceEvals_SampleParams as SampleParams, type dataSourceEvals_WaitForHydrationParams as WaitForHydrationParams, type dataSourceEvals_WaitForHydrationResult as WaitForHydrationResult, type dataSourceEvals_WaitForRunResult as WaitForRunResult, type dataSourceEvals_WaitForSetResult as WaitForSetResult, type dataSourceEvals_WaitParams as WaitParams, dataSourceEvals_addQueries as addQueries, dataSourceEvals_compare as compare, dataSourceEvals_createSet as createSet, dataSourceEvals_deleteQuery as deleteQuery, dataSourceEvals_deleteSet as deleteSet, getRun$1 as getRun, dataSourceEvals_getSet as getSet, dataSourceEvals_hydrate as hydrate, dataSourceEvals_listQueries as listQueries, dataSourceEvals_listRuns as listRuns, dataSourceEvals_listSets as listSets, dataSourceEvals_run as run, dataSourceEvals_sample as sample, dataSourceEvals_waitForHydration as waitForHydration, dataSourceEvals_waitForRun as waitForRun, dataSourceEvals_waitForSet as waitForSet };
|
|
3172
|
+
export { type dataSourceEvals_CreateSetParams as CreateSetParams, DEFAULT_WAIT_TIMEOUT_MS$1 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceEvals_QueryInput as QueryInput, type dataSourceEvals_RunParams as RunParams, type dataSourceEvals_SampleParams as SampleParams, type dataSourceEvals_WaitForHydrationParams as WaitForHydrationParams, type dataSourceEvals_WaitForHydrationResult as WaitForHydrationResult, type dataSourceEvals_WaitForRunResult as WaitForRunResult, type dataSourceEvals_WaitForSetResult as WaitForSetResult, type dataSourceEvals_WaitParams as WaitParams, dataSourceEvals_addQueries as addQueries, dataSourceEvals_compare as compare, dataSourceEvals_createSet as createSet, dataSourceEvals_deleteQuery as deleteQuery, dataSourceEvals_deleteSet as deleteSet, getRun$1 as getRun, dataSourceEvals_getSet as getSet, dataSourceEvals_hydrate as hydrate, dataSourceEvals_listQueries as listQueries, dataSourceEvals_listRuns as listRuns, dataSourceEvals_listSets as listSets, dataSourceEvals_reindex as reindex, dataSourceEvals_run as run, dataSourceEvals_sample as sample, dataSourceEvals_waitForHydration as waitForHydration, dataSourceEvals_waitForRun as waitForRun, dataSourceEvals_waitForSet as waitForSet };
|
|
3119
3173
|
}
|
|
3120
3174
|
|
|
3121
3175
|
/**
|
|
@@ -7234,4 +7288,4 @@ declare class AdminTimeoutError extends Error {
|
|
|
7234
7288
|
|
|
7235
7289
|
declare const admin: AdminClient;
|
|
7236
7290
|
|
|
7237
|
-
export { AdminApiError, type AdminClient, type AdminClientOptions, type AdminContext, AdminTimeoutError, type AgentThreadDetail, type AgentThreadListItem, type AgentThreadsGetResult, type AgentThreadsListResult, type AgentToolCall, type AgentTranscriptMessage, type AgentTurnError, type AnalyticsAiHostRow, type AnalyticsAiSourcesResult, type AnalyticsAiVendorRow, type AnalyticsBatchResult, type AnalyticsCrawlersOverviewResult, type AnalyticsCrawlersRecentResult, type AnalyticsCrawlersRecentRow, type AnalyticsCrawlersResult, type AnalyticsCrawlersTimeseriesBucket, type AnalyticsCrawlersTimeseriesResult, type AnalyticsLiveResult, type AnalyticsMapPoint, type AnalyticsMapResult, type AnalyticsMetric, type AnalyticsQueryResult, type AnalyticsQueryResultRow, type AnalyticsSourceRow, type AnalyticsSourcesResult, type AppCronJobStatus, type AppCronJobStatusReason, type AppCronRunState, type AppEmailSuppression, type AppSecretRow, type CrashGroup, type CrashOccurrenceRow, type CrashesGetResult, type CrashesListResult, type CrashesOccurrencesResult, type CrashesStatsBucket, type CrashesStatsResult, type CronJobDecorated, type CronOverviewResult, type CronRunResult, type CronRunSummary, type DashboardLiveRelease, type DashboardReleaseMethod, type DashboardResult, type DataLiftFromDevResult, type DataLiftFromLiveResult, type DataSourceConnector, type DataSourceConnectorCredentials, type DataSourceConnectorDeletions, type DataSourceConnectorGetResult, type DataSourceConnectorPolicy, type DataSourceConnectorResult, type DataSourceInspectReport, type DataSourceInspectResult, type DataSourceJob, type DataSourceJobGetResult, type DataSourceJobManifestTokenResult, type DataSourceJobPlan, type DataSourceJobResult, type DataSourceJobSource, type DataSourceJobState, type DataSourceJobsListResult, type DataSourceMapDeployResult, type DataSourceMapTestDocument, type DataSourceMapTestOutcome, type DataSourceMapTestResult, type DataSourceMapper, type DataSourceObjectSelection, type DataSourceQuarantineResult, type DataSourceQuarantinedObject, type DataSourceRemapResult, type DataSourceSyncResult, type DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesChunkingStrategy, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesCreateResult, type DataSourcesDeleteResult, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteManyResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentSelector, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesHydrateResult, type DataSourcesHydration, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesMigration, type DataSourcesMoveResult, type DataSourcesPlacement, type DataSourcesPromoteResult, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, type DataSourcesSampleResult, type DataSourcesSearchCitation, type DataSourcesSearchResult, type DataSourcesSearchResultItem, type DataSourcesUploadTokenResult, type DatasetFile, type DbQueryResult, type DiagnosticsAuditEnvironment, type DiagnosticsDashboardResult, type DiagnosticsFinding, type DiagnosticsLighthouseScores, type DiagnosticsPayload, type DiagnosticsReleaseResult, type DiagnosticsRuntimeFindings, type DomainsCheckResult, type DomainsCustomAddResult, type DomainsCustomCheckResult, type DomainsCustomHostnameUiStatus, type DomainsCustomHostnameView, type DomainsCustomListResult, type DomainsCustomRemoveResult, type DomainsCustomRetryResult, type DomainsDnsInstructions, type DomainsGetResult, type DomainsSetResult, type EmailBatchLifecycle, type EmailBatchResult, type EmailBatchSummary, type EmailBatchesResult, type EmailDomainBase, type EmailEffectiveSender, type EmailInboxResult, type EmailListResult, type EmailMessageKind, type EmailMessageResult, type EmailMessageStatus, type EmailSenderTier, type EmailSendingStatusResult, type EmailStatsResult, type EmailSummary, type EmailSuppressResult, type EmailSuppressionsResult, type EmailUnsuppressResult, type EvalAggregates, type EvalCompareResult, type EvalExpectation, type EvalQueriesAddResult, type EvalQueriesListResult, type EvalQuery, type EvalQueryResult, type EvalQueryStyle, type EvalRetrieval, type EvalRun, type EvalRunResult, type EvalRunState, type EvalRunsListResult, type EvalSet, type EvalSetGetResult, type EvalSetResult, type EvalSetState, type EvalSetsListResult, type EventChannelActivity, type EventsChannelsListResult, type EventsPublishResult, type EventsTailFrame, type FilesDeleteResult, type FilesFileMeta, type FilesListEntry, type FilesListResult, type FilesLsResult, type FilesScanBadge, type FilesScanFlagged, type FilesScanStore, type FilesStatResult, type FilesStoreSummaryEntry, type FilesUploadUrlResult, type FilesUrlResult, type FrontendErrorType, type InboundDnsInstructions, type InboundEmailDomainAddResult, type InboundEmailDomainCheckResult, type InboundEmailDomainDeleteResult, type InboundEmailDomainUiStatus, type InboundEmailDomainVerifyResult, type InboundEmailDomainView, type InboundEmailDomainsListResult, type InboxEmailPreview, type IssueAuthorKind, type IssueCommentRow, type IssueEventType, type IssueKind, type IssueRow, type IssueStatus, type IssuesCommentResult, type IssuesCreateResult, type IssuesDeleteResult, type IssuesGetResult, type IssuesListResult, type IssuesUpdateResult, type JewelPairRow, type JewelPairSummaryRow, type JewelVerdict, type JewelsDatasetSummary, type JewelsDryrunResult, type JewelsExportResult, type JewelsGradeResult, type JewelsGrading, type JewelsOverviewResult, type JewelsPairResult, type JewelsPairsResult, type JewelsQueueResult, type JewelsResolveResult, type JewelsRunResult, type JewelsRunsResult, type JewelsTimeseriesBucket, type JewelsTimeseriesResult, type JewelsTrainResult, type LiftedDatabase, type MethodsInvokeResult, type OutboundDnsInstructions, type OutboundEmailDomainAddResult, type OutboundEmailDomainCheckResult, type OutboundEmailDomainDeleteResult, type OutboundEmailDomainUiStatus, type OutboundEmailDomainVerifyResult, type OutboundEmailDomainView, type OutboundEmailDomainsListResult, type PlatformSuppression, type PrerenderGetResult, type PrerenderInvalidateResult, type PrerenderPage, type PrerenderPagesResult, type PrerenderViewResult, type ReleaseFailureFields, type ReleaseFragment, type ReleasesByCommitResult, type ReleasesGetResult, type ReleasesListResult, type RequestsGetResult, type RequestsListResult, type RequestsListRow, type RequestsStatsMethodBucket, type RequestsStatsMethodResult, type RequestsStatsSummaryBucket, type RequestsStatsSummaryResult, type SecretsDeleteResult, type SecretsGetResult, type SecretsListResult, type SecretsSetResult, type SettingsResult, type SuppressionSource, type TrainingLogEntry, type TrainingRunRow, type TrainingRunStatus, type UserAuthProvider, type UserListItem, type UserRecord, type UsersCreateApiKeyResult, type UsersListResult, type UsersRevokeApiKeyResult, type UsersSetRoleResult, type V2AppSettings, type V2BuildLogEntry, type V2BuildStats, type V2CommitInfo, type V2EmailMessage, type V2ReleaseStatus, type VoiceAvailableNumber, type VoiceNumbersBuyResult, type VoiceNumbersListResult, type VoiceNumbersReleaseResult, type VoiceNumbersSearchResult, type VoiceNumbersSetNameResult, type VoicePhoneNumberStatus, type VoicePhoneNumberView, type VoiceResolvedPolicy, type VoiceSessionChannel, type VoiceSessionCost, type VoiceSessionCostLine, type VoiceSessionDetail, type VoiceSessionGetResult, type VoiceSessionListItem, type VoiceSessionSip, type VoiceSessionSpeechEntry, type VoiceSessionStatus, type VoiceSessionToolEntry, type VoiceSessionTranscriptEntry, type VoiceSessionsListResult, type VoiceSettingsCeilings, type VoiceSettingsGetResult, type VoiceSettingsOverrides, type VoiceSettingsSetResult, admin, createAdminClient, admin as default };
|
|
7291
|
+
export { AdminApiError, type AdminClient, type AdminClientOptions, type AdminContext, AdminTimeoutError, type AgentThreadDetail, type AgentThreadListItem, type AgentThreadsGetResult, type AgentThreadsListResult, type AgentToolCall, type AgentTranscriptMessage, type AgentTurnError, type AnalyticsAiHostRow, type AnalyticsAiSourcesResult, type AnalyticsAiVendorRow, type AnalyticsBatchResult, type AnalyticsCrawlersOverviewResult, type AnalyticsCrawlersRecentResult, type AnalyticsCrawlersRecentRow, type AnalyticsCrawlersResult, type AnalyticsCrawlersTimeseriesBucket, type AnalyticsCrawlersTimeseriesResult, type AnalyticsLiveResult, type AnalyticsMapPoint, type AnalyticsMapResult, type AnalyticsMetric, type AnalyticsQueryResult, type AnalyticsQueryResultRow, type AnalyticsSourceRow, type AnalyticsSourcesResult, type AppCronJobStatus, type AppCronJobStatusReason, type AppCronRunState, type AppEmailSuppression, type AppSecretRow, type CrashGroup, type CrashOccurrenceRow, type CrashesGetResult, type CrashesListResult, type CrashesOccurrencesResult, type CrashesStatsBucket, type CrashesStatsResult, type CronJobDecorated, type CronOverviewResult, type CronRunResult, type CronRunSummary, type DashboardLiveRelease, type DashboardReleaseMethod, type DashboardResult, type DataLiftFromDevResult, type DataLiftFromLiveResult, type DataSourceConnector, type DataSourceConnectorCredentials, type DataSourceConnectorDeletions, type DataSourceConnectorGetResult, type DataSourceConnectorPolicy, type DataSourceConnectorResult, type DataSourceInspectReport, type DataSourceInspectResult, type DataSourceJob, type DataSourceJobGetResult, type DataSourceJobManifestTokenResult, type DataSourceJobPlan, type DataSourceJobResult, type DataSourceJobSource, type DataSourceJobState, type DataSourceJobsListResult, type DataSourceMapDeployResult, type DataSourceMapTestDocument, type DataSourceMapTestOutcome, type DataSourceMapTestResult, type DataSourceMapper, type DataSourceObjectSelection, type DataSourceQuarantineResult, type DataSourceQuarantinedObject, type DataSourceRemapResult, type DataSourceSyncResult, type DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesChunkingStrategy, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesCreateResult, type DataSourcesDeleteResult, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteManyResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentSelector, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesHydrateResult, type DataSourcesHydration, type DataSourcesIndex, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesMigration, type DataSourcesMoveResult, type DataSourcesPlacement, type DataSourcesPromoteResult, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, type DataSourcesSampleResult, type DataSourcesSearchCitation, type DataSourcesSearchResult, type DataSourcesSearchResultItem, type DataSourcesUploadTokenResult, type DatasetFile, type DbQueryResult, type DiagnosticsAuditEnvironment, type DiagnosticsDashboardResult, type DiagnosticsFinding, type DiagnosticsLighthouseScores, type DiagnosticsPayload, type DiagnosticsReleaseResult, type DiagnosticsRuntimeFindings, type DomainsCheckResult, type DomainsCustomAddResult, type DomainsCustomCheckResult, type DomainsCustomHostnameUiStatus, type DomainsCustomHostnameView, type DomainsCustomListResult, type DomainsCustomRemoveResult, type DomainsCustomRetryResult, type DomainsDnsInstructions, type DomainsGetResult, type DomainsSetResult, type EmailBatchLifecycle, type EmailBatchResult, type EmailBatchSummary, type EmailBatchesResult, type EmailDomainBase, type EmailEffectiveSender, type EmailInboxResult, type EmailListResult, type EmailMessageKind, type EmailMessageResult, type EmailMessageStatus, type EmailSenderTier, type EmailSendingStatusResult, type EmailStatsResult, type EmailSummary, type EmailSuppressResult, type EmailSuppressionsResult, type EmailUnsuppressResult, type EvalAggregates, type EvalCompareResult, type EvalExpectation, type EvalQueriesAddResult, type EvalQueriesListResult, type EvalQuery, type EvalQueryResult, type EvalQueryStyle, type EvalRetrieval, type EvalRun, type EvalRunResult, type EvalRunState, type EvalRunsListResult, type EvalSet, type EvalSetGetResult, type EvalSetResult, type EvalSetState, type EvalSetsListResult, type EventChannelActivity, type EventsChannelsListResult, type EventsPublishResult, type EventsTailFrame, type FilesDeleteResult, type FilesFileMeta, type FilesListEntry, type FilesListResult, type FilesLsResult, type FilesScanBadge, type FilesScanFlagged, type FilesScanStore, type FilesStatResult, type FilesStoreSummaryEntry, type FilesUploadUrlResult, type FilesUrlResult, type FrontendErrorType, type InboundDnsInstructions, type InboundEmailDomainAddResult, type InboundEmailDomainCheckResult, type InboundEmailDomainDeleteResult, type InboundEmailDomainUiStatus, type InboundEmailDomainVerifyResult, type InboundEmailDomainView, type InboundEmailDomainsListResult, type InboxEmailPreview, type IssueAuthorKind, type IssueCommentRow, type IssueEventType, type IssueKind, type IssueRow, type IssueStatus, type IssuesCommentResult, type IssuesCreateResult, type IssuesDeleteResult, type IssuesGetResult, type IssuesListResult, type IssuesUpdateResult, type JewelPairRow, type JewelPairSummaryRow, type JewelVerdict, type JewelsDatasetSummary, type JewelsDryrunResult, type JewelsExportResult, type JewelsGradeResult, type JewelsGrading, type JewelsOverviewResult, type JewelsPairResult, type JewelsPairsResult, type JewelsQueueResult, type JewelsResolveResult, type JewelsRunResult, type JewelsRunsResult, type JewelsTimeseriesBucket, type JewelsTimeseriesResult, type JewelsTrainResult, type LiftedDatabase, type MethodsInvokeResult, type OutboundDnsInstructions, type OutboundEmailDomainAddResult, type OutboundEmailDomainCheckResult, type OutboundEmailDomainDeleteResult, type OutboundEmailDomainUiStatus, type OutboundEmailDomainVerifyResult, type OutboundEmailDomainView, type OutboundEmailDomainsListResult, type PlatformSuppression, type PrerenderGetResult, type PrerenderInvalidateResult, type PrerenderPage, type PrerenderPagesResult, type PrerenderViewResult, type ReleaseFailureFields, type ReleaseFragment, type ReleasesByCommitResult, type ReleasesGetResult, type ReleasesListResult, type RequestsGetResult, type RequestsListResult, type RequestsListRow, type RequestsStatsMethodBucket, type RequestsStatsMethodResult, type RequestsStatsSummaryBucket, type RequestsStatsSummaryResult, type SecretsDeleteResult, type SecretsGetResult, type SecretsListResult, type SecretsSetResult, type SettingsResult, type SuppressionSource, type TrainingLogEntry, type TrainingRunRow, type TrainingRunStatus, type UserAuthProvider, type UserListItem, type UserRecord, type UsersCreateApiKeyResult, type UsersListResult, type UsersRevokeApiKeyResult, type UsersSetRoleResult, type V2AppSettings, type V2BuildLogEntry, type V2BuildStats, type V2CommitInfo, type V2EmailMessage, type V2ReleaseStatus, type VoiceAvailableNumber, type VoiceNumbersBuyResult, type VoiceNumbersListResult, type VoiceNumbersReleaseResult, type VoiceNumbersSearchResult, type VoiceNumbersSetNameResult, type VoicePhoneNumberStatus, type VoicePhoneNumberView, type VoiceResolvedPolicy, type VoiceSessionChannel, type VoiceSessionCost, type VoiceSessionCostLine, type VoiceSessionDetail, type VoiceSessionGetResult, type VoiceSessionListItem, type VoiceSessionSip, type VoiceSessionSpeechEntry, type VoiceSessionStatus, type VoiceSessionToolEntry, type VoiceSessionTranscriptEntry, type VoiceSessionsListResult, type VoiceSettingsCeilings, type VoiceSettingsGetResult, type VoiceSettingsOverrides, type VoiceSettingsSetResult, admin, createAdminClient, admin as default };
|
package/dist/index.js
CHANGED
|
@@ -818,13 +818,14 @@ function base2(appId) {
|
|
|
818
818
|
return `/_internal/v2/apps/${appId}/datasources/jobs`;
|
|
819
819
|
}
|
|
820
820
|
function start(ctx, params) {
|
|
821
|
-
const { slug, source, approve: approve2, budgetDollars, concurrency, limit } = params;
|
|
821
|
+
const { slug, source, approve: approve2, budgetDollars, concurrency, priority, limit } = params;
|
|
822
822
|
return call(ctx, "POST", base2(ctx.appId), {
|
|
823
823
|
slug,
|
|
824
824
|
source,
|
|
825
825
|
...approve2 ? { approve: true } : {},
|
|
826
826
|
...budgetDollars !== void 0 ? { budgetDollars } : {},
|
|
827
827
|
...concurrency !== void 0 ? { concurrency } : {},
|
|
828
|
+
...priority ? { priority: true } : {},
|
|
828
829
|
...limit !== void 0 ? { limit } : {}
|
|
829
830
|
});
|
|
830
831
|
}
|
|
@@ -857,9 +858,16 @@ function approve(ctx, params) {
|
|
|
857
858
|
ctx,
|
|
858
859
|
"POST",
|
|
859
860
|
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/approve`,
|
|
860
|
-
params
|
|
861
|
+
controlBody(params)
|
|
861
862
|
);
|
|
862
863
|
}
|
|
864
|
+
function controlBody(params) {
|
|
865
|
+
const body = {
|
|
866
|
+
...params.concurrency !== void 0 ? { concurrency: params.concurrency } : {},
|
|
867
|
+
...params.priority !== void 0 ? { priority: params.priority } : {}
|
|
868
|
+
};
|
|
869
|
+
return Object.keys(body).length > 0 ? body : void 0;
|
|
870
|
+
}
|
|
863
871
|
function pause(ctx, params) {
|
|
864
872
|
return call(
|
|
865
873
|
ctx,
|
|
@@ -872,7 +880,7 @@ function resume(ctx, params) {
|
|
|
872
880
|
ctx,
|
|
873
881
|
"POST",
|
|
874
882
|
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/resume`,
|
|
875
|
-
params
|
|
883
|
+
controlBody(params)
|
|
876
884
|
);
|
|
877
885
|
}
|
|
878
886
|
function cancel(ctx, params) {
|
|
@@ -889,7 +897,7 @@ function waitForJob(ctx, params) {
|
|
|
889
897
|
return settle(
|
|
890
898
|
ctx,
|
|
891
899
|
params,
|
|
892
|
-
(job) => !["planning", "planned", "running"].includes(job.state) || job.state === "planned" && (job.error !== null || !job.autoApprove)
|
|
900
|
+
(job) => !["planning", "planned", "running", "paused"].includes(job.state) || job.state === "planned" && (job.error !== null || !job.autoApprove) || job.state === "paused" && !job.autoResumeAt
|
|
893
901
|
);
|
|
894
902
|
}
|
|
895
903
|
async function settle(ctx, params, isSettled) {
|
|
@@ -1006,7 +1014,8 @@ function sync(ctx, params) {
|
|
|
1006
1014
|
slug: params.slug,
|
|
1007
1015
|
...params.budgetDollars !== void 0 ? { budgetDollars: params.budgetDollars } : {},
|
|
1008
1016
|
...params.limit !== void 0 ? { limit: params.limit } : {},
|
|
1009
|
-
...params.concurrency !== void 0 ? { concurrency: params.concurrency } : {}
|
|
1017
|
+
...params.concurrency !== void 0 ? { concurrency: params.concurrency } : {},
|
|
1018
|
+
...params.priority ? { priority: true } : {}
|
|
1010
1019
|
});
|
|
1011
1020
|
}
|
|
1012
1021
|
|
|
@@ -1025,6 +1034,7 @@ __export(dataSourceEvals_exports, {
|
|
|
1025
1034
|
listQueries: () => listQueries,
|
|
1026
1035
|
listRuns: () => listRuns,
|
|
1027
1036
|
listSets: () => listSets,
|
|
1037
|
+
reindex: () => reindex,
|
|
1028
1038
|
run: () => run2,
|
|
1029
1039
|
sample: () => sample,
|
|
1030
1040
|
waitForHydration: () => waitForHydration,
|
|
@@ -1044,6 +1054,14 @@ function hydrate(ctx, params) {
|
|
|
1044
1054
|
{ slug: params.slug }
|
|
1045
1055
|
);
|
|
1046
1056
|
}
|
|
1057
|
+
function reindex(ctx, params) {
|
|
1058
|
+
return call(
|
|
1059
|
+
ctx,
|
|
1060
|
+
"POST",
|
|
1061
|
+
`${base4(ctx.appId)}/reindex`,
|
|
1062
|
+
{ slug: params.slug }
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1047
1065
|
async function waitForHydration(ctx, params) {
|
|
1048
1066
|
const timeoutMs = params.timeoutMs ?? DEFAULT_WAIT_TIMEOUT_MS3;
|
|
1049
1067
|
const outcome = await pollUntil(
|