@distilled.cloud/forgejo 0.0.0 → 1.0.0-rc.9

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.
Files changed (88) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +71 -0
  3. package/lib/credentials.d.ts +35 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +57 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +56 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +36 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +28 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +28 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/protocol.d.ts +18 -0
  16. package/lib/protocol.d.ts.map +1 -0
  17. package/lib/protocol.js +61 -0
  18. package/lib/protocol.js.map +1 -0
  19. package/lib/retry.d.ts +50 -0
  20. package/lib/retry.d.ts.map +1 -0
  21. package/lib/retry.js +43 -0
  22. package/lib/retry.js.map +1 -0
  23. package/lib/services/activitypub.d.ts +121 -0
  24. package/lib/services/activitypub.d.ts.map +1 -0
  25. package/lib/services/activitypub.js +202 -0
  26. package/lib/services/activitypub.js.map +1 -0
  27. package/lib/services/admin.d.ts +1196 -0
  28. package/lib/services/admin.d.ts.map +1 -0
  29. package/lib/services/admin.js +1276 -0
  30. package/lib/services/admin.js.map +1 -0
  31. package/lib/services/index.d.ts +11 -0
  32. package/lib/services/index.d.ts.map +1 -0
  33. package/lib/services/index.js +12 -0
  34. package/lib/services/index.js.map +1 -0
  35. package/lib/services/issue.d.ts +1479 -0
  36. package/lib/services/issue.d.ts.map +1 -0
  37. package/lib/services/issue.js +1732 -0
  38. package/lib/services/issue.js.map +1 -0
  39. package/lib/services/miscellaneous.d.ts +494 -0
  40. package/lib/services/miscellaneous.d.ts.map +1 -0
  41. package/lib/services/miscellaneous.js +471 -0
  42. package/lib/services/miscellaneous.js.map +1 -0
  43. package/lib/services/notification.d.ts +390 -0
  44. package/lib/services/notification.d.ts.map +1 -0
  45. package/lib/services/notification.js +344 -0
  46. package/lib/services/notification.js.map +1 -0
  47. package/lib/services/organization.d.ts +1593 -0
  48. package/lib/services/organization.d.ts.map +1 -0
  49. package/lib/services/organization.js +1672 -0
  50. package/lib/services/organization.js.map +1 -0
  51. package/lib/services/package.d.ts +347 -0
  52. package/lib/services/package.d.ts.map +1 -0
  53. package/lib/services/package.js +320 -0
  54. package/lib/services/package.js.map +1 -0
  55. package/lib/services/repository.d.ts +4770 -0
  56. package/lib/services/repository.d.ts.map +1 -0
  57. package/lib/services/repository.js +5449 -0
  58. package/lib/services/repository.js.map +1 -0
  59. package/lib/services/settings.d.ts +67 -0
  60. package/lib/services/settings.d.ts.map +1 -0
  61. package/lib/services/settings.js +87 -0
  62. package/lib/services/settings.js.map +1 -0
  63. package/lib/services/user.d.ts +1764 -0
  64. package/lib/services/user.d.ts.map +1 -0
  65. package/lib/services/user.js +1921 -0
  66. package/lib/services/user.js.map +1 -0
  67. package/lib/traits.d.ts +10 -0
  68. package/lib/traits.d.ts.map +1 -0
  69. package/lib/traits.js +11 -0
  70. package/lib/traits.js.map +1 -0
  71. package/package.json +78 -6
  72. package/src/credentials.ts +89 -0
  73. package/src/errors.ts +72 -0
  74. package/src/index.ts +31 -0
  75. package/src/protocol.ts +86 -0
  76. package/src/retry.ts +74 -0
  77. package/src/services/activitypub.ts +415 -0
  78. package/src/services/admin.ts +3103 -0
  79. package/src/services/index.ts +11 -0
  80. package/src/services/issue.ts +3949 -0
  81. package/src/services/miscellaneous.ts +1118 -0
  82. package/src/services/notification.ts +847 -0
  83. package/src/services/organization.ts +4008 -0
  84. package/src/services/package.ts +767 -0
  85. package/src/services/repository.ts +12839 -0
  86. package/src/services/settings.ts +190 -0
  87. package/src/services/user.ts +4669 -0
  88. package/src/traits.ts +44 -0
