@zephytiju/juntai-typescript-sdk 2.1.0 → 2.2.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/CHANGELOG.md +7 -0
- package/README.md +7 -1
- package/dist/clients/platform.account/index.d.ts +5 -0
- package/dist/clients/platform.account/index.js +4 -0
- package/dist/generated/platform.account/client/client.gen.d.ts +2 -0
- package/dist/generated/platform.account/client/client.gen.js +216 -0
- package/dist/generated/platform.account/client/index.d.ts +10 -0
- package/dist/generated/platform.account/client/index.js +6 -0
- package/dist/generated/platform.account/client/types.gen.d.ts +120 -0
- package/dist/generated/platform.account/client/types.gen.js +2 -0
- package/dist/generated/platform.account/client/utils.gen.d.ts +37 -0
- package/dist/generated/platform.account/client/utils.gen.js +228 -0
- package/dist/generated/platform.account/client.gen.d.ts +12 -0
- package/dist/generated/platform.account/client.gen.js +3 -0
- package/dist/generated/platform.account/core/auth.gen.d.ts +25 -0
- package/dist/generated/platform.account/core/auth.gen.js +14 -0
- package/dist/generated/platform.account/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/platform.account/core/bodySerializer.gen.js +57 -0
- package/dist/generated/platform.account/core/params.gen.d.ts +43 -0
- package/dist/generated/platform.account/core/params.gen.js +109 -0
- package/dist/generated/platform.account/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/platform.account/core/pathSerializer.gen.js +106 -0
- package/dist/generated/platform.account/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/platform.account/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/platform.account/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/platform.account/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/platform.account/core/types.gen.d.ts +83 -0
- package/dist/generated/platform.account/core/types.gen.js +2 -0
- package/dist/generated/platform.account/core/utils.gen.d.ts +19 -0
- package/dist/generated/platform.account/core/utils.gen.js +87 -0
- package/dist/generated/platform.account/index.d.ts +2 -0
- package/dist/generated/platform.account/index.js +2 -0
- package/dist/generated/platform.account/sdk.gen.d.ts +31 -0
- package/dist/generated/platform.account/sdk.gen.js +54 -0
- package/dist/generated/platform.account/types.gen.d.ts +274 -0
- package/dist/generated/platform.account/types.gen.js +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/release-manifest.json +16 -2
- package/package.json +5 -1
- package/sources/openapi.lock.json +19 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Account/v1
|
|
6
|
+
*/
|
|
7
|
+
export type Account = {
|
|
8
|
+
account_id: string;
|
|
9
|
+
display_name: string;
|
|
10
|
+
lifecycle_state: 'active' | 'restricted' | 'suspended' | 'closed';
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
version: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* AccountProfile/v1
|
|
17
|
+
*/
|
|
18
|
+
export type AccountProfile = {
|
|
19
|
+
display_name: string;
|
|
20
|
+
legal_name?: string;
|
|
21
|
+
contact_email?: string;
|
|
22
|
+
timezone?: string;
|
|
23
|
+
locale?: string;
|
|
24
|
+
version: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* AccountProfileUpdate/v1
|
|
28
|
+
*/
|
|
29
|
+
export type AccountProfileUpdate = {
|
|
30
|
+
display_name?: string;
|
|
31
|
+
legal_name?: string | null;
|
|
32
|
+
contact_email?: string | null;
|
|
33
|
+
timezone?: string | null;
|
|
34
|
+
locale?: string | null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* AccountIntegrationBinding/v1
|
|
38
|
+
*/
|
|
39
|
+
export type AccountIntegrationBinding = {
|
|
40
|
+
binding_type: 'iam' | 'billing';
|
|
41
|
+
state: 'configured' | 'not_configured' | 'restricted' | 'stale' | 'unavailable';
|
|
42
|
+
external_ref: string;
|
|
43
|
+
observed_at: string;
|
|
44
|
+
reason_code?: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* AccountIntegrationBindingList/v1
|
|
48
|
+
*/
|
|
49
|
+
export type AccountIntegrationBindingList = {
|
|
50
|
+
items: Array<AccountIntegrationBinding>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* AccountError/v1
|
|
54
|
+
*/
|
|
55
|
+
export type AccountError = {
|
|
56
|
+
code: 'UNAUTHENTICATED' | 'FORBIDDEN' | 'ACCOUNT_NOT_FOUND' | 'VALIDATION_FAILED' | 'VERSION_CONFLICT' | 'DEPENDENCY_UNAVAILABLE' | 'RATE_LIMITED' | 'INTERNAL';
|
|
57
|
+
message: string;
|
|
58
|
+
correlation_id: string;
|
|
59
|
+
retryable: boolean;
|
|
60
|
+
field_violations?: Array<{
|
|
61
|
+
field: string;
|
|
62
|
+
reason_code: string;
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* AccountAuthorizationAction/v1
|
|
67
|
+
*/
|
|
68
|
+
export type AccountAuthorizationAction = 'account.read' | 'account.profile.read' | 'account.profile.update';
|
|
69
|
+
/**
|
|
70
|
+
* Opaque Account Service identifier.
|
|
71
|
+
*/
|
|
72
|
+
export type AccountId = string;
|
|
73
|
+
export type GetAccountData = {
|
|
74
|
+
body?: never;
|
|
75
|
+
path: {
|
|
76
|
+
/**
|
|
77
|
+
* Opaque Account Service identifier.
|
|
78
|
+
*/
|
|
79
|
+
accountId: string;
|
|
80
|
+
};
|
|
81
|
+
query?: never;
|
|
82
|
+
url: '/api/platform.account/v1/accounts/{accountId}';
|
|
83
|
+
};
|
|
84
|
+
export type GetAccountErrors = {
|
|
85
|
+
/**
|
|
86
|
+
* No authenticated principal
|
|
87
|
+
*/
|
|
88
|
+
401: AccountError;
|
|
89
|
+
/**
|
|
90
|
+
* Principal is not authorized for the Account action
|
|
91
|
+
*/
|
|
92
|
+
403: AccountError;
|
|
93
|
+
/**
|
|
94
|
+
* Account is unavailable without disclosing protected existence
|
|
95
|
+
*/
|
|
96
|
+
404: AccountError;
|
|
97
|
+
/**
|
|
98
|
+
* Account request was rate limited
|
|
99
|
+
*/
|
|
100
|
+
429: AccountError;
|
|
101
|
+
/**
|
|
102
|
+
* Unexpected Account failure
|
|
103
|
+
*/
|
|
104
|
+
500: AccountError;
|
|
105
|
+
/**
|
|
106
|
+
* A required Account dependency is unavailable
|
|
107
|
+
*/
|
|
108
|
+
503: AccountError;
|
|
109
|
+
};
|
|
110
|
+
export type GetAccountError = GetAccountErrors[keyof GetAccountErrors];
|
|
111
|
+
export type GetAccountResponses = {
|
|
112
|
+
/**
|
|
113
|
+
* Account
|
|
114
|
+
*/
|
|
115
|
+
200: Account;
|
|
116
|
+
};
|
|
117
|
+
export type GetAccountResponse = GetAccountResponses[keyof GetAccountResponses];
|
|
118
|
+
export type GetAccountProfileData = {
|
|
119
|
+
body?: never;
|
|
120
|
+
path: {
|
|
121
|
+
/**
|
|
122
|
+
* Opaque Account Service identifier.
|
|
123
|
+
*/
|
|
124
|
+
accountId: string;
|
|
125
|
+
};
|
|
126
|
+
query?: never;
|
|
127
|
+
url: '/api/platform.account/v1/accounts/{accountId}/profile';
|
|
128
|
+
};
|
|
129
|
+
export type GetAccountProfileErrors = {
|
|
130
|
+
/**
|
|
131
|
+
* No authenticated principal
|
|
132
|
+
*/
|
|
133
|
+
401: AccountError;
|
|
134
|
+
/**
|
|
135
|
+
* Principal is not authorized for the Account action
|
|
136
|
+
*/
|
|
137
|
+
403: AccountError;
|
|
138
|
+
/**
|
|
139
|
+
* Account is unavailable without disclosing protected existence
|
|
140
|
+
*/
|
|
141
|
+
404: AccountError;
|
|
142
|
+
/**
|
|
143
|
+
* Account request was rate limited
|
|
144
|
+
*/
|
|
145
|
+
429: AccountError;
|
|
146
|
+
/**
|
|
147
|
+
* Unexpected Account failure
|
|
148
|
+
*/
|
|
149
|
+
500: AccountError;
|
|
150
|
+
/**
|
|
151
|
+
* A required Account dependency is unavailable
|
|
152
|
+
*/
|
|
153
|
+
503: AccountError;
|
|
154
|
+
};
|
|
155
|
+
export type GetAccountProfileError = GetAccountProfileErrors[keyof GetAccountProfileErrors];
|
|
156
|
+
export type GetAccountProfileResponses = {
|
|
157
|
+
/**
|
|
158
|
+
* Account profile
|
|
159
|
+
*/
|
|
160
|
+
200: AccountProfile;
|
|
161
|
+
};
|
|
162
|
+
export type GetAccountProfileResponse = GetAccountProfileResponses[keyof GetAccountProfileResponses];
|
|
163
|
+
export type UpdateAccountProfileData = {
|
|
164
|
+
body: AccountProfileUpdate;
|
|
165
|
+
headers: {
|
|
166
|
+
/**
|
|
167
|
+
* Opaque version tag returned by the latest profile read.
|
|
168
|
+
*/
|
|
169
|
+
'If-Match': string;
|
|
170
|
+
/**
|
|
171
|
+
* Stable identity for one logical profile mutation.
|
|
172
|
+
*/
|
|
173
|
+
'Idempotency-Key': string;
|
|
174
|
+
};
|
|
175
|
+
path: {
|
|
176
|
+
/**
|
|
177
|
+
* Opaque Account Service identifier.
|
|
178
|
+
*/
|
|
179
|
+
accountId: string;
|
|
180
|
+
};
|
|
181
|
+
query?: never;
|
|
182
|
+
url: '/api/platform.account/v1/accounts/{accountId}/profile';
|
|
183
|
+
};
|
|
184
|
+
export type UpdateAccountProfileErrors = {
|
|
185
|
+
/**
|
|
186
|
+
* Profile validation failed
|
|
187
|
+
*/
|
|
188
|
+
400: AccountError;
|
|
189
|
+
/**
|
|
190
|
+
* No authenticated principal
|
|
191
|
+
*/
|
|
192
|
+
401: AccountError;
|
|
193
|
+
/**
|
|
194
|
+
* Principal is not authorized for the Account action
|
|
195
|
+
*/
|
|
196
|
+
403: AccountError;
|
|
197
|
+
/**
|
|
198
|
+
* Account is unavailable without disclosing protected existence
|
|
199
|
+
*/
|
|
200
|
+
404: AccountError;
|
|
201
|
+
/**
|
|
202
|
+
* If-Match does not name the latest profile version
|
|
203
|
+
*/
|
|
204
|
+
409: AccountError;
|
|
205
|
+
/**
|
|
206
|
+
* Profile validation failed
|
|
207
|
+
*/
|
|
208
|
+
422: AccountError;
|
|
209
|
+
/**
|
|
210
|
+
* Account request was rate limited
|
|
211
|
+
*/
|
|
212
|
+
429: AccountError;
|
|
213
|
+
/**
|
|
214
|
+
* Unexpected Account failure
|
|
215
|
+
*/
|
|
216
|
+
500: AccountError;
|
|
217
|
+
/**
|
|
218
|
+
* A required Account dependency is unavailable
|
|
219
|
+
*/
|
|
220
|
+
503: AccountError;
|
|
221
|
+
};
|
|
222
|
+
export type UpdateAccountProfileError = UpdateAccountProfileErrors[keyof UpdateAccountProfileErrors];
|
|
223
|
+
export type UpdateAccountProfileResponses = {
|
|
224
|
+
/**
|
|
225
|
+
* Updated account profile
|
|
226
|
+
*/
|
|
227
|
+
200: AccountProfile;
|
|
228
|
+
};
|
|
229
|
+
export type UpdateAccountProfileResponse = UpdateAccountProfileResponses[keyof UpdateAccountProfileResponses];
|
|
230
|
+
export type ListAccountIntegrationBindingsData = {
|
|
231
|
+
body?: never;
|
|
232
|
+
path: {
|
|
233
|
+
/**
|
|
234
|
+
* Opaque Account Service identifier.
|
|
235
|
+
*/
|
|
236
|
+
accountId: string;
|
|
237
|
+
};
|
|
238
|
+
query?: never;
|
|
239
|
+
url: '/api/platform.account/v1/accounts/{accountId}/integration-bindings';
|
|
240
|
+
};
|
|
241
|
+
export type ListAccountIntegrationBindingsErrors = {
|
|
242
|
+
/**
|
|
243
|
+
* No authenticated principal
|
|
244
|
+
*/
|
|
245
|
+
401: AccountError;
|
|
246
|
+
/**
|
|
247
|
+
* Principal is not authorized for the Account action
|
|
248
|
+
*/
|
|
249
|
+
403: AccountError;
|
|
250
|
+
/**
|
|
251
|
+
* Account is unavailable without disclosing protected existence
|
|
252
|
+
*/
|
|
253
|
+
404: AccountError;
|
|
254
|
+
/**
|
|
255
|
+
* Account request was rate limited
|
|
256
|
+
*/
|
|
257
|
+
429: AccountError;
|
|
258
|
+
/**
|
|
259
|
+
* Unexpected Account failure
|
|
260
|
+
*/
|
|
261
|
+
500: AccountError;
|
|
262
|
+
/**
|
|
263
|
+
* A required Account dependency is unavailable
|
|
264
|
+
*/
|
|
265
|
+
503: AccountError;
|
|
266
|
+
};
|
|
267
|
+
export type ListAccountIntegrationBindingsError = ListAccountIntegrationBindingsErrors[keyof ListAccountIntegrationBindingsErrors];
|
|
268
|
+
export type ListAccountIntegrationBindingsResponses = {
|
|
269
|
+
/**
|
|
270
|
+
* Integration-binding summaries
|
|
271
|
+
*/
|
|
272
|
+
200: AccountIntegrationBindingList;
|
|
273
|
+
};
|
|
274
|
+
export type ListAccountIntegrationBindingsResponse = ListAccountIntegrationBindingsResponses[keyof ListAccountIntegrationBindingsResponses];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/** Generated aggregate client namespace. Do not edit by hand. */
|
|
2
2
|
import * as juntaiUsageCost from "./clients/juntai.usage-cost/index.js";
|
|
3
|
+
import * as platformAccount from "./clients/platform.account/index.js";
|
|
3
4
|
import * as platformApplicationMetadata from "./clients/platform.application-metadata/index.js";
|
|
4
5
|
import * as platformBlueprint from "./clients/platform.blueprint/index.js";
|
|
5
6
|
import * as platformIam from "./clients/platform.iam/index.js";
|
|
6
|
-
export { juntaiUsageCost, platformApplicationMetadata, platformBlueprint, platformIam };
|
|
7
|
+
export { juntaiUsageCost, platformAccount, platformApplicationMetadata, platformBlueprint, platformIam };
|
|
7
8
|
export declare const clients: {
|
|
8
9
|
readonly "juntai.usage-cost": typeof juntaiUsageCost;
|
|
10
|
+
readonly "platform.account": typeof platformAccount;
|
|
9
11
|
readonly "platform.application-metadata": typeof platformApplicationMetadata;
|
|
10
12
|
readonly "platform.blueprint": typeof platformBlueprint;
|
|
11
13
|
readonly "platform.iam": typeof platformIam;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/** Generated aggregate client namespace. Do not edit by hand. */
|
|
2
2
|
import * as juntaiUsageCost from "./clients/juntai.usage-cost/index.js";
|
|
3
|
+
import * as platformAccount from "./clients/platform.account/index.js";
|
|
3
4
|
import * as platformApplicationMetadata from "./clients/platform.application-metadata/index.js";
|
|
4
5
|
import * as platformBlueprint from "./clients/platform.blueprint/index.js";
|
|
5
6
|
import * as platformIam from "./clients/platform.iam/index.js";
|
|
6
|
-
export { juntaiUsageCost, platformApplicationMetadata, platformBlueprint, platformIam };
|
|
7
|
+
export { juntaiUsageCost, platformAccount, platformApplicationMetadata, platformBlueprint, platformIam };
|
|
7
8
|
export const clients = {
|
|
8
9
|
"juntai.usage-cost": juntaiUsageCost,
|
|
10
|
+
"platform.account": platformAccount,
|
|
9
11
|
"platform.application-metadata": platformApplicationMetadata,
|
|
10
12
|
"platform.blueprint": platformBlueprint,
|
|
11
13
|
"platform.iam": platformIam,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schemaVersion": "juntai.typescript-sdk/release-manifest/v1",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@zephytiju/juntai-typescript-sdk",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.2.0"
|
|
6
6
|
},
|
|
7
7
|
"openapiLock": {
|
|
8
8
|
"path": "sources/openapi.lock.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "55622913a283ff24359e9f3d2c47fc5e7a3ac84ede14b64e7701bd692ce39559"
|
|
10
10
|
},
|
|
11
11
|
"generator": {
|
|
12
12
|
"name": "@hey-api/openapi-ts",
|
|
@@ -28,6 +28,20 @@
|
|
|
28
28
|
"outputPath": "src/generated/juntai.usage-cost",
|
|
29
29
|
"outputSha256": "1470328f818de67c77dab9c58f1054b5789c0c9c81160b8b7b344eb379f8d0af"
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
"serviceId": "platform.account",
|
|
33
|
+
"serviceVersion": "1.0.0",
|
|
34
|
+
"ownerRepository": "https://github.com/zephytiju/JuntaiAccountService",
|
|
35
|
+
"sourceCommit": "e0e18168b150d8f06da3d93d9d8166e2cbbe0c32",
|
|
36
|
+
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/JuntaiAccountService/e0e18168b150d8f06da3d93d9d8166e2cbbe0c32/contracts/openapi/account-service.v1.json",
|
|
37
|
+
"artifactManifestDigest": "sha256:56910abbac64d3c8a7065c001d7c69b291c59f0904355c2cc7dacb0f9ad58695",
|
|
38
|
+
"openapiPath": "contracts/openapi/account-service.v1.json",
|
|
39
|
+
"openapiSha256": "56910abbac64d3c8a7065c001d7c69b291c59f0904355c2cc7dacb0f9ad58695",
|
|
40
|
+
"generatorProfile": "juntai.console.same-origin-openapi/v1",
|
|
41
|
+
"namespace": "platformAccount",
|
|
42
|
+
"outputPath": "src/generated/platform.account",
|
|
43
|
+
"outputSha256": "45e7497b71cf3cf99e58e2d4e154279986b24b28efe06339c88e3452f889e9a6"
|
|
44
|
+
},
|
|
31
45
|
{
|
|
32
46
|
"serviceId": "platform.application-metadata",
|
|
33
47
|
"serviceVersion": "2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zephytiju/juntai-typescript-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Aggregate generated TypeScript clients for Console-facing Juntai services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"types": "./dist/clients/juntai.usage-cost/index.d.ts",
|
|
28
28
|
"import": "./dist/clients/juntai.usage-cost/index.js"
|
|
29
29
|
},
|
|
30
|
+
"./services/platform.account": {
|
|
31
|
+
"types": "./dist/clients/platform.account/index.d.ts",
|
|
32
|
+
"import": "./dist/clients/platform.account/index.js"
|
|
33
|
+
},
|
|
30
34
|
"./services/platform.application-metadata": {
|
|
31
35
|
"types": "./dist/clients/platform.application-metadata/index.d.ts",
|
|
32
36
|
"import": "./dist/clients/platform.application-metadata/index.js"
|
|
@@ -25,6 +25,25 @@
|
|
|
25
25
|
"outputPath": "src/generated/juntai.usage-cost",
|
|
26
26
|
"outputSha256": "1470328f818de67c77dab9c58f1054b5789c0c9c81160b8b7b344eb379f8d0af"
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"serviceId": "platform.account",
|
|
30
|
+
"ownerTeam": "Juntai Platform Team",
|
|
31
|
+
"ownerRepository": "https://github.com/zephytiju/JuntaiAccountService",
|
|
32
|
+
"sourceCommit": "e0e18168b150d8f06da3d93d9d8166e2cbbe0c32",
|
|
33
|
+
"serviceVersion": "1.0.0",
|
|
34
|
+
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/JuntaiAccountService/e0e18168b150d8f06da3d93d9d8166e2cbbe0c32/contracts/openapi/account-service.v1.json",
|
|
35
|
+
"artifactManifestDigest": "sha256:56910abbac64d3c8a7065c001d7c69b291c59f0904355c2cc7dacb0f9ad58695",
|
|
36
|
+
"openapiPath": "contracts/openapi/account-service.v1.json",
|
|
37
|
+
"openapiSha256": "56910abbac64d3c8a7065c001d7c69b291c59f0904355c2cc7dacb0f9ad58695",
|
|
38
|
+
"snapshotPath": "sources/artifacts/platform.account/56910abbac64d3c8a7065c001d7c69b291c59f0904355c2cc7dacb0f9ad58695.json",
|
|
39
|
+
"generatorName": "@hey-api/openapi-ts",
|
|
40
|
+
"generatorVersion": "0.99.0",
|
|
41
|
+
"generatorProfile": "juntai.console.same-origin-openapi/v1",
|
|
42
|
+
"namespace": "platformAccount",
|
|
43
|
+
"compatibility": "initial",
|
|
44
|
+
"outputPath": "src/generated/platform.account",
|
|
45
|
+
"outputSha256": "45e7497b71cf3cf99e58e2d4e154279986b24b28efe06339c88e3452f889e9a6"
|
|
46
|
+
},
|
|
28
47
|
{
|
|
29
48
|
"serviceId": "platform.application-metadata",
|
|
30
49
|
"ownerTeam": "Juntai Platform Team",
|