@zyphr-dev/node-sdk 0.1.18 → 0.1.20
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.cjs +2473 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4376 -1787
- package/dist/index.d.ts +4376 -1787
- package/dist/index.js +2274 -195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +40 -1
- package/src/client.ts +3 -0
- package/src/src/apis/AuthEmailTemplatesApi.ts +734 -0
- package/src/src/apis/ExecutionsApi.ts +225 -0
- package/src/src/apis/SlackApi.ts +264 -0
- package/src/src/apis/index.ts +3 -0
- package/src/src/models/AuthEmailTemplate.ts +181 -0
- package/src/src/models/AuthEmailTemplateDefault.ts +107 -0
- package/src/src/models/AuthEmailTemplateDefaultResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateDeleteResponse.ts +88 -0
- package/src/src/models/{SuccessResultData.ts → AuthEmailTemplateDeleteResponseData.ts} +11 -11
- package/src/src/models/AuthEmailTemplateListResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplatePreviewRequest.ts +65 -0
- package/src/src/models/AuthEmailTemplatePreviewResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplatePreviewResult.ts +97 -0
- package/src/src/models/AuthEmailTemplateResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateTestRequest.ts +74 -0
- package/src/src/models/AuthEmailTemplateTestResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateTestResult.ts +73 -0
- package/src/src/models/AuthEmailTemplateVersion.ts +157 -0
- package/src/src/models/AuthEmailTemplateVersionsResponse.ts +88 -0
- package/src/src/models/AuthEmailType.ts +54 -0
- package/src/src/models/BulkUpsertAuthEmailTemplatesRequest.ts +91 -0
- package/src/src/models/BulkUpsertAuthEmailTemplatesResponse.ts +88 -0
- package/src/src/models/ExecutionCancelResponse.ts +88 -0
- package/src/src/models/ExecutionCancelResponseData.ts +83 -0
- package/src/src/models/ExecutionResponse.ts +88 -0
- package/src/src/models/ExecutionRetryResponse.ts +88 -0
- package/src/src/models/ExecutionRetryResponseData.ts +94 -0
- package/src/src/models/ResubscribeResponse.ts +10 -10
- package/src/src/models/SendSlackMessageRequest.ts +156 -0
- package/src/src/models/SendSlackMessageResponse.ts +88 -0
- package/src/src/models/SendSlackMessageResult.ts +115 -0
- package/src/src/models/SlackMessage.ts +203 -0
- package/src/src/models/SlackMessageListResponse.ts +88 -0
- package/src/src/models/SlackMessageListResponseMeta.ts +89 -0
- package/src/src/models/SlackMessageResponse.ts +88 -0
- package/src/src/models/SlackMessageStatus.ts +56 -0
- package/src/src/models/SlackMessageSummary.ts +155 -0
- package/src/src/models/SuccessResult.ts +10 -10
- package/src/src/models/UpsertAuthEmailTemplateRequest.ts +143 -0
- package/src/src/models/WorkflowExecution.ts +201 -0
- package/src/src/models/WorkflowExecutionStatus.ts +56 -0
- package/src/src/models/WorkflowStepExecution.ts +184 -0
- package/src/src/models/WorkflowStepExecutionStatus.ts +57 -0
- package/src/src/models/index.ts +37 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UpsertAuthEmailTemplateRequest } from './UpsertAuthEmailTemplateRequest';
|
|
17
|
+
import {
|
|
18
|
+
UpsertAuthEmailTemplateRequestFromJSON,
|
|
19
|
+
UpsertAuthEmailTemplateRequestFromJSONTyped,
|
|
20
|
+
UpsertAuthEmailTemplateRequestToJSON,
|
|
21
|
+
UpsertAuthEmailTemplateRequestToJSONTyped,
|
|
22
|
+
} from './UpsertAuthEmailTemplateRequest';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Atomic upsert of any subset of magic_link, password_reset, email_verification.
|
|
26
|
+
* At least one entry must be provided.
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface BulkUpsertAuthEmailTemplatesRequest
|
|
30
|
+
*/
|
|
31
|
+
export interface BulkUpsertAuthEmailTemplatesRequest {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {UpsertAuthEmailTemplateRequest}
|
|
35
|
+
* @memberof BulkUpsertAuthEmailTemplatesRequest
|
|
36
|
+
*/
|
|
37
|
+
magicLink?: UpsertAuthEmailTemplateRequest;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UpsertAuthEmailTemplateRequest}
|
|
41
|
+
* @memberof BulkUpsertAuthEmailTemplatesRequest
|
|
42
|
+
*/
|
|
43
|
+
passwordReset?: UpsertAuthEmailTemplateRequest;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {UpsertAuthEmailTemplateRequest}
|
|
47
|
+
* @memberof BulkUpsertAuthEmailTemplatesRequest
|
|
48
|
+
*/
|
|
49
|
+
emailVerification?: UpsertAuthEmailTemplateRequest;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the BulkUpsertAuthEmailTemplatesRequest interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfBulkUpsertAuthEmailTemplatesRequest(value: object): value is BulkUpsertAuthEmailTemplatesRequest {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BulkUpsertAuthEmailTemplatesRequestFromJSON(json: any): BulkUpsertAuthEmailTemplatesRequest {
|
|
60
|
+
return BulkUpsertAuthEmailTemplatesRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function BulkUpsertAuthEmailTemplatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpsertAuthEmailTemplatesRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'magicLink': json['magic_link'] == null ? undefined : UpsertAuthEmailTemplateRequestFromJSON(json['magic_link']),
|
|
70
|
+
'passwordReset': json['password_reset'] == null ? undefined : UpsertAuthEmailTemplateRequestFromJSON(json['password_reset']),
|
|
71
|
+
'emailVerification': json['email_verification'] == null ? undefined : UpsertAuthEmailTemplateRequestFromJSON(json['email_verification']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function BulkUpsertAuthEmailTemplatesRequestToJSON(json: any): BulkUpsertAuthEmailTemplatesRequest {
|
|
76
|
+
return BulkUpsertAuthEmailTemplatesRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function BulkUpsertAuthEmailTemplatesRequestToJSONTyped(value?: BulkUpsertAuthEmailTemplatesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'magic_link': UpsertAuthEmailTemplateRequestToJSON(value['magicLink']),
|
|
87
|
+
'password_reset': UpsertAuthEmailTemplateRequestToJSON(value['passwordReset']),
|
|
88
|
+
'email_verification': UpsertAuthEmailTemplateRequestToJSON(value['emailVerification']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RequestMeta } from './RequestMeta';
|
|
17
|
+
import {
|
|
18
|
+
RequestMetaFromJSON,
|
|
19
|
+
RequestMetaFromJSONTyped,
|
|
20
|
+
RequestMetaToJSON,
|
|
21
|
+
RequestMetaToJSONTyped,
|
|
22
|
+
} from './RequestMeta';
|
|
23
|
+
import type { AuthEmailTemplate } from './AuthEmailTemplate';
|
|
24
|
+
import {
|
|
25
|
+
AuthEmailTemplateFromJSON,
|
|
26
|
+
AuthEmailTemplateFromJSONTyped,
|
|
27
|
+
AuthEmailTemplateToJSON,
|
|
28
|
+
AuthEmailTemplateToJSONTyped,
|
|
29
|
+
} from './AuthEmailTemplate';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BulkUpsertAuthEmailTemplatesResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface BulkUpsertAuthEmailTemplatesResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {{ [key: string]: AuthEmailTemplate; }}
|
|
40
|
+
* @memberof BulkUpsertAuthEmailTemplatesResponse
|
|
41
|
+
*/
|
|
42
|
+
data?: { [key: string]: AuthEmailTemplate; };
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {RequestMeta}
|
|
46
|
+
* @memberof BulkUpsertAuthEmailTemplatesResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: RequestMeta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BulkUpsertAuthEmailTemplatesResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfBulkUpsertAuthEmailTemplatesResponse(value: object): value is BulkUpsertAuthEmailTemplatesResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BulkUpsertAuthEmailTemplatesResponseFromJSON(json: any): BulkUpsertAuthEmailTemplatesResponse {
|
|
59
|
+
return BulkUpsertAuthEmailTemplatesResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function BulkUpsertAuthEmailTemplatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkUpsertAuthEmailTemplatesResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : (mapValues(json['data'], AuthEmailTemplateFromJSON)),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function BulkUpsertAuthEmailTemplatesResponseToJSON(json: any): BulkUpsertAuthEmailTemplatesResponse {
|
|
74
|
+
return BulkUpsertAuthEmailTemplatesResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function BulkUpsertAuthEmailTemplatesResponseToJSONTyped(value?: BulkUpsertAuthEmailTemplatesResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': value['data'] == null ? undefined : (mapValues(value['data'], AuthEmailTemplateToJSON)),
|
|
85
|
+
'meta': RequestMetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ExecutionCancelResponseData } from './ExecutionCancelResponseData';
|
|
17
|
+
import {
|
|
18
|
+
ExecutionCancelResponseDataFromJSON,
|
|
19
|
+
ExecutionCancelResponseDataFromJSONTyped,
|
|
20
|
+
ExecutionCancelResponseDataToJSON,
|
|
21
|
+
ExecutionCancelResponseDataToJSONTyped,
|
|
22
|
+
} from './ExecutionCancelResponseData';
|
|
23
|
+
import type { RequestMeta } from './RequestMeta';
|
|
24
|
+
import {
|
|
25
|
+
RequestMetaFromJSON,
|
|
26
|
+
RequestMetaFromJSONTyped,
|
|
27
|
+
RequestMetaToJSON,
|
|
28
|
+
RequestMetaToJSONTyped,
|
|
29
|
+
} from './RequestMeta';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ExecutionCancelResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ExecutionCancelResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ExecutionCancelResponseData}
|
|
40
|
+
* @memberof ExecutionCancelResponse
|
|
41
|
+
*/
|
|
42
|
+
data?: ExecutionCancelResponseData;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {RequestMeta}
|
|
46
|
+
* @memberof ExecutionCancelResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: RequestMeta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ExecutionCancelResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfExecutionCancelResponse(value: object): value is ExecutionCancelResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ExecutionCancelResponseFromJSON(json: any): ExecutionCancelResponse {
|
|
59
|
+
return ExecutionCancelResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ExecutionCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionCancelResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : ExecutionCancelResponseDataFromJSON(json['data']),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ExecutionCancelResponseToJSON(json: any): ExecutionCancelResponse {
|
|
74
|
+
return ExecutionCancelResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ExecutionCancelResponseToJSONTyped(value?: ExecutionCancelResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ExecutionCancelResponseDataToJSON(value['data']),
|
|
85
|
+
'meta': RequestMetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExecutionCancelResponseData
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecutionCancelResponseData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExecutionCancelResponseData
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ExecutionCancelResponseData
|
|
32
|
+
*/
|
|
33
|
+
status?: ExecutionCancelResponseDataStatusEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ExecutionCancelResponseDataStatusEnum = {
|
|
41
|
+
CANCELLED: 'cancelled'
|
|
42
|
+
} as const;
|
|
43
|
+
export type ExecutionCancelResponseDataStatusEnum = typeof ExecutionCancelResponseDataStatusEnum[keyof typeof ExecutionCancelResponseDataStatusEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ExecutionCancelResponseData interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfExecutionCancelResponseData(value: object): value is ExecutionCancelResponseData {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ExecutionCancelResponseDataFromJSON(json: any): ExecutionCancelResponseData {
|
|
54
|
+
return ExecutionCancelResponseDataFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ExecutionCancelResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionCancelResponseData {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
64
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ExecutionCancelResponseDataToJSON(json: any): ExecutionCancelResponseData {
|
|
69
|
+
return ExecutionCancelResponseDataToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ExecutionCancelResponseDataToJSONTyped(value?: ExecutionCancelResponseData | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'status': value['status'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RequestMeta } from './RequestMeta';
|
|
17
|
+
import {
|
|
18
|
+
RequestMetaFromJSON,
|
|
19
|
+
RequestMetaFromJSONTyped,
|
|
20
|
+
RequestMetaToJSON,
|
|
21
|
+
RequestMetaToJSONTyped,
|
|
22
|
+
} from './RequestMeta';
|
|
23
|
+
import type { WorkflowExecution } from './WorkflowExecution';
|
|
24
|
+
import {
|
|
25
|
+
WorkflowExecutionFromJSON,
|
|
26
|
+
WorkflowExecutionFromJSONTyped,
|
|
27
|
+
WorkflowExecutionToJSON,
|
|
28
|
+
WorkflowExecutionToJSONTyped,
|
|
29
|
+
} from './WorkflowExecution';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ExecutionResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ExecutionResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {WorkflowExecution}
|
|
40
|
+
* @memberof ExecutionResponse
|
|
41
|
+
*/
|
|
42
|
+
data?: WorkflowExecution;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {RequestMeta}
|
|
46
|
+
* @memberof ExecutionResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: RequestMeta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ExecutionResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfExecutionResponse(value: object): value is ExecutionResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ExecutionResponseFromJSON(json: any): ExecutionResponse {
|
|
59
|
+
return ExecutionResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ExecutionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : WorkflowExecutionFromJSON(json['data']),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ExecutionResponseToJSON(json: any): ExecutionResponse {
|
|
74
|
+
return ExecutionResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ExecutionResponseToJSONTyped(value?: ExecutionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': WorkflowExecutionToJSON(value['data']),
|
|
85
|
+
'meta': RequestMetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RequestMeta } from './RequestMeta';
|
|
17
|
+
import {
|
|
18
|
+
RequestMetaFromJSON,
|
|
19
|
+
RequestMetaFromJSONTyped,
|
|
20
|
+
RequestMetaToJSON,
|
|
21
|
+
RequestMetaToJSONTyped,
|
|
22
|
+
} from './RequestMeta';
|
|
23
|
+
import type { ExecutionRetryResponseData } from './ExecutionRetryResponseData';
|
|
24
|
+
import {
|
|
25
|
+
ExecutionRetryResponseDataFromJSON,
|
|
26
|
+
ExecutionRetryResponseDataFromJSONTyped,
|
|
27
|
+
ExecutionRetryResponseDataToJSON,
|
|
28
|
+
ExecutionRetryResponseDataToJSONTyped,
|
|
29
|
+
} from './ExecutionRetryResponseData';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ExecutionRetryResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ExecutionRetryResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ExecutionRetryResponseData}
|
|
40
|
+
* @memberof ExecutionRetryResponse
|
|
41
|
+
*/
|
|
42
|
+
data?: ExecutionRetryResponseData;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {RequestMeta}
|
|
46
|
+
* @memberof ExecutionRetryResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: RequestMeta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ExecutionRetryResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfExecutionRetryResponse(value: object): value is ExecutionRetryResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ExecutionRetryResponseFromJSON(json: any): ExecutionRetryResponse {
|
|
59
|
+
return ExecutionRetryResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ExecutionRetryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionRetryResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : ExecutionRetryResponseDataFromJSON(json['data']),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ExecutionRetryResponseToJSON(json: any): ExecutionRetryResponse {
|
|
74
|
+
return ExecutionRetryResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ExecutionRetryResponseToJSONTyped(value?: ExecutionRetryResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ExecutionRetryResponseDataToJSON(value['data']),
|
|
85
|
+
'meta': RequestMetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExecutionRetryResponseData
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecutionRetryResponseData {
|
|
22
|
+
/**
|
|
23
|
+
* The new execution created by the retry
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExecutionRetryResponseData
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The execution that was retried
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ExecutionRetryResponseData
|
|
32
|
+
*/
|
|
33
|
+
originalExecutionId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ExecutionRetryResponseData
|
|
38
|
+
*/
|
|
39
|
+
status: ExecutionRetryResponseDataStatusEnum;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ExecutionRetryResponseDataStatusEnum = {
|
|
47
|
+
PENDING: 'pending'
|
|
48
|
+
} as const;
|
|
49
|
+
export type ExecutionRetryResponseDataStatusEnum = typeof ExecutionRetryResponseDataStatusEnum[keyof typeof ExecutionRetryResponseDataStatusEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ExecutionRetryResponseData interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfExecutionRetryResponseData(value: object): value is ExecutionRetryResponseData {
|
|
56
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
57
|
+
if (!('originalExecutionId' in value) || value['originalExecutionId'] === undefined) return false;
|
|
58
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ExecutionRetryResponseDataFromJSON(json: any): ExecutionRetryResponseData {
|
|
63
|
+
return ExecutionRetryResponseDataFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ExecutionRetryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionRetryResponseData {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'id': json['id'],
|
|
73
|
+
'originalExecutionId': json['original_execution_id'],
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ExecutionRetryResponseDataToJSON(json: any): ExecutionRetryResponseData {
|
|
79
|
+
return ExecutionRetryResponseDataToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ExecutionRetryResponseDataToJSONTyped(value?: ExecutionRetryResponseData | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'original_execution_id': value['originalExecutionId'],
|
|
91
|
+
'status': value['status'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AuthEmailTemplateDeleteResponseData } from './AuthEmailTemplateDeleteResponseData';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AuthEmailTemplateDeleteResponseDataFromJSON,
|
|
19
|
+
AuthEmailTemplateDeleteResponseDataFromJSONTyped,
|
|
20
|
+
AuthEmailTemplateDeleteResponseDataToJSON,
|
|
21
|
+
AuthEmailTemplateDeleteResponseDataToJSONTyped,
|
|
22
|
+
} from './AuthEmailTemplateDeleteResponseData';
|
|
23
23
|
import type { RequestMeta } from './RequestMeta';
|
|
24
24
|
import {
|
|
25
25
|
RequestMetaFromJSON,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
export interface ResubscribeResponse {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {AuthEmailTemplateDeleteResponseData}
|
|
40
40
|
* @memberof ResubscribeResponse
|
|
41
41
|
*/
|
|
42
|
-
data?:
|
|
42
|
+
data?: AuthEmailTemplateDeleteResponseData;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {RequestMeta}
|
|
@@ -65,7 +65,7 @@ export function ResubscribeResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
|
|
68
|
-
'data': json['data'] == null ? undefined :
|
|
68
|
+
'data': json['data'] == null ? undefined : AuthEmailTemplateDeleteResponseDataFromJSON(json['data']),
|
|
69
69
|
'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -81,7 +81,7 @@ export function ResubscribeResponseToJSONTyped(value?: ResubscribeResponse | nul
|
|
|
81
81
|
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'data':
|
|
84
|
+
'data': AuthEmailTemplateDeleteResponseDataToJSON(value['data']),
|
|
85
85
|
'meta': RequestMetaToJSON(value['meta']),
|
|
86
86
|
};
|
|
87
87
|
}
|