@jive-sh/server-client 0.4.0 → 0.5.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.
@@ -65,12 +65,21 @@ export declare const api: {
65
65
  provision: FunctionReference<
66
66
  "action",
67
67
  "public",
68
- { packageName: string; registry: "npm" },
68
+ { packageName: string; registry: "npm"; sessionToken: string },
69
69
  | { status: "ready" }
70
70
  | { status: "inProgress" }
71
71
  | { reason: string; status: "refused" }
72
72
  >;
73
73
  };
74
+ pipelineSessions: {
75
+ signIn: FunctionReference<
76
+ "action",
77
+ "public",
78
+ {},
79
+ | { expiresAt: number; sessionToken: string; status: "signedIn" }
80
+ | { reason: string; status: "refused" }
81
+ >;
82
+ };
74
83
  sessions: {
75
84
  signOut: FunctionReference<
76
85
  "mutation",
@@ -244,12 +253,6 @@ export declare const internal: {
244
253
  { holder: string; packageName: string },
245
254
  null | string
246
255
  >;
247
- codeRepositoryByGithubIds: FunctionReference<
248
- "query",
249
- "internal",
250
- { repositoryId: string; repositoryOwnerId: string },
251
- null | { id: string; organizationId: string }
252
- >;
253
256
  packageByName: FunctionReference<
254
257
  "query",
255
258
  "internal",
@@ -276,6 +279,41 @@ export declare const internal: {
276
279
  null
277
280
  >;
278
281
  };
282
+ pipelineSessions: {
283
+ deleteSession: FunctionReference<
284
+ "mutation",
285
+ "internal",
286
+ { id: Id<"pipelineSessions"> },
287
+ null
288
+ >;
289
+ open: FunctionReference<
290
+ "mutation",
291
+ "internal",
292
+ {
293
+ caller: {
294
+ environment: string;
295
+ repository: { name: string; owner: string };
296
+ repositoryId: string;
297
+ repositoryOwnerId: string;
298
+ workflowFile: string;
299
+ };
300
+ tokenHash: string;
301
+ },
302
+ null | { expiresAt: number }
303
+ >;
304
+ pipeline: FunctionReference<
305
+ "query",
306
+ "internal",
307
+ { sessionToken: string },
308
+ null | {
309
+ codeRepositoryId: Id<"codeRepositories">;
310
+ environment: string;
311
+ organizationId: Id<"organizations">;
312
+ repository: { name: string; owner: string };
313
+ workflowFile: string;
314
+ }
315
+ >;
316
+ };
279
317
  seed: {
280
318
  accountWithPasskey: FunctionReference<
281
319
  "mutation",
@@ -187,6 +187,38 @@ export type DataModel = {
187
187
  searchIndexes: {};
188
188
  vectorIndexes: {};
189
189
  };
190
+ pipelineSessions: {
191
+ document: {
192
+ codeRepositoryId: Id<"codeRepositories">;
193
+ createdAt: number;
194
+ environment: string;
195
+ expiresAt: number;
196
+ repository: { name: string; owner: string };
197
+ tokenHash: string;
198
+ workflowFile: string;
199
+ _id: Id<"pipelineSessions">;
200
+ _creationTime: number;
201
+ };
202
+ fieldPaths:
203
+ | "_creationTime"
204
+ | "_id"
205
+ | "codeRepositoryId"
206
+ | "createdAt"
207
+ | "environment"
208
+ | "expiresAt"
209
+ | "repository"
210
+ | "repository.name"
211
+ | "repository.owner"
212
+ | "tokenHash"
213
+ | "workflowFile";
214
+ indexes: {
215
+ by_id: ["_id"];
216
+ by_creation_time: ["_creationTime"];
217
+ by_token_hash: ["tokenHash", "_creationTime"];
218
+ };
219
+ searchIndexes: {};
220
+ vectorIndexes: {};
221
+ };
190
222
  provisioningClaims: {
191
223
  document: {
192
224
  expiresAt: number;
package/index.js CHANGED
@@ -4,4 +4,4 @@ export const convexUrl = "https://adventurous-viper-740.convex.cloud";
4
4
  /** Where this environment's HTTP actions are served. */
5
5
  export const convexSiteUrl = "https://adventurous-viper-740.convex.site";
6
6
  /** Which deploy these functions came from. */
7
- export const deployment = {"environment":"latest","sourceCommitSha":"52617a321d77c406e238e6066b8794b4150a193b","version":"0.4.0"};
7
+ export const deployment = {"environment":"latest","sourceCommitSha":"682470336bc8f72ebcc191dd51dae22b02e91e65","version":"0.5.0"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jive-sh/server-client",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "license": "MIT",
5
5
  "description": "Jive's central server: the Convex backend that holds accounts, passkeys and sessions, organizations, code repositories, connections and packages; people sign in with jive.sh passkeys, programs through sign-in requests, and pipelines provision packages with their GitHub Actions ID token.",
6
6
  "type": "module",