@viceme-ai/sdk 0.3.0 → 0.4.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/README.md +70 -45
- package/dist/browser-events.d.ts +49 -0
- package/dist/browser-events.d.ts.map +1 -0
- package/dist/capability-mount.d.ts +15 -0
- package/dist/capability-mount.d.ts.map +1 -0
- package/dist/chunks/{client-DKsaEtwq.js → client-Cbldd7F2.js} +321 -313
- package/dist/chunks/client-Cbldd7F2.js.map +1 -0
- package/dist/chunks/{version-C3KVoLNb.js → errors-B-Qv_azy.js} +4 -7
- package/dist/chunks/errors-B-Qv_azy.js.map +1 -0
- package/dist/chunks/version-C8DeBm39.js +6 -0
- package/dist/chunks/version-C8DeBm39.js.map +1 -0
- package/dist/core/build-endpoints.d.ts +2 -0
- package/dist/core/build-endpoints.d.ts.map +1 -1
- package/dist/core/capabilities.d.ts +2 -2
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/client.d.ts +4 -2
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/lifecycle.d.ts +2 -4
- package/dist/core/lifecycle.d.ts.map +1 -1
- package/dist/core/presentation.d.ts +7 -2
- package/dist/core/presentation.d.ts.map +1 -1
- package/dist/danmaku/index.d.ts +1 -0
- package/dist/danmaku/index.d.ts.map +1 -1
- package/dist/danmaku/mount.d.ts +1 -1
- package/dist/danmaku/mount.d.ts.map +1 -1
- package/dist/danmaku.js +127 -121
- package/dist/danmaku.js.map +1 -1
- package/dist/generated/public-contract.d.ts +54 -410
- package/dist/generated/public-contract.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/loader/attributes.d.ts +3 -2
- package/dist/loader/attributes.d.ts.map +1 -1
- package/dist/loader/auto-loader.d.ts +1 -1
- package/dist/loader/auto-loader.d.ts.map +1 -1
- package/dist/loader/events.d.ts +1 -44
- package/dist/loader/events.d.ts.map +1 -1
- package/dist/loader/registry.d.ts +2 -1
- package/dist/loader/registry.d.ts.map +1 -1
- package/dist/manifest.json +41 -28
- package/dist/session/session.d.ts +7 -6
- package/dist/session/session.d.ts.map +1 -1
- package/dist/testing/test-adapter.d.ts +1 -1
- package/dist/testing/test-adapter.d.ts.map +1 -1
- package/dist/testing.js +7 -6
- package/dist/testing.js.map +1 -1
- package/dist/tip/index.d.ts +22 -0
- package/dist/tip/index.d.ts.map +1 -0
- package/dist/tip/mount.d.ts +5 -0
- package/dist/tip/mount.d.ts.map +1 -0
- package/dist/tip.js +137 -0
- package/dist/tip.js.map +1 -0
- package/dist/transport/transport.d.ts +3 -1
- package/dist/transport/transport.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/viceme.min.js +2 -22
- package/dist/viceme.min.js.map +1 -1
- package/package.json +6 -2
- package/dist/chunks/client-DKsaEtwq.js.map +0 -1
- package/dist/chunks/version-C3KVoLNb.js.map +0 -1
- package/dist/loader/mount-handle.d.ts +0 -25
- package/dist/loader/mount-handle.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GENERATED FILE — DO NOT EDIT.
|
|
3
3
|
*
|
|
4
4
|
* Generated from contracts/public-capabilities.openapi.json
|
|
5
|
-
* (contractVersion 0.
|
|
5
|
+
* (contractVersion 0.5.0, sha256 c1a40e817924cc77…)
|
|
6
6
|
* by scripts/generate-contracts.mjs. Regenerate with `pnpm contracts:generate`.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not make direct changes to the file.
|
|
11
11
|
*/
|
|
12
12
|
export interface paths {
|
|
13
|
-
"/v1/public/
|
|
13
|
+
"/v1/public/work-sdk/sessions": {
|
|
14
14
|
parameters: {
|
|
15
15
|
query?: never;
|
|
16
16
|
header?: never;
|
|
@@ -19,98 +19,30 @@ export interface paths {
|
|
|
19
19
|
};
|
|
20
20
|
get?: never;
|
|
21
21
|
put?: never;
|
|
22
|
-
|
|
23
|
-
* Establish a public visitor session for a Work
|
|
24
|
-
* @description Binds a short-lived capability token to the Work, the caller Origin, the enabled capability set, and an expiry. The workKey locates the Work; it is never an authorization credential. CORS accepts any browser Origin with credentials disabled; no creator-managed Origin allowlist is required.
|
|
25
|
-
*/
|
|
26
|
-
post: operations["createWorkSession"];
|
|
22
|
+
post: operations["createWebsiteAccessSession"];
|
|
27
23
|
delete?: never;
|
|
28
24
|
options?: never;
|
|
29
25
|
head?: never;
|
|
30
26
|
patch?: never;
|
|
31
27
|
trace?: never;
|
|
32
28
|
};
|
|
33
|
-
"/v1/public/
|
|
29
|
+
"/v1/public/work-sdk/follow": {
|
|
34
30
|
parameters: {
|
|
35
31
|
query?: never;
|
|
36
32
|
header?: never;
|
|
37
33
|
path?: never;
|
|
38
34
|
cookie?: never;
|
|
39
35
|
};
|
|
40
|
-
get
|
|
41
|
-
put
|
|
42
|
-
post: operations["authorizeWechat"];
|
|
43
|
-
delete?: never;
|
|
44
|
-
options?: never;
|
|
45
|
-
head?: never;
|
|
46
|
-
patch?: never;
|
|
47
|
-
trace?: never;
|
|
48
|
-
};
|
|
49
|
-
"/v1/public/v1/auth/exchange": {
|
|
50
|
-
parameters: {
|
|
51
|
-
query?: never;
|
|
52
|
-
header?: never;
|
|
53
|
-
path?: never;
|
|
54
|
-
cookie?: never;
|
|
55
|
-
};
|
|
56
|
-
get?: never;
|
|
57
|
-
put?: never;
|
|
58
|
-
post: operations["exchangeWechatCode"];
|
|
59
|
-
delete?: never;
|
|
60
|
-
options?: never;
|
|
61
|
-
head?: never;
|
|
62
|
-
patch?: never;
|
|
63
|
-
trace?: never;
|
|
64
|
-
};
|
|
65
|
-
"/v1/public/v1/auth/resume-codes": {
|
|
66
|
-
parameters: {
|
|
67
|
-
query?: never;
|
|
68
|
-
header?: never;
|
|
69
|
-
path?: never;
|
|
70
|
-
cookie?: never;
|
|
71
|
-
};
|
|
72
|
-
get?: never;
|
|
73
|
-
put?: never;
|
|
74
|
-
post: operations["createAuthResumeCode"];
|
|
75
|
-
delete?: never;
|
|
76
|
-
options?: never;
|
|
77
|
-
head?: never;
|
|
78
|
-
patch?: never;
|
|
79
|
-
trace?: never;
|
|
80
|
-
};
|
|
81
|
-
"/v1/public/v1/auth/resume": {
|
|
82
|
-
parameters: {
|
|
83
|
-
query?: never;
|
|
84
|
-
header?: never;
|
|
85
|
-
path?: never;
|
|
86
|
-
cookie?: never;
|
|
87
|
-
};
|
|
88
|
-
get?: never;
|
|
89
|
-
put?: never;
|
|
90
|
-
post: operations["resumeAuthenticatedSession"];
|
|
91
|
-
delete?: never;
|
|
92
|
-
options?: never;
|
|
93
|
-
head?: never;
|
|
94
|
-
patch?: never;
|
|
95
|
-
trace?: never;
|
|
96
|
-
};
|
|
97
|
-
"/v1/public/v1/follow": {
|
|
98
|
-
parameters: {
|
|
99
|
-
query?: never;
|
|
100
|
-
header?: never;
|
|
101
|
-
path?: never;
|
|
102
|
-
cookie?: never;
|
|
103
|
-
};
|
|
104
|
-
get: operations["getFollowState"];
|
|
105
|
-
put: operations["followWorkOwner"];
|
|
36
|
+
get: operations["getWebsiteFollowState"];
|
|
37
|
+
put: operations["followWebsiteCreator"];
|
|
106
38
|
post?: never;
|
|
107
|
-
delete
|
|
39
|
+
delete?: never;
|
|
108
40
|
options?: never;
|
|
109
41
|
head?: never;
|
|
110
42
|
patch?: never;
|
|
111
43
|
trace?: never;
|
|
112
44
|
};
|
|
113
|
-
"/v1/public/
|
|
45
|
+
"/v1/public/work-sdk/access/check": {
|
|
114
46
|
parameters: {
|
|
115
47
|
query?: never;
|
|
116
48
|
header?: never;
|
|
@@ -119,25 +51,21 @@ export interface paths {
|
|
|
119
51
|
};
|
|
120
52
|
get?: never;
|
|
121
53
|
put?: never;
|
|
122
|
-
post: operations["
|
|
54
|
+
post: operations["checkWebsiteAccess"];
|
|
123
55
|
delete?: never;
|
|
124
56
|
options?: never;
|
|
125
57
|
head?: never;
|
|
126
58
|
patch?: never;
|
|
127
59
|
trace?: never;
|
|
128
60
|
};
|
|
129
|
-
"/v1/public/
|
|
61
|
+
"/v1/public/work-sdk/access/features": {
|
|
130
62
|
parameters: {
|
|
131
63
|
query?: never;
|
|
132
64
|
header?: never;
|
|
133
65
|
path?: never;
|
|
134
66
|
cookie?: never;
|
|
135
67
|
};
|
|
136
|
-
|
|
137
|
-
* List active feature presentation
|
|
138
|
-
* @description Returns server-authoritative titles and current prices for host-native access entry points. It does not alter access, checkout, or payment state.
|
|
139
|
-
*/
|
|
140
|
-
get: operations["listAccessFeatures"];
|
|
68
|
+
get: operations["getWebsiteAccessFeatures"];
|
|
141
69
|
put?: never;
|
|
142
70
|
post?: never;
|
|
143
71
|
delete?: never;
|
|
@@ -146,23 +74,7 @@ export interface paths {
|
|
|
146
74
|
patch?: never;
|
|
147
75
|
trace?: never;
|
|
148
76
|
};
|
|
149
|
-
"/v1/public/
|
|
150
|
-
parameters: {
|
|
151
|
-
query?: never;
|
|
152
|
-
header?: never;
|
|
153
|
-
path?: never;
|
|
154
|
-
cookie?: never;
|
|
155
|
-
};
|
|
156
|
-
get?: never;
|
|
157
|
-
put?: never;
|
|
158
|
-
post: operations["createCheckoutSession"];
|
|
159
|
-
delete?: never;
|
|
160
|
-
options?: never;
|
|
161
|
-
head?: never;
|
|
162
|
-
patch?: never;
|
|
163
|
-
trace?: never;
|
|
164
|
-
};
|
|
165
|
-
"/v1/public/v1/checkout/bootstrap": {
|
|
77
|
+
"/v1/public/work-sdk/checkout": {
|
|
166
78
|
parameters: {
|
|
167
79
|
query?: never;
|
|
168
80
|
header?: never;
|
|
@@ -171,7 +83,7 @@ export interface paths {
|
|
|
171
83
|
};
|
|
172
84
|
get?: never;
|
|
173
85
|
put?: never;
|
|
174
|
-
post: operations["
|
|
86
|
+
post: operations["createWebsiteAccessCheckout"];
|
|
175
87
|
delete?: never;
|
|
176
88
|
options?: never;
|
|
177
89
|
head?: never;
|
|
@@ -185,10 +97,8 @@ export interface paths {
|
|
|
185
97
|
path?: never;
|
|
186
98
|
cookie?: never;
|
|
187
99
|
};
|
|
188
|
-
/** List public danmaku messages for one page-position anchor */
|
|
189
100
|
get: operations["listDanmakuMessages"];
|
|
190
101
|
put?: never;
|
|
191
|
-
/** Create a public danmaku message */
|
|
192
102
|
post: operations["createDanmakuMessage"];
|
|
193
103
|
delete?: never;
|
|
194
104
|
options?: never;
|
|
@@ -200,79 +110,31 @@ export interface paths {
|
|
|
200
110
|
export type webhooks = Record<string, never>;
|
|
201
111
|
export interface components {
|
|
202
112
|
schemas: {
|
|
203
|
-
/** @description Public opaque work key. */
|
|
204
113
|
WorkKey: string;
|
|
205
|
-
/** @description Enabled capability name for the work. */
|
|
206
|
-
CapabilityName: string;
|
|
207
114
|
CreateWorkSessionRequest: {
|
|
208
115
|
workKey: components["schemas"]["WorkKey"];
|
|
209
116
|
};
|
|
210
|
-
WorkDescriptor: {
|
|
211
|
-
key: components["schemas"]["WorkKey"];
|
|
212
|
-
capabilities: components["schemas"]["CapabilityName"][];
|
|
213
|
-
} & {
|
|
214
|
-
[key: string]: unknown;
|
|
215
|
-
};
|
|
216
|
-
/** @description Unknown additional fields are allowed and ignored by the SDK (forward compatibility). */
|
|
217
117
|
WorkSession: {
|
|
218
|
-
|
|
219
|
-
/** @description Short-lived capability token; memory-only in the SDK. */
|
|
220
|
-
token?: string;
|
|
221
|
-
/** @description Epoch milliseconds when the token expires. */
|
|
222
|
-
expiresAt?: number;
|
|
223
|
-
} & {
|
|
224
|
-
[key: string]: unknown;
|
|
225
|
-
};
|
|
226
|
-
WorkUser: {
|
|
227
|
-
subject: string;
|
|
228
|
-
nickname: string | null;
|
|
229
|
-
/** Format: uri */
|
|
230
|
-
avatarUrl: string | null;
|
|
231
|
-
};
|
|
232
|
-
AuthAuthorizeRequest: {
|
|
233
|
-
channel: string;
|
|
234
|
-
/** @enum {string} */
|
|
235
|
-
clientType?: "h5" | "pc";
|
|
236
|
-
/** @enum {string} */
|
|
237
|
-
locale: "zh-CN" | "en-US";
|
|
238
|
-
};
|
|
239
|
-
AuthAuthorizeResponse: {
|
|
240
|
-
/** Format: uri */
|
|
241
|
-
authorizationUrl: string;
|
|
242
|
-
/** Format: uri */
|
|
243
|
-
completionOrigin: string;
|
|
244
|
-
};
|
|
245
|
-
AuthExchangeRequest: {
|
|
246
|
-
code: string;
|
|
247
|
-
codeVerifier: string;
|
|
248
|
-
};
|
|
249
|
-
AuthExchangeResponse: {
|
|
118
|
+
workKey: components["schemas"]["WorkKey"];
|
|
250
119
|
token: string;
|
|
251
|
-
expiresAt: number;
|
|
252
|
-
user: components["schemas"]["WorkUser"];
|
|
253
|
-
};
|
|
254
|
-
AuthResumeCodeResponse: {
|
|
255
|
-
code: string;
|
|
256
|
-
expiresAt: number;
|
|
257
|
-
};
|
|
258
|
-
AuthResumeRequest: {
|
|
259
|
-
code: string;
|
|
260
|
-
};
|
|
261
|
-
FollowState: {
|
|
262
|
-
following: boolean;
|
|
263
120
|
/** Format: date-time */
|
|
264
|
-
|
|
265
|
-
|
|
121
|
+
expiresAt: string;
|
|
122
|
+
capabilities: ("danmaku" | "tip" | "access" | "follow" | "checkout")[];
|
|
266
123
|
};
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
|
|
124
|
+
Creator: {
|
|
125
|
+
/** Format: uuid */
|
|
126
|
+
id: string;
|
|
270
127
|
displayName: string;
|
|
271
128
|
/** Format: uri */
|
|
272
129
|
avatarUrl: string | null;
|
|
273
130
|
description: string | null;
|
|
274
|
-
|
|
275
|
-
|
|
131
|
+
publishedWorkCount: number;
|
|
132
|
+
};
|
|
133
|
+
FollowState: {
|
|
134
|
+
following: boolean;
|
|
135
|
+
/** Format: date-time */
|
|
136
|
+
followedAt: string | null;
|
|
137
|
+
creator: components["schemas"]["Creator"];
|
|
276
138
|
};
|
|
277
139
|
AccessCheckRequest: {
|
|
278
140
|
featureKeys: string[];
|
|
@@ -280,7 +142,7 @@ export interface components {
|
|
|
280
142
|
AccessDecision: {
|
|
281
143
|
allowed: boolean;
|
|
282
144
|
/** @enum {string} */
|
|
283
|
-
reason: "
|
|
145
|
+
reason: "PUBLIC" | "OWNER" | "FOLLOWING" | "ENTITLED" | "AUTH_REQUIRED" | "FOLLOW_REQUIRED" | "PURCHASE_REQUIRED" | "FEATURE_NOT_FOUND" | "FEATURE_DISABLED";
|
|
284
146
|
/** @enum {string|null} */
|
|
285
147
|
nextAction: "SIGN_IN" | "FOLLOW" | "CHECKOUT" | null;
|
|
286
148
|
};
|
|
@@ -291,16 +153,14 @@ export interface components {
|
|
|
291
153
|
};
|
|
292
154
|
AccessFeaturePrice: {
|
|
293
155
|
amountCents: number;
|
|
294
|
-
/** @
|
|
156
|
+
/** @constant */
|
|
295
157
|
currency: "CNY";
|
|
296
158
|
};
|
|
297
159
|
AccessFeaturePresentation: {
|
|
298
160
|
featureKey: string;
|
|
299
161
|
title: string;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
type: "PUBLIC" | "FOLLOW_OWNER" | "WORK_ENTITLEMENT";
|
|
303
|
-
};
|
|
162
|
+
/** @enum {string} */
|
|
163
|
+
policyType: "PUBLIC" | "FOLLOW_OWNER" | "WORK_ENTITLEMENT";
|
|
304
164
|
price: components["schemas"]["AccessFeaturePrice"] | null;
|
|
305
165
|
};
|
|
306
166
|
AccessFeaturesResponse: {
|
|
@@ -313,32 +173,12 @@ export interface components {
|
|
|
313
173
|
* @enum {string}
|
|
314
174
|
*/
|
|
315
175
|
locale: "zh-CN" | "en-US";
|
|
316
|
-
channel: string;
|
|
317
176
|
};
|
|
318
177
|
CheckoutResponse: {
|
|
319
178
|
/** Format: uri */
|
|
320
179
|
checkoutUrl: string;
|
|
321
180
|
alreadyOwned: boolean;
|
|
322
|
-
/** Format: uri */
|
|
323
|
-
completionOrigin: string;
|
|
324
181
|
};
|
|
325
|
-
CheckoutBootstrapRequest: {
|
|
326
|
-
code: string;
|
|
327
|
-
};
|
|
328
|
-
CheckoutBootstrapResponse: {
|
|
329
|
-
token: string;
|
|
330
|
-
/** Format: date-time */
|
|
331
|
-
expiresAt: string;
|
|
332
|
-
resumeCode: string;
|
|
333
|
-
};
|
|
334
|
-
ErrorBody: {
|
|
335
|
-
statusCode: number;
|
|
336
|
-
/** @enum {string} */
|
|
337
|
-
code: "CONFIG_INVALID" | "WORK_NOT_FOUND" | "CAPABILITY_DISABLED" | "SESSION_EXPIRED" | "AUTH_REQUIRED" | "SDK_AUTH_CODE_INVALID" | "RETURN_URL_NOT_ALLOWED" | "RATE_LIMITED" | "NETWORK_TIMEOUT" | "CHECKOUT_UNAVAILABLE" | "INTERNAL_ERROR";
|
|
338
|
-
message: string;
|
|
339
|
-
requestId: string;
|
|
340
|
-
};
|
|
341
|
-
/** @description Opaque page-position anchor derived by the external SDK. */
|
|
342
182
|
DanmakuAnchorKey: string;
|
|
343
183
|
DanmakuCursor: string;
|
|
344
184
|
DanmakuMessage: {
|
|
@@ -351,18 +191,23 @@ export interface components {
|
|
|
351
191
|
createdAt: string;
|
|
352
192
|
};
|
|
353
193
|
DanmakuMessagesResponse: {
|
|
354
|
-
|
|
194
|
+
messages: components["schemas"]["DanmakuMessage"][];
|
|
355
195
|
nextCursor: components["schemas"]["DanmakuCursor"] | null;
|
|
356
|
-
total: number;
|
|
357
196
|
};
|
|
358
197
|
CreateDanmakuMessageRequest: {
|
|
359
198
|
workKey: components["schemas"]["WorkKey"];
|
|
360
199
|
content: string;
|
|
361
200
|
anchorKey?: components["schemas"]["DanmakuAnchorKey"];
|
|
362
201
|
};
|
|
202
|
+
ErrorBody: {
|
|
203
|
+
statusCode: number;
|
|
204
|
+
code: string;
|
|
205
|
+
message: string;
|
|
206
|
+
requestId: string;
|
|
207
|
+
};
|
|
363
208
|
};
|
|
364
209
|
responses: {
|
|
365
|
-
/** @description Public
|
|
210
|
+
/** @description Public API error */
|
|
366
211
|
PublicError: {
|
|
367
212
|
headers: {
|
|
368
213
|
[name: string]: unknown;
|
|
@@ -371,51 +216,6 @@ export interface components {
|
|
|
371
216
|
"application/json": components["schemas"]["ErrorBody"];
|
|
372
217
|
};
|
|
373
218
|
};
|
|
374
|
-
/** @description Invalid configuration. */
|
|
375
|
-
ValidationError: {
|
|
376
|
-
headers: {
|
|
377
|
-
[name: string]: unknown;
|
|
378
|
-
};
|
|
379
|
-
content: {
|
|
380
|
-
"application/json": components["schemas"]["ErrorBody"];
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
/** @description Unknown, private, or disabled work. */
|
|
384
|
-
WorkNotFound: {
|
|
385
|
-
headers: {
|
|
386
|
-
[name: string]: unknown;
|
|
387
|
-
};
|
|
388
|
-
content: {
|
|
389
|
-
"application/json": components["schemas"]["ErrorBody"];
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
/** @description Rate limit exceeded (retryable). */
|
|
393
|
-
RateLimited: {
|
|
394
|
-
headers: {
|
|
395
|
-
[name: string]: unknown;
|
|
396
|
-
};
|
|
397
|
-
content: {
|
|
398
|
-
"application/json": components["schemas"]["ErrorBody"];
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
/** @description Server error (retryable). */
|
|
402
|
-
InternalError: {
|
|
403
|
-
headers: {
|
|
404
|
-
[name: string]: unknown;
|
|
405
|
-
};
|
|
406
|
-
content: {
|
|
407
|
-
"application/json": components["schemas"]["ErrorBody"];
|
|
408
|
-
};
|
|
409
|
-
};
|
|
410
|
-
/** @description Invalid query or body. */
|
|
411
|
-
BadRequest: {
|
|
412
|
-
headers: {
|
|
413
|
-
[name: string]: unknown;
|
|
414
|
-
};
|
|
415
|
-
content: {
|
|
416
|
-
"application/json": components["schemas"]["ErrorBody"];
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
219
|
};
|
|
420
220
|
parameters: never;
|
|
421
221
|
requestBodies: never;
|
|
@@ -424,7 +224,7 @@ export interface components {
|
|
|
424
224
|
}
|
|
425
225
|
export type $defs = Record<string, never>;
|
|
426
226
|
export interface operations {
|
|
427
|
-
|
|
227
|
+
createWebsiteAccessSession: {
|
|
428
228
|
parameters: {
|
|
429
229
|
query?: never;
|
|
430
230
|
header?: never;
|
|
@@ -437,143 +237,19 @@ export interface operations {
|
|
|
437
237
|
};
|
|
438
238
|
};
|
|
439
239
|
responses: {
|
|
440
|
-
/** @description Session established
|
|
240
|
+
/** @description Session established */
|
|
441
241
|
201: {
|
|
442
242
|
headers: {
|
|
443
|
-
/** @description Server request id for support correlation. */
|
|
444
|
-
"x-request-id"?: string;
|
|
445
243
|
[name: string]: unknown;
|
|
446
244
|
};
|
|
447
245
|
content: {
|
|
448
246
|
"application/json": components["schemas"]["WorkSession"];
|
|
449
247
|
};
|
|
450
248
|
};
|
|
451
|
-
400: components["responses"]["ValidationError"];
|
|
452
|
-
404: components["responses"]["WorkNotFound"];
|
|
453
|
-
429: components["responses"]["RateLimited"];
|
|
454
|
-
"5xx": components["responses"]["InternalError"];
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
authorizeWechat: {
|
|
458
|
-
parameters: {
|
|
459
|
-
query?: never;
|
|
460
|
-
header?: never;
|
|
461
|
-
path?: never;
|
|
462
|
-
cookie?: never;
|
|
463
|
-
};
|
|
464
|
-
requestBody: {
|
|
465
|
-
content: {
|
|
466
|
-
"application/json": components["schemas"]["AuthAuthorizeRequest"];
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
responses: {
|
|
470
|
-
/** @description Hosted WeChat authorization URL. */
|
|
471
|
-
200: {
|
|
472
|
-
headers: {
|
|
473
|
-
[name: string]: unknown;
|
|
474
|
-
};
|
|
475
|
-
content: {
|
|
476
|
-
"application/json": components["schemas"]["AuthAuthorizeResponse"];
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
"4xx": components["responses"]["PublicError"];
|
|
480
|
-
"5xx": components["responses"]["InternalError"];
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
exchangeWechatCode: {
|
|
484
|
-
parameters: {
|
|
485
|
-
query?: never;
|
|
486
|
-
header?: never;
|
|
487
|
-
path?: never;
|
|
488
|
-
cookie?: never;
|
|
489
|
-
};
|
|
490
|
-
requestBody: {
|
|
491
|
-
content: {
|
|
492
|
-
"application/json": components["schemas"]["AuthExchangeRequest"];
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
responses: {
|
|
496
|
-
/** @description Authenticated work session. */
|
|
497
|
-
200: {
|
|
498
|
-
headers: {
|
|
499
|
-
[name: string]: unknown;
|
|
500
|
-
};
|
|
501
|
-
content: {
|
|
502
|
-
"application/json": components["schemas"]["AuthExchangeResponse"];
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
"4xx": components["responses"]["PublicError"];
|
|
506
|
-
"5xx": components["responses"]["InternalError"];
|
|
507
|
-
};
|
|
508
|
-
};
|
|
509
|
-
createAuthResumeCode: {
|
|
510
|
-
parameters: {
|
|
511
|
-
query?: never;
|
|
512
|
-
header?: never;
|
|
513
|
-
path?: never;
|
|
514
|
-
cookie?: never;
|
|
515
|
-
};
|
|
516
|
-
requestBody?: never;
|
|
517
|
-
responses: {
|
|
518
|
-
/** @description Compatibility endpoint for restoring an authenticated work session. */
|
|
519
|
-
200: {
|
|
520
|
-
headers: {
|
|
521
|
-
[name: string]: unknown;
|
|
522
|
-
};
|
|
523
|
-
content: {
|
|
524
|
-
"application/json": components["schemas"]["AuthResumeCodeResponse"];
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
"4xx": components["responses"]["PublicError"];
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
resumeAuthenticatedSession: {
|
|
531
|
-
parameters: {
|
|
532
|
-
query?: never;
|
|
533
|
-
header?: never;
|
|
534
|
-
path?: never;
|
|
535
|
-
cookie?: never;
|
|
536
|
-
};
|
|
537
|
-
requestBody: {
|
|
538
|
-
content: {
|
|
539
|
-
"application/json": components["schemas"]["AuthResumeRequest"];
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
responses: {
|
|
543
|
-
/** @description Restored authenticated work session. */
|
|
544
|
-
200: {
|
|
545
|
-
headers: {
|
|
546
|
-
[name: string]: unknown;
|
|
547
|
-
};
|
|
548
|
-
content: {
|
|
549
|
-
"application/json": components["schemas"]["AuthExchangeResponse"];
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
"4xx": components["responses"]["PublicError"];
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
getFollowState: {
|
|
556
|
-
parameters: {
|
|
557
|
-
query?: never;
|
|
558
|
-
header?: never;
|
|
559
|
-
path?: never;
|
|
560
|
-
cookie?: never;
|
|
561
|
-
};
|
|
562
|
-
requestBody?: never;
|
|
563
|
-
responses: {
|
|
564
|
-
/** @description Current follow state. */
|
|
565
|
-
200: {
|
|
566
|
-
headers: {
|
|
567
|
-
[name: string]: unknown;
|
|
568
|
-
};
|
|
569
|
-
content: {
|
|
570
|
-
"application/json": components["schemas"]["FollowState"];
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
249
|
"4xx": components["responses"]["PublicError"];
|
|
574
250
|
};
|
|
575
251
|
};
|
|
576
|
-
|
|
252
|
+
getWebsiteFollowState: {
|
|
577
253
|
parameters: {
|
|
578
254
|
query?: never;
|
|
579
255
|
header?: never;
|
|
@@ -582,7 +258,7 @@ export interface operations {
|
|
|
582
258
|
};
|
|
583
259
|
requestBody?: never;
|
|
584
260
|
responses: {
|
|
585
|
-
/** @description
|
|
261
|
+
/** @description Follow state */
|
|
586
262
|
200: {
|
|
587
263
|
headers: {
|
|
588
264
|
[name: string]: unknown;
|
|
@@ -594,7 +270,7 @@ export interface operations {
|
|
|
594
270
|
"4xx": components["responses"]["PublicError"];
|
|
595
271
|
};
|
|
596
272
|
};
|
|
597
|
-
|
|
273
|
+
followWebsiteCreator: {
|
|
598
274
|
parameters: {
|
|
599
275
|
query?: never;
|
|
600
276
|
header?: never;
|
|
@@ -603,7 +279,7 @@ export interface operations {
|
|
|
603
279
|
};
|
|
604
280
|
requestBody?: never;
|
|
605
281
|
responses: {
|
|
606
|
-
/** @description
|
|
282
|
+
/** @description Creator followed */
|
|
607
283
|
200: {
|
|
608
284
|
headers: {
|
|
609
285
|
[name: string]: unknown;
|
|
@@ -615,7 +291,7 @@ export interface operations {
|
|
|
615
291
|
"4xx": components["responses"]["PublicError"];
|
|
616
292
|
};
|
|
617
293
|
};
|
|
618
|
-
|
|
294
|
+
checkWebsiteAccess: {
|
|
619
295
|
parameters: {
|
|
620
296
|
query?: never;
|
|
621
297
|
header?: never;
|
|
@@ -628,7 +304,7 @@ export interface operations {
|
|
|
628
304
|
};
|
|
629
305
|
};
|
|
630
306
|
responses: {
|
|
631
|
-
/** @description Access decisions
|
|
307
|
+
/** @description Access decisions */
|
|
632
308
|
200: {
|
|
633
309
|
headers: {
|
|
634
310
|
[name: string]: unknown;
|
|
@@ -640,7 +316,7 @@ export interface operations {
|
|
|
640
316
|
"4xx": components["responses"]["PublicError"];
|
|
641
317
|
};
|
|
642
318
|
};
|
|
643
|
-
|
|
319
|
+
getWebsiteAccessFeatures: {
|
|
644
320
|
parameters: {
|
|
645
321
|
query?: never;
|
|
646
322
|
header?: never;
|
|
@@ -649,7 +325,7 @@ export interface operations {
|
|
|
649
325
|
};
|
|
650
326
|
requestBody?: never;
|
|
651
327
|
responses: {
|
|
652
|
-
/** @description
|
|
328
|
+
/** @description Server-authoritative feature presentation */
|
|
653
329
|
200: {
|
|
654
330
|
headers: {
|
|
655
331
|
[name: string]: unknown;
|
|
@@ -661,7 +337,7 @@ export interface operations {
|
|
|
661
337
|
"4xx": components["responses"]["PublicError"];
|
|
662
338
|
};
|
|
663
339
|
};
|
|
664
|
-
|
|
340
|
+
createWebsiteAccessCheckout: {
|
|
665
341
|
parameters: {
|
|
666
342
|
query?: never;
|
|
667
343
|
header?: never;
|
|
@@ -674,7 +350,7 @@ export interface operations {
|
|
|
674
350
|
};
|
|
675
351
|
};
|
|
676
352
|
responses: {
|
|
677
|
-
/** @description
|
|
353
|
+
/** @description Hosted checkout */
|
|
678
354
|
200: {
|
|
679
355
|
headers: {
|
|
680
356
|
[name: string]: unknown;
|
|
@@ -684,32 +360,6 @@ export interface operations {
|
|
|
684
360
|
};
|
|
685
361
|
};
|
|
686
362
|
"4xx": components["responses"]["PublicError"];
|
|
687
|
-
"5xx": components["responses"]["InternalError"];
|
|
688
|
-
};
|
|
689
|
-
};
|
|
690
|
-
bootstrapEmbeddedCheckout: {
|
|
691
|
-
parameters: {
|
|
692
|
-
query?: never;
|
|
693
|
-
header?: never;
|
|
694
|
-
path?: never;
|
|
695
|
-
cookie?: never;
|
|
696
|
-
};
|
|
697
|
-
requestBody: {
|
|
698
|
-
content: {
|
|
699
|
-
"application/json": components["schemas"]["CheckoutBootstrapRequest"];
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
responses: {
|
|
703
|
-
/** @description Memory-only bearer session for the embedded checkout. */
|
|
704
|
-
200: {
|
|
705
|
-
headers: {
|
|
706
|
-
[name: string]: unknown;
|
|
707
|
-
};
|
|
708
|
-
content: {
|
|
709
|
-
"application/json": components["schemas"]["CheckoutBootstrapResponse"];
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
"4xx": components["responses"]["PublicError"];
|
|
713
363
|
};
|
|
714
364
|
};
|
|
715
365
|
listDanmakuMessages: {
|
|
@@ -718,7 +368,6 @@ export interface operations {
|
|
|
718
368
|
workKey: components["schemas"]["WorkKey"];
|
|
719
369
|
anchorKey?: components["schemas"]["DanmakuAnchorKey"];
|
|
720
370
|
cursor?: components["schemas"]["DanmakuCursor"];
|
|
721
|
-
limit?: number;
|
|
722
371
|
};
|
|
723
372
|
header?: never;
|
|
724
373
|
path?: never;
|
|
@@ -726,7 +375,7 @@ export interface operations {
|
|
|
726
375
|
};
|
|
727
376
|
requestBody?: never;
|
|
728
377
|
responses: {
|
|
729
|
-
/** @description Messages
|
|
378
|
+
/** @description Messages */
|
|
730
379
|
200: {
|
|
731
380
|
headers: {
|
|
732
381
|
[name: string]: unknown;
|
|
@@ -735,9 +384,7 @@ export interface operations {
|
|
|
735
384
|
"application/json": components["schemas"]["DanmakuMessagesResponse"];
|
|
736
385
|
};
|
|
737
386
|
};
|
|
738
|
-
|
|
739
|
-
404: components["responses"]["WorkNotFound"];
|
|
740
|
-
500: components["responses"]["InternalError"];
|
|
387
|
+
"4xx": components["responses"]["PublicError"];
|
|
741
388
|
};
|
|
742
389
|
};
|
|
743
390
|
createDanmakuMessage: {
|
|
@@ -753,7 +400,7 @@ export interface operations {
|
|
|
753
400
|
};
|
|
754
401
|
};
|
|
755
402
|
responses: {
|
|
756
|
-
/** @description Message created
|
|
403
|
+
/** @description Message created */
|
|
757
404
|
201: {
|
|
758
405
|
headers: {
|
|
759
406
|
[name: string]: unknown;
|
|
@@ -762,10 +409,7 @@ export interface operations {
|
|
|
762
409
|
"application/json": components["schemas"]["DanmakuMessage"];
|
|
763
410
|
};
|
|
764
411
|
};
|
|
765
|
-
|
|
766
|
-
404: components["responses"]["WorkNotFound"];
|
|
767
|
-
429: components["responses"]["RateLimited"];
|
|
768
|
-
500: components["responses"]["InternalError"];
|
|
412
|
+
"4xx": components["responses"]["PublicError"];
|
|
769
413
|
};
|
|
770
414
|
};
|
|
771
415
|
}
|