@repome/api 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -551,6 +551,7 @@ declare const invitationViewSchema: z.ZodObject<{
551
551
  }, z.core.$strip>;
552
552
  type MemberRole = z.output<typeof memberRoleSchema>;
553
553
  type MemberView = z.output<typeof memberViewSchema>;
554
+ type InvitationView = z.output<typeof invitationViewSchema>;
554
555
  //#endregion
555
556
  //#region src/orgs.d.ts
556
557
  declare const orgSlugHint = "Lowercase, alphanumeric, - only.";
@@ -7765,6 +7766,151 @@ declare const contract: {
7765
7766
  }, _$zod_v4_core0.$strip>;
7766
7767
  };
7767
7768
  }>, Record<never, never>>;
7769
+ cancelInvite: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7770
+ orgSlug: z.ZodString;
7771
+ invitationId: z.ZodString;
7772
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
7773
+ cancelled: z.ZodBoolean;
7774
+ }, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
7775
+ readonly BAD_REQUEST: {
7776
+ readonly status: 400;
7777
+ readonly message: "Bad request";
7778
+ readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7779
+ };
7780
+ readonly UNAUTHENTICATED: {
7781
+ readonly status: 401;
7782
+ readonly message: "Sign in required";
7783
+ readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7784
+ };
7785
+ readonly FORBIDDEN: {
7786
+ readonly status: 403;
7787
+ readonly message: "You do not have access to this resource";
7788
+ readonly data: z.ZodOptional<z.ZodObject<{
7789
+ reason: z.ZodOptional<z.ZodEnum<{
7790
+ not_a_member: "not_a_member";
7791
+ insufficient_role: "insufficient_role";
7792
+ scope_missing: "scope_missing";
7793
+ }>>;
7794
+ }, _$zod_v4_core0.$strip>>;
7795
+ };
7796
+ readonly INVITATION_NOT_FOUND: {
7797
+ readonly status: 404;
7798
+ readonly message: "Invitation not found";
7799
+ readonly data: z.ZodObject<{
7800
+ invitationId: z.ZodString;
7801
+ }, _$zod_v4_core0.$strip>;
7802
+ };
7803
+ readonly REPO_NOT_FOUND: {
7804
+ readonly status: 404;
7805
+ readonly message: "Repo not found";
7806
+ readonly data: z.ZodObject<{
7807
+ name: z.ZodString;
7808
+ }, _$zod_v4_core0.$strip>;
7809
+ };
7810
+ readonly GIT_OBJECT_NOT_FOUND: {
7811
+ readonly status: 404;
7812
+ readonly message: "Git object not found";
7813
+ readonly data: z.ZodObject<{
7814
+ name: z.ZodString;
7815
+ object: z.ZodString;
7816
+ }, _$zod_v4_core0.$strip>;
7817
+ };
7818
+ readonly REF_ALREADY_EXISTS: {
7819
+ readonly status: 409;
7820
+ readonly message: "Git ref already exists";
7821
+ readonly data: z.ZodObject<{
7822
+ name: z.ZodString;
7823
+ ref: z.ZodString;
7824
+ }, _$zod_v4_core0.$strip>;
7825
+ };
7826
+ readonly STALE_REF: {
7827
+ readonly status: 409;
7828
+ readonly message: "Git ref is stale";
7829
+ readonly data: z.ZodObject<{
7830
+ name: z.ZodString;
7831
+ ref: z.ZodString;
7832
+ }, _$zod_v4_core0.$strip>;
7833
+ };
7834
+ readonly NON_FAST_FORWARD: {
7835
+ readonly status: 422;
7836
+ readonly message: "Git ref update is not a fast-forward";
7837
+ readonly data: z.ZodObject<{
7838
+ name: z.ZodString;
7839
+ ref: z.ZodString;
7840
+ }, _$zod_v4_core0.$strip>;
7841
+ };
7842
+ readonly INVALID_TREE: {
7843
+ readonly status: 422;
7844
+ readonly message: "Invalid git tree";
7845
+ readonly data: z.ZodObject<{
7846
+ name: z.ZodString;
7847
+ object: z.ZodString;
7848
+ }, _$zod_v4_core0.$strip>;
7849
+ };
7850
+ readonly INVALID_PARENT: {
7851
+ readonly status: 422;
7852
+ readonly message: "Invalid git parent";
7853
+ readonly data: z.ZodObject<{
7854
+ name: z.ZodString;
7855
+ object: z.ZodString;
7856
+ }, _$zod_v4_core0.$strip>;
7857
+ };
7858
+ readonly INVARIANT_WORKSPACE_REQUIRED: {
7859
+ readonly status: 503;
7860
+ readonly message: "Repo workspace is required for this git operation";
7861
+ readonly data: z.ZodObject<{
7862
+ name: z.ZodString;
7863
+ }, _$zod_v4_core0.$strip>;
7864
+ };
7865
+ readonly GIT_REMOTE_WRITE_FAILED: {
7866
+ readonly status: 502;
7867
+ readonly message: "Git remote write failed";
7868
+ readonly data: z.ZodObject<{
7869
+ name: z.ZodString;
7870
+ ref: z.ZodString;
7871
+ }, _$zod_v4_core0.$strip>;
7872
+ };
7873
+ readonly REPO_ALREADY_EXISTS: {
7874
+ readonly status: 409;
7875
+ readonly message: "Repo already exists";
7876
+ readonly data: z.ZodObject<{
7877
+ name: z.ZodString;
7878
+ }, _$zod_v4_core0.$strip>;
7879
+ };
7880
+ readonly QUOTA_EXCEEDED: {
7881
+ readonly status: 429;
7882
+ readonly message: "Quota exceeded";
7883
+ readonly data: z.ZodObject<{
7884
+ scope: z.ZodEnum<{
7885
+ anon: "anon";
7886
+ org: "org";
7887
+ size: "size";
7888
+ }>;
7889
+ limit: z.ZodNumber;
7890
+ observed: z.ZodOptional<z.ZodNumber>;
7891
+ projected: z.ZodOptional<z.ZodNumber>;
7892
+ }, _$zod_v4_core0.$strip>;
7893
+ };
7894
+ readonly PAYLOAD_TOO_LARGE: {
7895
+ readonly status: 413;
7896
+ readonly message: "Request payload exceeds the supported limit";
7897
+ readonly data: z.ZodObject<{
7898
+ scope: z.ZodEnum<{
7899
+ workspace_commit: "workspace_commit";
7900
+ git_workspace_memory: "git_workspace_memory";
7901
+ }>;
7902
+ limit: z.ZodNumber;
7903
+ observed: z.ZodOptional<z.ZodNumber>;
7904
+ }, _$zod_v4_core0.$strip>;
7905
+ };
7906
+ readonly IMPORT_FAILED: {
7907
+ readonly status: 502;
7908
+ readonly message: "Repo import failed";
7909
+ readonly data: z.ZodObject<{
7910
+ name: z.ZodString;
7911
+ }, _$zod_v4_core0.$strip>;
7912
+ };
7913
+ }>, Record<never, never>>;
7768
7914
  setActive: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7769
