@distilled.cloud/trigger-dev 1.0.0-rc.16 → 1.0.0-rc.18

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.
@@ -0,0 +1,4 @@
1
+ import{$L}from"../_bundle/lazy.js";
2
+ const{o:$o,e:$e,E:$E}=/*@__PURE__*/$L("../services/trigger-dev.js","oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo",36049,6593);
3
+ export const{BadRequest,Conflict,NotFound,UnprocessableEntity}=$E;
4
+ export const activateScheduleV1=$o(),addRunTagsV1=$o(),bulkAbortActionV1=$o(),cancelRunV1=$o(),closeSessionV1=$o(),completeWaitpointTokenCallbackV1=$o(),completeWaitpointTokenV1=$o(),createBulkActionV1=$o(),createProjectEnvvarV1=$o(),createScheduleV1=$o(),createSessionV1=$o(),createWaitpointTokenV1=$o(),deactivateScheduleV1=$o(),deleteProjectEnvvarV1=$o(),deleteScheduleV1=$o(),executeQueryV1=$o(),getBatchResultsV1=$o(),getBatchV1=$o(),getBulkActionV1=$o(),getConcurrencyLimitV1=$o(),getDeploymentV1=$o(),getErrorV1=$o(),getLatestDeploymentV1=$o(),getProjectEnvvarV1=$o(),getQuerySchemaV1=$o(),getQueueV1=$o(),getRunEventsV1=$o(),getRunResultV1=$o(),getRunTraceV1=$o(),getRunV1=$o(),getScheduleV1=$o(),getSessionV1=$o(),getTimezonesV1=$o(),getWaitpointTokenV1=$o(),ignoreErrorV1=$o(),listBulkActionsV1=$o(),listConcurrencyLimitsV1=$o(),listDashboardsV1=$o(),listDeploymentsV1=$o(),listErrorsV1=$o(),listProjectEnvvarsV1=$o(),listProjectRunsV1=$o(),listQueuesV1=$o(),listRunsV1=$o(),listSchedulesV1=$o(),listSessionsV1=$o(),listWaitpointTokensV1=$o(),overrideConcurrencyLimitV1=$o(),overrideQueueConcurrencyV1=$o(),pauseConcurrencyLimitV1=$o(),pauseQueueV1=$o(),promoteDeploymentV1=$o(),resetConcurrencyLimitV1=$o(),resetQueueConcurrencyV1=$o(),resolveErrorV1=$o(),runReplayV1=$o(),runRescheduleV1=$o(),triggerBatchTaskByIdV1=$o(),triggerBatchTaskV1=$o(),triggerTaskV1=$o(),unresolveErrorV1=$o(),updateProjectEnvvarV1=$o(),updateRunMetadataV1=$o(),updateScheduleV1=$o(),updateSessionV1=$o(),uploadProjectEnvvarsV1=$o();
package/lib/traits.js CHANGED
@@ -1,11 +1 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
- export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
10
- export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
11
- //# sourceMappingURL=traits.js.map
1
+ export { traits$Body as Body, traits$FormDataFile as FormDataFile, traits$Header as Header, traits$Http as Http, traits$HttpBody as HttpBody, traits$KeyDictionary as KeyDictionary, traits$Label as Label, traits$Query as Query, traits$RawResponse as RawResponse, traits$RawResponseRoot as RawResponseRoot, traits$ResponseCode as ResponseCode, traits$SensitiveValue as SensitiveValue, traits$UnionCases as UnionCases, traits$applyErrorMatchers as applyErrorMatchers, traits$bodySymbol as bodySymbol, traits$errorMatchersSymbol as errorMatchersSymbol, traits$formDataFileSymbol as formDataFileSymbol, traits$getErrorMatchers as getErrorMatchers, traits$headerSymbol as headerSymbol, traits$httpBodySymbol as httpBodySymbol, traits$httpSymbol as httpSymbol, traits$keyDictionarySymbol as keyDictionarySymbol, traits$labelSymbol as labelSymbol, traits$querySymbol as querySymbol, traits$rawResponseRootSymbol as rawResponseRootSymbol, traits$rawResponseSymbol as rawResponseSymbol, traits$responseCodeSymbol as responseCodeSymbol, traits$sensitiveValueSymbol as sensitiveValueSymbol, traits$unionCasesSymbol as unionCasesSymbol } from "./_bundle/sdk.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/trigger-dev",
3
- "version": "1.0.0-rc.16",
3
+ "version": "1.0.0-rc.18",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,9 +18,8 @@
18
18
  "types": "./lib/index.d.ts",
