@automate.ax/api-contract 0.24.0 → 0.24.1

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.
@@ -112,7 +112,11 @@ export declare const authorizationContract: {
112
112
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
113
113
  callback: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
114
114
  serviceId: z.ZodString;
115
- }, z.core.$strip>, z.ZodString, Record<never, never>, Record<never, never>>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ headers: z.ZodObject<{
117
+ location: z.ZodURL;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
116
120
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
117
121
  deploymentId: z.ZodString;
118
122
  }, z.core.$strip>, z.ZodObject<{
@@ -69,10 +69,15 @@ export const authorizationContract = {
69
69
  operationId: "completeIntegrationAuthorization",
70
70
  summary: "Complete integration authorization",
71
71
  description: "Completes a redirect-based integration authorization flow.",
72
+ outputStructure: "detailed",
73
+ successStatus: 302,
74
+ successDescription: "Integration authorization completed.",
72
75
  tags: ["Integrations"],
73
76
  })
74
77
  .input(z.object({ serviceId: z.string().min(1) }))
75
- .output(z.string()),
78
+ .output(z.object({
79
+ headers: z.object({ location: z.url() }),
80
+ })),
76
81
  get: oc
77
82
  .input(z.object({
78
83
  deploymentId: z.string(),
package/dist/index.d.ts CHANGED
@@ -691,7 +691,11 @@ export declare const contract: {
691
691
  authorization: {
692
692
  callback: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
693
693
  serviceId: import("zod").ZodString;
694
- }, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
694
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
695
+ headers: import("zod").ZodObject<{
696
+ location: import("zod").ZodURL;
697
+ }, import("zod/v4/core").$strip>;
698
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
695
699
  beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
696
700
  binding: import("zod").ZodString;
697
701
  connectionId: import("zod").ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
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.24.0",
29
+ "@automate.ax/codec": "0.24.1",
30
30
  "@orpc/contract": "1.13.14",
31
31
  "zod": "^4.3.6"
32
32
  },
@@ -95,10 +95,17 @@ export const authorizationContract = {
95
95
  operationId: "completeIntegrationAuthorization",
96
96
  summary: "Complete integration authorization",
97
97
  description: "Completes a redirect-based integration authorization flow.",
98
+ outputStructure: "detailed",
99
+ successStatus: 302,
100
+ successDescription: "Integration authorization completed.",
98
101
  tags: ["Integrations"],
99
102
  })
100
103
  .input(z.object({ serviceId: z.string().min(1) }))
101
- .output(z.string()),
104
+ .output(
105
+ z.object({
106
+ headers: z.object({ location: z.url() }),
107
+ }),
108
+ ),
102
109
  get: oc
103
110
  .input(
104
111
  z.object({