@leaflow/sdk 0.26.0 → 0.28.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.
- package/dist/assistant/v1/schema.d.ts +3 -1
- package/dist/billing/v1/index.d.ts +38 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +1258 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +4 -0
- package/dist/iam/v1/schema.d.ts +76 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/iam/v1/index.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export type ListProjectInvitationsQuery = operations["list-project-invitations"]
|
|
|
20
20
|
export type IssueInvitationResult = operations["issue-invitation"]["responses"][201]["content"]["application/json"];
|
|
21
21
|
/** `POST /api/v1/invitations` 的请求体。 */
|
|
22
22
|
export type IssueInvitationBody = NonNullable<operations["issue-invitation"]["requestBody"]>["content"]["application/json"];
|
|
23
|
+
/** `POST /api/v1/members:batchGet` 成功时的响应体。 */
|
|
24
|
+
export type BatchGetMembersResult = operations["batch-get-members"]["responses"][200]["content"]["application/json"];
|
|
25
|
+
/** `POST /api/v1/members:batchGet` 的请求体。 */
|
|
26
|
+
export type BatchGetMembersBody = NonNullable<operations["batch-get-members"]["requestBody"]>["content"]["application/json"];
|
|
23
27
|
/** `GET /api/v1/members` 成功时的响应体。 */
|
|
24
28
|
export type ListMembersResult = operations["list-members"]["responses"][200]["content"]["application/json"];
|
|
25
29
|
/** `GET /api/v1/members` 的查询参数。 */
|
package/dist/iam/v1/schema.d.ts
CHANGED
|
@@ -109,6 +109,30 @@ export interface paths {
|
|
|
109
109
|
patch?: never;
|
|
110
110
|
trace?: never;
|
|
111
111
|
};
|
|
112
|
+
"/api/v1/members:batchGet": {
|
|
113
|
+
parameters: {
|
|
114
|
+
query?: never;
|
|
115
|
+
header?: never;
|
|
116
|
+
path?: never;
|
|
117
|
+
cookie?: never;
|
|
118
|
+
};
|
|
119
|
+
get?: never;
|
|
120
|
+
put?: never;
|
|
121
|
+
/**
|
|
122
|
+
* Resolve members by id, including those who have left
|
|
123
|
+
* @description Resolves a set of account ids to the people behind them, scoped to the current project and **including members who have since left it**.
|
|
124
|
+
*
|
|
125
|
+
* This is what turns the ids held elsewhere in the product — who created a machine, who performed a logged operation — into names. The current member list cannot answer for somebody who has left, and those rows are exactly the ones a reader most often needs explained.
|
|
126
|
+
*
|
|
127
|
+
* Only ids that have belonged to the current project resolve; anything else is omitted, as are ids that do not resolve at all. Match the response against the request by id; the order is not significant.
|
|
128
|
+
*/
|
|
129
|
+
post: operations["batch-get-members"];
|
|
130
|
+
delete?: never;
|
|
131
|
+
options?: never;
|
|
132
|
+
head?: never;
|
|
133
|
+
patch?: never;
|
|
134
|
+
trace?: never;
|
|
135
|
+
};
|
|
112
136
|
"/api/v1/members": {
|
|
113
137
|
parameters: {
|
|
114
138
|
query?: never;
|
|
@@ -392,6 +416,25 @@ export interface components {
|
|
|
392
416
|
/** @description 兑现用的明文,**只在这一次响应里出现**。库里只有它的哈希,丢了只能撤销重发 */
|
|
393
417
|
token: string;
|
|
394
418
|
};
|
|
419
|
+
BatchGetMembersRequestBody: {
|
|
420
|
+
/** @description The account ids to resolve. Blank entries are ignored. */
|
|
421
|
+
ids: string[];
|
|
422
|
+
};
|
|
423
|
+
BatchGetMembersResponseBody: {
|
|
424
|
+
/** @description The people that resolved. Ids that never belonged to this project are absent, as are ids that do not resolve at all. */
|
|
425
|
+
items: components["schemas"]["ResolvedMemberResource"][];
|
|
426
|
+
};
|
|
427
|
+
/** @description A person referred to by an id held elsewhere in the project. Carries who they are, not what they may do — a member who has left holds nothing, and this shape has no grant to say so. */
|
|
428
|
+
ResolvedMemberResource: {
|
|
429
|
+
/** @description MD5 hash of the lowercased, trimmed email address, for use with Gravatar-compatible avatar services. Empty if the account has no email address. */
|
|
430
|
+
avatar_hash: string;
|
|
431
|
+
email: string;
|
|
432
|
+
first_name: string;
|
|
433
|
+
last_name: string;
|
|
434
|
+
/** @description True when this person is no longer a member of the project. */
|
|
435
|
+
left: boolean;
|
|
436
|
+
user_id: string;
|
|
437
|
+
};
|
|
395
438
|
MemberResource: {
|
|
396
439
|
/** @description MD5 hash of the lowercased, trimmed email address, for use with Gravatar-compatible avatar services. Empty if the account has no email address. */
|
|
397
440
|
avatar_hash: string;
|
|
@@ -771,6 +814,39 @@ export interface operations {
|
|
|
771
814
|
};
|
|
772
815
|
};
|
|
773
816
|
};
|
|
817
|
+
"batch-get-members": {
|
|
818
|
+
parameters: {
|
|
819
|
+
query?: never;
|
|
820
|
+
header?: never;
|
|
821
|
+
path?: never;
|
|
822
|
+
cookie?: never;
|
|
823
|
+
};
|
|
824
|
+
requestBody: {
|
|
825
|
+
content: {
|
|
826
|
+
"application/json": components["schemas"]["BatchGetMembersRequestBody"];
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
responses: {
|
|
830
|
+
/** @description OK */
|
|
831
|
+
200: {
|
|
832
|
+
headers: {
|
|
833
|
+
[name: string]: unknown;
|
|
834
|
+
};
|
|
835
|
+
content: {
|
|
836
|
+
"application/json": components["schemas"]["BatchGetMembersResponseBody"];
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
/** @description Error */
|
|
840
|
+
default: {
|
|
841
|
+
headers: {
|
|
842
|
+
[name: string]: unknown;
|
|
843
|
+
};
|
|
844
|
+
content: {
|
|
845
|
+
"application/json": components["schemas"]["Error"];
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
};
|
|
774
850
|
"list-members": {
|
|
775
851
|
parameters: {
|
|
776
852
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type * as account from "./account/v1/index.js";
|
|
2
2
|
export type * as assistant from "./assistant/v1/index.js";
|
|
3
|
+
export type * as billing from "./billing/v1/index.js";
|
|
3
4
|
export type * as canopy from "./canopy/v1/index.js";
|
|
4
5
|
export type * as compute from "./compute/v1/index.js";
|
|
5
6
|
export type * as dns from "./dns/v1/index.js";
|