19
19
  "bun": "./src/index.ts",
20
20
  "worker": "./src/index.ts",
21
- "module": "./lib/index.full.js",
22
- "module-sync": "./lib/index.js",
23
- "default": "./lib/index.full.js"
21
+ "distilled-lazy": "./lib/index.lazy.js",
22
+ "default": "./lib/index.js"
24
23
  },
25
24
  "./Credentials": {
26
25
  "types": "./lib/credentials.d.ts",
@@ -62,28 +61,28 @@
62
61
  "types": "./lib/services/*.d.ts",
63
62
  "bun": "./src/services/*.ts",
64
63
  "worker": "./src/services/*.ts",
65
- "module": "./lib/services.full/*.js",
66
- "module-sync": "./lib/services/*.js",
67
- "default": "./lib/services.full/*.js"
64
+ "distilled-lazy": "./lib/services.lazy/*.js",
65
+ "default": "./lib/services/*.js"
68
66
  }
69
67
  },
70
68
  "dependencies": {
71
- "@distilled.cloud/core": "1.0.0-rc.16"
69
+ "@distilled.cloud/core": "1.0.0-rc.18"
72
70
  },
73
71
  "devDependencies": {
72
+ "@distilled.cloud/dev": "0.0.0",
74
73
  "@types/node": "26.6.5"
75
74
  },
76
75
  "peerDependencies": {
77
76
  "effect": "^4.0.5"
78
77
  },
79
78
  "distilled": {
80
- "generatedAt": "2026-10-09",
79
+ "generatedAt": "2026-10-25",
81
80
  "specUpdatedAt": "2026-10-03"
82
81
  },
83
82
  "scripts": {
84
83
  "build": "tsrs -b",
85
84
  "convert": "node --conditions=bun scripts/convert.ts",
86
- "generate": "node --conditions=bun scripts/convert.ts && node --conditions=bun scripts/generate.ts",
85
+ "generate": "node --conditions=bun scripts/generate.ts",
87
86
  "typecheck": "tsrs -p tsconfig.json",
88
87
  "specs:fetch": "git submodule update --force --init --depth=1 specs/spec-mirror-trigger-dev",
89
88
  "specs:update": "git submodule update --remote --force --depth=1 specs/spec-mirror-trigger-dev"
@@ -19,7 +19,7 @@ export interface Config {
19
19
  }
20
20
 
21
21
  export class Credentials
22
- extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config>>()(
22
+ extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config, ConfigError>>()(
23
23
  "TriggerDevCredentials",
24
24
  ) {}
25
25
 
@@ -55,5 +55,5 @@ export const CredentialsFromEnv: Layer.Layer<Credentials> = /*@__PURE__*/ Layer.
55
55
  apiKey: Redacted.make(apiKey),
56
56
  apiBaseUrl: process.env.TRIGGER_DEV_API_BASE_URL ?? DEFAULT_API_BASE_URL,
57
57
  };
58
- }).pipe(Effect.orDie),
58
+ }),
59
59
  );
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @distilled.cloud/trigger-dev -- Trigger.dev SDK for Effect.
3
3
  *
4
- * `./services` is generated by `scripts/generate.ts` from the Smithy model
5
- * in `.generated-specs` (written by `scripts/convert.ts` from the OpenAPI
6
- * spec). Everything else in this folder is hand-written.
4
+ * `./services` is generated by `scripts/generate.ts` from the Smithy model that
5
+ * `scripts/convert.ts` converts from the OpenAPI spec. Everything else in this
6
+ * folder is hand-written.
7
7
  *
8
8
  * @example
9
9
  * ```ts
package/src/protocol.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type * as API from "@distilled.cloud/core/api";
2
- import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
2
+ import type { API_ERRORS, ConfigError, InvalidInput } from "@distilled.cloud/core/errors";
3
3
  import { makeRestProtocol } from "@distilled.cloud/core/protocol-rest";
4
4
  /**
5
5
  * TriggerDevProtocol -- hand-written.
@@ -37,7 +37,8 @@ export type TriggerDevOpError =
37
37
  | UnknownTriggerDevError
38
38
  | ConfigError
39
39
  | HttpClientError.HttpClientError
40
- | TriggerDevParseError;
40
+ | TriggerDevParseError
41
+ | InvalidInput;
41
42
 
42
43
  /** Context (requirements) shared by every generated Trigger.dev operation. */
43
44
  export type TriggerDevOpContext = Credentials | HttpClient.HttpClient;