@atcute/bluesky 3.2.9 → 3.2.11
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 +2 -17
- package/dist/lexicons/index.d.ts +4 -0
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +4 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/app/bsky/actor/defs.d.ts +0 -4
- package/dist/lexicons/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicons/types/app/bsky/actor/defs.js +0 -4
- package/dist/lexicons/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicons/types/app/bsky/ageassurance/begin.d.ts +42 -0
- package/dist/lexicons/types/app/bsky/ageassurance/begin.d.ts.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/begin.js +34 -0
- package/dist/lexicons/types/app/bsky/ageassurance/begin.js.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/defs.d.ts +224 -0
- package/dist/lexicons/types/app/bsky/ageassurance/defs.d.ts.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/defs.js +193 -0
- package/dist/lexicons/types/app/bsky/ageassurance/defs.js.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getConfig.d.ts +20 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getConfig.js +13 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getConfig.js.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getState.d.ts +27 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getState.d.ts.map +1 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getState.js +21 -0
- package/dist/lexicons/types/app/bsky/ageassurance/getState.js.map +1 -0
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.d.ts +0 -5
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.d.ts.map +1 -1
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.js +0 -5
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -1
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.d.ts +0 -5
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -1
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js +0 -5
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
- package/lib/lexicons/index.ts +4 -0
- package/lib/lexicons/types/app/bsky/actor/defs.ts +0 -4
- package/lib/lexicons/types/app/bsky/ageassurance/begin.ts +51 -0
- package/lib/lexicons/types/app/bsky/ageassurance/defs.ts +265 -0
- package/lib/lexicons/types/app/bsky/ageassurance/getConfig.ts +29 -0
- package/lib/lexicons/types/app/bsky/ageassurance/getState.ts +37 -0
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -5
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts +0 -5
- package/package.json +6 -5
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _accessSchema = /*#__PURE__*/ v.string<'full' | 'none' | 'safe' | 'unknown' | (string & {})>();
|
|
5
|
+
const _configSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#config')),
|
|
7
|
+
/**
|
|
8
|
+
* The per-region Age Assurance configuration.
|
|
9
|
+
*/
|
|
10
|
+
get regions() {
|
|
11
|
+
return /*#__PURE__*/ v.array(configRegionSchema);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const _configRegionSchema = /*#__PURE__*/ v.object({
|
|
15
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegion')),
|
|
16
|
+
/**
|
|
17
|
+
* The ISO 3166-1 alpha-2 country code this configuration applies to.
|
|
18
|
+
*/
|
|
19
|
+
countryCode: /*#__PURE__*/ v.string(),
|
|
20
|
+
/**
|
|
21
|
+
* The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.
|
|
22
|
+
*/
|
|
23
|
+
regionCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
24
|
+
/**
|
|
25
|
+
* The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.
|
|
26
|
+
*/
|
|
27
|
+
get rules() {
|
|
28
|
+
return /*#__PURE__*/ v.array(
|
|
29
|
+
/*#__PURE__*/ v.variant([
|
|
30
|
+
configRegionRuleDefaultSchema,
|
|
31
|
+
configRegionRuleIfAccountNewerThanSchema,
|
|
32
|
+
configRegionRuleIfAccountOlderThanSchema,
|
|
33
|
+
configRegionRuleIfAssuredOverAgeSchema,
|
|
34
|
+
configRegionRuleIfAssuredUnderAgeSchema,
|
|
35
|
+
configRegionRuleIfDeclaredOverAgeSchema,
|
|
36
|
+
configRegionRuleIfDeclaredUnderAgeSchema,
|
|
37
|
+
]),
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
const _configRegionRuleDefaultSchema = /*#__PURE__*/ v.object({
|
|
42
|
+
$type: /*#__PURE__*/ v.optional(
|
|
43
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleDefault'),
|
|
44
|
+
),
|
|
45
|
+
get access() {
|
|
46
|
+
return accessSchema;
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
const _configRegionRuleIfAccountNewerThanSchema = /*#__PURE__*/ v.object({
|
|
50
|
+
$type: /*#__PURE__*/ v.optional(
|
|
51
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan'),
|
|
52
|
+
),
|
|
53
|
+
get access() {
|
|
54
|
+
return accessSchema;
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* The date threshold as a datetime string.
|
|
58
|
+
*/
|
|
59
|
+
date: /*#__PURE__*/ v.datetimeString(),
|
|
60
|
+
});
|
|
61
|
+
const _configRegionRuleIfAccountOlderThanSchema = /*#__PURE__*/ v.object({
|
|
62
|
+
$type: /*#__PURE__*/ v.optional(
|
|
63
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan'),
|
|
64
|
+
),
|
|
65
|
+
get access() {
|
|
66
|
+
return accessSchema;
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* The date threshold as a datetime string.
|
|
70
|
+
*/
|
|
71
|
+
date: /*#__PURE__*/ v.datetimeString(),
|
|
72
|
+
});
|
|
73
|
+
const _configRegionRuleIfAssuredOverAgeSchema = /*#__PURE__*/ v.object({
|
|
74
|
+
$type: /*#__PURE__*/ v.optional(
|
|
75
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge'),
|
|
76
|
+
),
|
|
77
|
+
get access() {
|
|
78
|
+
return accessSchema;
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* The age threshold as a whole integer.
|
|
82
|
+
*/
|
|
83
|
+
age: /*#__PURE__*/ v.integer(),
|
|
84
|
+
});
|
|
85
|
+
const _configRegionRuleIfAssuredUnderAgeSchema = /*#__PURE__*/ v.object({
|
|
86
|
+
$type: /*#__PURE__*/ v.optional(
|
|
87
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge'),
|
|
88
|
+
),
|
|
89
|
+
get access() {
|
|
90
|
+
return accessSchema;
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* The age threshold as a whole integer.
|
|
94
|
+
*/
|
|
95
|
+
age: /*#__PURE__*/ v.integer(),
|
|
96
|
+
});
|
|
97
|
+
const _configRegionRuleIfDeclaredOverAgeSchema = /*#__PURE__*/ v.object({
|
|
98
|
+
$type: /*#__PURE__*/ v.optional(
|
|
99
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge'),
|
|
100
|
+
),
|
|
101
|
+
get access() {
|
|
102
|
+
return accessSchema;
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* The age threshold as a whole integer.
|
|
106
|
+
*/
|
|
107
|
+
age: /*#__PURE__*/ v.integer(),
|
|
108
|
+
});
|
|
109
|
+
const _configRegionRuleIfDeclaredUnderAgeSchema = /*#__PURE__*/ v.object({
|
|
110
|
+
$type: /*#__PURE__*/ v.optional(
|
|
111
|
+
/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge'),
|
|
112
|
+
),
|
|
113
|
+
get access() {
|
|
114
|
+
return accessSchema;
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* The age threshold as a whole integer.
|
|
118
|
+
*/
|
|
119
|
+
age: /*#__PURE__*/ v.integer(),
|
|
120
|
+
});
|
|
121
|
+
const _eventSchema = /*#__PURE__*/ v.object({
|
|
122
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#event')),
|
|
123
|
+
/**
|
|
124
|
+
* The access level granted based on Age Assurance data we've processed.
|
|
125
|
+
*/
|
|
126
|
+
access: /*#__PURE__*/ v.string<'full' | 'none' | 'safe' | 'unknown' | (string & {})>(),
|
|
127
|
+
/**
|
|
128
|
+
* The unique identifier for this instance of the Age Assurance flow, in UUID format.
|
|
129
|
+
*/
|
|
130
|
+
attemptId: /*#__PURE__*/ v.string(),
|
|
131
|
+
/**
|
|
132
|
+
* The IP address used when completing the Age Assurance flow.
|
|
133
|
+
*/
|
|
134
|
+
completeIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
135
|
+
/**
|
|
136
|
+
* The user agent used when completing the Age Assurance flow.
|
|
137
|
+
*/
|
|
138
|
+
completeUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
139
|
+
/**
|
|
140
|
+
* The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.
|
|
141
|
+
*/
|
|
142
|
+
countryCode: /*#__PURE__*/ v.string(),
|
|
143
|
+
/**
|
|
144
|
+
* The date and time of this write operation.
|
|
145
|
+
*/
|
|
146
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
147
|
+
/**
|
|
148
|
+
* The email used for Age Assurance.
|
|
149
|
+
*/
|
|
150
|
+
email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
151
|
+
/**
|
|
152
|
+
* The IP address used when initiating the Age Assurance flow.
|
|
153
|
+
*/
|
|
154
|
+
initIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
155
|
+
/**
|
|
156
|
+
* The user agent used when initiating the Age Assurance flow.
|
|
157
|
+
*/
|
|
158
|
+
initUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
159
|
+
/**
|
|
160
|
+
* The ISO 3166-2 region code provided when beginning the Age Assurance flow.
|
|
161
|
+
*/
|
|
162
|
+
regionCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
163
|
+
/**
|
|
164
|
+
* The status of the Age Assurance process.
|
|
165
|
+
*/
|
|
166
|
+
status: /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'unknown' | (string & {})>(),
|
|
167
|
+
});
|
|
168
|
+
const _stateSchema = /*#__PURE__*/ v.object({
|
|
169
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#state')),
|
|
170
|
+
get access() {
|
|
171
|
+
return accessSchema;
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* The timestamp when this state was last updated.
|
|
175
|
+
*/
|
|
176
|
+
lastInitiatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
177
|
+
get status() {
|
|
178
|
+
return statusSchema;
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
const _stateMetadataSchema = /*#__PURE__*/ v.object({
|
|
182
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.ageassurance.defs#stateMetadata')),
|
|
183
|
+
/**
|
|
184
|
+
* The account creation timestamp.
|
|
185
|
+
*/
|
|
186
|
+
accountCreatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
187
|
+
});
|
|
188
|
+
const _statusSchema = /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'unknown' | (string & {})>();
|
|
189
|
+
|
|
190
|
+
type access$schematype = typeof _accessSchema;
|
|
191
|
+
type config$schematype = typeof _configSchema;
|
|
192
|
+
type configRegion$schematype = typeof _configRegionSchema;
|
|
193
|
+
type configRegionRuleDefault$schematype = typeof _configRegionRuleDefaultSchema;
|
|
194
|
+
type configRegionRuleIfAccountNewerThan$schematype = typeof _configRegionRuleIfAccountNewerThanSchema;
|
|
195
|
+
type configRegionRuleIfAccountOlderThan$schematype = typeof _configRegionRuleIfAccountOlderThanSchema;
|
|
196
|
+
type configRegionRuleIfAssuredOverAge$schematype = typeof _configRegionRuleIfAssuredOverAgeSchema;
|
|
197
|
+
type configRegionRuleIfAssuredUnderAge$schematype = typeof _configRegionRuleIfAssuredUnderAgeSchema;
|
|
198
|
+
type configRegionRuleIfDeclaredOverAge$schematype = typeof _configRegionRuleIfDeclaredOverAgeSchema;
|
|
199
|
+
type configRegionRuleIfDeclaredUnderAge$schematype = typeof _configRegionRuleIfDeclaredUnderAgeSchema;
|
|
200
|
+
type event$schematype = typeof _eventSchema;
|
|
201
|
+
type state$schematype = typeof _stateSchema;
|
|
202
|
+
type stateMetadata$schematype = typeof _stateMetadataSchema;
|
|
203
|
+
type status$schematype = typeof _statusSchema;
|
|
204
|
+
|
|
205
|
+
export interface accessSchema extends access$schematype {}
|
|
206
|
+
export interface configSchema extends config$schematype {}
|
|
207
|
+
export interface configRegionSchema extends configRegion$schematype {}
|
|
208
|
+
export interface configRegionRuleDefaultSchema extends configRegionRuleDefault$schematype {}
|
|
209
|
+
export interface configRegionRuleIfAccountNewerThanSchema
|
|
210
|
+
extends configRegionRuleIfAccountNewerThan$schematype {}
|
|
211
|
+
export interface configRegionRuleIfAccountOlderThanSchema
|
|
212
|
+
extends configRegionRuleIfAccountOlderThan$schematype {}
|
|
213
|
+
export interface configRegionRuleIfAssuredOverAgeSchema extends configRegionRuleIfAssuredOverAge$schematype {}
|
|
214
|
+
export interface configRegionRuleIfAssuredUnderAgeSchema
|
|
215
|
+
extends configRegionRuleIfAssuredUnderAge$schematype {}
|
|
216
|
+
export interface configRegionRuleIfDeclaredOverAgeSchema
|
|
217
|
+
extends configRegionRuleIfDeclaredOverAge$schematype {}
|
|
218
|
+
export interface configRegionRuleIfDeclaredUnderAgeSchema
|
|
219
|
+
extends configRegionRuleIfDeclaredUnderAge$schematype {}
|
|
220
|
+
export interface eventSchema extends event$schematype {}
|
|
221
|
+
export interface stateSchema extends state$schematype {}
|
|
222
|
+
export interface stateMetadataSchema extends stateMetadata$schematype {}
|
|
223
|
+
export interface statusSchema extends status$schematype {}
|
|
224
|
+
|
|
225
|
+
export const accessSchema = _accessSchema as accessSchema;
|
|
226
|
+
export const configSchema = _configSchema as configSchema;
|
|
227
|
+
export const configRegionSchema = _configRegionSchema as configRegionSchema;
|
|
228
|
+
export const configRegionRuleDefaultSchema = _configRegionRuleDefaultSchema as configRegionRuleDefaultSchema;
|
|
229
|
+
export const configRegionRuleIfAccountNewerThanSchema =
|
|
230
|
+
_configRegionRuleIfAccountNewerThanSchema as configRegionRuleIfAccountNewerThanSchema;
|
|
231
|
+
export const configRegionRuleIfAccountOlderThanSchema =
|
|
232
|
+
_configRegionRuleIfAccountOlderThanSchema as configRegionRuleIfAccountOlderThanSchema;
|
|
233
|
+
export const configRegionRuleIfAssuredOverAgeSchema =
|
|
234
|
+
_configRegionRuleIfAssuredOverAgeSchema as configRegionRuleIfAssuredOverAgeSchema;
|
|
235
|
+
export const configRegionRuleIfAssuredUnderAgeSchema =
|
|
236
|
+
_configRegionRuleIfAssuredUnderAgeSchema as configRegionRuleIfAssuredUnderAgeSchema;
|
|
237
|
+
export const configRegionRuleIfDeclaredOverAgeSchema =
|
|
238
|
+
_configRegionRuleIfDeclaredOverAgeSchema as configRegionRuleIfDeclaredOverAgeSchema;
|
|
239
|
+
export const configRegionRuleIfDeclaredUnderAgeSchema =
|
|
240
|
+
_configRegionRuleIfDeclaredUnderAgeSchema as configRegionRuleIfDeclaredUnderAgeSchema;
|
|
241
|
+
export const eventSchema = _eventSchema as eventSchema;
|
|
242
|
+
export const stateSchema = _stateSchema as stateSchema;
|
|
243
|
+
export const stateMetadataSchema = _stateMetadataSchema as stateMetadataSchema;
|
|
244
|
+
export const statusSchema = _statusSchema as statusSchema;
|
|
245
|
+
|
|
246
|
+
export type Access = v.InferInput<typeof accessSchema>;
|
|
247
|
+
export interface Config extends v.InferInput<typeof configSchema> {}
|
|
248
|
+
export interface ConfigRegion extends v.InferInput<typeof configRegionSchema> {}
|
|
249
|
+
export interface ConfigRegionRuleDefault extends v.InferInput<typeof configRegionRuleDefaultSchema> {}
|
|
250
|
+
export interface ConfigRegionRuleIfAccountNewerThan
|
|
251
|
+
extends v.InferInput<typeof configRegionRuleIfAccountNewerThanSchema> {}
|
|
252
|
+
export interface ConfigRegionRuleIfAccountOlderThan
|
|
253
|
+
extends v.InferInput<typeof configRegionRuleIfAccountOlderThanSchema> {}
|
|
254
|
+
export interface ConfigRegionRuleIfAssuredOverAge
|
|
255
|
+
extends v.InferInput<typeof configRegionRuleIfAssuredOverAgeSchema> {}
|
|
256
|
+
export interface ConfigRegionRuleIfAssuredUnderAge
|
|
257
|
+
extends v.InferInput<typeof configRegionRuleIfAssuredUnderAgeSchema> {}
|
|
258
|
+
export interface ConfigRegionRuleIfDeclaredOverAge
|
|
259
|
+
extends v.InferInput<typeof configRegionRuleIfDeclaredOverAgeSchema> {}
|
|
260
|
+
export interface ConfigRegionRuleIfDeclaredUnderAge
|
|
261
|
+
extends v.InferInput<typeof configRegionRuleIfDeclaredUnderAgeSchema> {}
|
|
262
|
+
export interface Event extends v.InferInput<typeof eventSchema> {}
|
|
263
|
+
export interface State extends v.InferInput<typeof stateSchema> {}
|
|
264
|
+
export interface StateMetadata extends v.InferInput<typeof stateMetadataSchema> {}
|
|
265
|
+
export type Status = v.InferInput<typeof statusSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as AppBskyAgeassuranceDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.ageassurance.getConfig', {
|
|
7
|
+
params: null,
|
|
8
|
+
output: {
|
|
9
|
+
type: 'lex',
|
|
10
|
+
get schema() {
|
|
11
|
+
return AppBskyAgeassuranceDefs.configSchema;
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
type main$schematype = typeof _mainSchema;
|
|
17
|
+
|
|
18
|
+
export interface mainSchema extends main$schematype {}
|
|
19
|
+
|
|
20
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
21
|
+
|
|
22
|
+
export interface $params {}
|
|
23
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
24
|
+
|
|
25
|
+
declare module '@atcute/lexicons/ambient' {
|
|
26
|
+
interface XRPCQueries {
|
|
27
|
+
'app.bsky.ageassurance.getConfig': mainSchema;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as AppBskyAgeassuranceDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.ageassurance.getState', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({
|
|
8
|
+
countryCode: /*#__PURE__*/ v.string(),
|
|
9
|
+
regionCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
|
+
}),
|
|
11
|
+
output: {
|
|
12
|
+
type: 'lex',
|
|
13
|
+
schema: /*#__PURE__*/ v.object({
|
|
14
|
+
get metadata() {
|
|
15
|
+
return AppBskyAgeassuranceDefs.stateMetadataSchema;
|
|
16
|
+
},
|
|
17
|
+
get state() {
|
|
18
|
+
return AppBskyAgeassuranceDefs.stateSchema;
|
|
19
|
+
},
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
type main$schematype = typeof _mainSchema;
|
|
25
|
+
|
|
26
|
+
export interface mainSchema extends main$schematype {}
|
|
27
|
+
|
|
28
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
29
|
+
|
|
30
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
31
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
32
|
+
|
|
33
|
+
declare module '@atcute/lexicons/ambient' {
|
|
34
|
+
interface XRPCQueries {
|
|
35
|
+
'app.bsky.ageassurance.getState': mainSchema;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -9,11 +9,6 @@ const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadOther
|
|
|
9
9
|
* Reference (AT-URI) to post record. This is the anchor post.
|
|
10
10
|
*/
|
|
11
11
|
anchor: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
-
/**
|
|
13
|
-
* Whether to prioritize posts from followed users. It only has effect when the user is authenticated.
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
17
12
|
}),
|
|
18
13
|
output: {
|
|
19
14
|
type: 'lex',
|
|
@@ -35,11 +35,6 @@ const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2',
|
|
|
35
35
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 100)]),
|
|
36
36
|
10,
|
|
37
37
|
),
|
|
38
|
-
/**
|
|
39
|
-
* Whether to prioritize posts from followed users. It only has effect when the user is authenticated.
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
43
38
|
/**
|
|
44
39
|
* Sorting for the thread replies.
|
|
45
40
|
* @default "oldest"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.11",
|
|
5
5
|
"description": "Bluesky (app.bsky.* and chat.bsky.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"./types/chat/*": "./dist/lexicons/types/chat/bsky/*.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atcute/
|
|
29
|
-
"@atcute/
|
|
28
|
+
"@atcute/atproto": "^3.1.9",
|
|
29
|
+
"@atcute/lexicons": "^1.2.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@atcute/bluesky": "file:",
|
|
33
33
|
"@atproto/api": "^0.15.27",
|
|
34
|
-
"vitest": "^4.0.
|
|
35
|
-
"@atcute/lex-cli": "^2.
|
|
34
|
+
"vitest": "^4.0.7",
|
|
35
|
+
"@atcute/lex-cli": "^2.4.0"
|
|
36
36
|
},
|
|
37
37
|
"atcute:lexicons": {
|
|
38
38
|
"mappings": {
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc --project tsconfig.build.json",
|
|
51
|
+
"pull": "lex-cli pull -c ./lex.config.js",
|
|
51
52
|
"test": "vitest",
|
|
52
53
|
"generate": "rm -r ./lib/lexicons/; lex-cli generate -c ./lex.config.js",
|
|
53
54
|
"prepublish": "rm -rf dist; pnpm run build"
|