@faiber/faiber-social 0.24.1 → 1.1.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 CHANGED
@@ -28,11 +28,13 @@ const feed = await api.feed({ category_id: categories.data.data[0]?.id, page: 1,
28
28
 
29
29
  ## Complete capability
30
30
 
31
- This package exposes 61 registered operations from the social interactions service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
31
+ This package exposes 112 mounted operations from the social interactions service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
32
32
 
33
33
  | Area | Operations | HTTP methods |
34
34
  |---|---:|---|
35
35
  | `api` | 60 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
36
+ | `admin` | 37 | `DELETE`, `GET`, `PATCH`, `POST` |
37
+ | `discovery` | 14 | `DELETE`, `GET`, `POST`, `PUT` |
36
38
  | `main` | 1 | `GET` |
37
39
 
38
40
  Social owns community categories, posts, and interactions on those posts and comments. Modules continues to own generic comments and reactions for products, services, and other Modules resources.
@@ -43,9 +45,7 @@ Use a `TokenProvider` to forward the signed-in user's Bearer token, or enable `w
43
45
 
44
46
  ## Inputs, queries, responses, and transport
45
47
 
46
- All methods return the complete Axios response, including status, headers, and request IDs. Request bodies and query objects are named exported interfaces. Nested pagination uses keys such as `page[number]` and `page[size]` where required by the service. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
47
-
48
- Generic REST resources are capability-guarded. Calling a legacy method that the service does not register throws `UnsupportedOperationError` before sending a request instead of producing a backend `405`.
48
+ All methods return the complete Axios response, including status, headers, and request IDs. Request bodies and query objects are named exported interfaces. Social pagination uses flat `page` and `limit` keys, not nested pagination. Authenticated lists default to page 1 and limit 30, clamp page to at least 1 and limit to 1–100. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
49
49
 
50
50
  ## Errors and cancellation
51
51
 
@@ -58,3 +58,80 @@ try {
58
58
  ```
59
59
 
60
60
  Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services with one configuration.
61
+
62
+ ## Operator administration
63
+
64
+ The generated `api.operations.admin*` methods cover the mounted `/api/v1/admin/social` router. Exported `SocialAdmin*` models describe the SQL projections, records, request bodies and pagination. All calls use the same `FaiberClient`; use current project-authorized credentials. Forwarded actor/organization headers belong to trusted service infrastructure and must not be accepted from an untrusted browser.
65
+
66
+ ```ts
67
+ const page = await api.operations.adminPostsGet({
68
+ q: "event", status: "pending", page: 1, limit: 30,
69
+ });
70
+ const post = await api.operations.adminPostDetailGet(page.data.data[0].id);
71
+ const reports = await api.operations.adminReportsGet({ status: "open" });
72
+ ```
73
+
74
+ | Administration area | Required service permission |
75
+ | --- | --- |
76
+ | Overview, categories/policy reads | `social:panel:view` |
77
+ | Posts, comments, media, actors | `social:content:read` |
78
+ | Category mutations | `social:categories:manage` |
79
+ | Draft policy creation/edit/publication | `social:capabilities:manage` |
80
+ | Moderation queue | `social:moderation:review` |
81
+ | Reports | `social:reports:manage` |
82
+ | Claims/decisions | `social:claims:manage` |
83
+ | Bounties | `social:funding:review` |
84
+ | Exact location reveal | `social:location:reveal` |
85
+ | Restrictions | `social:actors:restrict` |
86
+ | Analytics | `social:analytics:read` |
87
+ | Audit | `social:audit:read` |
88
+ | Integration events/replay | `social:integrations:manage` |
89
+ | Configuration-presence flags | `social:settings:manage` |
90
+
91
+ Paged responses contain `data` arrays and `meta: {total,page,limit}`. Pages default to1 and limits to30; limits clamp to1–100. Posts support text, category and moderation-status filters. Other shared lists support only their `status` field: media interprets it as content type, audit as action. Actor `q` is a UUID; invalid values are currently ignored and actor totals describe the current page. Unpaginated category/policy/moderation endpoints do not accept list filters.
92
+
93
+ Creating categories, draft policies and restrictions returns201. Category archive returns204. Publishing a draft retires the prior published policy; editing/publishing a non-draft returns409. Operator decisions require an authenticated user. Exact-location responses include `Cache-Control: no-store` and expire after60seconds; never persist them in browser caches. Admin bounty amounts are JSON numbers, whereas the public capability projection uses decimal strings.
94
+
95
+ Replay only accepts failed/dead-letter events, requires a reason, and returns a pending receipt rather than proof that another service applied the effect. The matching reviewed service repair commits its reset and audit together. Claim decisions reject terminal states with409 in that repair. These repaired behaviors require the coordinated service version; installing the SDK alone does not upgrade a service runtime.
96
+
97
+ All methods accept request cancellation and timeout options and retain full Axios responses. Handle400 validation,401 missing actor,403 missing permission,404 missing scoped record,409 lifecycle conflict and transport/server errors without treating a failed request as proof that an older service rolled back its writes.
98
+
99
+ ## Public discovery and server-side social graph
100
+
101
+ `operations.discoveryFeedGet(query)`, `discoveryPostDetailGet(id)` and `discoveryCommentsGet(id)` return public projections scoped to the service runtime's configured organization/category. Private, moderated, deleted, blocked and expired story records are excluded. The public feed accepts text, author and subject filters; `subject_refs` is a comma-separated place UUID list (up to100 parsed entries). Limits clamp to1–100 and pages to1–10000. Feed responses are arrays in `{status:"success",data}` without a total. Comments are oldest-first and capped at100.
102
+
103
+ `discoveryMediaGet(id)` returns binary bytes, not JSON, after checking parent visibility. Respect its `private, no-cache` header. Missing/unpublished records return404; object-storage failures propagate as server errors.
104
+
105
+ Follow/block, notification preferences and worker routes use a **server-only** runtime `BFF_SERVICE_KEY` and a verified actor UUID. Keep that credential in the trusted composition server's in-memory configuration. Never put it in a browser bundle or accept actor/permission headers from model output or an untrusted request. Graph targets use the exported `SocialFollowTargetKind` (`user` or `place`). Graph and preference reads return `{data}`, rather than the public Social success envelope. Follow/block mutations return204; a blocked relationship prevents user follow and hides the public author's content.
106
+
107
+ The worker additionally needs exact `social:integrations:write` context. `discoveryOutboxGet()` returns the oldest50 undelivered notifications without acquiring a lease. Deduplicate downstream effects before `discoveryAckPut(id)`: acknowledgment marks delivery and is not proof of a downstream business effect. `discoveryPlaceEventPost({id,place_id,status})` uses the event UUID for transactional duplicate suppression and queues only opted-in place followers. Notification preferences support `follow`, `comment`, `place`, and `quest`, defaulting to enabled.
108
+
109
+ These operations require the coordinated service image that includes discovery migrations5–9. Each project retains its separate runtime, configuration and data boundary. The SDK exposes server workflows; it does not provision credentials, grant permissions, or move project data.
110
+
111
+ ## Publication, claims and location workflows
112
+
113
+ Use a UUID `request_key` on `createPost` to retry a publication attempt. The first completed publication returns 201; an identical completed retry returns 200. A changed fingerprint or an unfinished request returns 409. Reuse the same key after an uncertain transport result. The current fingerprint includes core content and the subject type/reference; changing other capabilities does not establish a distinct request. Capability assertions are issuer-signed and bound to the current organization, owner and resource. A category with a published capability policy requires a capabilities object even if no section is required. Policy-controlled fields and resource assertions may reject publication with 400, 403 or 409.
114
+
115
+ ```ts
116
+ const publication = await api.createPost({
117
+ request_key: crypto.randomUUID(),
118
+ body: "Who can help document this community project?",
119
+ });
120
+ const claims = await api.operations.apiMyPostClaimsGet(publication.data.data.id, {
121
+ page: 1, limit: 20,
122
+ });
123
+ ```
124
+
125
+ A different signed-in participant can call `api.operations.apiCreateClaimPost(postId, {message, evidence})` when category policy enables claims. Claim creation returns an acknowledgment, while claim lists include message, evidence, timestamps and `mutual_contact_consent`. Detail adds nullable `resolution`. Selection is restricted to the post author; withdrawal is restricted to the claimant in submitted state. Contact consent is available to either participant and returns `mutual_consent`; it does not disclose contact details. Operator approval resolves an author-selected claim. Claim state conflicts return 409.
126
+
127
+ `feedLocation()` returns `data: null` when unset; `setFeedLocation` returns a non-null preference. Latitude/longitude use their normal geographic ranges and range must be greater than zero and at most 500 km. Authenticated feeds apply saved location ranking; public discovery feeds use their separate projection and filters. Exact navigation access returns coordinates with a 60-second lifetime and `no-store` headers; retain these only as needed for the current interaction.
128
+
129
+ `operations.apiGetMediaGet(id)` and `discoveryMediaGet(id)` request an array buffer and retain content/cache headers. Uploads accept JPEG, PNG or WebP Blobs between 1 byte and 12 MiB. Supply the returned uploaded media UUID in every media array entry when creating/updating posts. The server takes the first multipart field; do not put metadata ahead of the file.
130
+
131
+ Social entity responses include required nullable database fields such as `deleted_at`, category/title/parent identifiers and moderation messages. Posts include `lifecycle_status`; reports include organization and resolution fields. A moderation action result contains `action` and `status`; its previous status is available in the audit record. Category labels/descriptions, metadata, stored media, issuer snapshots and claim evidence remain JSON because the backend intentionally stores application-defined JSON values.
132
+
133
+ A view requires at least 1000 visible milliseconds (400 below that threshold); own-author and duplicate daily views return `counted: false`. Share idempotency keys are unique per organization/user across posts, so use a fresh key for a different share. Funding events return a discriminated result: `duplicate: true` omits status; `duplicate: false` includes the applied funding status. A matching amount/unit/code is required.
134
+
135
+ User follows and published comment inserts can enqueue notifications through a database trigger, subject to preference opt-out. Place follows do not enqueue follow notifications. Retrying an existing follow edge does not create another insert notification.
136
+
137
+ Package contracts describe the supported service source. Native integration evidence and deployment compatibility are separate verification requirements; this SDK does not assert that every mounted operation has been exercised against the deployed service.
package/dist/.tsbuildinfo CHANGED
@@ -1 +1 @@
1
- {"fileNames":["../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es5.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.dom.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../../../faiber-ts-sdk/node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/realtime.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66,67],[60,61,64],[60],[68,69,70,71],[68,70],[68,69],[68]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"74d1d74d5dadbbb70e8e294d3419c58885629a9fc95141cbf158a3febb523300","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"fdd1b5a8a2b98f82c94e4dc4e3b207ca81766b656d23acd3c7458fffd9af21dd","impliedFormat":99},{"version":"8b11b59b4420e74f850cdf2e70487d05e05a52ecf5b40c6a0dd59e9087000117","signature":"56c008f1a72b73eb508252c381130d2c1162007acca31004adc50fbf9aa5f1c0","impliedFormat":99},{"version":"7549b4cd455c3aa1946cb05d6d5dc02d02b1267223d534b802e3c7514c28bda8","signature":"998a7df5b259ccf9375d1292a6e19875a3a2bbf56d637ade366b6e5b98a1b397","impliedFormat":99},{"version":"cf737dd2e2f30e370a8259bcbbb75c3b71437b564cc0ff06250c589f7b9852a5","signature":"70fdd80725259fc28606e52e55dabe19ac89a7baa50eb0861b07f49fb4b62d59","impliedFormat":99},{"version":"aa441f0e92fd97aef78b2755be50ecf9a63cc2e7c25d33294217c6db5bb271cb","signature":"0c5fc64e474928272715467d2901de28c159a8d48baf83a3a2614b4238e6fc79","impliedFormat":99}],"root":[[69,72]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[68,3],[66,4],[65,4],[61,5],[72,6],[71,7],[70,8],[69,9]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/short-id.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/realtime.d.ts","../../core/dist/summary-access.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/admin.types.ts","../src/contracts.types.ts","../src/discovery.types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66,67,68,69],[60,61,65],[60],[70,71],[70,71,72],[70,71,72,73,74,75,76],[70,74,75],[70,71,72,73,74],[70]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2368a31d44ccc59758e3b3c682fee74e820b08fad98623905a85092018c06e3b","impliedFormat":99},{"version":"61806e75fc22177d65d9b33c90c4b88e4370abd4dd88d8196ca0fc87d7702fe9","impliedFormat":99},{"version":"cd5dcd4588b6b2d1e345d338edef1598cbfd33a138169b5f07a8fd707b63cdca","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"e8345259c97aa6b8a84b27963fff00e79b7f45852b0024fffc52c9a7949007ac","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"967088f3793139562bc3fd0e5db990a8bc2885f7444a1f10ea6a5a6479fa6d40","impliedFormat":99},{"version":"fbb76e489b24bd45225372dec4fddbbc3e9fe4ea23d4da6015fb209e424db9de","impliedFormat":99},{"version":"51cdc3cd25ded88f5e064fbf2dbd4a7a7a2339865a873cb84b10492e0cb837b0","signature":"8b82a4e814584d1f2abad844974a44cc77a01a6d9efe7dc2b240584175ac7e71","impliedFormat":99},{"version":"f7759044ddf7d708ac9826d01dd508f249b5598256b896bc3ce47f80555d7c46","signature":"810fe4b88a6157771078027bc5e3142eca192f3ded5a5f642026b2b92a9bfdab","impliedFormat":99},{"version":"2ca85b932c7202502b4e50939f8421d4d5501e2f9e352dfcace80541e51ee4b3","signature":"45efad2b7cef0b27fd202ce2c76b072e5c5e1db300e5393353ea58c183db62d2","impliedFormat":99},{"version":"aa4fe6cad0618957a196cdba17a6ee7abdbbca26146803661af27c4d6c690cfd","signature":"9d1fb3d0d3b4fc0184d0bc495615156f700cfd683ec60ebf46e2388fb0bcb1d9","impliedFormat":99},{"version":"62bdd141c13e39b048dab35d788a7f14df8fb26755a43937819aee5a9be04a1e","signature":"34277d5f6848bc01edc4eee6cc265a55ec97a08b2ae73e15b25829d2879bedbe","impliedFormat":99},{"version":"1fbad0ec14daec823ddf6d1f3b9d0eb750c8ac80e920c227dddec1834487f93f","signature":"69bca0990f2f7638d8a216b3fa58cf8fc44161434b0182c8f66ca1ee2cc433eb","impliedFormat":99},{"version":"3d17ffdf4c3997809898219eabaedf0372979b9307117d9ac054ca29e3349bd9","signature":"cb4408bbf1b7c07697e39d0bcf8d2d27c0ab0cd0cf022eaf01ee717913619ab1","impliedFormat":99}],"root":[[71,77]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[64,1],[65,2],[63,1],[70,3],[67,4],[66,4],[61,5],[72,6],[73,7],[74,6],[77,8],[76,9],[75,10],[71,11]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,288 @@
1
+ import type { JsonValue, QueryParams } from '@faiber/sdk-core';
2
+ import type { SocialCategory, SocialPost, SocialComment, SocialReport, SocialListMeta, ModerationStatus, SocialPostKind, SocialVisibility, CreateCategoryInput, UpdateCategoryInput } from './types.js';
3
+ /** Wire shapes reviewed against src/admin.rs and migrations 1–4 at Social d067ac956571abd73211b06d835caa658b1f09bc. */
4
+ export interface SocialAdminResponse<T> {
5
+ status: 'success';
6
+ data: T;
7
+ }
8
+ export interface SocialAdminPage<T> extends SocialAdminResponse<T[]> {
9
+ meta: SocialListMeta;
10
+ }
11
+ /** Offset pagination defaults page1/limit30; server clamps page>=1 and limit1..100. */
12
+ export interface SocialAdminPageQuery extends QueryParams {
13
+ page?: number;
14
+ limit?: number;
15
+ }
16
+ /** Only status is applied by the shared list helper; q/category_id are not filters here. */
17
+ export interface SocialAdminStatusQuery extends SocialAdminPageQuery {
18
+ status?: string;
19
+ }
20
+ export interface SocialAdminPostsQuery extends SocialAdminPageQuery {
21
+ q?: string;
22
+ status?: ModerationStatus;
23
+ category_id?: string;
24
+ }
25
+ /** q is parsed as an actor UUID; the current server ignores an invalid UUID. */
26
+ export interface SocialAdminActorsQuery extends SocialAdminPageQuery {
27
+ q?: string;
28
+ }
29
+ export type SocialAdminLifecycle = 'draft' | 'awaiting_funding' | 'pending_moderation' | 'published' | 'resolved' | 'expired' | 'cancelled' | 'disputed';
30
+ export interface SocialAdminOverview {
31
+ posts: number;
32
+ pending_moderation: number;
33
+ open_reports: number;
34
+ active_categories: number;
35
+ open_claims: number;
36
+ funding_exceptions: number;
37
+ integration_failures: number;
38
+ }
39
+ export interface SocialAdminPostSummary {
40
+ id: string;
41
+ author_user_id: string;
42
+ category_id: string | null;
43
+ kind: SocialPostKind;
44
+ visibility: SocialVisibility;
45
+ title: string | null;
46
+ body: string;
47
+ media: JsonValue;
48
+ moderation_status: ModerationStatus;
49
+ moderation_message: string | null;
50
+ lifecycle_status: SocialAdminLifecycle;
51
+ comments_count: number;
52
+ reactions_count: number;
53
+ created_at: string;
54
+ updated_at: string;
55
+ }
56
+ export interface SocialAdminPost extends SocialPost {
57
+ deleted_at: string | null;
58
+ lifecycle_status: SocialAdminLifecycle;
59
+ }
60
+ export interface SocialAdminComment extends SocialComment {
61
+ deleted_at: string | null;
62
+ }
63
+ export interface SocialAdminReport extends SocialReport {
64
+ organization_id: string;
65
+ resolved_by: string | null;
66
+ resolution: string | null;
67
+ resolved_at: string | null;
68
+ }
69
+ export interface SocialAdminMedia {
70
+ id: string;
71
+ organization_id: string;
72
+ uploader_user_id: string;
73
+ post_id: string | null;
74
+ object_key: string;
75
+ content_type: string;
76
+ size_bytes: number;
77
+ created_at: string;
78
+ }
79
+ export interface SocialAdminCategory extends SocialCategory {
80
+ deleted_at: string | null;
81
+ }
82
+ export type SocialAdminCreateCategoryInput = CreateCategoryInput;
83
+ export type SocialAdminUpdateCategoryInput = UpdateCategoryInput;
84
+ /** Only these section names are accepted. Section contents intentionally remain arbitrary JSON. The evaluator inspects settings such as required, allowed_types, access_policies, navigation_allowed, allowed_units and enabled; it does not validate an exhaustive section schema. */
85
+ export interface SocialAdminPolicyConfig {
86
+ subject?: JsonValue;
87
+ location?: JsonValue;
88
+ bounty?: JsonValue;
89
+ claims?: JsonValue;
90
+ resolution?: JsonValue;
91
+ expiry?: JsonValue;
92
+ linked_actions?: JsonValue;
93
+ }
94
+ export interface SocialAdminPolicyInput {
95
+ category_id: string;
96
+ config: SocialAdminPolicyConfig;
97
+ }
98
+ export interface SocialAdminPolicy {
99
+ id: string;
100
+ organization_id: string;
101
+ category_id: string;
102
+ version: number;
103
+ status: 'draft' | 'published' | 'retired';
104
+ config: SocialAdminPolicyConfig;
105
+ created_by: string;
106
+ published_by: string | null;
107
+ created_at: string;
108
+ updated_at: string;
109
+ published_at: string | null;
110
+ }
111
+ export type SocialAdminClaimStatus = 'submitted' | 'withdrawn' | 'selected' | 'approved' | 'rejected' | 'resolved' | 'disputed';
112
+ export interface SocialAdminClaim {
113
+ id: string;
114
+ organization_id: string;
115
+ post_id: string;
116
+ claimant_user_id: string;
117
+ message: string;
118
+ evidence: JsonValue;
119
+ status: SocialAdminClaimStatus;
120
+ created_at: string;
121
+ updated_at: string;
122
+ }
123
+ export type SocialAdminBountyStatus = 'awaiting_funding' | 'funded' | 'payout_requested' | 'paid' | 'refund_requested' | 'refunded' | 'failed' | 'disputed' | 'expired';
124
+ /** Admin SQL uses to_jsonb(numeric), so amount is a JSON number; public capability projection instead uses a decimal string. */
125
+ export interface SocialAdminBounty {
126
+ id: string;
127
+ organization_id: string;
128
+ post_id: string;
129
+ unit: 'money' | 'asset';
130
+ code: string;
131
+ amount: number;
132
+ status: SocialAdminBountyStatus;
133
+ external_reference: string | null;
134
+ expires_at: string | null;
135
+ created_at: string;
136
+ updated_at: string;
137
+ }
138
+ export type SocialAdminRestrictionScope = 'all' | 'post' | 'comment' | 'claim' | 'reaction';
139
+ export interface SocialAdminCreateRestrictionInput {
140
+ user_id: string;
141
+ scope: SocialAdminRestrictionScope;
142
+ reason: string;
143
+ evidence_ref?: string | null;
144
+ starts_at?: string | null;
145
+ ends_at?: string | null;
146
+ }
147
+ export interface SocialAdminRestriction {
148
+ id: string;
149
+ organization_id: string;
150
+ user_id: string;
151
+ scope: SocialAdminRestrictionScope;
152
+ reason: string;
153
+ evidence_ref: string | null;
154
+ status: 'active' | 'expired' | 'revoked';
155
+ starts_at: string;
156
+ ends_at: string | null;
157
+ created_by: string;
158
+ revoked_by: string | null;
159
+ created_at: string;
160
+ updated_at: string;
161
+ }
162
+ export interface SocialAdminReasonInput {
163
+ reason: string;
164
+ }
165
+ export interface SocialAdminClaimDecision {
166
+ claim_id: string;
167
+ post_id: string;
168
+ status: 'resolved' | 'rejected';
169
+ }
170
+ export interface SocialAdminLocation {
171
+ post_id: string;
172
+ latitude: number;
173
+ longitude: number;
174
+ expires_in_seconds: number;
175
+ }
176
+ export interface SocialAdminActor {
177
+ user_id: string;
178
+ posts: number;
179
+ last_activity_at: string;
180
+ }
181
+ export interface SocialAdminActorDetail {
182
+ user_id: string;
183
+ posts: number;
184
+ comments: number;
185
+ reports_submitted: number;
186
+ claims: number;
187
+ restrictions: SocialAdminRestriction[];
188
+ }
189
+ export interface SocialAdminRestrictionCreated {
190
+ id: string;
191
+ status: 'active';
192
+ }
193
+ export interface SocialAdminRestrictionRevoked {
194
+ id: string;
195
+ status: 'revoked';
196
+ }
197
+ export interface SocialAdminIntegrationPending {
198
+ id: string;
199
+ status: 'pending';
200
+ }
201
+ export interface SocialAdminAnalytics {
202
+ posts_by_status: Record<string, number>;
203
+ reports_by_status: Record<string, number>;
204
+ claims_by_status: Record<string, number>;
205
+ navigation_grants: number;
206
+ }
207
+ export interface SocialAdminAudit {
208
+ id: string;
209
+ organization_id: string;
210
+ operator_user_id: string;
211
+ action: string;
212
+ target_type: string;
213
+ target_id: string;
214
+ reason: string | null;
215
+ request_id: string | null;
216
+ metadata: JsonValue;
217
+ created_at: string;
218
+ }
219
+ /** payload is the application-defined event body stored by Social's durable integration outbox. */
220
+ export interface SocialAdminIntegration {
221
+ id: string;
222
+ organization_id: string;
223
+ topic: string;
224
+ aggregate_type: string;
225
+ aggregate_id: string;
226
+ payload: JsonValue;
227
+ status: 'pending' | 'delivered' | 'failed' | 'dead_letter';
228
+ attempts: number;
229
+ last_error: string | null;
230
+ next_attempt_at: string | null;
231
+ created_at: string;
232
+ updated_at: string;
233
+ }
234
+ export interface SocialAdminSettings {
235
+ contract_version: 'capabilities-v1';
236
+ location_encryption_configured: boolean;
237
+ assertion_issuers_configured: boolean;
238
+ secrets_exposed: false;
239
+ }
240
+ /** Public assertion snapshot contents are intentionally issuer-defined JSON, stored verbatim by the service. */
241
+ export interface SocialCapabilitySubject {
242
+ subject_type: string | null;
243
+ subject_ref: string | null;
244
+ public_snapshot: JsonValue;
245
+ }
246
+ export interface SocialCapabilityLocation {
247
+ public_label: string | null;
248
+ public_precision: string | null;
249
+ navigation_enabled: boolean;
250
+ exact_location_available: boolean;
251
+ }
252
+ export interface SocialCapabilityBounty {
253
+ unit: string | null;
254
+ code: string | null;
255
+ amount: string | null;
256
+ status: string | null;
257
+ expires_at: string | null;
258
+ }
259
+ export interface SocialCapabilityLinkedAction {
260
+ action_type: string | null;
261
+ resource_ref: string | null;
262
+ public_snapshot: JsonValue;
263
+ }
264
+ export interface SocialAdminCapabilities {
265
+ version: 1;
266
+ post_id: string;
267
+ author_user_id: string;
268
+ lifecycle_status: SocialAdminLifecycle;
269
+ subject: SocialCapabilitySubject | null;
270
+ location: SocialCapabilityLocation | null;
271
+ bounty: SocialCapabilityBounty | null;
272
+ linked_actions: SocialCapabilityLinkedAction[];
273
+ }
274
+ export interface SocialAdminPostDetail {
275
+ post: Omit<SocialAdminPost, 'metadata'>;
276
+ metadata: JsonValue;
277
+ reports: SocialAdminReport[];
278
+ comments: number;
279
+ views: number;
280
+ shares: number;
281
+ capabilities: SocialAdminCapabilities;
282
+ }
283
+ export interface SocialAdminModerationQueue {
284
+ posts: SocialAdminPost[];
285
+ comments: SocialAdminComment[];
286
+ reports: SocialAdminReport[];
287
+ }
288
+ //# sourceMappingURL=admin.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.types.d.ts","sourceRoot":"","sources":["../src/admin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAC,cAAc,EAAC,UAAU,EAAC,aAAa,EAAC,YAAY,EAAC,cAAc,EAAC,gBAAgB,EAAC,cAAc,EAAC,gBAAgB,EAAC,mBAAmB,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAC7L,uHAAuH;AACvH,MAAM,WAAW,mBAAmB,CAAC,CAAC;IAAI,MAAM,EAAC,SAAS,CAAC;IAAC,IAAI,EAAC,CAAC,CAAC;CAAE;AACrE,MAAM,WAAW,eAAe,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,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;IAAE,KAAK,EAAC,eAAe,EAAE,CAAC;IAAA,QAAQ,EAAC,kBAAkB,EAAE,CAAC;IAAA,OAAO,EAAC,iBAAiB,EAAE,CAAC;CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=admin.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.types.js","sourceRoot":"","sources":["../src/admin.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,118 @@
1
+ import type { JsonValue, QueryParams } from "@faiber/sdk-core";
2
+ import type { SocialResponse, SocialListMeta } from "./types.js";
3
+ import type { SocialAdminPolicyConfig, SocialAdminCapabilities, SocialAdminClaimStatus } from "./admin.types.js";
4
+ /** Published category policy, distinct from the operator draft record. */
5
+ export interface SocialCategoryCapabilityPolicy {
6
+ id: string;
7
+ category_id: string;
8
+ version: number;
9
+ config: SocialAdminPolicyConfig;
10
+ published_at: string;
11
+ }
12
+ export type SocialCategoryCapabilityPolicyResponse = SocialResponse<SocialCategoryCapabilityPolicy>;
13
+ export type SocialCapabilities = SocialAdminCapabilities;
14
+ export type SocialCapabilitiesResponse = SocialResponse<SocialCapabilities>;
15
+ /** Exact coordinates are short-lived and carry Cache-Control:no-store; never persist them. */
16
+ export interface SocialNavigationLocation {
17
+ post_id: string;
18
+ latitude: number;
19
+ longitude: number;
20
+ expires_in_seconds: 60;
21
+ }
22
+ export interface SocialNavigationAccessInput {
23
+ reason?: string | null;
24
+ }
25
+ export type SocialNavigationAccessResponse = SocialResponse<SocialNavigationLocation>;
26
+ /** Evidence is intentionally application-defined serde_json::Value, default null. Message is trimmed and bounded to 1–5000 characters. */
27
+ export interface SocialCreateClaimInput {
28
+ message: string;
29
+ evidence?: JsonValue;
30
+ }
31
+ export interface SocialClaimCreated {
32
+ id: string;
33
+ post_id: string;
34
+ claimant_user_id: string;
35
+ status: "submitted";
36
+ }
37
+ export type SocialClaimCreatedResponse = SocialResponse<SocialClaimCreated>;
38
+ export interface SocialClaim {
39
+ id: string;
40
+ post_id: string;
41
+ claimant_user_id: string;
42
+ message: string;
43
+ evidence: JsonValue;
44
+ status: SocialAdminClaimStatus;
45
+ created_at: string;
46
+ updated_at: string;
47
+ mutual_contact_consent: boolean;
48
+ }
49
+ export interface SocialClaimResolution {
50
+ post_id: string;
51
+ selected_claim_id: string;
52
+ author_approved_at: string | null;
53
+ moderator_approved_at: string | null;
54
+ moderator_user_id: string | null;
55
+ outcome: string | null;
56
+ status: "pending" | "approved" | "resolved" | "disputed";
57
+ created_at: string;
58
+ updated_at: string;
59
+ }
60
+ export interface SocialClaimDetail extends SocialClaim {
61
+ resolution: SocialClaimResolution | null;
62
+ }
63
+ export type SocialClaimDetailResponse = SocialResponse<SocialClaimDetail>;
64
+ export interface SocialClaimListQuery extends QueryParams {
65
+ page?: number;
66
+ limit?: number;
67
+ }
68
+ export interface SocialClaimPageResponse extends SocialResponse<SocialClaim[]> {
69
+ meta: SocialListMeta;
70
+ }
71
+ export interface SocialClaimWithdrawn {
72
+ id: string;
73
+ status: "withdrawn";
74
+ }
75
+ export type SocialClaimWithdrawnResponse = SocialResponse<SocialClaimWithdrawn>;
76
+ export interface SocialClaimSelected {
77
+ claim_id: string;
78
+ post_id: string;
79
+ status: "selected";
80
+ author_approved: true;
81
+ }
82
+ export type SocialClaimSelectedResponse = SocialResponse<SocialClaimSelected>;
83
+ export interface SocialContactConsentInput {
84
+ consented: boolean;
85
+ }
86
+ export interface SocialContactConsent {
87
+ claim_id: string;
88
+ consented: boolean;
89
+ mutual_consent: boolean;
90
+ }
91
+ export type SocialContactConsentResponse = SocialResponse<SocialContactConsent>;
92
+ export type SocialFundingStatus = "funded" | "payout_requested" | "paid" | "refund_requested" | "refunded" | "failed" | "disputed" | "expired";
93
+ export interface SocialFundingEventInput {
94
+ external_event_id: string;
95
+ post_id: string;
96
+ external_reference: string;
97
+ status: SocialFundingStatus;
98
+ unit: "money" | "asset";
99
+ code: string;
100
+ amount: string;
101
+ }
102
+ export interface SocialFundingDuplicate {
103
+ post_id: string;
104
+ duplicate: true;
105
+ }
106
+ export interface SocialFundingApplied {
107
+ post_id: string;
108
+ duplicate: false;
109
+ status: SocialFundingStatus;
110
+ }
111
+ export type SocialFundingEventResult = SocialFundingDuplicate | SocialFundingApplied;
112
+ export type SocialFundingEventResponse = SocialResponse<SocialFundingEventResult>;
113
+ export interface SocialPostCancelled {
114
+ post_id: string;
115
+ lifecycle_status: "cancelled";
116
+ }
117
+ export type SocialPostCancelledResponse = SocialResponse<SocialPostCancelled>;
118
+ //# sourceMappingURL=contracts.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.types.d.ts","sourceRoot":"","sources":["../src/contracts.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACjH,0EAA0E;AAC1E,MAAM,WAAW,8BAA8B;IAAG,EAAE,EAAC,MAAM,CAAC;IAAC,WAAW,EAAC,MAAM,CAAC;IAAC,OAAO,EAAC,MAAM,CAAC;IAAC,MAAM,EAAC,uBAAuB,CAAC;IAAC,YAAY,EAAC,MAAM,CAAC;CAAE;AACvJ,MAAM,MAAM,sCAAsC,GAAG,cAAc,CAAC,8BAA8B,CAAC,CAAC;AACpG,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;AACzD,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAC5E,8FAA8F;AAC9F,MAAM,WAAW,wBAAwB;IAAG,OAAO,EAAC,MAAM,CAAC;IAAC,QAAQ,EAAC,MAAM,CAAC;IAAC,SAAS,EAAC,MAAM,CAAC;IAAC,kBAAkB,EAAC,EAAE,CAAC;CAAE;AACvH,MAAM,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