@nizam-os/carrier-sdk 2.5.0 → 2.5.2
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/api/types/AssetListItem.d.ts +2 -0
- package/dist/api/types/BulkJobSubmission.d.ts +15 -0
- package/dist/api/types/BulkJobSubmission.js +10 -0
- package/dist/api/types/Job.d.ts +66 -0
- package/dist/api/types/Job.js +24 -0
- package/dist/api/types/JobSubmission.d.ts +14 -0
- package/dist/api/types/JobSubmission.js +10 -0
- package/dist/api/types/ListResponseJob.d.ts +27 -0
- package/dist/api/types/ListResponseJob.js +11 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ export interface AssetListItem {
|
|
|
22
22
|
organization_id?: string | undefined;
|
|
23
23
|
/** Current primary operator (active assignment, role=primary). */
|
|
24
24
|
current_primary_operator_id?: string | undefined;
|
|
25
|
+
/** Creation timestamp (ISO-8601 UTC). */
|
|
26
|
+
created_at?: string | undefined;
|
|
25
27
|
/** Relevance score (descending) when the request carried `q`; 0 for plain listings. Scores are only comparable within a single response. */
|
|
26
28
|
rank?: number | undefined;
|
|
27
29
|
/** Highlighted match fragment when the request carried `q&highlight=true`. Matched terms are wrapped in `<mark>…</mark>`. */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Acknowledgement of a bulk admin action that fanned out one job per work item.
|
|
3
|
+
*/
|
|
4
|
+
export interface BulkJobSubmission {
|
|
5
|
+
job_ids?: string[] | undefined;
|
|
6
|
+
/** Number of jobs created (one per matched service account). */
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
object?: BulkJobSubmission.Object_ | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace BulkJobSubmission {
|
|
11
|
+
const Object_: {
|
|
12
|
+
readonly BulkJobSubmission: "bulk_job_submission";
|
|
13
|
+
};
|
|
14
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BulkJobSubmission = void 0;
|
|
5
|
+
var BulkJobSubmission;
|
|
6
|
+
(function (BulkJobSubmission) {
|
|
7
|
+
BulkJobSubmission.Object_ = {
|
|
8
|
+
BulkJobSubmission: "bulk_job_submission",
|
|
9
|
+
};
|
|
10
|
+
})(BulkJobSubmission || (exports.BulkJobSubmission = BulkJobSubmission = {}));
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A long-running, retryable, operator-visible unit of work — bulk imports, exports, backfills, cache rebuilds. The job row is the persistent handle; the executing engine (Temporal workflow or lease worker, declared per kind) reports progress into it. Cancellation is cooperative: already-running work continues until the engine's next checkpoint.
|
|
3
|
+
*/
|
|
4
|
+
export interface Job {
|
|
5
|
+
/** Stable job id. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Owning organization. */
|
|
8
|
+
organization_id?: string | undefined;
|
|
9
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
10
|
+
kind?: Job.Kind | undefined;
|
|
11
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
12
|
+
status?: Job.Status | undefined;
|
|
13
|
+
/** User who submitted the job. Null only if that user was since deleted. */
|
|
14
|
+
requested_by_id?: string | undefined;
|
|
15
|
+
/** Input handle the job consumes (kind-specific), e.g. an uploaded import file. */
|
|
16
|
+
source_uri?: string | undefined;
|
|
17
|
+
/** Artifact produced by a completed job (kind-specific), e.g. a result report. */
|
|
18
|
+
report_uri?: string | undefined;
|
|
19
|
+
/** Total work items, once the engine has sized the work. Null while unknown. */
|
|
20
|
+
rows_total?: number | undefined;
|
|
21
|
+
/** Work items processed so far (monotonic). */
|
|
22
|
+
rows_processed?: number | undefined;
|
|
23
|
+
/** Work items that failed so far (monotonic). */
|
|
24
|
+
rows_failed?: number | undefined;
|
|
25
|
+
/** Operator-facing failure reason. Set only when status is `failed`. */
|
|
26
|
+
error_summary?: string | undefined;
|
|
27
|
+
/** Temporal workflow id (Temporal-engine kinds only) — cross-reference into the Temporal UI. */
|
|
28
|
+
workflow_id?: string | undefined;
|
|
29
|
+
/** Temporal run id of the latest attempt (changes across workflow retries). */
|
|
30
|
+
run_id?: string | undefined;
|
|
31
|
+
/** Engine execution attempts spent so far. */
|
|
32
|
+
attempt_count?: number | undefined;
|
|
33
|
+
/** Retry budget: a failed job with attempt_count >= max_attempts is dead-lettered. */
|
|
34
|
+
max_attempts?: number | undefined;
|
|
35
|
+
/** When the first engine attempt started. Null while pending (and for jobs cancelled before starting). */
|
|
36
|
+
started_at?: string | undefined;
|
|
37
|
+
/** When the job reached a terminal status. */
|
|
38
|
+
finished_at?: string | undefined;
|
|
39
|
+
/** Submission time. */
|
|
40
|
+
created_at?: string | undefined;
|
|
41
|
+
/** Last state/progress change. */
|
|
42
|
+
updated_at?: string | undefined;
|
|
43
|
+
object?: Job.Object_ | undefined;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace Job {
|
|
46
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
47
|
+
const Kind: {
|
|
48
|
+
readonly MembershipCacheRebuild: "membership_cache_rebuild";
|
|
49
|
+
readonly ServiceAccountApiKeyRegeneration: "service_account_api_key_regeneration";
|
|
50
|
+
};
|
|
51
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
52
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
53
|
+
const Status: {
|
|
54
|
+
readonly Pending: "pending";
|
|
55
|
+
readonly Running: "running";
|
|
56
|
+
readonly Cancelling: "cancelling";
|
|
57
|
+
readonly Completed: "completed";
|
|
58
|
+
readonly Failed: "failed";
|
|
59
|
+
readonly Cancelled: "cancelled";
|
|
60
|
+
};
|
|
61
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
62
|
+
const Object_: {
|
|
63
|
+
readonly Job: "job";
|
|
64
|
+
};
|
|
65
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
66
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Job = void 0;
|
|
5
|
+
var Job;
|
|
6
|
+
(function (Job) {
|
|
7
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
8
|
+
Job.Kind = {
|
|
9
|
+
MembershipCacheRebuild: "membership_cache_rebuild",
|
|
10
|
+
ServiceAccountApiKeyRegeneration: "service_account_api_key_regeneration",
|
|
11
|
+
};
|
|
12
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
13
|
+
Job.Status = {
|
|
14
|
+
Pending: "pending",
|
|
15
|
+
Running: "running",
|
|
16
|
+
Cancelling: "cancelling",
|
|
17
|
+
Completed: "completed",
|
|
18
|
+
Failed: "failed",
|
|
19
|
+
Cancelled: "cancelled",
|
|
20
|
+
};
|
|
21
|
+
Job.Object_ = {
|
|
22
|
+
Job: "job",
|
|
23
|
+
};
|
|
24
|
+
})(Job || (exports.Job = Job = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Acknowledgement that a job was submitted to its engine.
|
|
3
|
+
*/
|
|
4
|
+
export interface JobSubmission {
|
|
5
|
+
/** The created job — poll/cancel it via /v1/jobs/{id}. */
|
|
6
|
+
job_id?: string | undefined;
|
|
7
|
+
object?: JobSubmission.Object_ | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace JobSubmission {
|
|
10
|
+
const Object_: {
|
|
11
|
+
readonly JobSubmission: "job_submission";
|
|
12
|
+
};
|
|
13
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.JobSubmission = void 0;
|
|
5
|
+
var JobSubmission;
|
|
6
|
+
(function (JobSubmission) {
|
|
7
|
+
JobSubmission.Object_ = {
|
|
8
|
+
JobSubmission: "job_submission",
|
|
9
|
+
};
|
|
10
|
+
})(JobSubmission || (exports.JobSubmission = JobSubmission = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamCarrier from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseJob {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseJob.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamCarrier.Job[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseJob {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponseJob = void 0;
|
|
5
|
+
var ListResponseJob;
|
|
6
|
+
(function (ListResponseJob) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseJob.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseJob || (exports.ListResponseJob = ListResponseJob = {}));
|
|
@@ -4,6 +4,7 @@ export * from "./ApiFieldError.js";
|
|
|
4
4
|
export * from "./Asset.js";
|
|
5
5
|
export * from "./AssetListItem.js";
|
|
6
6
|
export * from "./Assignment.js";
|
|
7
|
+
export * from "./BulkJobSubmission.js";
|
|
7
8
|
export * from "./BusinessCategory.js";
|
|
8
9
|
export * from "./CloseAssignmentRequest.js";
|
|
9
10
|
export * from "./Country.js";
|
|
@@ -18,12 +19,15 @@ export * from "./Currency.js";
|
|
|
18
19
|
export * from "./InternalUserUpdateRequest.js";
|
|
19
20
|
export * from "./Invite.js";
|
|
20
21
|
export * from "./InviteUserRequest.js";
|
|
22
|
+
export * from "./Job.js";
|
|
23
|
+
export * from "./JobSubmission.js";
|
|
21
24
|
export * from "./Language.js";
|
|
22
25
|
export * from "./ListResponseActivityResource.js";
|
|
23
26
|
export * from "./ListResponseAssetListItem.js";
|
|
24
27
|
export * from "./ListResponseBusinessCategory.js";
|
|
25
28
|
export * from "./ListResponseCountry.js";
|
|
26
29
|
export * from "./ListResponseCurrency.js";
|
|
30
|
+
export * from "./ListResponseJob.js";
|
|
27
31
|
export * from "./ListResponseLanguage.js";
|
|
28
32
|
export * from "./ListResponseMembership.js";
|
|
29
33
|
export * from "./ListResponseOrganization.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./ApiFieldError.js"), exports);
|
|
|
20
20
|
__exportStar(require("./Asset.js"), exports);
|
|
21
21
|
__exportStar(require("./AssetListItem.js"), exports);
|
|
22
22
|
__exportStar(require("./Assignment.js"), exports);
|
|
23
|
+
__exportStar(require("./BulkJobSubmission.js"), exports);
|
|
23
24
|
__exportStar(require("./BusinessCategory.js"), exports);
|
|
24
25
|
__exportStar(require("./CloseAssignmentRequest.js"), exports);
|
|
25
26
|
__exportStar(require("./Country.js"), exports);
|
|
@@ -34,12 +35,15 @@ __exportStar(require("./Currency.js"), exports);
|
|
|
34
35
|
__exportStar(require("./InternalUserUpdateRequest.js"), exports);
|
|
35
36
|
__exportStar(require("./Invite.js"), exports);
|
|
36
37
|
__exportStar(require("./InviteUserRequest.js"), exports);
|
|
38
|
+
__exportStar(require("./Job.js"), exports);
|
|
39
|
+
__exportStar(require("./JobSubmission.js"), exports);
|
|
37
40
|
__exportStar(require("./Language.js"), exports);
|
|
38
41
|
__exportStar(require("./ListResponseActivityResource.js"), exports);
|
|
39
42
|
__exportStar(require("./ListResponseAssetListItem.js"), exports);
|
|
40
43
|
__exportStar(require("./ListResponseBusinessCategory.js"), exports);
|
|
41
44
|
__exportStar(require("./ListResponseCountry.js"), exports);
|
|
42
45
|
__exportStar(require("./ListResponseCurrency.js"), exports);
|
|
46
|
+
__exportStar(require("./ListResponseJob.js"), exports);
|
|
43
47
|
__exportStar(require("./ListResponseLanguage.js"), exports);
|
|
44
48
|
__exportStar(require("./ListResponseMembership.js"), exports);
|
|
45
49
|
__exportStar(require("./ListResponseOrganization.js"), exports);
|