@datadog/esbuild-plugin 3.2.12-dev.0 → 3.2.12

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.
@@ -10,24 +10,36 @@ declare class TrackedFilesMatcher {
10
10
  rawTrackedFilesList(): string[];
11
11
  private getFilename;
12
12
  }
13
- type LongPollingOptions = {
14
- /** Max long-poll attempts. `1` polls once and never retries. Default: `10`. */
15
- maxRetries?: number;
16
- /** Randomize retry delays so concurrent pollers don't sync up. Default: `true`. */
17
- jitter?: boolean;
18
- /** Grow the delay between retries exponentially. Default: `true`. */
19
- exponentialBackoff?: boolean;
20
- /**
21
- * Deadline for one attempt, in ms. Must stay above the server's ~30s window,
22
- * otherwise healthy polls get aborted. Default: `40000`.
23
- */
24
- timeoutMs?: number;
25
- };
13
+ type AuthMethod = "apiKey" | "oauth";
14
+ type AppsProtectionLevel = "direct_publish" | "approval_required";
26
15
  type AppsOptions = {
27
16
  enable?: boolean;
28
17
  include?: string[];
29
- /** Controls how the dev server retries the Datadog long-poll execution endpoint. */
30
- longPolling?: LongPollingOptions;
18
+ dryRun?: boolean;
19
+ identifier?: string;
20
+ name?: string;
21
+ /** Human-readable description of the app. */
22
+ description?: string;
23
+ /** When true, the app appears in the Datadog self-service catalog. */
24
+ selfService?: boolean;
25
+ /** Deployment and identity settings for the app. */
26
+ permissions?: {
27
+ /**
28
+ * Controls whether publishing the app requires a second approver.
29
+ * - `direct_publish`: any user with publish rights can deploy immediately.
30
+ * - `approval_required`: a second user must approve before the app goes live.
31
+ */
32
+ protectionLevel?: AppsProtectionLevel;
33
+ /**
34
+ * UUID of the service account the app's backend functions run as.
35
+ * When omitted the app runs as the uploading user.
36
+ * Only service accounts are accepted; arbitrary user UUIDs are rejected by the API.
37
+ */
38
+ runAs?: string;
39
+ };
40
+ authOverrides?: {
41
+ method?: AuthMethod;
42
+ };
31
43
  };
32
44
  declare const CONFIG_KEY: "apps";
33
45
  declare const PLUGIN_NAME: PluginName;
@@ -5282,8 +5294,6 @@ type Env = (typeof ALL_ENVS)[number];
5282
5294
  type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
5283
5295
  type GlobalContext = {
5284
5296
  addMetric: (metric: Metric) => void;
5285
- artifactsPending: boolean;
5286
- artifactsReady: Promise<void>;
5287
5297
  asyncHook: TriggerHook<Promise<void[]>>;
5288
5298
  auth: AuthOptionsWithDefaults;
5289
5299
  build: BuildReport;
@@ -5294,8 +5304,6 @@ type GlobalContext = {
5294
5304
  git?: RepositoryData;
5295
5305
  hook: TriggerHook<void>;
5296
5306
  inject: (item: ToInjectItem) => void;
5297
- markArtifactsPending: () => void;
5298
- markArtifactsReady: (error?: unknown) => void;
5299
5307
  pluginNames: string[];
5300
5308
  plugins: (PluginOptions | CustomPluginOptions)[];
5301
5309
  queue: (promise: Promise<any>) => void;
@@ -5355,6 +5363,7 @@ type AuthOptions = {
5355
5363
  };
5356
5364
  type AuthOptionsWithDefaults = Omit<AuthOptions, "site"> & {
5357
5365
  site: Site$1;
5366
+ siteSubdomain?: string;
5358
5367
  };
5359
5368
  interface BaseOptions {
5360
5369
  auth?: AuthOptions;