@warmhub/sdk-ts 0.70.0 → 0.71.0
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.
|
@@ -9239,7 +9239,7 @@ function validateWarmHubClientOptions(options) {
|
|
|
9239
9239
|
throw new TypeError(`Unknown WarmHubClient option "${key}"${hint}`);
|
|
9240
9240
|
}
|
|
9241
9241
|
}
|
|
9242
|
-
var SDK_VERSION = "0.
|
|
9242
|
+
var SDK_VERSION = "0.71.0" ;
|
|
9243
9243
|
var DEFAULT_API_URL = "https://api.warmhub.ai";
|
|
9244
9244
|
var UNBATCHED_TRPC_PATHS = /* @__PURE__ */ new Set([
|
|
9245
9245
|
"repo.shapeInstanceCounts",
|
|
@@ -10253,6 +10253,22 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
10253
10253
|
throw toWarmHubError(error);
|
|
10254
10254
|
}
|
|
10255
10255
|
},
|
|
10256
|
+
/**
|
|
10257
|
+
* Leave an organization the caller is a member of (self-service).
|
|
10258
|
+
*
|
|
10259
|
+
* Session-only: requires an interactive user session, so personal access
|
|
10260
|
+
* tokens are rejected. You cannot leave your personal organization, and an
|
|
10261
|
+
* owner can only leave when the organization retains another active owner.
|
|
10262
|
+
*/
|
|
10263
|
+
leave: async (orgName) => {
|
|
10264
|
+
try {
|
|
10265
|
+
await this.trpc.org.leave.mutate({
|
|
10266
|
+
orgName
|
|
10267
|
+
});
|
|
10268
|
+
} catch (error) {
|
|
10269
|
+
throw toWarmHubError(error);
|
|
10270
|
+
}
|
|
10271
|
+
},
|
|
10256
10272
|
/**
|
|
10257
10273
|
* Change a member's organization role.
|
|
10258
10274
|
*
|
|
@@ -10970,9 +10986,14 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
10970
10986
|
/**
|
|
10971
10987
|
* Create a webhook subscription.
|
|
10972
10988
|
*
|
|
10973
|
-
* Webhook subscriptions require a delivery URL
|
|
10989
|
+
* Webhook subscriptions require a delivery URL. Commit subscriptions are
|
|
10990
|
+
* repo-scoped and require a shape/filter; repo and org metadata
|
|
10991
|
+
* subscriptions omit commit-only fields. Org-scoped events also omit
|
|
10992
|
+
* `repoName`.
|
|
10974
10993
|
*
|
|
10975
|
-
*
|
|
10994
|
+
* Delivery can use a fallback URL, allow trace reentry, and opt into
|
|
10995
|
+
* success notifications. Commit subscriptions can additionally forward
|
|
10996
|
+
* events from another repository.
|
|
10976
10997
|
*/
|
|
10977
10998
|
create: async (input) => {
|
|
10978
10999
|
try {
|
|
@@ -10988,7 +11009,7 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
10988
11009
|
* Get one subscription by name.
|
|
10989
11010
|
*
|
|
10990
11011
|
* Repo-scoped subscriptions are addressed by `(orgName, repoName, name)`;
|
|
10991
|
-
* org-scoped subscriptions
|
|
11012
|
+
* org-scoped subscriptions omit `repoName` via the object
|
|
10992
11013
|
* form: `get({ orgName, name })`.
|
|
10993
11014
|
*/
|
|
10994
11015
|
get: async (...args) => {
|
|
@@ -11025,7 +11046,7 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
11025
11046
|
*
|
|
11026
11047
|
* Pass `(orgName, repoName)` to list a repository's subscriptions, or omit
|
|
11027
11048
|
* `repoName` — `list(orgName)` or `list({ orgName })` — to list the
|
|
11028
|
-
* org-scoped
|
|
11049
|
+
* org-scoped subscriptions.
|
|
11029
11050
|
*/
|
|
11030
11051
|
list: async (...args) => {
|
|
11031
11052
|
try {
|
|
@@ -11237,9 +11258,15 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
11237
11258
|
}
|
|
11238
11259
|
},
|
|
11239
11260
|
/**
|
|
11240
|
-
* List subscription action runs
|
|
11241
|
-
*
|
|
11242
|
-
*
|
|
11261
|
+
* List subscription action runs as a `Page<ActionRunInfo>` (`items` +
|
|
11262
|
+
* optional `nextCursor`), newest-first, capped at 200 runs per page.
|
|
11263
|
+
*
|
|
11264
|
+
* `status` and `outcome` are mutually exclusive.
|
|
11265
|
+
* `since` and `cursor` are mutually exclusive; pass `cursor` alone on later
|
|
11266
|
+
* pages — the `since` window rides in the cursor.
|
|
11267
|
+
* Cursors are opaque, short-lived resume tokens; on `VALIDATION_ERROR`
|
|
11268
|
+
* restart the query without `cursor`.
|
|
11269
|
+
* See docs/dev/warmhub-actions-api.md for the full contract.
|
|
11243
11270
|
*/
|
|
11244
11271
|
listRuns: async (orgName, repoName, opts) => {
|
|
11245
11272
|
try {
|
|
@@ -11248,7 +11275,9 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
11248
11275
|
repoName,
|
|
11249
11276
|
subscriptionName: opts?.subscriptionName,
|
|
11250
11277
|
status: opts?.status,
|
|
11278
|
+
outcome: opts?.outcome,
|
|
11251
11279
|
since: opts?.since,
|
|
11280
|
+
cursor: opts?.cursor,
|
|
11252
11281
|
limit: opts?.limit
|
|
11253
11282
|
});
|
|
11254
11283
|
} catch (error) {
|
|
@@ -11258,8 +11287,10 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
11258
11287
|
/**
|
|
11259
11288
|
* Aggregate run counts (total + per-status) for a repo or one subscription.
|
|
11260
11289
|
*
|
|
11261
|
-
* Computed server-side over an optional `since` window
|
|
11262
|
-
*
|
|
11290
|
+
* Computed server-side over an optional `since` window as a window
|
|
11291
|
+
* aggregate — it counts every run in the window, whereas `listRuns` returns
|
|
11292
|
+
* only a page sample of that pageable history. Use `runStats` for totals and
|
|
11293
|
+
* `listRuns` to walk the individual runs page by page.
|
|
11263
11294
|
*/
|
|
11264
11295
|
runStats: async (orgName, repoName, opts) => {
|
|
11265
11296
|
try {
|
|
@@ -12774,5 +12805,5 @@ re2js/build/index.js:
|
|
|
12774
12805
|
*/
|
|
12775
12806
|
|
|
12776
12807
|
export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT2 as MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
12777
|
-
//# sourceMappingURL=chunk-
|
|
12778
|
-
//# sourceMappingURL=chunk-
|
|
12808
|
+
//# sourceMappingURL=chunk-QGZ5CW3Y.js.map
|
|
12809
|
+
//# sourceMappingURL=chunk-QGZ5CW3Y.js.map
|