7915
  orgSlug: z.ZodString;
7770
7916
  }, _$zod_v4_core0.$strip>, z.ZodObject<{
@@ -9808,4 +9954,4 @@ declare const contract: {
9808
9954
  };
9809
9955
  type Contract = typeof contract;
9810
9956
  //#endregion
9811
- export { ANON_ID_STORE_VERSION, type AnonIdRecord, type AnonRepoCreateInput, type AnonRepoCreateOutput, type AnonRepoListInput, type AnonRepoListOutput, type AnonRepoView, type AnonTokenMintForGitRemoteInput, type ApiKeyCreateInput, type ApiKeyCreateOutput, type ApiKeyDeleteInput, type ApiKeyDeleteOutput, type ApiKeyListOutput, type ApiKeyView, type CommonErrorMap, type CompareView, Contract, type DiffFile, type DiffView, type GitBlob, type GitCommit, type GitRef, type GitTreeEntry, type MeView, type MemberRole, type MemberView, type OrgCreateInput, type OrgListOutput, type OrgView, type RepoCreateInput, type RepoCreateOutput, type RepoDeleteOutput, type RepoEnsureInput, type RepoEnsureOutput, type RepoImportInput, type RepoListInput, type RepoListOutput, type RepoUpdateInput, type RepoView, type Scope, type Signature, type TokenListInput, type TokenListOutput, type TokenMintForGitRemoteInput, type TokenMintInput, type TokenMintOutput, type TokenRevokeInput, type TokenRevokeOutput, type TokenValidateInput, type TokenValidateOutput, type TokenView, anonRepoSchema, apiKeyViewSchema, commonErrors, compareViewSchema, contract, diffFileSchema, diffViewSchema, gitBlobSchema, gitCommitSchema, gitRefSchema, gitTreeEntrySchema, invitationViewSchema, meViewSchema, memberRoleSchema, memberViewSchema, mutableMemberRoleSchema, orgSlugHint, orgSlugSchema, orgViewSchema, parseAnonIdFile, parseRepoName, repoNameHint, repoNameSchema, repoSchema, scopeSchema, serializeAnonIdRecord, tokenScopeSchema, tokenViewSchema };
9957
+ export { ANON_ID_STORE_VERSION, type AnonIdRecord, type AnonRepoCreateInput, type AnonRepoCreateOutput, type AnonRepoListInput, type AnonRepoListOutput, type AnonRepoView, type AnonTokenMintForGitRemoteInput, type ApiKeyCreateInput, type ApiKeyCreateOutput, type ApiKeyDeleteInput, type ApiKeyDeleteOutput, type ApiKeyListOutput, type ApiKeyView, type CommonErrorMap, type CompareView, Contract, type DiffFile, type DiffView, type GitBlob, type GitCommit, type GitRef, type GitTreeEntry, type InvitationView, type MeView, type MemberRole, type MemberView, type OrgCreateInput, type OrgListOutput, type OrgView, type RepoCreateInput, type RepoCreateOutput, type RepoDeleteOutput, type RepoEnsureInput, type RepoEnsureOutput, type RepoImportInput, type RepoListInput, type RepoListOutput, type RepoUpdateInput, type RepoView, type Scope, type Signature, type TokenListInput, type TokenListOutput, type TokenMintForGitRemoteInput, type TokenMintInput, type TokenMintOutput, type TokenRevokeInput, type TokenRevokeOutput, type TokenValidateInput, type TokenValidateOutput, type TokenView, anonRepoSchema, apiKeyViewSchema, commonErrors, compareViewSchema, contract, diffFileSchema, diffViewSchema, gitBlobSchema, gitCommitSchema, gitRefSchema, gitTreeEntrySchema, invitationViewSchema, meViewSchema, memberRoleSchema, memberViewSchema, mutableMemberRoleSchema, orgSlugHint, orgSlugSchema, orgViewSchema, parseAnonIdFile, parseRepoName, repoNameHint, repoNameSchema, repoSchema, scopeSchema, serializeAnonIdRecord, tokenScopeSchema, tokenViewSchema };
package/dist/index.mjs CHANGED
@@ -671,6 +671,7 @@ const members = {
671
671
  role: mutableMemberRoleSchema
672
672
  })).output(memberViewSchema),
673
673
  acceptInvite: ocBase.input(z.object({ invitationId: z.string().min(1) })).output(z.object({ accepted: z.boolean() })),
674
+ cancelInvite: ocBase.input(orgInputSchema.extend({ invitationId: z.string().min(1) })).output(z.object({ cancelled: z.boolean() })),
674
675
  setActive: ocBase.input(orgInputSchema).output(z.object({ activeOrganizationId: z.string() }))
675
676
  };
676
677
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repome/api",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Agent-native, GitHub-shaped forge — shared oRPC contract (zod schemas + procedure shapes).",
5
5
  "keywords": [
6
6
  "agent",