11/**
22 * Parameters for calling a custom integration endpoint.
3- *
4- * Supports both camelCase and snake_case parameter names for developer convenience.
5- * The SDK will normalize to snake_case before sending to the API.
63 */
74export interface CustomIntegrationCallParams {
85 /**
@@ -12,25 +9,11 @@ export interface CustomIntegrationCallParams {
129
1310 /**
1411 * Path parameters to substitute in the URL (e.g., `{ owner: "user", repo: "repo" }`).
15- * Can use either `pathParams` (camelCase) or `path_params` (snake_case).
16- */
17- pathParams ?: Record < string , string > ;
18-
19- /**
20- * Path parameters to substitute in the URL (snake_case variant).
21- * @see {@link pathParams }
2212 */
2313 path_params ?: Record < string , string > ;
2414
2515 /**
2616 * Query string parameters to append to the URL.
27- * Can use either `queryParams` (camelCase) or `query_params` (snake_case).
28- */
29- queryParams ?: Record < string , any > ;
30-
31- /**
32- * Query string parameters (snake_case variant).
33- * @see {@link queryParams }
3417 */
3518 query_params ?: Record < string , any > ;
3619
@@ -81,8 +64,8 @@ export interface CustomIntegrationCallResponse {
8164 * "github", // integration slug (defined by workspace admin)
8265 * "listIssues", // operation ID from the OpenAPI spec
8366 * {
84- * pathParams : { owner: "myorg", repo: "myrepo" },
85- * queryParams : { state: "open", per_page: 100 }
67+ * path_params : { owner: "myorg", repo: "myrepo" },
68+ * query_params : { state: "open", per_page: 100 }
8669 * }
8770 * );
8871 *
@@ -100,7 +83,7 @@ export interface CustomIntegrationCallResponse {
10083 * "github",
10184 * "createIssue",
10285 * {
103- * pathParams : { owner: "myorg", repo: "myrepo" },
86+ * path_params : { owner: "myorg", repo: "myrepo" },
10487 * payload: {
10588 * title: "Bug report",
10689 * body: "Something is broken",
@@ -131,4 +114,3 @@ export interface CustomIntegrationsModule {
131114 params ?: CustomIntegrationCallParams
132115 ) : Promise < CustomIntegrationCallResponse > ;
133116}
134-
0 commit comments