@atproto/api 0.2.3 → 0.2.4
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/client/index.d.ts +10 -0
- package/dist/client/lexicons.d.ts +205 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +5 -0
- package/dist/client/types/com/atproto/admin/disableInviteCodes.d.ts +18 -0
- package/dist/client/types/com/atproto/admin/getInviteCodes.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/client/types/com/atproto/server/createInviteCode.d.ts +1 -0
- package/dist/client/types/com/atproto/server/defs.d.ts +20 -0
- package/dist/client/types/com/atproto/server/getAccountInviteCodes.d.ts +23 -0
- package/dist/index.js +481 -189
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +41 -0
- package/src/client/lexicons.ts +217 -0
- package/src/client/types/com/atproto/admin/defs.ts +5 -0
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +33 -0
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +39 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +1 -0
- package/src/client/types/com/atproto/server/createInviteCode.ts +1 -0
- package/src/client/types/com/atproto/server/defs.ts +48 -0
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +44 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
3
|
+
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
2
4
|
import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
|
|
3
5
|
import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
4
6
|
import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport';
|
|
@@ -26,6 +28,7 @@ import * as ComAtprotoServerCreateSession from './types/com/atproto/server/creat
|
|
|
26
28
|
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount';
|
|
27
29
|
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession';
|
|
28
30
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer';
|
|
31
|
+
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes';
|
|
29
32
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession';
|
|
30
33
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
|
|
31
34
|
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
|
|
@@ -66,6 +69,8 @@ import * as AppBskyNotificationListNotifications from './types/app/bsky/notifica
|
|
|
66
69
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
67
70
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
|
|
68
71
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
|
|
72
|
+
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
73
|
+
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
69
74
|
export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
|
|
70
75
|
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
71
76
|
export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport';
|
|
@@ -92,9 +97,11 @@ export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
|
|
|
92
97
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
|
|
93
98
|
export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode';
|
|
94
99
|
export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession';
|
|
100
|
+
export * as ComAtprotoServerDefs from './types/com/atproto/server/defs';
|
|
95
101
|
export * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount';
|
|
96
102
|
export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession';
|
|
97
103
|
export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer';
|
|
104
|
+
export * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes';
|
|
98
105
|
export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession';
|
|
99
106
|
export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
|
|
100
107
|
export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
|
|
@@ -182,6 +189,8 @@ export declare class AtprotoNS {
|
|
|
182
189
|
export declare class AdminNS {
|
|
183
190
|
_service: AtpServiceClient;
|
|
184
191
|
constructor(service: AtpServiceClient);
|
|
192
|
+
disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
|
|
193
|
+
getInviteCodes(params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions): Promise<ComAtprotoAdminGetInviteCodes.Response>;
|
|
185
194
|
getModerationAction(params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions): Promise<ComAtprotoAdminGetModerationAction.Response>;
|
|
186
195
|
getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
|
|
187
196
|
getModerationReport(params?: ComAtprotoAdminGetModerationReport.QueryParams, opts?: ComAtprotoAdminGetModerationReport.CallOptions): Promise<ComAtprotoAdminGetModerationReport.Response>;
|
|
@@ -225,6 +234,7 @@ export declare class ServerNS {
|
|
|
225
234
|
deleteAccount(data?: ComAtprotoServerDeleteAccount.InputSchema, opts?: ComAtprotoServerDeleteAccount.CallOptions): Promise<ComAtprotoServerDeleteAccount.Response>;
|
|
226
235
|
deleteSession(data?: ComAtprotoServerDeleteSession.InputSchema, opts?: ComAtprotoServerDeleteSession.CallOptions): Promise<ComAtprotoServerDeleteSession.Response>;
|
|
227
236
|
describeServer(params?: ComAtprotoServerDescribeServer.QueryParams, opts?: ComAtprotoServerDescribeServer.CallOptions): Promise<ComAtprotoServerDescribeServer.Response>;
|
|
237
|
+
getAccountInviteCodes(params?: ComAtprotoServerGetAccountInviteCodes.QueryParams, opts?: ComAtprotoServerGetAccountInviteCodes.CallOptions): Promise<ComAtprotoServerGetAccountInviteCodes.Response>;
|
|
228
238
|
getSession(params?: ComAtprotoServerGetSession.QueryParams, opts?: ComAtprotoServerGetSession.CallOptions): Promise<ComAtprotoServerGetSession.Response>;
|
|
229
239
|
refreshSession(data?: ComAtprotoServerRefreshSession.InputSchema, opts?: ComAtprotoServerRefreshSession.CallOptions): Promise<ComAtprotoServerRefreshSession.Response>;
|
|
230
240
|
requestAccountDelete(data?: ComAtprotoServerRequestAccountDelete.InputSchema, opts?: ComAtprotoServerRequestAccountDelete.CallOptions): Promise<ComAtprotoServerRequestAccountDelete.Response>;
|
|
@@ -238,6 +238,17 @@ export declare const schemaDict: {
|
|
|
238
238
|
type: string;
|
|
239
239
|
ref: string;
|
|
240
240
|
};
|
|
241
|
+
invitedBy: {
|
|
242
|
+
type: string;
|
|
243
|
+
ref: string;
|
|
244
|
+
};
|
|
245
|
+
invites: {
|
|
246
|
+
type: string;
|
|
247
|
+
items: {
|
|
248
|
+
type: string;
|
|
249
|
+
ref: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
241
252
|
};
|
|
242
253
|
};
|
|
243
254
|
repoViewDetail: {
|
|
@@ -269,6 +280,17 @@ export declare const schemaDict: {
|
|
|
269
280
|
type: string;
|
|
270
281
|
ref: string;
|
|
271
282
|
};
|
|
283
|
+
invitedBy: {
|
|
284
|
+
type: string;
|
|
285
|
+
ref: string;
|
|
286
|
+
};
|
|
287
|
+
invites: {
|
|
288
|
+
type: string;
|
|
289
|
+
items: {
|
|
290
|
+
type: string;
|
|
291
|
+
ref: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
272
294
|
};
|
|
273
295
|
};
|
|
274
296
|
repoRef: {
|
|
@@ -444,6 +466,84 @@ export declare const schemaDict: {
|
|
|
444
466
|
};
|
|
445
467
|
};
|
|
446
468
|
};
|
|
469
|
+
ComAtprotoAdminDisableInviteCodes: {
|
|
470
|
+
lexicon: number;
|
|
471
|
+
id: string;
|
|
472
|
+
defs: {
|
|
473
|
+
main: {
|
|
474
|
+
type: string;
|
|
475
|
+
description: string;
|
|
476
|
+
input: {
|
|
477
|
+
encoding: string;
|
|
478
|
+
schema: {
|
|
479
|
+
type: string;
|
|
480
|
+
properties: {
|
|
481
|
+
codes: {
|
|
482
|
+
type: string;
|
|
483
|
+
items: {
|
|
484
|
+
type: string;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
accounts: {
|
|
488
|
+
type: string;
|
|
489
|
+
items: {
|
|
490
|
+
type: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
ComAtprotoAdminGetInviteCodes: {
|
|
500
|
+
lexicon: number;
|
|
501
|
+
id: string;
|
|
502
|
+
defs: {
|
|
503
|
+
main: {
|
|
504
|
+
type: string;
|
|
505
|
+
description: string;
|
|
506
|
+
parameters: {
|
|
507
|
+
type: string;
|
|
508
|
+
properties: {
|
|
509
|
+
sort: {
|
|
510
|
+
type: string;
|
|
511
|
+
knownValues: string[];
|
|
512
|
+
default: string;
|
|
513
|
+
};
|
|
514
|
+
limit: {
|
|
515
|
+
type: string;
|
|
516
|
+
minimum: number;
|
|
517
|
+
maximum: number;
|
|
518
|
+
default: number;
|
|
519
|
+
};
|
|
520
|
+
cursor: {
|
|
521
|
+
type: string;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
output: {
|
|
526
|
+
encoding: string;
|
|
527
|
+
schema: {
|
|
528
|
+
type: string;
|
|
529
|
+
required: string[];
|
|
530
|
+
properties: {
|
|
531
|
+
cursor: {
|
|
532
|
+
type: string;
|
|
533
|
+
};
|
|
534
|
+
codes: {
|
|
535
|
+
type: string;
|
|
536
|
+
items: {
|
|
537
|
+
type: string;
|
|
538
|
+
ref: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
447
547
|
ComAtprotoAdminGetModerationAction: {
|
|
448
548
|
lexicon: number;
|
|
449
549
|
id: string;
|
|
@@ -737,6 +837,9 @@ export declare const schemaDict: {
|
|
|
737
837
|
term: {
|
|
738
838
|
type: string;
|
|
739
839
|
};
|
|
840
|
+
invitedBy: {
|
|
841
|
+
type: string;
|
|
842
|
+
};
|
|
740
843
|
limit: {
|
|
741
844
|
type: string;
|
|
742
845
|
minimum: number;
|
|
@@ -1547,6 +1650,10 @@ export declare const schemaDict: {
|
|
|
1547
1650
|
useCount: {
|
|
1548
1651
|
type: string;
|
|
1549
1652
|
};
|
|
1653
|
+
forAccount: {
|
|
1654
|
+
type: string;
|
|
1655
|
+
format: string;
|
|
1656
|
+
};
|
|
1550
1657
|
};
|
|
1551
1658
|
};
|
|
1552
1659
|
};
|
|
@@ -1620,6 +1727,58 @@ export declare const schemaDict: {
|
|
|
1620
1727
|
};
|
|
1621
1728
|
};
|
|
1622
1729
|
};
|
|
1730
|
+
ComAtprotoServerDefs: {
|
|
1731
|
+
lexicon: number;
|
|
1732
|
+
id: string;
|
|
1733
|
+
defs: {
|
|
1734
|
+
inviteCode: {
|
|
1735
|
+
type: string;
|
|
1736
|
+
required: string[];
|
|
1737
|
+
properties: {
|
|
1738
|
+
code: {
|
|
1739
|
+
type: string;
|
|
1740
|
+
};
|
|
1741
|
+
available: {
|
|
1742
|
+
type: string;
|
|
1743
|
+
};
|
|
1744
|
+
disabled: {
|
|
1745
|
+
type: string;
|
|
1746
|
+
};
|
|
1747
|
+
forAccount: {
|
|
1748
|
+
type: string;
|
|
1749
|
+
};
|
|
1750
|
+
createdBy: {
|
|
1751
|
+
type: string;
|
|
1752
|
+
};
|
|
1753
|
+
createdAt: {
|
|
1754
|
+
type: string;
|
|
1755
|
+
format: string;
|
|
1756
|
+
};
|
|
1757
|
+
uses: {
|
|
1758
|
+
type: string;
|
|
1759
|
+
items: {
|
|
1760
|
+
type: string;
|
|
1761
|
+
ref: string;
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
inviteCodeUse: {
|
|
1767
|
+
type: string;
|
|
1768
|
+
required: string[];
|
|
1769
|
+
properties: {
|
|
1770
|
+
usedBy: {
|
|
1771
|
+
type: string;
|
|
1772
|
+
format: string;
|
|
1773
|
+
};
|
|
1774
|
+
usedAt: {
|
|
1775
|
+
type: string;
|
|
1776
|
+
format: string;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
};
|
|
1623
1782
|
ComAtprotoServerDeleteAccount: {
|
|
1624
1783
|
lexicon: number;
|
|
1625
1784
|
id: string;
|
|
@@ -1705,6 +1864,48 @@ export declare const schemaDict: {
|
|
|
1705
1864
|
};
|
|
1706
1865
|
};
|
|
1707
1866
|
};
|
|
1867
|
+
ComAtprotoServerGetAccountInviteCodes: {
|
|
1868
|
+
lexicon: number;
|
|
1869
|
+
id: string;
|
|
1870
|
+
defs: {
|
|
1871
|
+
main: {
|
|
1872
|
+
type: string;
|
|
1873
|
+
description: string;
|
|
1874
|
+
parameters: {
|
|
1875
|
+
type: string;
|
|
1876
|
+
properties: {
|
|
1877
|
+
includeUsed: {
|
|
1878
|
+
type: string;
|
|
1879
|
+
default: boolean;
|
|
1880
|
+
};
|
|
1881
|
+
createAvailable: {
|
|
1882
|
+
type: string;
|
|
1883
|
+
default: boolean;
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
output: {
|
|
1888
|
+
encoding: string;
|
|
1889
|
+
schema: {
|
|
1890
|
+
type: string;
|
|
1891
|
+
required: string[];
|
|
1892
|
+
properties: {
|
|
1893
|
+
codes: {
|
|
1894
|
+
type: string;
|
|
1895
|
+
items: {
|
|
1896
|
+
type: string;
|
|
1897
|
+
ref: string;
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
errors: {
|
|
1904
|
+
name: string;
|
|
1905
|
+
}[];
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
};
|
|
1708
1909
|
ComAtprotoServerGetSession: {
|
|
1709
1910
|
lexicon: number;
|
|
1710
1911
|
id: string;
|
|
@@ -3921,6 +4122,8 @@ export declare const schemas: LexiconDoc[];
|
|
|
3921
4122
|
export declare const lexicons: Lexicons;
|
|
3922
4123
|
export declare const ids: {
|
|
3923
4124
|
ComAtprotoAdminDefs: string;
|
|
4125
|
+
ComAtprotoAdminDisableInviteCodes: string;
|
|
4126
|
+
ComAtprotoAdminGetInviteCodes: string;
|
|
3924
4127
|
ComAtprotoAdminGetModerationAction: string;
|
|
3925
4128
|
ComAtprotoAdminGetModerationActions: string;
|
|
3926
4129
|
ComAtprotoAdminGetModerationReport: string;
|
|
@@ -3947,9 +4150,11 @@ export declare const ids: {
|
|
|
3947
4150
|
ComAtprotoServerCreateAccount: string;
|
|
3948
4151
|
ComAtprotoServerCreateInviteCode: string;
|
|
3949
4152
|
ComAtprotoServerCreateSession: string;
|
|
4153
|
+
ComAtprotoServerDefs: string;
|
|
3950
4154
|
ComAtprotoServerDeleteAccount: string;
|
|
3951
4155
|
ComAtprotoServerDeleteSession: string;
|
|
3952
4156
|
ComAtprotoServerDescribeServer: string;
|
|
4157
|
+
ComAtprotoServerGetAccountInviteCodes: string;
|
|
3953
4158
|
ComAtprotoServerGetSession: string;
|
|
3954
4159
|
ComAtprotoServerRefreshSession: string;
|
|
3955
4160
|
ComAtprotoServerRequestAccountDelete: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
3
3
|
import * as ComAtprotoModerationDefs from '../moderation/defs';
|
|
4
|
+
import * as ComAtprotoServerDefs from '../server/defs';
|
|
4
5
|
export interface ActionView {
|
|
5
6
|
id: number;
|
|
6
7
|
action: ActionType;
|
|
@@ -91,6 +92,8 @@ export interface RepoView {
|
|
|
91
92
|
relatedRecords: {}[];
|
|
92
93
|
indexedAt: string;
|
|
93
94
|
moderation: Moderation;
|
|
95
|
+
invitedBy?: ComAtprotoServerDefs.InviteCode;
|
|
96
|
+
invites?: ComAtprotoServerDefs.InviteCode[];
|
|
94
97
|
[k: string]: unknown;
|
|
95
98
|
}
|
|
96
99
|
export declare function isRepoView(v: unknown): v is RepoView;
|
|
@@ -102,6 +105,8 @@ export interface RepoViewDetail {
|
|
|
102
105
|
relatedRecords: {}[];
|
|
103
106
|
indexedAt: string;
|
|
104
107
|
moderation: ModerationDetail;
|
|
108
|
+
invitedBy?: ComAtprotoServerDefs.InviteCode;
|
|
109
|
+
invites?: ComAtprotoServerDefs.InviteCode[];
|
|
105
110
|
[k: string]: unknown;
|
|
106
111
|
}
|
|
107
112
|
export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
codes?: string[];
|
|
6
|
+
accounts?: string[];
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoServerDefs from '../server/defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
sort?: 'recent' | 'usage' | (string & {});
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
codes: ComAtprotoServerDefs.InviteCode[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface InviteCode {
|
|
3
|
+
code: string;
|
|
4
|
+
available: number;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
forAccount: string;
|
|
7
|
+
createdBy: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
uses: InviteCodeUse[];
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare function isInviteCode(v: unknown): v is InviteCode;
|
|
13
|
+
export declare function validateInviteCode(v: unknown): ValidationResult;
|
|
14
|
+
export interface InviteCodeUse {
|
|
15
|
+
usedBy: string;
|
|
16
|
+
usedAt: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse;
|
|
20
|
+
export declare function validateInviteCodeUse(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoServerDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
includeUsed?: boolean;
|
|
5
|
+
createAvailable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
codes: ComAtprotoServerDefs.InviteCode[];
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare class DuplicateCreateError extends XRPCError {
|
|
21
|
+
constructor(src: XRPCError);
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|