@unified-api/typescript-sdk 2.74.2 → 2.74.4
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/README.md +2 -0
- package/docs/sdks/issue/README.md +78 -0
- package/docs/sdks/unified/README.md +78 -0
- package/examples/package-lock.json +1 -1
- package/funcs/unifiedGetUnifiedIssue.d.ts +15 -0
- package/funcs/unifiedGetUnifiedIssue.d.ts.map +1 -0
- package/funcs/unifiedGetUnifiedIssue.js +116 -0
- package/funcs/unifiedGetUnifiedIssue.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/issue.d.ts +4 -0
- package/sdk/issue.d.ts.map +1 -1
- package/sdk/issue.js +7 -0
- package/sdk/issue.js.map +1 -1
- package/sdk/models/operations/getunifiedissue.d.ts +32 -0
- package/sdk/models/operations/getunifiedissue.d.ts.map +1 -0
- package/sdk/models/operations/getunifiedissue.js +69 -0
- package/sdk/models/operations/getunifiedissue.js.map +1 -0
- package/sdk/models/operations/index.d.ts +1 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +1 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/shared/integration.d.ts +73 -0
- package/sdk/models/shared/integration.d.ts.map +1 -1
- package/sdk/models/shared/integration.js +127 -1
- package/sdk/models/shared/integration.js.map +1 -1
- package/sdk/unified.d.ts +4 -0
- package/sdk/unified.d.ts.map +1 -1
- package/sdk/unified.js +7 -0
- package/sdk/unified.js.map +1 -1
- package/src/funcs/unifiedGetUnifiedIssue.ts +163 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/issue.ts +15 -0
- package/src/sdk/models/operations/getunifiedissue.ts +69 -0
- package/src/sdk/models/operations/index.ts +1 -0
- package/src/sdk/models/shared/integration.ts +236 -0
- package/src/sdk/unified.ts +15 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
22
|
+
import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
|
|
23
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
24
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
26
|
+
import { Result } from "../sdk/types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve support issue
|
|
30
|
+
*/
|
|
31
|
+
export function unifiedGetUnifiedIssue(
|
|
32
|
+
client: UnifiedToCore,
|
|
33
|
+
request: operations.GetUnifiedIssueRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
shared.Issue,
|
|
38
|
+
| UnifiedToError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: UnifiedToCore,
|
|
57
|
+
request: operations.GetUnifiedIssueRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
shared.Issue,
|
|
63
|
+
| UnifiedToError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) => operations.GetUnifiedIssueRequest$outboundSchema.parse(value),
|
|
78
|
+
"Input validation failed",
|
|
79
|
+
);
|
|
80
|
+
if (!parsed.ok) {
|
|
81
|
+
return [parsed, { status: "invalid" }];
|
|
82
|
+
}
|
|
83
|
+
const payload = parsed.value;
|
|
84
|
+
const body = null;
|
|
85
|
+
|
|
86
|
+
const pathParams = {
|
|
87
|
+
id: encodeSimple("id", payload.id, {
|
|
88
|
+
explode: false,
|
|
89
|
+
charEncoding: "percent",
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/unified/issue/{id}")(pathParams);
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
options: client._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
+
operationID: "getUnifiedIssue",
|
|
106
|
+
oAuth2Scopes: [],
|
|
107
|
+
|
|
108
|
+
resolvedSecurity: requestSecurity,
|
|
109
|
+
|
|
110
|
+
securitySource: client._options.security,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const requestRes = client._createRequest(context, {
|
|
118
|
+
security: requestSecurity,
|
|
119
|
+
method: "GET",
|
|
120
|
+
baseURL: options?.serverURL,
|
|
121
|
+
path: path,
|
|
122
|
+
headers: headers,
|
|
123
|
+
body: body,
|
|
124
|
+
userAgent: client._options.userAgent,
|
|
125
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
126
|
+
}, options);
|
|
127
|
+
if (!requestRes.ok) {
|
|
128
|
+
return [requestRes, { status: "invalid" }];
|
|
129
|
+
}
|
|
130
|
+
const req = requestRes.value;
|
|
131
|
+
|
|
132
|
+
const doResult = await client._do(req, {
|
|
133
|
+
context,
|
|
134
|
+
errorCodes: ["4XX", "5XX"],
|
|
135
|
+
retryConfig: context.retryConfig,
|
|
136
|
+
retryCodes: context.retryCodes,
|
|
137
|
+
});
|
|
138
|
+
if (!doResult.ok) {
|
|
139
|
+
return [doResult, { status: "request-error", request: req }];
|
|
140
|
+
}
|
|
141
|
+
const response = doResult.value;
|
|
142
|
+
|
|
143
|
+
const [result] = await M.match<
|
|
144
|
+
shared.Issue,
|
|
145
|
+
| UnifiedToError
|
|
146
|
+
| ResponseValidationError
|
|
147
|
+
| ConnectionError
|
|
148
|
+
| RequestAbortedError
|
|
149
|
+
| RequestTimeoutError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| UnexpectedClientError
|
|
152
|
+
| SDKValidationError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, shared.Issue$inboundSchema),
|
|
155
|
+
M.fail("4XX"),
|
|
156
|
+
M.fail("5XX"),
|
|
157
|
+
)(response, req);
|
|
158
|
+
if (!result.ok) {
|
|
159
|
+
return [result, { status: "complete", request: req, response }];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.74.
|
|
77
|
-
genVersion: "2.716.
|
|
76
|
+
sdkVersion: "2.74.4",
|
|
77
|
+
genVersion: "2.716.16",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.74.
|
|
79
|
+
"speakeasy-sdk/typescript 2.74.4 2.716.16 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|
package/src/sdk/issue.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { unifiedGetUnifiedIssue } from "../funcs/unifiedGetUnifiedIssue.js";
|
|
5
6
|
import { unifiedListUnifiedIssues } from "../funcs/unifiedListUnifiedIssues.js";
|
|
6
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
8
|
import * as operations from "./models/operations/index.js";
|
|
@@ -9,6 +10,20 @@ import * as shared from "./models/shared/index.js";
|
|
|
9
10
|
import { unwrapAsync } from "./types/fp.js";
|
|
10
11
|
|
|
11
12
|
export class Issue extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve support issue
|
|
15
|
+
*/
|
|
16
|
+
async getUnifiedIssue(
|
|
17
|
+
request: operations.GetUnifiedIssueRequest,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<shared.Issue> {
|
|
20
|
+
return unwrapAsync(unifiedGetUnifiedIssue(
|
|
21
|
+
this,
|
|
22
|
+
request,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
|
|
12
27
|
/**
|
|
13
28
|
* List support issues
|
|
14
29
|
*/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetUnifiedIssueRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* ID of the Issue
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetUnifiedIssueRequest$inboundSchema: z.ZodType<
|
|
19
|
+
GetUnifiedIssueRequest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
id: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type GetUnifiedIssueRequest$Outbound = {
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const GetUnifiedIssueRequest$outboundSchema: z.ZodType<
|
|
33
|
+
GetUnifiedIssueRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
GetUnifiedIssueRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
id: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace GetUnifiedIssueRequest$ {
|
|
45
|
+
/** @deprecated use `GetUnifiedIssueRequest$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = GetUnifiedIssueRequest$inboundSchema;
|
|
47
|
+
/** @deprecated use `GetUnifiedIssueRequest$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = GetUnifiedIssueRequest$outboundSchema;
|
|
49
|
+
/** @deprecated use `GetUnifiedIssueRequest$Outbound` instead. */
|
|
50
|
+
export type Outbound = GetUnifiedIssueRequest$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function getUnifiedIssueRequestToJSON(
|
|
54
|
+
getUnifiedIssueRequest: GetUnifiedIssueRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
GetUnifiedIssueRequest$outboundSchema.parse(getUnifiedIssueRequest),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function getUnifiedIssueRequestFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<GetUnifiedIssueRequest, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => GetUnifiedIssueRequest$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'GetUnifiedIssueRequest' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -169,6 +169,7 @@ export * from "./getunifiedapicall.js";
|
|
|
169
169
|
export * from "./getunifiedconnection.js";
|
|
170
170
|
export * from "./getunifiedintegrationauth.js";
|
|
171
171
|
export * from "./getunifiedintegrationlogin.js";
|
|
172
|
+
export * from "./getunifiedissue.js";
|
|
172
173
|
export * from "./getunifiedwebhook.js";
|
|
173
174
|
export * from "./getverificationpackage.js";
|
|
174
175
|
export * from "./getverificationrequest.js";
|
|
@@ -39,6 +39,21 @@ export type Partnership =
|
|
|
39
39
|
| boolean
|
|
40
40
|
| Array<IntegrationSchemas1 | string | number | boolean>;
|
|
41
41
|
|
|
42
|
+
export type IntegrationSchemasSaml1 = {};
|
|
43
|
+
|
|
44
|
+
export type IntegrationSchemasSaml5 =
|
|
45
|
+
| IntegrationSchemasSaml1
|
|
46
|
+
| string
|
|
47
|
+
| number
|
|
48
|
+
| boolean;
|
|
49
|
+
|
|
50
|
+
export type Saml =
|
|
51
|
+
| { [k: string]: any }
|
|
52
|
+
| string
|
|
53
|
+
| number
|
|
54
|
+
| boolean
|
|
55
|
+
| Array<IntegrationSchemasSaml1 | string | number | boolean>;
|
|
56
|
+
|
|
42
57
|
export type IntegrationSchemasSandbox1 = {};
|
|
43
58
|
|
|
44
59
|
export type IntegrationSchemasSandbox5 =
|
|
@@ -90,6 +105,13 @@ export type Integration = {
|
|
|
90
105
|
| undefined;
|
|
91
106
|
popularity?: number | undefined;
|
|
92
107
|
rateLimitDescription?: string | undefined;
|
|
108
|
+
saml?:
|
|
109
|
+
| { [k: string]: any }
|
|
110
|
+
| string
|
|
111
|
+
| number
|
|
112
|
+
| boolean
|
|
113
|
+
| Array<IntegrationSchemasSaml1 | string | number | boolean>
|
|
114
|
+
| undefined;
|
|
93
115
|
sandbox?:
|
|
94
116
|
| { [k: string]: any }
|
|
95
117
|
| string
|
|
@@ -470,6 +492,185 @@ export function partnershipFromJSON(
|
|
|
470
492
|
);
|
|
471
493
|
}
|
|
472
494
|
|
|
495
|
+
/** @internal */
|
|
496
|
+
export const IntegrationSchemasSaml1$inboundSchema: z.ZodType<
|
|
497
|
+
IntegrationSchemasSaml1,
|
|
498
|
+
z.ZodTypeDef,
|
|
499
|
+
unknown
|
|
500
|
+
> = z.object({});
|
|
501
|
+
|
|
502
|
+
/** @internal */
|
|
503
|
+
export type IntegrationSchemasSaml1$Outbound = {};
|
|
504
|
+
|
|
505
|
+
/** @internal */
|
|
506
|
+
export const IntegrationSchemasSaml1$outboundSchema: z.ZodType<
|
|
507
|
+
IntegrationSchemasSaml1$Outbound,
|
|
508
|
+
z.ZodTypeDef,
|
|
509
|
+
IntegrationSchemasSaml1
|
|
510
|
+
> = z.object({});
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* @internal
|
|
514
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
515
|
+
*/
|
|
516
|
+
export namespace IntegrationSchemasSaml1$ {
|
|
517
|
+
/** @deprecated use `IntegrationSchemasSaml1$inboundSchema` instead. */
|
|
518
|
+
export const inboundSchema = IntegrationSchemasSaml1$inboundSchema;
|
|
519
|
+
/** @deprecated use `IntegrationSchemasSaml1$outboundSchema` instead. */
|
|
520
|
+
export const outboundSchema = IntegrationSchemasSaml1$outboundSchema;
|
|
521
|
+
/** @deprecated use `IntegrationSchemasSaml1$Outbound` instead. */
|
|
522
|
+
export type Outbound = IntegrationSchemasSaml1$Outbound;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export function integrationSchemasSaml1ToJSON(
|
|
526
|
+
integrationSchemasSaml1: IntegrationSchemasSaml1,
|
|
527
|
+
): string {
|
|
528
|
+
return JSON.stringify(
|
|
529
|
+
IntegrationSchemasSaml1$outboundSchema.parse(integrationSchemasSaml1),
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export function integrationSchemasSaml1FromJSON(
|
|
534
|
+
jsonString: string,
|
|
535
|
+
): SafeParseResult<IntegrationSchemasSaml1, SDKValidationError> {
|
|
536
|
+
return safeParse(
|
|
537
|
+
jsonString,
|
|
538
|
+
(x) => IntegrationSchemasSaml1$inboundSchema.parse(JSON.parse(x)),
|
|
539
|
+
`Failed to parse 'IntegrationSchemasSaml1' from JSON`,
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/** @internal */
|
|
544
|
+
export const IntegrationSchemasSaml5$inboundSchema: z.ZodType<
|
|
545
|
+
IntegrationSchemasSaml5,
|
|
546
|
+
z.ZodTypeDef,
|
|
547
|
+
unknown
|
|
548
|
+
> = z.union([
|
|
549
|
+
z.lazy(() => IntegrationSchemasSaml1$inboundSchema),
|
|
550
|
+
z.string(),
|
|
551
|
+
z.number(),
|
|
552
|
+
z.boolean(),
|
|
553
|
+
]);
|
|
554
|
+
|
|
555
|
+
/** @internal */
|
|
556
|
+
export type IntegrationSchemasSaml5$Outbound =
|
|
557
|
+
| IntegrationSchemasSaml1$Outbound
|
|
558
|
+
| string
|
|
559
|
+
| number
|
|
560
|
+
| boolean;
|
|
561
|
+
|
|
562
|
+
/** @internal */
|
|
563
|
+
export const IntegrationSchemasSaml5$outboundSchema: z.ZodType<
|
|
564
|
+
IntegrationSchemasSaml5$Outbound,
|
|
565
|
+
z.ZodTypeDef,
|
|
566
|
+
IntegrationSchemasSaml5
|
|
567
|
+
> = z.union([
|
|
568
|
+
z.lazy(() => IntegrationSchemasSaml1$outboundSchema),
|
|
569
|
+
z.string(),
|
|
570
|
+
z.number(),
|
|
571
|
+
z.boolean(),
|
|
572
|
+
]);
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
577
|
+
*/
|
|
578
|
+
export namespace IntegrationSchemasSaml5$ {
|
|
579
|
+
/** @deprecated use `IntegrationSchemasSaml5$inboundSchema` instead. */
|
|
580
|
+
export const inboundSchema = IntegrationSchemasSaml5$inboundSchema;
|
|
581
|
+
/** @deprecated use `IntegrationSchemasSaml5$outboundSchema` instead. */
|
|
582
|
+
export const outboundSchema = IntegrationSchemasSaml5$outboundSchema;
|
|
583
|
+
/** @deprecated use `IntegrationSchemasSaml5$Outbound` instead. */
|
|
584
|
+
export type Outbound = IntegrationSchemasSaml5$Outbound;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export function integrationSchemasSaml5ToJSON(
|
|
588
|
+
integrationSchemasSaml5: IntegrationSchemasSaml5,
|
|
589
|
+
): string {
|
|
590
|
+
return JSON.stringify(
|
|
591
|
+
IntegrationSchemasSaml5$outboundSchema.parse(integrationSchemasSaml5),
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export function integrationSchemasSaml5FromJSON(
|
|
596
|
+
jsonString: string,
|
|
597
|
+
): SafeParseResult<IntegrationSchemasSaml5, SDKValidationError> {
|
|
598
|
+
return safeParse(
|
|
599
|
+
jsonString,
|
|
600
|
+
(x) => IntegrationSchemasSaml5$inboundSchema.parse(JSON.parse(x)),
|
|
601
|
+
`Failed to parse 'IntegrationSchemasSaml5' from JSON`,
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/** @internal */
|
|
606
|
+
export const Saml$inboundSchema: z.ZodType<Saml, z.ZodTypeDef, unknown> = z
|
|
607
|
+
.union([
|
|
608
|
+
z.record(z.any()),
|
|
609
|
+
z.string(),
|
|
610
|
+
z.number(),
|
|
611
|
+
z.boolean(),
|
|
612
|
+
z.array(
|
|
613
|
+
z.union([
|
|
614
|
+
z.lazy(() => IntegrationSchemasSaml1$inboundSchema),
|
|
615
|
+
z.string(),
|
|
616
|
+
z.number(),
|
|
617
|
+
z.boolean(),
|
|
618
|
+
]),
|
|
619
|
+
),
|
|
620
|
+
]);
|
|
621
|
+
|
|
622
|
+
/** @internal */
|
|
623
|
+
export type Saml$Outbound =
|
|
624
|
+
| { [k: string]: any }
|
|
625
|
+
| string
|
|
626
|
+
| number
|
|
627
|
+
| boolean
|
|
628
|
+
| Array<IntegrationSchemasSaml1$Outbound | string | number | boolean>;
|
|
629
|
+
|
|
630
|
+
/** @internal */
|
|
631
|
+
export const Saml$outboundSchema: z.ZodType<Saml$Outbound, z.ZodTypeDef, Saml> =
|
|
632
|
+
z.union([
|
|
633
|
+
z.record(z.any()),
|
|
634
|
+
z.string(),
|
|
635
|
+
z.number(),
|
|
636
|
+
z.boolean(),
|
|
637
|
+
z.array(
|
|
638
|
+
z.union([
|
|
639
|
+
z.lazy(() => IntegrationSchemasSaml1$outboundSchema),
|
|
640
|
+
z.string(),
|
|
641
|
+
z.number(),
|
|
642
|
+
z.boolean(),
|
|
643
|
+
]),
|
|
644
|
+
),
|
|
645
|
+
]);
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @internal
|
|
649
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
650
|
+
*/
|
|
651
|
+
export namespace Saml$ {
|
|
652
|
+
/** @deprecated use `Saml$inboundSchema` instead. */
|
|
653
|
+
export const inboundSchema = Saml$inboundSchema;
|
|
654
|
+
/** @deprecated use `Saml$outboundSchema` instead. */
|
|
655
|
+
export const outboundSchema = Saml$outboundSchema;
|
|
656
|
+
/** @deprecated use `Saml$Outbound` instead. */
|
|
657
|
+
export type Outbound = Saml$Outbound;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export function samlToJSON(saml: Saml): string {
|
|
661
|
+
return JSON.stringify(Saml$outboundSchema.parse(saml));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export function samlFromJSON(
|
|
665
|
+
jsonString: string,
|
|
666
|
+
): SafeParseResult<Saml, SDKValidationError> {
|
|
667
|
+
return safeParse(
|
|
668
|
+
jsonString,
|
|
669
|
+
(x) => Saml$inboundSchema.parse(JSON.parse(x)),
|
|
670
|
+
`Failed to parse 'Saml' from JSON`,
|
|
671
|
+
);
|
|
672
|
+
}
|
|
673
|
+
|
|
473
674
|
/** @internal */
|
|
474
675
|
export const IntegrationSchemasSandbox1$inboundSchema: z.ZodType<
|
|
475
676
|
IntegrationSchemasSandbox1,
|
|
@@ -701,6 +902,20 @@ export const Integration$inboundSchema: z.ZodType<
|
|
|
701
902
|
]).optional(),
|
|
702
903
|
popularity: z.number().optional(),
|
|
703
904
|
rate_limit_description: z.string().optional(),
|
|
905
|
+
saml: z.union([
|
|
906
|
+
z.record(z.any()),
|
|
907
|
+
z.string(),
|
|
908
|
+
z.number(),
|
|
909
|
+
z.boolean(),
|
|
910
|
+
z.array(
|
|
911
|
+
z.union([
|
|
912
|
+
z.lazy(() => IntegrationSchemasSaml1$inboundSchema),
|
|
913
|
+
z.string(),
|
|
914
|
+
z.number(),
|
|
915
|
+
z.boolean(),
|
|
916
|
+
]),
|
|
917
|
+
),
|
|
918
|
+
]).optional(),
|
|
704
919
|
sandbox: z.union([
|
|
705
920
|
z.record(z.any()),
|
|
706
921
|
z.string(),
|
|
@@ -774,6 +989,13 @@ export type Integration$Outbound = {
|
|
|
774
989
|
| undefined;
|
|
775
990
|
popularity?: number | undefined;
|
|
776
991
|
rate_limit_description?: string | undefined;
|
|
992
|
+
saml?:
|
|
993
|
+
| { [k: string]: any }
|
|
994
|
+
| string
|
|
995
|
+
| number
|
|
996
|
+
| boolean
|
|
997
|
+
| Array<IntegrationSchemasSaml1$Outbound | string | number | boolean>
|
|
998
|
+
| undefined;
|
|
777
999
|
sandbox?:
|
|
778
1000
|
| { [k: string]: any }
|
|
779
1001
|
| string
|
|
@@ -840,6 +1062,20 @@ export const Integration$outboundSchema: z.ZodType<
|
|
|
840
1062
|
]).optional(),
|
|
841
1063
|
popularity: z.number().optional(),
|
|
842
1064
|
rateLimitDescription: z.string().optional(),
|
|
1065
|
+
saml: z.union([
|
|
1066
|
+
z.record(z.any()),
|
|
1067
|
+
z.string(),
|
|
1068
|
+
z.number(),
|
|
1069
|
+
z.boolean(),
|
|
1070
|
+
z.array(
|
|
1071
|
+
z.union([
|
|
1072
|
+
z.lazy(() => IntegrationSchemasSaml1$outboundSchema),
|
|
1073
|
+
z.string(),
|
|
1074
|
+
z.number(),
|
|
1075
|
+
z.boolean(),
|
|
1076
|
+
]),
|
|
1077
|
+
),
|
|
1078
|
+
]).optional(),
|
|
843
1079
|
sandbox: z.union([
|
|
844
1080
|
z.record(z.any()),
|
|
845
1081
|
z.string(),
|
package/src/sdk/unified.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { unifiedCreateUnifiedWebhook } from "../funcs/unifiedCreateUnifiedWebhoo
|
|
|
7
7
|
import { unifiedGetUnifiedApicall } from "../funcs/unifiedGetUnifiedApicall.js";
|
|
8
8
|
import { unifiedGetUnifiedConnection } from "../funcs/unifiedGetUnifiedConnection.js";
|
|
9
9
|
import { unifiedGetUnifiedIntegrationAuth } from "../funcs/unifiedGetUnifiedIntegrationAuth.js";
|
|
10
|
+
import { unifiedGetUnifiedIssue } from "../funcs/unifiedGetUnifiedIssue.js";
|
|
10
11
|
import { unifiedGetUnifiedWebhook } from "../funcs/unifiedGetUnifiedWebhook.js";
|
|
11
12
|
import { unifiedListUnifiedApicalls } from "../funcs/unifiedListUnifiedApicalls.js";
|
|
12
13
|
import { unifiedListUnifiedConnections } from "../funcs/unifiedListUnifiedConnections.js";
|
|
@@ -107,6 +108,20 @@ export class Unified extends ClientSDK {
|
|
|
107
108
|
));
|
|
108
109
|
}
|
|
109
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Retrieve support issue
|
|
113
|
+
*/
|
|
114
|
+
async getUnifiedIssue(
|
|
115
|
+
request: operations.GetUnifiedIssueRequest,
|
|
116
|
+
options?: RequestOptions,
|
|
117
|
+
): Promise<shared.Issue> {
|
|
118
|
+
return unwrapAsync(unifiedGetUnifiedIssue(
|
|
119
|
+
this,
|
|
120
|
+
request,
|
|
121
|
+
options,
|
|
122
|
+
));
|
|
123
|
+
}
|
|
124
|
+
|
|
110
125
|
/**
|
|
111
126
|
* Retrieve webhook by its ID
|
|
112
127
|
*/
|