package/src/retry.ts ADDED
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Forgejo retry surface — a veneer over `@distilled.cloud/core/retry`.
3
+ *
4
+ * The `Retry` service tag is threaded into every generated operation via
5
+ * `API.make({ retry: Retry })`, so a caller-installed policy applies to all
6
+ * Forgejo calls below it and core's `makeDefault` is the fallback when none
7
+ * is provided.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import * as Forgejo from "@distilled.cloud/forgejo";
12
+ *
13
+ * myEffect.pipe(Forgejo.Retry.transient);
14
+ * ```
15
+ */
16
+ import * as Context from "effect/Context";
17
+ import * as Effect from "effect/Effect";
18
+ import * as Layer from "effect/Layer";
19
+ import * as Retries from "@distilled.cloud/core/retry";
20
+
21
+ export type Options = Retries.Options;
22
+ export type Factory = Retries.Factory;
23
+ export type Policy = Retries.Policy;
24
+
25
+ /** Context tag for configuring retry behavior of Forgejo API calls. */
26
+ export class Retry extends Context.Service<Retry, Policy>()("ForgejoRetry") {}
27
+
28
+ /** Provides a custom retry policy to every Forgejo API call below it. */
29
+ export const policy: {
30
+ (
31
+ options: Options,
32
+ ): <A, E, R>(
33
+ effect: Effect.Effect<A, E, R>,
34
+ ) => Effect.Effect<A, E, Exclude<R, Retry>>;
35
+ (
36
+ factory: Factory,
37
+ ): <A, E, R>(
38
+ effect: Effect.Effect<A, E, R>,
39
+ ) => Effect.Effect<A, E, Exclude<R, Retry>>;
40
+ } = (optionsOrFactory: Options | Factory) =>
41
+ Effect.provide(Layer.succeed(Retry, optionsOrFactory));
42
+
43
+ /** Disables all automatic retries. */
44
+ export const none: <A, E, R>(
45
+ effect: Effect.Effect<A, E, R>,
46
+ ) => Effect.Effect<A, E, Exclude<R, Retry>> = Effect.provide(
47
+ Layer.succeed(Retry, { while: () => false }),
48
+ );
49
+
50
+ /**
51
+ * The default retry policy (core's): transient/throttling/retryable errors,
52
+ * capped exponential backoff with jitter, server `retryAfter` hints honored
53
+ * with precedence.
54
+ */
55
+ export const makeDefault: Factory = Retries.makeDefault;
56
+
57
+ export const jittered = Retries.jittered;
58
+ export const capped = Retries.capped;
59
+
60
+ /** Retry options that retry all throttling errors indefinitely. */
61
+ export const throttlingOptions: Options = Retries.throttlingOptions;
62
+
63
+ /** Retries all throttling errors indefinitely (honoring server hints). */
64
+ export const throttling: <A, E, R>(
65
+ effect: Effect.Effect<A, E, R>,
66
+ ) => Effect.Effect<A, E, Exclude<R, Retry>> = policy(Retries.throttlingFactory);
67
+
68
+ /** Retry options that retry all transient errors indefinitely. */
69
+ export const transientOptions: Options = Retries.transientOptions;
70
+
71
+ /** Retries all transient errors indefinitely (honoring server hints). */
72
+ export const transient: <A, E, R>(
73
+ effect: Effect.Effect<A, E, R>,
74
+ ) => Effect.Effect<A, E, Exclude<R, Retry>> = policy(Retries.transientFactory);
@@ -0,0 +1,415 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-forgejo). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ ForgejoProtocol,
8
+ type ForgejoOpError,
9
+ type ForgejoOpContext,
10
+ } from "../protocol.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { ForgejoOpError, ForgejoOpContext };
14
+
15
+ export class Forbidden
16
+ extends /*@__PURE__*/ T.applyErrorMatchers(
17
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
18
+ code: S.Number,
19
+ message: S.String,
20
+ }).pipe(C.withAuthError),
21
+ [{ status: 403 }],
22
+ ) {}
23
+
24
+ export interface ActivitypubInstanceActorRequest {}
25
+ export const ActivitypubInstanceActorRequest = /*@__PURE__*/ S.suspend(() =>
26
+ S.Struct({}).pipe(
27
+ T.Http({ method: "GET", uri: "/activitypub/actor", code: 200 }),
28
+ ),
29
+ ).annotate({
30
+ identifier: "ActivitypubInstanceActorRequest",
31
+ }) as any as S.Schema<ActivitypubInstanceActorRequest>;
32
+
33
+ /** ActivityPub type */
34
+ export interface ActivityPub {
35
+ _context?: string;
36
+ }
37
+ export const ActivityPub = /*@__PURE__*/ S.suspend(() =>
38
+ S.Struct({
39
+ _context: S.optional(S.String.pipe(T.Body("@context"))),
40
+ }),
41
+ ).annotate({ identifier: "ActivityPub" }) as any as S.Schema<ActivityPub>;
42
+
43
+ export interface ActivitypubInstanceActorInboxRequest {}
44
+ export const ActivitypubInstanceActorInboxRequest = /*@__PURE__*/ S.suspend(
45
+ () =>
46
+ S.Struct({}).pipe(
47
+ T.Http({ method: "POST", uri: "/activitypub/actor/inbox", code: 200 }),
48
+ ),
49
+ ).annotate({
50
+ identifier: "ActivitypubInstanceActorInboxRequest",
51
+ }) as any as S.Schema<ActivitypubInstanceActorInboxRequest>;
52
+
53
+ export interface ActivitypubInstanceActorInboxResponse {}
54
+ export const ActivitypubInstanceActorInboxResponse = /*@__PURE__*/ S.suspend(
55
+ () => S.Struct({}),
56
+ ).annotate({
57
+ identifier: "ActivitypubInstanceActorInboxResponse",
58
+ }) as any as S.Schema<ActivitypubInstanceActorInboxResponse>;
59
+
60
+ export interface ActivitypubInstanceActorOutboxRequest {}
61
+ export const ActivitypubInstanceActorOutboxRequest = /*@__PURE__*/ S.suspend(
62
+ () =>
63
+ S.Struct({}).pipe(
64
+ T.Http({ method: "POST", uri: "/activitypub/actor/outbox", code: 200 }),
65
+ ),
66
+ ).annotate({
67
+ identifier: "ActivitypubInstanceActorOutboxRequest",
68
+ }) as any as S.Schema<ActivitypubInstanceActorOutboxRequest>;
69
+
70
+ export type ActivitypubInstanceActorOutboxResponse = unknown;
71
+ export const ActivitypubInstanceActorOutboxResponse = /*@__PURE__*/ S.suspend(
72
+ () => S.Unknown.pipe(T.RawResponseRoot()),
73
+ ).annotate({
74
+ identifier: "ActivitypubInstanceActorOutboxResponse",
75
+ }) as any as S.Schema<ActivitypubInstanceActorOutboxResponse>;
76
+
77
+ export interface ActivitypubPersonRequest {
78
+ /** user ID of the user */
79
+ user_id: number;
80
+ }
81
+ export const ActivitypubPersonRequest = /*@__PURE__*/ S.suspend(() =>
82
+ S.Struct({
83
+ user_id: S.Number.pipe(T.Label()),
84
+ }).pipe(
85
+ T.Http({ method: "GET", uri: "/activitypub/user-id/{user_id}", code: 200 }),
86
+ ),
87
+ ).annotate({
88
+ identifier: "ActivitypubPersonRequest",
89
+ }) as any as S.Schema<ActivitypubPersonRequest>;
90
+
91
+ export interface ActivitypubPersonActivityRequest {
92
+ /** user ID of the user */
93
+ user_id: number;
94
+ /** activity ID of the sought activity */
95
+ activity_id: number;
96
+ }
97
+ export const ActivitypubPersonActivityRequest = /*@__PURE__*/ S.suspend(() =>
98
+ S.Struct({
99
+ user_id: S.Number.pipe(T.Label()),
100
+ activity_id: S.Number.pipe(T.Label()),
101
+ }).pipe(
102
+ T.Http({
103
+ method: "GET",
104
+ uri: "/activitypub/user-id/{user_id}/activities/{activity_id}/activity",
105
+ code: 200,
106
+ }),
107
+ ),
108
+ ).annotate({
109
+ identifier: "ActivitypubPersonActivityRequest",
110
+ }) as any as S.Schema<ActivitypubPersonActivityRequest>;
111
+
112
+ export interface ActivitypubPersonActivityNoteRequest {
113
+ /** user ID of the user */
114
+ user_id: number;
115
+ /** activity ID of the sought activity */
116
+ activity_id: number;
117
+ }
118
+ export const ActivitypubPersonActivityNoteRequest = /*@__PURE__*/ S.suspend(
119
+ () =>
120
+ S.Struct({
121
+ user_id: S.Number.pipe(T.Label()),
122
+ activity_id: S.Number.pipe(T.Label()),
123
+ }).pipe(
124
+ T.Http({
125
+ method: "GET",
126
+ uri: "/activitypub/user-id/{user_id}/activities/{activity_id}",
127
+ code: 200,
128
+ }),
129
+ ),
130
+ ).annotate({
131
+ identifier: "ActivitypubPersonActivityNoteRequest",
132
+ }) as any as S.Schema<ActivitypubPersonActivityNoteRequest>;
133
+
134
+ export interface ActivitypubPersonFeedRequest {
135
+ /** user ID of the user */
136
+ user_id: number;
137
+ }
138
+ export const ActivitypubPersonFeedRequest = /*@__PURE__*/ S.suspend(() =>
139
+ S.Struct({
140
+ user_id: S.Number.pipe(T.Label()),
141
+ }).pipe(
142
+ T.Http({
143
+ method: "GET",
144
+ uri: "/activitypub/user-id/{user_id}/outbox",
145
+ code: 200,
146
+ }),
147
+ ),
148
+ ).annotate({
149
+ identifier: "ActivitypubPersonFeedRequest",
150
+ }) as any as S.Schema<ActivitypubPersonFeedRequest>;
151
+
152
+ export type ActivitypubPersonFeedResponse = unknown;
153
+ export const ActivitypubPersonFeedResponse = /*@__PURE__*/ S.suspend(() =>
154
+ S.Unknown.pipe(T.RawResponseRoot()),
155
+ ).annotate({
156
+ identifier: "ActivitypubPersonFeedResponse",
157
+ }) as any as S.Schema<ActivitypubPersonFeedResponse>;
158
+
159
+ export interface ActivitypubPersonInboxRequest {
160
+ /** user ID of the user */
161
+ user_id: number;
162
+ }
163
+ export const ActivitypubPersonInboxRequest = /*@__PURE__*/ S.suspend(() =>
164
+ S.Struct({
165
+ user_id: S.Number.pipe(T.Label()),
166
+ }).pipe(
167
+ T.Http({
168
+ method: "POST",
169
+ uri: "/activitypub/user-id/{user_id}/inbox",
170
+ code: 200,
171
+ }),
172
+ ),
173
+ ).annotate({
174
+ identifier: "ActivitypubPersonInboxRequest",
175
+ }) as any as S.Schema<ActivitypubPersonInboxRequest>;
176
+
177
+ export interface ActivitypubPersonInboxResponse {}
178
+ export const ActivitypubPersonInboxResponse = /*@__PURE__*/ S.suspend(() =>
179
+ S.Struct({}),
180
+ ).annotate({
181
+ identifier: "ActivitypubPersonInboxResponse",
182
+ }) as any as S.Schema<ActivitypubPersonInboxResponse>;
183
+
184
+ export interface ActivitypubRepositoryRequest {
185
+ /** repository ID of the repo */
186
+ repository_id: number;
187
+ }
188
+ export const ActivitypubRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
189
+ S.Struct({
190
+ repository_id: S.Number.pipe(T.Label()),
191
+ }).pipe(
192
+ T.Http({
193
+ method: "GET",
194
+ uri: "/activitypub/repository-id/{repository_id}",
195
+ code: 200,
196
+ }),
197
+ ),
198
+ ).annotate({
199
+ identifier: "ActivitypubRepositoryRequest",
200
+ }) as any as S.Schema<ActivitypubRepositoryRequest>;
201
+
202
+ export interface ActivitypubRepositoryInboxRequest {
203
+ /** repository ID of the repo */
204
+ repository_id: number;
205
+ }
206
+ export const ActivitypubRepositoryInboxRequest = /*@__PURE__*/ S.suspend(() =>
207
+ S.Struct({
208
+ repository_id: S.Number.pipe(T.Label()),
209
+ }).pipe(
210
+ T.Http({
211
+ method: "POST",
212
+ uri: "/activitypub/repository-id/{repository_id}/inbox",
213
+ code: 200,
214
+ }),
215
+ ),
216
+ ).annotate({
217
+ identifier: "ActivitypubRepositoryInboxRequest",
218
+ }) as any as S.Schema<ActivitypubRepositoryInboxRequest>;
219
+
220
+ export interface ActivitypubRepositoryInboxResponse {}
221
+ export const ActivitypubRepositoryInboxResponse = /*@__PURE__*/ S.suspend(() =>
222
+ S.Struct({}),
223
+ ).annotate({
224
+ identifier: "ActivitypubRepositoryInboxResponse",
225
+ }) as any as S.Schema<ActivitypubRepositoryInboxResponse>;
226
+
227
+ export interface ActivitypubRepositoryOutboxRequest {
228
+ /** repository ID of the repo */
229
+ repository_id: number;
230
+ }
231
+ export const ActivitypubRepositoryOutboxRequest = /*@__PURE__*/ S.suspend(() =>
232
+ S.Struct({
233
+ repository_id: S.Number.pipe(T.Label()),
234
+ }).pipe(
235
+ T.Http({
236
+ method: "POST",
237
+ uri: "/activitypub/repository-id/{repository_id}/outbox",
238
+ code: 200,
239
+ }),
240
+ ),
241
+ ).annotate({
242
+ identifier: "ActivitypubRepositoryOutboxRequest",
243
+ }) as any as S.Schema<ActivitypubRepositoryOutboxRequest>;
244
+
245
+ export type ActivitypubRepositoryOutboxResponse = unknown;
246
+ export const ActivitypubRepositoryOutboxResponse = /*@__PURE__*/ S.suspend(() =>
247
+ S.Unknown.pipe(T.RawResponseRoot()),
248
+ ).annotate({
249
+ identifier: "ActivitypubRepositoryOutboxResponse",
250
+ }) as any as S.Schema<ActivitypubRepositoryOutboxResponse>;
251
+
252
+ export type ActivitypubInstanceActorError = ForgejoOpError;
253
+ /** Returns the instance's Actor */
254
+ export const activitypubInstanceActor: API.OperationMethod<
255
+ ActivitypubInstanceActorRequest,
256
+ ActivityPub,
257
+ ActivitypubInstanceActorError,
258
+ ForgejoOpContext
259
+ > = /*@__PURE__*/ API.make(() => ({
260
+ input: ActivitypubInstanceActorRequest,
261
+ output: ActivityPub,
262
+ errors: [],
263
+ protocol: ForgejoProtocol,
264
+ retry: Retry.Retry,
265
+ }));
266
+
267
+ export type ActivitypubInstanceActorInboxError = ForgejoOpError;
268
+ /** Send to the inbox */
269
+ export const activitypubInstanceActorInbox: API.OperationMethod<
270
+ ActivitypubInstanceActorInboxRequest,
271
+ ActivitypubInstanceActorInboxResponse,
272
+ ActivitypubInstanceActorInboxError,
273
+ ForgejoOpContext
274
+ > = /*@__PURE__*/ API.make(() => ({
275
+ input: ActivitypubInstanceActorInboxRequest,
276
+ output: ActivitypubInstanceActorInboxResponse,
277
+ errors: [],
278
+ protocol: ForgejoProtocol,
279
+ retry: Retry.Retry,
280
+ }));
281
+
282
+ export type ActivitypubInstanceActorOutboxError = ForgejoOpError;
283
+ /** Display the outbox (always empty) */
284
+ export const activitypubInstanceActorOutbox: API.OperationMethod<
285
+ ActivitypubInstanceActorOutboxRequest,
286
+ ActivitypubInstanceActorOutboxResponse,
287
+ ActivitypubInstanceActorOutboxError,
288
+ ForgejoOpContext
289
+ > = /*@__PURE__*/ API.make(() => ({
290
+ input: ActivitypubInstanceActorOutboxRequest,
291
+ output: ActivitypubInstanceActorOutboxResponse,
292
+ errors: [],
293
+ protocol: ForgejoProtocol,
294
+ retry: Retry.Retry,
295
+ }));
296
+
297
+ export type ActivitypubPersonError = ForgejoOpError;
298
+ /** Returns the Person actor for a user */
299
+ export const activitypubPerson: API.OperationMethod<
300
+ ActivitypubPersonRequest,
301
+ ActivityPub,
302
+ ActivitypubPersonError,
303
+ ForgejoOpContext
304
+ > = /*@__PURE__*/ API.make(() => ({
305
+ input: ActivitypubPersonRequest,
306
+ output: ActivityPub,
307
+ errors: [],
308
+ protocol: ForgejoProtocol,
309
+ retry: Retry.Retry,
310
+ }));
311
+
312
+ export type ActivitypubPersonActivityError = ForgejoOpError;
313
+ /** Get a specific activity of the user */
314
+ export const activitypubPersonActivity: API.OperationMethod<
315
+ ActivitypubPersonActivityRequest,
316
+ ActivityPub,
317
+ ActivitypubPersonActivityError,
318
+ ForgejoOpContext
319
+ > = /*@__PURE__*/ API.make(() => ({
320
+ input: ActivitypubPersonActivityRequest,
321
+ output: ActivityPub,
322
+ errors: [],
323
+ protocol: ForgejoProtocol,
324
+ retry: Retry.Retry,
325
+ }));
326
+
327
+ export type ActivitypubPersonActivityNoteError = ForgejoOpError;
328
+ /** Get a specific activity object of the user */
329
+ export const activitypubPersonActivityNote: API.OperationMethod<
330
+ ActivitypubPersonActivityNoteRequest,
331
+ ActivityPub,
332
+ ActivitypubPersonActivityNoteError,
333
+ ForgejoOpContext
334
+ > = /*@__PURE__*/ API.make(() => ({
335
+ input: ActivitypubPersonActivityNoteRequest,
336
+ output: ActivityPub,
337
+ errors: [],
338
+ protocol: ForgejoProtocol,
339
+ retry: Retry.Retry,
340
+ }));
341
+
342
+ export type ActivitypubPersonFeedError = Forbidden | ForgejoOpError;
343
+ /** List the user's recorded activity */
344
+ export const activitypubPersonFeed: API.OperationMethod<
345
+ ActivitypubPersonFeedRequest,
346
+ ActivitypubPersonFeedResponse,
347
+ ActivitypubPersonFeedError,
348
+ ForgejoOpContext
349
+ > = /*@__PURE__*/ API.make(() => ({
350
+ input: ActivitypubPersonFeedRequest,
351
+ output: ActivitypubPersonFeedResponse,
352
+ errors: [Forbidden],
353
+ protocol: ForgejoProtocol,
354
+ retry: Retry.Retry,
355
+ }));
356
+
357
+ export type ActivitypubPersonInboxError = ForgejoOpError;
358
+ /** Send to the inbox */
359
+ export const activitypubPersonInbox: API.OperationMethod<
360
+ ActivitypubPersonInboxRequest,
361
+ ActivitypubPersonInboxResponse,
362
+ ActivitypubPersonInboxError,
363
+ ForgejoOpContext
364
+ > = /*@__PURE__*/ API.make(() => ({
365
+ input: ActivitypubPersonInboxRequest,
366
+ output: ActivitypubPersonInboxResponse,
367
+ errors: [],
368
+ protocol: ForgejoProtocol,
369
+ retry: Retry.Retry,
370
+ }));
371
+
372
+ export type ActivitypubRepositoryError = ForgejoOpError;
373
+ /** Returns the Repository actor for a repo */
374
+ export const activitypubRepository: API.OperationMethod<
375
+ ActivitypubRepositoryRequest,
376
+ ActivityPub,
377
+ ActivitypubRepositoryError,
378
+ ForgejoOpContext
379
+ > = /*@__PURE__*/ API.make(() => ({
380
+ input: ActivitypubRepositoryRequest,
381
+ output: ActivityPub,
382
+ errors: [],
383
+ protocol: ForgejoProtocol,
384
+ retry: Retry.Retry,
385
+ }));
386
+
387
+ export type ActivitypubRepositoryInboxError = ForgejoOpError;
388
+ /** Send to the inbox */
389
+ export const activitypubRepositoryInbox: API.OperationMethod<
390
+ ActivitypubRepositoryInboxRequest,
391
+ ActivitypubRepositoryInboxResponse,
392
+ ActivitypubRepositoryInboxError,
393
+ ForgejoOpContext
394
+ > = /*@__PURE__*/ API.make(() => ({
395
+ input: ActivitypubRepositoryInboxRequest,
396
+ output: ActivitypubRepositoryInboxResponse,
397
+ errors: [],
398
+ protocol: ForgejoProtocol,
399
+ retry: Retry.Retry,
400
+ }));
401
+
402
+ export type ActivitypubRepositoryOutboxError = ForgejoOpError;
403
+ /** Display the outbox */
404
+ export const activitypubRepositoryOutbox: API.OperationMethod<
405
+ ActivitypubRepositoryOutboxRequest,
406
+ ActivitypubRepositoryOutboxResponse,
407
+ ActivitypubRepositoryOutboxError,
408
+ ForgejoOpContext
409
+ > = /*@__PURE__*/ API.make(() => ({
410
+ input: ActivitypubRepositoryOutboxRequest,
411
+ output: ActivitypubRepositoryOutboxResponse,
412
+ errors: [],
413
+ protocol: ForgejoProtocol,
414
+ retry: Retry.Retry,
415
+ }));