@distilled.cloud/namespacelabs 0.0.0 → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +130 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +73 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +59 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +44 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +12 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/buildkite_jobs.d.ts +129 -0
- package/lib/services/buildkite_jobs.d.ts.map +1 -0
- package/lib/services/buildkite_jobs.js +2 -0
- package/lib/services/buildkite_jobs.js.map +1 -0
- package/lib/services/buildkite_queue.d.ts +186 -0
- package/lib/services/buildkite_queue.d.ts.map +1 -0
- package/lib/services/buildkite_queue.js +2 -0
- package/lib/services/buildkite_queue.js.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +2 -0
- package/lib/services.lazy/buildkite_jobs.js +1 -0
- package/lib/services.lazy/buildkite_queue.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/artifacts.d.ts +268 -0
- package/lib/unstable-services/artifacts.d.ts.map +1 -0
- package/lib/unstable-services/artifacts.js +2 -0
- package/lib/unstable-services/artifacts.js.map +1 -0
- package/lib/unstable-services/audit.d.ts +157 -0
- package/lib/unstable-services/audit.d.ts.map +1 -0
- package/lib/unstable-services/audit.js +2 -0
- package/lib/unstable-services/audit.js.map +1 -0
- package/lib/unstable-services/bazel.d.ts +181 -0
- package/lib/unstable-services/bazel.d.ts.map +1 -0
- package/lib/unstable-services/bazel.js +2 -0
- package/lib/unstable-services/bazel.js.map +1 -0
- package/lib/unstable-services/bazel_cache.d.ts +126 -0
- package/lib/unstable-services/bazel_cache.d.ts.map +1 -0
- package/lib/unstable-services/bazel_cache.js +2 -0
- package/lib/unstable-services/bazel_cache.js.map +1 -0
- package/lib/unstable-services/builder.d.ts +242 -0
- package/lib/unstable-services/builder.d.ts.map +1 -0
- package/lib/unstable-services/builder.js +2 -0
- package/lib/unstable-services/builder.js.map +1 -0
- package/lib/unstable-services/compute.d.ts +1124 -0
- package/lib/unstable-services/compute.d.ts.map +1 -0
- package/lib/unstable-services/compute.js +47 -0
- package/lib/unstable-services/compute.js.map +1 -0
- package/lib/unstable-services/compute_command.d.ts +120 -0
- package/lib/unstable-services/compute_command.d.ts.map +1 -0
- package/lib/unstable-services/compute_command.js +2 -0
- package/lib/unstable-services/compute_command.js.map +1 -0
- package/lib/unstable-services/compute_observability.d.ts +165 -0
- package/lib/unstable-services/compute_observability.d.ts.map +1 -0
- package/lib/unstable-services/compute_observability.js +2 -0
- package/lib/unstable-services/compute_observability.js.map +1 -0
- package/lib/unstable-services/compute_storage.d.ts +379 -0
- package/lib/unstable-services/compute_storage.d.ts.map +1 -0
- package/lib/unstable-services/compute_storage.js +33 -0
- package/lib/unstable-services/compute_storage.js.map +1 -0
- package/lib/unstable-services/compute_usage.d.ts +283 -0
- package/lib/unstable-services/compute_usage.d.ts.map +1 -0
- package/lib/unstable-services/compute_usage.js +2 -0
- package/lib/unstable-services/compute_usage.js.map +1 -0
- package/lib/unstable-services/egress.d.ts +191 -0
- package/lib/unstable-services/egress.d.ts.map +1 -0
- package/lib/unstable-services/egress.js +2 -0
- package/lib/unstable-services/egress.js.map +1 -0
- package/lib/unstable-services/experimental_compute_reservation.d.ts +672 -0
- package/lib/unstable-services/experimental_compute_reservation.d.ts.map +1 -0
- package/lib/unstable-services/experimental_compute_reservation.js +23 -0
- package/lib/unstable-services/experimental_compute_reservation.js.map +1 -0
- package/lib/unstable-services/experimental_remote_results.d.ts +496 -0
- package/lib/unstable-services/experimental_remote_results.d.ts.map +1 -0
- package/lib/unstable-services/experimental_remote_results.js +2 -0
- package/lib/unstable-services/experimental_remote_results.js.map +1 -0
- package/lib/unstable-services/github_image.d.ts +162 -0
- package/lib/unstable-services/github_image.d.ts.map +1 -0
- package/lib/unstable-services/github_image.js +2 -0
- package/lib/unstable-services/github_image.js.map +1 -0
- package/lib/unstable-services/github_jobs.d.ts +183 -0
- package/lib/unstable-services/github_jobs.d.ts.map +1 -0
- package/lib/unstable-services/github_jobs.js +2 -0
- package/lib/unstable-services/github_jobs.js.map +1 -0
- package/lib/unstable-services/github_profile.d.ts +296 -0
- package/lib/unstable-services/github_profile.d.ts.map +1 -0
- package/lib/unstable-services/github_profile.js +2 -0
- package/lib/unstable-services/github_profile.js.map +1 -0
- package/lib/unstable-services/gradle_cache.d.ts +125 -0
- package/lib/unstable-services/gradle_cache.d.ts.map +1 -0
- package/lib/unstable-services/gradle_cache.js +2 -0
- package/lib/unstable-services/gradle_cache.js.map +1 -0
- package/lib/unstable-services/httpcache.d.ts +125 -0
- package/lib/unstable-services/httpcache.d.ts.map +1 -0
- package/lib/unstable-services/httpcache.js +2 -0
- package/lib/unstable-services/httpcache.js.map +1 -0
- package/lib/unstable-services/iam_tenant.d.ts +457 -0
- package/lib/unstable-services/iam_tenant.d.ts.map +1 -0
- package/lib/unstable-services/iam_tenant.js +45 -0
- package/lib/unstable-services/iam_tenant.js.map +1 -0
- package/lib/unstable-services/iam_tenant_membership.d.ts +114 -0
- package/lib/unstable-services/iam_tenant_membership.d.ts.map +1 -0
- package/lib/unstable-services/iam_tenant_membership.js +2 -0
- package/lib/unstable-services/iam_tenant_membership.js.map +1 -0
- package/lib/unstable-services/iam_token.d.ts +257 -0
- package/lib/unstable-services/iam_token.d.ts.map +1 -0
- package/lib/unstable-services/iam_token.js +2 -0
- package/lib/unstable-services/iam_token.js.map +1 -0
- package/lib/unstable-services/image.d.ts +222 -0
- package/lib/unstable-services/image.d.ts.map +1 -0
- package/lib/unstable-services/image.js +2 -0
- package/lib/unstable-services/image.js.map +1 -0
- package/lib/unstable-services/index.d.ts +28 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +27 -0
- package/lib/unstable-services/private_devbox.d.ts +1180 -0
- package/lib/unstable-services/private_devbox.d.ts.map +1 -0
- package/lib/unstable-services/private_devbox.js +81 -0
- package/lib/unstable-services/private_devbox.js.map +1 -0
- package/lib/unstable-services/private_user_sessions.d.ts +145 -0
- package/lib/unstable-services/private_user_sessions.d.ts.map +1 -0
- package/lib/unstable-services/private_user_sessions.js +2 -0
- package/lib/unstable-services/private_user_sessions.js.map +1 -0
- package/lib/unstable-services/registry.d.ts +373 -0
- package/lib/unstable-services/registry.d.ts.map +1 -0
- package/lib/unstable-services/registry.js +34 -0
- package/lib/unstable-services/registry.js.map +1 -0
- package/lib/unstable-services/testing.d.ts +160 -0
- package/lib/unstable-services/testing.d.ts.map +1 -0
- package/lib/unstable-services/testing.js +2 -0
- package/lib/unstable-services/testing.js.map +1 -0
- package/lib/unstable-services/vault.d.ts +203 -0
- package/lib/unstable-services/vault.d.ts.map +1 -0
- package/lib/unstable-services/vault.js +2 -0
- package/lib/unstable-services/vault.js.map +1 -0
- package/lib/unstable-services.lazy/artifacts.js +1 -0
- package/lib/unstable-services.lazy/audit.js +1 -0
- package/lib/unstable-services.lazy/bazel.js +1 -0
- package/lib/unstable-services.lazy/bazel_cache.js +1 -0
- package/lib/unstable-services.lazy/builder.js +1 -0
- package/lib/unstable-services.lazy/compute.js +4 -0
- package/lib/unstable-services.lazy/compute_command.js +1 -0
- package/lib/unstable-services.lazy/compute_observability.js +1 -0
- package/lib/unstable-services.lazy/compute_storage.js +4 -0
- package/lib/unstable-services.lazy/compute_usage.js +1 -0
- package/lib/unstable-services.lazy/egress.js +1 -0
- package/lib/unstable-services.lazy/experimental_compute_reservation.js +4 -0
- package/lib/unstable-services.lazy/experimental_remote_results.js +1 -0
- package/lib/unstable-services.lazy/github_image.js +1 -0
- package/lib/unstable-services.lazy/github_jobs.js +1 -0
- package/lib/unstable-services.lazy/github_profile.js +1 -0
- package/lib/unstable-services.lazy/gradle_cache.js +1 -0
- package/lib/unstable-services.lazy/httpcache.js +1 -0
- package/lib/unstable-services.lazy/iam_tenant.js +4 -0
- package/lib/unstable-services.lazy/iam_tenant_membership.js +1 -0
- package/lib/unstable-services.lazy/iam_token.js +1 -0
- package/lib/unstable-services.lazy/image.js +1 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/private_devbox.js +4 -0
- package/lib/unstable-services.lazy/private_user_sessions.js +1 -0
- package/lib/unstable-services.lazy/registry.js +4 -0
- package/lib/unstable-services.lazy/testing.js +1 -0
- package/lib/unstable-services.lazy/vault.js +1 -0
- package/package.json +89 -2
- package/src/credentials.ts +208 -0
- package/src/errors.ts +71 -0
- package/src/index.ts +50 -0
- package/src/pagination.ts +1 -0
- package/src/protocol.ts +83 -0
- package/src/retry.ts +28 -0
- package/src/services/buildkite_jobs.ts +230 -0
- package/src/services/buildkite_queue.ts +453 -0
- package/src/services/index.ts +3 -0
- package/src/traits.ts +36 -0
- package/src/unstable-services/artifacts.ts +769 -0
- package/src/unstable-services/audit.ts +323 -0
- package/src/unstable-services/bazel.ts +423 -0
- package/src/unstable-services/bazel_cache.ts +219 -0
- package/src/unstable-services/builder.ts +576 -0
- package/src/unstable-services/compute.ts +2991 -0
- package/src/unstable-services/compute_command.ts +220 -0
- package/src/unstable-services/compute_observability.ts +436 -0
- package/src/unstable-services/compute_storage.ts +1167 -0
- package/src/unstable-services/compute_usage.ts +738 -0
- package/src/unstable-services/egress.ts +516 -0
- package/src/unstable-services/experimental_compute_reservation.ts +1499 -0
- package/src/unstable-services/experimental_remote_results.ts +1165 -0
- package/src/unstable-services/github_image.ts +301 -0
- package/src/unstable-services/github_jobs.ts +389 -0
- package/src/unstable-services/github_profile.ts +729 -0
- package/src/unstable-services/gradle_cache.ts +271 -0
- package/src/unstable-services/httpcache.ts +271 -0
- package/src/unstable-services/iam_tenant.ts +1720 -0
- package/src/unstable-services/iam_tenant_membership.ts +253 -0
- package/src/unstable-services/iam_token.ts +788 -0
- package/src/unstable-services/image.ts +602 -0
- package/src/unstable-services/index.ts +28 -0
- package/src/unstable-services/private_devbox.ts +4256 -0
- package/src/unstable-services/private_user_sessions.ts +410 -0
- package/src/unstable-services/registry.ts +1242 -0
- package/src/unstable-services/testing.ts +394 -0
- package/src/unstable-services/vault.ts +522 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAG9D,OAAO,KAAK,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,KAAK,yBAAyB,EAC/B,MAAM,aAAa,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAC5B,yBAAyB,GACzB,OAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAEzE,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAWnE,kFAAkF;AAClF,eAAO,MAAM,OAAO,QAAS,MAAM,KAAG,IAGrC,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,MAAM,OAAO,MAAM,KAAG,MAWvD,CAAC;AAeF,eAAO,MAAM,qBAAqB,mOAchC,CAAC"}
|
package/lib/protocol.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { protocol$NamespaceLabsProtocol as NamespaceLabsProtocol, protocol$baseUrlFor as baseUrlFor, protocol$hostFor as hostFor } from "./_bundle/sdk.js";
|
package/lib/retry.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Policy } from "@distilled.cloud/core/retry";
|
|
2
|
+
import * as Context from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
export { type Factory, type Options, type Policy, capped, jittered, makeDefault, throttlingFactory, throttlingOptions, transientFactory, transientOptions, } from "@distilled.cloud/core/retry";
|
|
5
|
+
declare const Retry_base: Context.ServiceClass<Retry, "NamespaceLabsRetry", Policy>;
|
|
6
|
+
export declare class Retry extends Retry_base {
|
|
7
|
+
}
|
|
8
|
+
export declare const policy: (optionsOrFactory: Policy) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
9
|
+
export declare const none: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
10
|
+
export declare const throttling: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
11
|
+
export declare const transient: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
12
|
+
//# sourceMappingURL=retry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,6BAA6B,CAAC;AAC/F,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,MAAM,EACN,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;;AAErC,qBAAa,KAAM,SAAQ,UAAsD;CAAG;AAEpF,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD,eAAO,MAAM,IAAI,mFAA+D,CAAC;AAEjF,eAAO,MAAM,UAAU,mFAA4B,CAAC;AAEpD,eAAO,MAAM,SAAS,mFAA2B,CAAC"}
|
package/lib/retry.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { retry$Retry as Retry, retry$capped as capped, retry$jittered as jittered, retry$makeDefault as makeDefault, retry$none as none, retry$policy as policy, retry$throttling as throttling, retry$throttlingFactory as throttlingFactory, retry$throttlingOptions as throttlingOptions, retry$transient as transient, retry$transientFactory as transientFactory, retry$transientOptions as transientOptions } from "./_bundle/sdk.js";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
|
|
4
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
5
|
+
declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
readonly headers: any;
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
ConflictError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
|
|
15
|
+
}
|
|
16
|
+
declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
|
|
17
|
+
readonly message: any;
|
|
18
|
+
readonly body: any;
|
|
19
|
+
readonly headers: any;
|
|
20
|
+
}> & (new (...args: any[]) => {
|
|
21
|
+
"@distilled.cloud/error/categories": {
|
|
22
|
+
BadRequestError: true;
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
|
|
26
|
+
}
|
|
27
|
+
declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
|
|
28
|
+
readonly message: any;
|
|
29
|
+
readonly body: any;
|
|
30
|
+
readonly headers: any;
|
|
31
|
+
}> & (new (...args: any[]) => {
|
|
32
|
+
"@distilled.cloud/error/categories": {
|
|
33
|
+
BadRequestError: true;
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
|
|
37
|
+
}
|
|
38
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
39
|
+
readonly message: any;
|
|
40
|
+
readonly body: any;
|
|
41
|
+
readonly headers: any;
|
|
42
|
+
}> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
BadRequestError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
48
|
+
}
|
|
49
|
+
declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
|
|
50
|
+
readonly message: any;
|
|
51
|
+
readonly body: any;
|
|
52
|
+
readonly headers: any;
|
|
53
|
+
}> & (new (...args: any[]) => {
|
|
54
|
+
"@distilled.cloud/error/categories": {
|
|
55
|
+
AuthError: true;
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
|
|
59
|
+
}
|
|
60
|
+
declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
|
|
61
|
+
readonly message: any;
|
|
62
|
+
readonly body: any;
|
|
63
|
+
readonly headers: any;
|
|
64
|
+
readonly retryAfter: any;
|
|
65
|
+
}> & (new (...args: any[]) => {
|
|
66
|
+
"@distilled.cloud/error/categories": {
|
|
67
|
+
ThrottlingError: true;
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
|
|
71
|
+
}
|
|
72
|
+
declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
|
|
73
|
+
readonly message: any;
|
|
74
|
+
readonly body: any;
|
|
75
|
+
readonly headers: any;
|
|
76
|
+
}> & (new (...args: any[]) => {
|
|
77
|
+
"@distilled.cloud/error/categories": {
|
|
78
|
+
AuthError: true;
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
|
|
82
|
+
}
|
|
83
|
+
export interface DescribeJobRequest {
|
|
84
|
+
/** The Buildkite job ID to describe */
|
|
85
|
+
jobId?: string | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface RunnerInfo {
|
|
88
|
+
/** Instance ID of the underlying compute instance. */
|
|
89
|
+
instanceId: string;
|
|
90
|
+
}
|
|
91
|
+
/** Job represents a Buildkite command job and its associated build, pipeline, and runner. */
|
|
92
|
+
export interface Job {
|
|
93
|
+
/** Unique Buildkite job ID. */
|
|
94
|
+
jobId: string;
|
|
95
|
+
/** Repository associated with the job. */
|
|
96
|
+
repository: string;
|
|
97
|
+
/** Unique Buildkite build ID. */
|
|
98
|
+
buildId: string;
|
|
99
|
+
/** Build number within the pipeline. */
|
|
100
|
+
buildNumber: string;
|
|
101
|
+
/** Slug of the Buildkite pipeline. */
|
|
102
|
+
pipelineSlug: string;
|
|
103
|
+
/** Label of the Buildkite job. */
|
|
104
|
+
jobName: string;
|
|
105
|
+
/** e.g. "passed", "failed", "canceled", "timed_out", "skipped", "broken" */
|
|
106
|
+
jobState: string;
|
|
107
|
+
/** URL to view the job in Buildkite. */
|
|
108
|
+
jobUrl: string;
|
|
109
|
+
/** When the job was scheduled. */
|
|
110
|
+
scheduledAt?: string | undefined;
|
|
111
|
+
/** When the job started running. */
|
|
112
|
+
startedAt?: string | undefined;
|
|
113
|
+
/** When the job completed. */
|
|
114
|
+
completedAt?: string | undefined;
|
|
115
|
+
/** Runner information, if assigned. */
|
|
116
|
+
runner?: RunnerInfo | undefined;
|
|
117
|
+
/** Branch associated with the build. */
|
|
118
|
+
branch: string;
|
|
119
|
+
/** Commit SHA associated with the build. */
|
|
120
|
+
commitSha: string;
|
|
121
|
+
}
|
|
122
|
+
export interface DescribeJobResponse {
|
|
123
|
+
/** The described Buildkite job. */
|
|
124
|
+
job?: Job | undefined;
|
|
125
|
+
}
|
|
126
|
+
export type DescribeJobError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
127
|
+
/** Describes a Buildkite job by its job ID. */
|
|
128
|
+
export declare const describeJob: API.OperationMethod<DescribeJobRequest, DescribeJobResponse, DescribeJobError, NamespaceLabsOpContext>;
|
|
129
|
+
//# sourceMappingURL=buildkite_jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildkite_jobs.d.ts","sources":["../../src/services/buildkite_jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAGvD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;;;;;;;;;;AAc7D,qBAAa,aACX,SAAQ,aAAa,CAAC,kBAOrB;CAAG;;;;;;;;;;AAEN,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAO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;CACnB;AACD,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CACvB;AACD,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,+CAA+C;AAC/C,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,CAkBrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ca as e,Ma as t,_c as n,a as r,b as i,errors$NamespaceLabsServiceErrors as a,f as o,hd as s,jd as c,kd as l,l as u,m as d,md as f,n as p,pd as m,protocol$NamespaceLabsProtocol as h,rd as g,retry$Retry as _,traits$Http as v,traits$applyErrorMatchers as y,wd as b,xd as x,ya as S,za as C}from"../_bundle/sdk.js";const w={system:`namespacelabs-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Namespacelabs`,service:`JobsService`,propagate:`w3c`};const T=/*@__PURE__*/ o(function AlreadyExists(t){return d(t,new.target,[`$7($6()("AlreadyExists",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:409,body:{"/code":"already_exists"}}])`,[g,e,c,m,s,b,f,y]])});const E=/*@__PURE__*/ o(function FailedPrecondition(e){return d(e,new.target,[`$7($6()("FailedPrecondition",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400,body:{"/code":"failed_precondition"}}])`,[g,C,c,m,s,b,f,y]])});const D=/*@__PURE__*/ o(function InvalidArgument(e){return d(e,new.target,[`$7($6()("InvalidArgument",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400,body:{"/code":"invalid_argument"}}])`,[g,C,c,m,s,b,f,y]])});const O=/*@__PURE__*/ o(function NotFound(e){return d(e,new.target,[`$7($6()("NotFound",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:404}])`,[g,C,c,m,s,b,f,y]])});const k=/*@__PURE__*/ o(function PermissionDenied(e){return d(e,new.target,[`$7($6()("PermissionDenied",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:403}])`,[g,S,c,m,s,b,f,y]])});const A=/*@__PURE__*/ o(function ResourceExhausted(e){return d(e,new.target,[`$8($7()("ResourceExhausted",{message:$2,body:$3,headers:$5($4($2,$2)),retryAfter:$5($6)}).pipe($1),[{status:429}])`,[g,t,c,m,s,b,n,f,y]])});const j=/*@__PURE__*/ o(function Unauthenticated(e){return d(e,new.target,[`$7($6()("Unauthenticated",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:401}])`,[g,S,c,m,s,b,f,y]])});const M=/*@__PURE__*/ p(e=>e===r?u(`DescribeJob`,`{input:#1,output:#4,errors:[$6,$7,$8,$9,$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>5)@"%Request";$5(>6)@"RunnerInfo";$5(>7)@"Job";$5(>8)@"%Response";$4({jobId:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.buildkite.JobsService/%",code:200}));$4({instanceId:$2});$4({jobId:$2,repository:$2,buildId:$2,buildNumber:$2,pipelineSlug:$2,jobName:$2,jobState:$2,jobUrl:$2,scheduledAt:$3($2),startedAt:$3($2),completedAt:$3($2),runner:$3(#2),branch:$2,commitSha:$2});$4({job:$3(#3)})`,[g,v,c,b,l,x,D,E,j,k,O,T,A,a,h,_,w]):i(M,e));export{T as AlreadyExists,E as FailedPrecondition,D as InvalidArgument,O as NotFound,k as PermissionDenied,A as ResourceExhausted,j as Unauthenticated,M as describeJob};
|
|
2
|
+
//# sourceMappingURL=buildkite_jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildkite_jobs.js","names":["API.newError","__L.at","C.withConflictError","S.String","S.Unknown","S.Record","S.optional","S.TaggedError","T.applyErrorMatchers","C.withBadRequestError","C.withAuthError","C.withThrottlingError","S.Duration","API.D","API.named","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","withConflictError","withThrottlingError","Duration","D","call","NamespaceLabsServiceErrors","error","Record","String","Struct","named","newError","TaggedError","op","Unknown","NamespaceLabsProtocol","at","Retry","Http","applyErrorMatchers","optional","suspend","withAuthError","withBadRequestError","TELEMETRY","AlreadyExists","i","FailedPrecondition","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","describeJob"],"sources":["../../src/services/buildkite_jobs.ts"],"mappings":"6TAiBA,MAAM4C,EAAY,CAChB,OAAQ,oBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,gBACR,QAAS,cACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO7C,EAAa8C,EAAG,WAAY,CAAC,+HAAgI,CAAC7C,EAAQC,EAAqBC,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACpR,CAAC,EAED,MAAauC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAO/C,EAAa8C,EAAG,WAAY,CAAC,yIAA0I,CAAC7C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAChS,CAAC,EAED,MAAawC,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOhD,EAAa8C,EAAG,WAAY,CAAC,mIAAoI,CAAC7C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAC1R,CAAC,EAED,MAAayC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOjD,EAAa8C,EAAG,WAAY,CAAC,0FAA2F,CAAC7C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACjP,CAAC,EAED,MAAa0C,EAAsC,gBAAU,SAAS,iBAAiB,EAAa,CAClG,OAAOlD,EAAa8C,EAAG,WAAY,CAAC,kGAAmG,CAAC7C,EAAQS,EAAiBP,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACnP,CAAC,EAED,MAAa2C,EAAuC,gBAAU,SAAS,kBAAkB,EAAa,CACpG,OAAOnD,EAAa8C,EAAG,WAAY,CAAC,qHAAsH,CAAC7C,EAAQU,EAAuBR,EAAUC,EAAWC,EAAUC,EAAYM,EAAYL,EAAeC,CAAoB,CAAC,CAAC,CACxR,CAAC,EAED,MAAa4C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOpD,EAAa8C,EAAG,WAAY,CAAC,iGAAkG,CAAC7C,EAAQS,EAAiBP,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAClP,CAAC,EAuDD,MAAa6C,EAKK,gBAAQ,GAAgBP,IAAMjC,EAAQC,EAAU,cAAe,4gBAA6gB,CAACb,EAAQc,EAAQZ,EAAUG,EAAYU,EAAUC,EAAW+B,EAAiBD,EAAoBK,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmB1B,EAA4BU,EAAuBjB,EAAa0B,CAAS,CAAC,EAAIzB,EAASkC,EAAaP,CAAC,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
|
|
4
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
5
|
+
declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
readonly headers: any;
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
ConflictError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
|
|
15
|
+
}
|
|
16
|
+
declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
|
|
17
|
+
readonly message: any;
|
|
18
|
+
readonly body: any;
|
|
19
|
+
readonly headers: any;
|
|
20
|
+
}> & (new (...args: any[]) => {
|
|
21
|
+
"@distilled.cloud/error/categories": {
|
|
22
|
+
BadRequestError: true;
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
|
|
26
|
+
}
|
|
27
|
+
declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
|
|
28
|
+
readonly message: any;
|
|
29
|
+
readonly body: any;
|
|
30
|
+
readonly headers: any;
|
|
31
|
+
}> & (new (...args: any[]) => {
|
|
32
|
+
"@distilled.cloud/error/categories": {
|
|
33
|
+
BadRequestError: true;
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
|
|
37
|
+
}
|
|
38
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
39
|
+
readonly message: any;
|
|
40
|
+
readonly body: any;
|
|
41
|
+
readonly headers: any;
|
|
42
|
+
}> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
BadRequestError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
48
|
+
}
|
|
49
|
+
declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
|
|
50
|
+
readonly message: any;
|
|
51
|
+
readonly body: any;
|
|
52
|
+
readonly headers: any;
|
|
53
|
+
}> & (new (...args: any[]) => {
|
|
54
|
+
"@distilled.cloud/error/categories": {
|
|
55
|
+
AuthError: true;
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
|
|
59
|
+
}
|
|
60
|
+
declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
|
|
61
|
+
readonly message: any;
|
|
62
|
+
readonly body: any;
|
|
63
|
+
readonly headers: any;
|
|
64
|
+
readonly retryAfter: any;
|
|
65
|
+
}> & (new (...args: any[]) => {
|
|
66
|
+
"@distilled.cloud/error/categories": {
|
|
67
|
+
ThrottlingError: true;
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
|
|
71
|
+
}
|
|
72
|
+
declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
|
|
73
|
+
readonly message: any;
|
|
74
|
+
readonly body: any;
|
|
75
|
+
readonly headers: any;
|
|
76
|
+
}> & (new (...args: any[]) => {
|
|
77
|
+
"@distilled.cloud/error/categories": {
|
|
78
|
+
AuthError: true;
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
|
|
82
|
+
}
|
|
83
|
+
export interface GetQueueRequest {
|
|
84
|
+
/** Queue ID generated by Namespace. */
|
|
85
|
+
queueId?: string | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface Organization {
|
|
88
|
+
/** The Buildkite organization slug. */
|
|
89
|
+
orgSlug: string;
|
|
90
|
+
/** The Buildkite organization UUID. */
|
|
91
|
+
orgUuid: string;
|
|
92
|
+
}
|
|
93
|
+
export type PermissionsType = "PERMISSIONS_TYPE_UNKNOWN" | "DEFAULT" | "CUSTOM";
|
|
94
|
+
export type StringList = Array<string>;
|
|
95
|
+
/** Defines a permission grant on a resource. Permissions are used to restrict what a token is allowed to do. See https://namespace.so/docs/security/permissions for a list of available resource types and actions. */
|
|
96
|
+
export interface Permission {
|
|
97
|
+
/** The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable". */
|
|
98
|
+
resourceType?: string | undefined;
|
|
99
|
+
/** The specific resource ID, or empty for all resources of this type. */
|
|
100
|
+
resourceId?: string | undefined;
|
|
101
|
+
/** The set of actions allowed on the resource, e.g. "create", "list", "describe". */
|
|
102
|
+
actions?: StringList | undefined;
|
|
103
|
+
}
|
|
104
|
+
export type PermissionList = Array<Permission>;
|
|
105
|
+
export interface Permissions {
|
|
106
|
+
permissionsType?: PermissionsType | (string & {}) | undefined;
|
|
107
|
+
/** Ignored unless permissions_type is CUSTOM. */
|
|
108
|
+
workloadPermissions?: PermissionList | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface ResolvableValue {
|
|
111
|
+
static?: string | undefined;
|
|
112
|
+
fromSecretId?: string | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface HttpHeader {
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
value?: string | undefined;
|
|
117
|
+
valueFrom?: ResolvableValue | undefined;
|
|
118
|
+
}
|
|
119
|
+
export type HttpHeaderList = Array<HttpHeader>;
|
|
120
|
+
export type OpenTelemetrySettingsOTLPProtocol = "OTLP_PROTOCOL_UNSPECIFIED" | "OTLP_PROTOCOL_GRPC" | "OTLP_PROTOCOL_HTTP_PROTOBUF";
|
|
121
|
+
export type StringMap = {
|
|
122
|
+
[key: string]: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
export interface OpenTelemetrySettings {
|
|
125
|
+
otlpEndpoint?: string | undefined;
|
|
126
|
+
/** Headers to be passed to the OTel collector. Example: {name: "Authorization", value_from: {from_secret_id: "sec_abcdefg"}} with sec_abcdefg containing the value "Bearer <token>". Many providers also support additional or custom headers. */
|
|
127
|
+
headers?: HttpHeaderList | undefined;
|
|
128
|
+
/** Defaults to GRPC unless HTTP_PROTOBUF is specified. */
|
|
129
|
+
otlpProtocol?: OpenTelemetrySettingsOTLPProtocol | (string & {}) | undefined;
|
|
130
|
+
/** Additional key-value pairs to be used as resource attributes. */
|
|
131
|
+
resourceAttributes?: StringMap | undefined;
|
|
132
|
+
}
|
|
133
|
+
export type CacheVolumeSettingsCacheVolumeCommit = "CACHE_VOLUME_COMMIT_UNSPECIFIED" | "CACHE_VOLUME_COMMIT_DEFAULT" | "CACHE_VOLUME_COMMIT_NEVER";
|
|
134
|
+
export interface CacheVolumeSettings {
|
|
135
|
+
commit?: CacheVolumeSettingsCacheVolumeCommit | (string & {}) | undefined;
|
|
136
|
+
}
|
|
137
|
+
export interface QueueSettings {
|
|
138
|
+
/** Workload permissions for all instances running jobs for this queue. */
|
|
139
|
+
permissions?: Permissions | undefined;
|
|
140
|
+
/** Tag of the workspace egress policy to apply to jobs running for this queue. Jobs fail if they also set nsc-egress-policy in their agent tags. */
|
|
141
|
+
egressPolicyTag?: string | undefined;
|
|
142
|
+
openTelemetrySettings?: OpenTelemetrySettings | undefined;
|
|
143
|
+
cacheVolumeSettings?: CacheVolumeSettings | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface BuildkiteQueue {
|
|
146
|
+
/** The managed queue ID generated by Namespace. */
|
|
147
|
+
id: string;
|
|
148
|
+
/** The queue name in Buildkite. */
|
|
149
|
+
queueName: string;
|
|
150
|
+
/** The Buildkite cluster to which this queue belongs. */
|
|
151
|
+
cluster: string;
|
|
152
|
+
/** The Buildkite organization. */
|
|
153
|
+
organization?: Organization | undefined;
|
|
154
|
+
/** Additional queue settings. */
|
|
155
|
+
settings?: QueueSettings | undefined;
|
|
156
|
+
}
|
|
157
|
+
export interface GetQueueResponse {
|
|
158
|
+
/** Namespace-managed Buildkite queue. */
|
|
159
|
+
queue?: BuildkiteQueue | undefined;
|
|
160
|
+
}
|
|
161
|
+
export interface ListQueuesRequest {
|
|
162
|
+
}
|
|
163
|
+
export type BuildkiteQueueList = Array<BuildkiteQueue>;
|
|
164
|
+
export interface ListQueuesResponse {
|
|
165
|
+
queues: BuildkiteQueueList;
|
|
166
|
+
}
|
|
167
|
+
export interface UpdateQueueRequest {
|
|
168
|
+
/** Required field. */
|
|
169
|
+
queueId?: string | undefined;
|
|
170
|
+
/** Fully replaces the queue settings. Call GetQueue first and include any existing settings that should be retained. If empty, this will reset the queue settings. */
|
|
171
|
+
settings?: QueueSettings | undefined;
|
|
172
|
+
}
|
|
173
|
+
export interface UpdateQueueResponse {
|
|
174
|
+
/** Namespace-managed Buildkite queue. */
|
|
175
|
+
queue?: BuildkiteQueue | undefined;
|
|
176
|
+
}
|
|
177
|
+
export type GetQueueError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
178
|
+
/** Get queue settings. Authentication: tenant token. */
|
|
179
|
+
export declare const getQueue: API.OperationMethod<GetQueueRequest, GetQueueResponse, GetQueueError, NamespaceLabsOpContext>;
|
|
180
|
+
export type ListQueuesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
181
|
+
/** List queues registered for this tenant in Namespace. Authentication: tenant token. */
|
|
182
|
+
export declare const listQueues: API.OperationMethod<ListQueuesRequest, ListQueuesResponse, ListQueuesError, NamespaceLabsOpContext>;
|
|
183
|
+
export type UpdateQueueError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
184
|
+
/** Update queue-wide settings. Authentication: tenant token. */
|
|
185
|
+
export declare const updateQueue: API.OperationMethod<UpdateQueueRequest, UpdateQueueResponse, UpdateQueueError, NamespaceLabsOpContext>;
|
|
186
|
+
//# sourceMappingURL=buildkite_queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildkite_queue.d.ts","sources":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Ae,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,wDAAwD;AACxD,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,yFAAyF;AACzF,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,gEAAgE;AAChE,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,CAkBrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ca as e,Ma as t,Xc as n,_c as r,a as i,b as a,errors$NamespaceLabsServiceErrors as o,f as s,hd as c,jd as l,kd as u,l as d,m as f,md as p,n as m,pd as h,protocol$NamespaceLabsProtocol as g,rd as _,retry$Retry as v,traits$Http as y,traits$applyErrorMatchers as b,wd as x,xd as S,ya as C,za as w}from"../_bundle/sdk.js";const T={system:`namespacelabs-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Namespacelabs`,service:`QueueService`,propagate:`w3c`};const E=/*@__PURE__*/ s(function AlreadyExists(t){return f(t,new.target,[`$7($6()("AlreadyExists",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:409,body:{"/code":"already_exists"}}])`,[_,e,l,h,c,x,p,b]])});const D=/*@__PURE__*/ s(function FailedPrecondition(e){return f(e,new.target,[`$7($6()("FailedPrecondition",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400,body:{"/code":"failed_precondition"}}])`,[_,w,l,h,c,x,p,b]])});const O=/*@__PURE__*/ s(function InvalidArgument(e){return f(e,new.target,[`$7($6()("InvalidArgument",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400,body:{"/code":"invalid_argument"}}])`,[_,w,l,h,c,x,p,b]])});const k=/*@__PURE__*/ s(function NotFound(e){return f(e,new.target,[`$7($6()("NotFound",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:404}])`,[_,w,l,h,c,x,p,b]])});const A=/*@__PURE__*/ s(function PermissionDenied(e){return f(e,new.target,[`$7($6()("PermissionDenied",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:403}])`,[_,C,l,h,c,x,p,b]])});const j=/*@__PURE__*/ s(function ResourceExhausted(e){return f(e,new.target,[`$8($7()("ResourceExhausted",{message:$2,body:$3,headers:$5($4($2,$2)),retryAfter:$5($6)}).pipe($1),[{status:429}])`,[_,t,l,h,c,x,r,p,b]])});const M=/*@__PURE__*/ s(function Unauthenticated(e){return f(e,new.target,[`$7($6()("Unauthenticated",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:401}])`,[_,C,l,h,c,x,p,b]])});const N=/*@__PURE__*/ m(e=>e===i?d(`GetQueue`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11,$12,$13],serviceErrors:$14,protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>2)@"%Request";$4({queueId:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.buildkite.QueueService/%",code:200}))`,[_,y,l,x,u,S,__d1,O,D,M,A,k,E,j,o,g,v,T]):a(N,e));const P=/*@__PURE__*/ m(e=>e===i?d(`ListQueues`,`{input:#1,output:#3,errors:[$6,$7,$8,$9,$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$3(>4)@"%Request";$5(#4:12);$3(>5)@"%Response";$2({}).pipe($1({method:"POST",uri:"/namespace.cloud.buildkite.QueueService/%",code:200}));$2({queues:#2})`,[_,y,u,S,__d0,n,O,D,M,A,k,E,j,o,g,v,T]):a(P,e));const F=/*@__PURE__*/ m(e=>e===i?d(`UpdateQueue`,`{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12,$13,$14],serviceErrors:$15,protocol:$16,retry:$17,telemetry:$18,span:"%"};$6(>2)@"%Request";$5({queueId:$3($2),settings:$3(#4:11)}).pipe($1({method:"POST",uri:"/namespace.cloud.buildkite.QueueService/%",code:200}))`,[_,y,l,x,__d0,u,S,__d1,O,D,M,A,k,E,j,o,g,v,T]):a(F,e));function __d0(){return[`$3(>13)@"Organization";$4($1);$3(>14)@"Permission";$4(#2);$3(>15)@"Permissions";$3(>16)@"ResolvableValue";$3(>17)@"HttpHeader";$4(#6);$6($1,$1);$3(>18)@"OpenTelemetrySettings";$3(>19)@"CacheVolumeSettings";$3(>20)@"QueueSettings";$3(>21)@"BuildkiteQueue";$2({orgSlug:$1,orgUuid:$1});$2({resourceType:$5($1),resourceId:$5($1),actions:$5(#1)});$2({permissionsType:$5($1),workloadPermissions:$5(#3)});$2({static:$5($1),fromSecretId:$5($1)});$2({name:$5($1),value:$5($1),valueFrom:$5(#5)});$2({otlpEndpoint:$5($1),headers:$5(#7),otlpProtocol:$5($1),resourceAttributes:$5(#8)});$2({commit:$5($1)});$2({permissions:$5(#4),egressPolicyTag:$5($1),openTelemetrySettings:$5(#9),cacheVolumeSettings:$5(#10)});$2({id:$1,queueName:$1,cluster:$1,organization:$5(#0),settings:$5(#11)})`,[_,l,u,S,n,x,c]]}function __d1(){return[`$4(>1)@"GetQueueResponse";$3({queue:$2(#1:12)})`,[_,__d0,x,u,S]]}export{E as AlreadyExists,D as FailedPrecondition,O as InvalidArgument,k as NotFound,A as PermissionDenied,j as ResourceExhausted,M as Unauthenticated,N as getQueue,P as listQueues,F as updateQueue};
|
|
2
|
+
//# sourceMappingURL=buildkite_queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildkite_queue.js","names":["API.newError","__L.at","C.withConflictError","S.String","S.Unknown","S.Record","S.optional","S.TaggedError","T.applyErrorMatchers","C.withBadRequestError","C.withAuthError","C.withThrottlingError","S.Duration","API.D","API.named","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","S.Array","withConflictError","withThrottlingError","Array","Duration","D","call","NamespaceLabsServiceErrors","error","Record","String","Struct","named","newError","TaggedError","op","Unknown","NamespaceLabsProtocol","at","Retry","Http","applyErrorMatchers","optional","suspend","withAuthError","withBadRequestError","TELEMETRY","AlreadyExists","i","FailedPrecondition","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","getQueue","listQueues","updateQueue"],"sources":["../../src/services/buildkite_queue.ts"],"mappings":"qUAiBA,MAAM8C,EAAY,CAChB,OAAQ,oBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,gBACR,QAAS,eACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO/C,EAAagD,EAAG,WAAY,CAAC,+HAAgI,CAAC/C,EAAQC,EAAqBC,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACpR,CAAC,EAED,MAAayC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAOjD,EAAagD,EAAG,WAAY,CAAC,yIAA0I,CAAC/C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAChS,CAAC,EAED,MAAa0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GAAgBR,IAAMnC,EAAQC,EAAU,aAAc,iRAAkR,CAACb,EAAQc,EAAQC,EAAUC,EAAW,KAAMG,EAAS8B,EAAiBD,EAAoBK,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmB1B,EAA4BU,EAAuBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAASqC,EAAYR,CAAC,CAAC,EAYhnB,MAAaS,EAKK,gBAAQ,GAAgBT,IAAMnC,EAAQC,EAAU,cAAe,yQAA0Q,CAACb,EAAQc,EAAQZ,EAAUG,EAAY,KAAMU,EAAUC,EAAW,KAAMiC,EAAiBD,EAAoBK,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmB1B,EAA4BU,EAAuBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAASsC,EAAaT,CAAC,CAAC,EAM7nB,SAAS,MAAY,CACnB,MAAO,CAAC,qwBAAswB,CAAC/C,EAAQE,EAAUa,EAAUC,EAAWG,EAASd,EAAYD,CAAQ,CAAC,CACt1B,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,kDAAmD,CAACJ,EAAQ,KAAMK,EAAYU,EAAUC,CAAS,CAAC,CAC5G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../src/services/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"../services/buildkite_jobs.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"../services/buildkite_queue.js";
|
package/lib/traits.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, type HttpTrait, type ErrorMatcher, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
|
|
2
|
+
export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
|
|
3
|
+
//# sourceMappingURL=traits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.d.ts","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC"}
|
package/lib/traits.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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";
|