@automate.ax/api-contract 0.21.0 → 0.22.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/dist/auth.d.ts CHANGED
@@ -18,7 +18,4 @@ export declare const authContract: {
18
18
  createdAt: z.ZodDate;
19
19
  updatedAt: z.ZodDate;
20
20
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
21
- linkDeviceSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
22
- newAccessToken: z.ZodString;
23
- }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
24
21
  };
package/dist/auth.js CHANGED
@@ -20,16 +20,4 @@ export const authContract = {
20
20
  tags: ["Session"],
21
21
  })
22
22
  .output(userOutputSchema),
23
- linkDeviceSession: oc
24
- .route({
25
- method: "POST",
26
- path: "/me/session/link-device",
27
- operationId: "linkDeviceSession",
28
- summary: "Link device session",
29
- description: "Migrates anonymous-session data into authenticated user context.",
30
- tags: ["Session"],
31
- successStatus: 204,
32
- })
33
- .input(z.object({ newAccessToken: z.string() }))
34
- .output(z.void()),
35
23
  };
package/dist/index.d.ts CHANGED
@@ -634,9 +634,6 @@ export declare const firstPartyContract: {
634
634
  }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
635
635
  };
636
636
  session: {
637
- linkDeviceSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
638
- newAccessToken: import("zod").ZodString;
639
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
640
637
  me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
641
638
  id: import("zod").ZodString;
642
639
  name: import("zod").ZodString;
@@ -1247,9 +1244,6 @@ export declare const contract: {
1247
1244
  }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
1248
1245
  };
1249
1246
  session: {
1250
- linkDeviceSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1251
- newAccessToken: import("zod").ZodString;
1252
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
1253
1247
  me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
1254
1248
  id: import("zod").ZodString;
1255
1249
  name: import("zod").ZodString;
package/dist/index.js CHANGED
@@ -60,7 +60,6 @@ export const firstPartyContract = {
60
60
  },
61
61
  session: {
62
62
  ...publicContract.session,
63
- linkDeviceSession: authContract.linkDeviceSession,
64
63
  },
65
64
  };
66
65
  /** Complete contract implemented by the API service. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@automate.ax/codec": "0.21.0",
29
+ "@automate.ax/codec": "0.22.0",
30
30
  "@orpc/contract": "1.13.14",
31
31
  "zod": "^4.3.6"
32
32
  },
package/src/auth.ts CHANGED
@@ -23,17 +23,4 @@ export const authContract = {
23
23
  tags: ["Session"],
24
24
  })
25
25
  .output(userOutputSchema),
26
- linkDeviceSession: oc
27
- .route({
28
- method: "POST",
29
- path: "/me/session/link-device",
30
- operationId: "linkDeviceSession",
31
- summary: "Link device session",
32
- description:
33
- "Migrates anonymous-session data into authenticated user context.",
34
- tags: ["Session"],
35
- successStatus: 204,
36
- })
37
- .input(z.object({ newAccessToken: z.string() }))
38
- .output(z.void()),
39
26
  }
package/src/index.ts CHANGED
@@ -85,7 +85,6 @@ export const firstPartyContract = {
85
85
  },
86
86
  session: {
87
87
  ...publicContract.session,
88
- linkDeviceSession: authContract.linkDeviceSession,
89
88
  },
90
89
  }
91
90