@aikirun/types 0.22.0 → 0.23.1
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/namespace-api.d.ts +48 -4
- package/dist/namespace.d.ts +3 -1
- package/dist/namespace.js +5 -0
- package/dist/workflow-run-api.d.ts +1 -0
- package/package.json +1 -1
package/dist/namespace-api.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
import { NamespaceRole } from './namespace.js';
|
|
2
|
+
|
|
3
|
+
interface NamespaceApi {
|
|
4
|
+
createV1: (_: NamespaceCreateRequestV1) => Promise<NamespaceCreateResponseV1>;
|
|
5
|
+
listV1: () => Promise<NamespaceListResponseV1>;
|
|
6
|
+
deleteV1: (_: NamespaceDeleteRequestV1) => Promise<void>;
|
|
7
|
+
listForUserV1: (_: NamespaceListForUserRequestV1) => Promise<NamespaceListForUserResponseV1>;
|
|
8
|
+
setMembershipV1: (_: NamespaceSetMembershipRequestV1) => Promise<void>;
|
|
9
|
+
removeMembershipV1: (_: NamespaceRemoveMembershipRequestV1) => Promise<void>;
|
|
10
|
+
listMembersV1: (_: NamespaceListMembersRequestV1) => Promise<NamespaceListMembersResponseV1>;
|
|
11
|
+
}
|
|
1
12
|
interface NamespaceInfo {
|
|
2
13
|
id: string;
|
|
3
14
|
name: string;
|
|
4
|
-
organizationId: string;
|
|
5
15
|
createdAt: number;
|
|
16
|
+
role: NamespaceRole;
|
|
6
17
|
}
|
|
7
18
|
interface NamespaceCreateRequestV1 {
|
|
8
19
|
name: string;
|
|
@@ -10,8 +21,41 @@ interface NamespaceCreateRequestV1 {
|
|
|
10
21
|
interface NamespaceCreateResponseV1 {
|
|
11
22
|
namespace: NamespaceInfo;
|
|
12
23
|
}
|
|
13
|
-
interface
|
|
14
|
-
|
|
24
|
+
interface NamespaceListResponseV1 {
|
|
25
|
+
namespaces: NamespaceInfo[];
|
|
26
|
+
}
|
|
27
|
+
interface NamespaceDeleteRequestV1 {
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
interface NamespaceListForUserRequestV1 {
|
|
31
|
+
userId: string;
|
|
32
|
+
}
|
|
33
|
+
interface NamespaceListForUserResponseV1 {
|
|
34
|
+
namespaces: NamespaceInfo[];
|
|
35
|
+
}
|
|
36
|
+
interface NamespaceMemberInput {
|
|
37
|
+
userId: string;
|
|
38
|
+
role: NamespaceRole;
|
|
39
|
+
}
|
|
40
|
+
interface NamespaceSetMembershipRequestV1 {
|
|
41
|
+
id: string;
|
|
42
|
+
members: NamespaceMemberInput[];
|
|
43
|
+
}
|
|
44
|
+
interface NamespaceRemoveMembershipRequestV1 {
|
|
45
|
+
id: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
}
|
|
48
|
+
interface NamespaceMemberInfo {
|
|
49
|
+
userId: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
email: string;
|
|
52
|
+
role: NamespaceRole;
|
|
53
|
+
}
|
|
54
|
+
interface NamespaceListMembersRequestV1 {
|
|
55
|
+
id: string;
|
|
56
|
+
}
|
|
57
|
+
interface NamespaceListMembersResponseV1 {
|
|
58
|
+
members: NamespaceMemberInfo[];
|
|
15
59
|
}
|
|
16
60
|
|
|
17
|
-
export type { NamespaceApi, NamespaceCreateRequestV1, NamespaceCreateResponseV1, NamespaceInfo };
|
|
61
|
+
export type { NamespaceApi, NamespaceCreateRequestV1, NamespaceCreateResponseV1, NamespaceDeleteRequestV1, NamespaceInfo, NamespaceListForUserRequestV1, NamespaceListForUserResponseV1, NamespaceListMembersRequestV1, NamespaceListMembersResponseV1, NamespaceListResponseV1, NamespaceMemberInfo, NamespaceMemberInput, NamespaceRemoveMembershipRequestV1, NamespaceSetMembershipRequestV1 };
|
package/dist/namespace.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type NamespaceId = string & {
|
|
2
2
|
_brand: "namespace_id";
|
|
3
3
|
};
|
|
4
|
+
declare const NAMESPACE_ROLES: readonly ["admin", "member", "viewer"];
|
|
5
|
+
type NamespaceRole = (typeof NAMESPACE_ROLES)[number];
|
|
4
6
|
|
|
5
|
-
export type
|
|
7
|
+
export { NAMESPACE_ROLES, type NamespaceId, type NamespaceRole };
|
package/dist/namespace.js
CHANGED
|
@@ -237,6 +237,7 @@ interface WorkflowRunHasTerminatedRequestV1 {
|
|
|
237
237
|
}
|
|
238
238
|
interface WorkflowRunHasTerminatedResponseV1 {
|
|
239
239
|
terminated: boolean;
|
|
240
|
+
latestStateTransitionId: string;
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
export type { TransitionTaskStateToRunning, WorkflowFilter, WorkflowRunApi, WorkflowRunCancelByIdsRequestV1, WorkflowRunCancelByIdsResponseV1, WorkflowRunClaimReadyRequestV1, WorkflowRunClaimReadyResponseV1, WorkflowRunCreateRequestV1, WorkflowRunCreateResponseV1, WorkflowRunGetByIdRequestV1, WorkflowRunGetByIdResponseV1, WorkflowRunGetByReferenceIdRequestV1, WorkflowRunGetByReferenceIdResponseV1, WorkflowRunGetStateRequestV1, WorkflowRunGetStateResponseV1, WorkflowRunHasTerminatedRequestV1, WorkflowRunHasTerminatedResponseV1, WorkflowRunHeartbeatRequestV1, WorkflowRunListChildRunsRequestV1, WorkflowRunListChildRunsResponseV1, WorkflowRunListItem, WorkflowRunListRequestV1, WorkflowRunListResponseV1, WorkflowRunListTransitionsRequestV1, WorkflowRunListTransitionsResponseV1, WorkflowRunMulticastEventByReferenceRequestV1, WorkflowRunMulticastEventRequestV1, WorkflowRunReference, WorkflowRunSendEventRequestV1, WorkflowRunSetTaskStateRequestExisting, WorkflowRunSetTaskStateRequestNew, WorkflowRunSetTaskStateRequestV1, WorkflowRunStateAwaitingChildWorkflowRequest, WorkflowRunStateAwaitingEventRequest, WorkflowRunStateAwaitingRetryRequest, WorkflowRunStateCompletedRequest, WorkflowRunStateRequest, WorkflowRunStateScheduledRequest, WorkflowRunStateScheduledRequestOptimistic, WorkflowRunStateScheduledRequestPessimistic, WorkflowRunStateSleepingRequest, WorkflowRunTransitionStateRequestOptimistic, WorkflowRunTransitionStateRequestPessimistic, WorkflowRunTransitionStateRequestV1, WorkflowRunTransitionStateResponseV1, WorkflowRunTransitionTaskStateRequestV1, WorkflowRunTransitionTaskStateResponseV1 };
|