@dork-labs/cloud-api 0.76.0 → 0.82.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 +51 -1
- package/dist/billing.d.ts +26 -2
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +37 -0
- package/dist/billing.js.map +1 -1
- package/dist/communities.d.ts +706 -0
- package/dist/communities.d.ts.map +1 -0
- package/dist/communities.js +578 -0
- package/dist/communities.js.map +1 -0
- package/dist/connections.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/primitives.d.ts +49 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +63 -0
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +15 -0
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +22 -1
- package/dist/problem.js.map +1 -1
- package/dist/remote.d.ts +2 -2
- package/dist/routes.d.ts +43 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +65 -0
- package/dist/routes.js.map +1 -1
- package/dist/seats.d.ts +5 -5
- package/fixtures/v1/billing/entitlements-communities.json +40 -0
- package/fixtures/v1/communities/claim-link.json +5 -0
- package/fixtures/v1/communities/keep-request.json +3 -0
- package/fixtures/v1/communities/keep.json +34 -0
- package/fixtures/v1/communities/list.json +161 -0
- package/fixtures/v1/communities/move-cancelled.json +11 -0
- package/fixtures/v1/communities/move-claimed.json +19 -0
- package/fixtures/v1/communities/move-failed.json +11 -0
- package/fixtures/v1/communities/move-importing.json +19 -0
- package/fixtures/v1/communities/move-ready.json +19 -0
- package/fixtures/v1/communities/move-start-request.json +7 -0
- package/fixtures/v1/communities/move-start.json +20 -0
- package/fixtures/v1/communities/moves.json +35 -0
- package/fixtures/v1/communities/name-check-free.json +5 -0
- package/fixtures/v1/communities/name-check-taken.json +5 -0
- package/fixtures/v1/communities/restore.json +31 -0
- package/fixtures/v1/communities/start-replay.json +31 -0
- package/fixtures/v1/communities/start-request.json +5 -0
- package/fixtures/v1/communities/start.json +35 -0
- package/fixtures/v1/index.json +24 -1
- package/fixtures/v1/problem/community-name-reserved.json +5 -0
- package/fixtures/v1/problem/community-name-taken.json +5 -0
- package/fixtures/v1/problem/entitlement-required-action.json +8 -0
- package/fixtures/v1/problem/import-too-large.json +6 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ body is neither.
|
|
|
46
46
|
| Inference | `POST /v1/inference/tokens`, `GET /v1/inference/models`, token revocation |
|
|
47
47
|
| Seats, orgs and addresses | organizations, membership, invitations, agents and claims, seats, addresses, grants, add-ons, the seat inbox, presence, the seat activity event |
|
|
48
48
|
| Remote access | status, open/close, wake tokens, enrolment, canonical and custom addresses, designation, instance credentials, the command stream and its acknowledgement, event batches |
|
|
49
|
+
| Hosted communities | `GET`/`POST /v1/communities`, the short-name check, a fresh owner-claim link, keep (with a preview of what it holds) and restore, and moves: start, list, poll, cancel |
|
|
49
50
|
| Shared | the `Problem` envelope, bearer auth, cursor pagination, the `X-DorkOS-Wire: 1` header |
|
|
50
51
|
|
|
51
52
|
### What is deliberately not in it
|
|
@@ -118,10 +119,59 @@ There is no compile-time exhaustiveness over subscriptions here, deliberately.
|
|
|
118
119
|
|
|
119
120
|
Enums that are fine, because they describe mechanism rather than catalog: the `Problem` codes,
|
|
120
121
|
the remote `mode` and `state`, `remoteAccess`, `customAddress`, `support`, `costBasis`, the
|
|
121
|
-
`supports` booleans, `groupBy`, the refusal reasons,
|
|
122
|
+
`supports` booleans, `groupBy`, the refusal reasons, the RFC 8628 error set, and a hosted
|
|
123
|
+
community's lifecycle, hold reason and move stages. Each one is
|
|
122
124
|
listed by name with its reason in `src/__tests__/catalog-blindness.test.ts`, and a new exported
|
|
123
125
|
enum fails that test until somebody writes down why it is mechanism.
|
|
124
126
|
|
|
127
|
+
### A refusal names the way out
|
|
128
|
+
|
|
129
|
+
A refusal a larger allowance would lift is `entitlement_required`, whatever the allowance is: a
|
|
130
|
+
count of communities, members or storage, or anything added later. The service writes the
|
|
131
|
+
`title` and `detail`, and may add an `actionUrl` (with an `actionLabel`) for the page where a
|
|
132
|
+
person can act on it. The app renders those as given and opens the URL; it never knows what the
|
|
133
|
+
person bought or what would change it. Limits reach the app as numbers
|
|
134
|
+
(`limits.communities`, `used.communities`, and each hosted community's `limits` and `usage`),
|
|
135
|
+
so it can say "this community is full" without naming a plan.
|
|
136
|
+
|
|
137
|
+
### Hosted communities
|
|
138
|
+
|
|
139
|
+
The service starts a community on a Community server and hands ownership to a person through
|
|
140
|
+
that server's single-use owner claim; it never owns one itself.
|
|
141
|
+
|
|
142
|
+
- **Two credentials, each returned once.** The claim link and a move's upload token appear only
|
|
143
|
+
in the answer that created them (a start, a move start, or `claim-link`), never in a list or
|
|
144
|
+
a poll. Both carry the `ONE_TIME_CREDENTIAL_META` marker, which
|
|
145
|
+
reaches the JSON Schema too, and `src/__tests__/communities.test.ts` pins exactly where they
|
|
146
|
+
may appear. A lost claim link is replaced by `claim-link`, which revokes the last; a lost
|
|
147
|
+
upload token by cancelling the move and starting a new one.
|
|
148
|
+
- **Relay the parsed value, never the raw body.** Objects here are not strict, so a field the
|
|
149
|
+
schema does not define is dropped by `parse`. A server that relays these answers to a browser
|
|
150
|
+
(the DorkOS server does) must serialize what it parsed, so a credential a service leaks into
|
|
151
|
+
the wrong shape stops there.
|
|
152
|
+
- **Links are checked by scheme.** A link the service sends a person to (`actionUrl`) is
|
|
153
|
+
`https:` only (`HttpsUrlSchema`). A link to a Community server (`communityUrl`, `claimUrl`,
|
|
154
|
+
an upload `url`) is `https:`, or `http:` to a loopback address for local use
|
|
155
|
+
(`ServerUrlSchema`). Both rules are
|
|
156
|
+
also a `pattern` in the JSON Schema. A malformed `actionUrl` or `actionLabel` is dropped
|
|
157
|
+
rather than failing the whole refusal.
|
|
158
|
+
- **Retries are safe.** A start or a move takes an idempotency key, scoped to the caller. A
|
|
159
|
+
repeat answers `replayed: true` and without the credential.
|
|
160
|
+
- **The upload goes straight to the Community server**, so the file never passes through the
|
|
161
|
+
service. A mismatched or broken upload leaves the move waiting and the token usable until the
|
|
162
|
+
window closes. A closed window fails the move with `upload_expired`; a failed or cancelled
|
|
163
|
+
move frees its short name at once, so starting again with the same name works.
|
|
164
|
+
- **New states do not break a page.** A hosted community's `state` and hold `reason`, and a
|
|
165
|
+
move's `state` and `failureCode`, are tolerant (`tolerantEnum`): a value added in a later
|
|
166
|
+
release reads as `unrecognised`, and every other item in the list still parses. Render it
|
|
167
|
+
generically. The known members stay published as their own enums.
|
|
168
|
+
- **Generate JSON Schema with `{ io: 'input' }`.** `tolerantEnum` maps an unknown value with a
|
|
169
|
+
transform, and Zod cannot express a transform's output in JSON Schema. Call
|
|
170
|
+
`z.toJSONSchema(schema, { io: 'input' })` (or pass `unrepresentable: 'any'`) for the
|
|
171
|
+
communities shapes, or the conversion throws.
|
|
172
|
+
|
|
173
|
+
Every link to a community is a runtime value.
|
|
174
|
+
|
|
125
175
|
### Money is never a number
|
|
126
176
|
|
|
127
177
|
Every amount is an **integer count of micro-units carried as a string** (`MicroAmountSchema`). A
|
package/dist/billing.d.ts
CHANGED
|
@@ -36,6 +36,19 @@ export declare const EntitlementSeatsSchema: z.ZodObject<{
|
|
|
36
36
|
agent: z.ZodNumber;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
+
/**
|
|
40
|
+
* The hosted-community block of the entitlement.
|
|
41
|
+
*
|
|
42
|
+
* Numbers, so the app can say how many more communities a person can start, or
|
|
43
|
+
* grey out Start, without ever knowing what they bought. A null limit means
|
|
44
|
+
* there is no fixed number: the count is not capped, or a community draws on
|
|
45
|
+
* the account's shared storage rather than an allowance of its own.
|
|
46
|
+
*/
|
|
47
|
+
export declare const EntitlementCommunityLimitsSchema: z.ZodObject<{
|
|
48
|
+
maxCommunities: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
maxMembersPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
maxStorageBytesPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strip>;
|
|
39
52
|
/** The measurable limits of the caller`s entitlement. */
|
|
40
53
|
export declare const EntitlementLimitsSchema: z.ZodObject<{
|
|
41
54
|
personSeatsIncluded: z.ZodNumber;
|
|
@@ -60,6 +73,11 @@ export declare const EntitlementLimitsSchema: z.ZodObject<{
|
|
|
60
73
|
priority: "priority";
|
|
61
74
|
}>;
|
|
62
75
|
emailAddressPerSeat: z.ZodBoolean;
|
|
76
|
+
communities: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
maxCommunities: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
maxMembersPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
maxStorageBytesPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
63
81
|
}, z.core.$strip>;
|
|
64
82
|
/**
|
|
65
83
|
* `GET /v1/entitlements` — what the caller is allowed to do.
|
|
@@ -99,10 +117,16 @@ export declare const EntitlementsSchema: z.ZodObject<{
|
|
|
99
117
|
priority: "priority";
|
|
100
118
|
}>;
|
|
101
119
|
emailAddressPerSeat: z.ZodBoolean;
|
|
120
|
+
communities: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
maxCommunities: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
maxMembersPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
123
|
+
maxStorageBytesPerCommunity: z.ZodNullable<z.ZodNumber>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
102
125
|
}, z.core.$strip>;
|
|
103
126
|
used: z.ZodObject<{
|
|
104
127
|
personSeats: z.ZodNumber;
|
|
105
128
|
agentSeats: z.ZodNumber;
|
|
129
|
+
communities: z.ZodOptional<z.ZodNumber>;
|
|
106
130
|
}, z.core.$strip>;
|
|
107
131
|
seats: z.ZodObject<{
|
|
108
132
|
total: z.ZodNumber;
|
|
@@ -168,11 +192,11 @@ export type CostBasis = z.infer<typeof CostBasisSchema>;
|
|
|
168
192
|
* balance that has run out, which a subscription vocabulary has no word for.
|
|
169
193
|
*/
|
|
170
194
|
export declare const UsageStateSchema: z.ZodEnum<{
|
|
195
|
+
unknown: "unknown";
|
|
171
196
|
inactive: "inactive";
|
|
172
197
|
active: "active";
|
|
173
198
|
grace: "grace";
|
|
174
199
|
exhausted: "exhausted";
|
|
175
|
-
unknown: "unknown";
|
|
176
200
|
}>;
|
|
177
201
|
/** How to group a usage query. */
|
|
178
202
|
export declare const UsageGroupBySchema: z.ZodEnum<{
|
|
@@ -225,11 +249,11 @@ export declare const UsageResponseSchema: z.ZodObject<{
|
|
|
225
249
|
day: "day";
|
|
226
250
|
}>;
|
|
227
251
|
state: z.ZodEnum<{
|
|
252
|
+
unknown: "unknown";
|
|
228
253
|
inactive: "inactive";
|
|
229
254
|
active: "active";
|
|
230
255
|
grace: "grace";
|
|
231
256
|
exhausted: "exhausted";
|
|
232
|
-
unknown: "unknown";
|
|
233
257
|
}>;
|
|
234
258
|
rows: z.ZodArray<z.ZodObject<{
|
|
235
259
|
key: z.ZodString;
|
package/dist/billing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;;;;EAItC,CAAC;AAEJ,8FAA8F;AAC9F,eAAO,MAAM,6BAA6B;;;;EAIvC,CAAC;AAEJ,gDAAgD;AAChD,eAAO,MAAM,uBAAuB;;;EAEoB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;iBASmC,CAAC;AAEvE,yDAAyD;AACzD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"billing.d.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,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/billing.js
CHANGED
|
@@ -34,6 +34,36 @@ export const EntitlementSeatsSchema = z
|
|
|
34
34
|
}),
|
|
35
35
|
})
|
|
36
36
|
.describe('Seat counts for the caller`s organization. Counts only.');
|
|
37
|
+
/**
|
|
38
|
+
* The hosted-community block of the entitlement.
|
|
39
|
+
*
|
|
40
|
+
* Numbers, so the app can say how many more communities a person can start, or
|
|
41
|
+
* grey out Start, without ever knowing what they bought. A null limit means
|
|
42
|
+
* there is no fixed number: the count is not capped, or a community draws on
|
|
43
|
+
* the account's shared storage rather than an allowance of its own.
|
|
44
|
+
*/
|
|
45
|
+
export const EntitlementCommunityLimitsSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
maxCommunities: z
|
|
48
|
+
.number()
|
|
49
|
+
.int()
|
|
50
|
+
.nonnegative()
|
|
51
|
+
.nullable()
|
|
52
|
+
.describe('How many hosted communities the account may keep open. Null means no fixed count.'),
|
|
53
|
+
maxMembersPerCommunity: z
|
|
54
|
+
.number()
|
|
55
|
+
.int()
|
|
56
|
+
.positive()
|
|
57
|
+
.nullable()
|
|
58
|
+
.describe('The most active members one hosted community may have. Null means no limit.'),
|
|
59
|
+
maxStorageBytesPerCommunity: z
|
|
60
|
+
.number()
|
|
61
|
+
.int()
|
|
62
|
+
.nonnegative()
|
|
63
|
+
.nullable()
|
|
64
|
+
.describe('The most bytes of files one hosted community may store. Null means communities draw on the account`s shared storage instead.'),
|
|
65
|
+
})
|
|
66
|
+
.describe('The limits on the caller`s hosted communities. Counts and sizes only.');
|
|
37
67
|
/** The measurable limits of the caller`s entitlement. */
|
|
38
68
|
export const EntitlementLimitsSchema = z
|
|
39
69
|
.object({
|
|
@@ -53,6 +83,7 @@ export const EntitlementLimitsSchema = z
|
|
|
53
83
|
.describe('Null means the allowance is counted per seat rather than for the organization as a whole.'),
|
|
54
84
|
support: SupportCapabilitySchema,
|
|
55
85
|
emailAddressPerSeat: z.boolean(),
|
|
86
|
+
communities: EntitlementCommunityLimitsSchema.optional().describe('The limits on hosted communities. Absent means the service did not say.'),
|
|
56
87
|
})
|
|
57
88
|
.describe('The measurable limits of the caller`s entitlement. Interface behaviour is driven by these values, never by the plan identifier.');
|
|
58
89
|
/**
|
|
@@ -75,6 +106,12 @@ export const EntitlementsSchema = z
|
|
|
75
106
|
used: z.object({
|
|
76
107
|
personSeats: z.number().int().nonnegative(),
|
|
77
108
|
agentSeats: z.number().int().nonnegative(),
|
|
109
|
+
communities: z
|
|
110
|
+
.number()
|
|
111
|
+
.int()
|
|
112
|
+
.nonnegative()
|
|
113
|
+
.optional()
|
|
114
|
+
.describe('How many hosted communities count against `limits.communities.maxCommunities`. Absent means the service did not say.'),
|
|
78
115
|
}),
|
|
79
116
|
seats: EntitlementSeatsSchema,
|
|
80
117
|
canCreateSeat: z.boolean(),
|
package/dist/billing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,IAAI,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,kBAAkB,CAAC,CAAC;KAC9C,QAAQ,CACP,2FAA2F,CAC5F,CAAC;AAEJ,8FAA8F;AAC9F,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;KACnC,QAAQ,CACP,uFAAuF,CACxF,CAAC;AAEJ,gDAAgD;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,IAAI,CAAC,CAAC,WAAW,EAA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