@novu/api 0.0.1-alpha.110 → 0.0.1-alpha.114

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.
Files changed (86) hide show
  1. package/docs/sdks/novunotifications/README.md +2 -2
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/activitiesresponsedto.d.ts +10 -1
  5. package/models/components/activitiesresponsedto.d.ts.map +1 -1
  6. package/models/components/activitiesresponsedto.js.map +1 -1
  7. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +153 -0
  8. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -0
  9. package/models/components/activitynotificationexecutiondetailresponsedto.js +137 -0
  10. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -0
  11. package/models/components/activitynotificationjobresponsedto.d.ts +117 -0
  12. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -0
  13. package/models/components/activitynotificationjobresponsedto.js +131 -0
  14. package/models/components/activitynotificationjobresponsedto.js.map +1 -0
  15. package/models/components/activitynotificationresponsedto.d.ts +36 -2
  16. package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
  17. package/models/components/activitynotificationresponsedto.js +6 -2
  18. package/models/components/activitynotificationresponsedto.js.map +1 -1
  19. package/models/components/activitynotificationstepresponsedto.d.ts +49 -0
  20. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -0
  21. package/models/components/activitynotificationstepresponsedto.js +76 -0
  22. package/models/components/activitynotificationstepresponsedto.js.map +1 -0
  23. package/models/components/activitynotificationsubscriberresponsedto.d.ts +15 -0
  24. package/models/components/activitynotificationsubscriberresponsedto.d.ts.map +1 -1
  25. package/models/components/activitynotificationsubscriberresponsedto.js.map +1 -1
  26. package/models/components/activitynotificationtemplateresponsedto.d.ts +12 -2
  27. package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
  28. package/models/components/activitynotificationtemplateresponsedto.js +3 -2
  29. package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
  30. package/models/components/channelpreference.d.ts +8 -8
  31. package/models/components/channelpreference.d.ts.map +1 -1
  32. package/models/components/channelpreference.js +13 -13
  33. package/models/components/channelpreference.js.map +1 -1
  34. package/models/components/index.d.ts +4 -2
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +4 -2
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/messageactionresult.d.ts +15 -15
  39. package/models/components/messageactionresult.d.ts.map +1 -1
  40. package/models/components/messageactionresult.js +18 -18
  41. package/models/components/messageactionresult.js.map +1 -1
  42. package/models/components/messagetemplatedto.d.ts +25 -0
  43. package/models/components/messagetemplatedto.d.ts.map +1 -0
  44. package/models/components/{builderfieldtype.js → messagetemplatedto.js} +20 -21
  45. package/models/components/messagetemplatedto.js.map +1 -0
  46. package/models/components/notificationtrigger.d.ts +26 -8
  47. package/models/components/notificationtrigger.d.ts.map +1 -1
  48. package/models/components/notificationtrigger.js +16 -13
  49. package/models/components/notificationtrigger.js.map +1 -1
  50. package/models/components/notificationtriggervariable.d.ts +3 -0
  51. package/models/components/notificationtriggervariable.d.ts.map +1 -1
  52. package/models/components/notificationtriggervariable.js.map +1 -1
  53. package/models/components/stepfilter.d.ts +2 -40
  54. package/models/components/stepfilter.d.ts.map +1 -1
  55. package/models/components/stepfilter.js +3 -34
  56. package/models/components/stepfilter.js.map +1 -1
  57. package/models/operations/subscriberscontrollergetunseencount.d.ts +9 -3
  58. package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
  59. package/models/operations/subscriberscontrollergetunseencount.js +4 -4
  60. package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/lib/config.ts +2 -2
  63. package/src/models/components/activitiesresponsedto.ts +10 -1
  64. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +225 -0
  65. package/src/models/components/activitynotificationjobresponsedto.ts +241 -0
  66. package/src/models/components/activitynotificationresponsedto.ts +43 -4
  67. package/src/models/components/activitynotificationstepresponsedto.ts +116 -0
  68. package/src/models/components/activitynotificationsubscriberresponsedto.ts +15 -0
  69. package/src/models/components/activitynotificationtemplateresponsedto.ts +19 -4
  70. package/src/models/components/channelpreference.ts +16 -15
  71. package/src/models/components/index.ts +4 -2
  72. package/src/models/components/messageactionresult.ts +31 -24
  73. package/src/models/components/messagetemplatedto.ts +58 -0
  74. package/src/models/components/notificationtrigger.ts +33 -18
  75. package/src/models/components/notificationtriggervariable.ts +3 -0
  76. package/src/models/components/stepfilter.ts +4 -62
  77. package/src/models/operations/subscriberscontrollergetunseencount.ts +13 -7
  78. package/models/components/builderfieldtype.d.ts +0 -46
  79. package/models/components/builderfieldtype.d.ts.map +0 -1
  80. package/models/components/builderfieldtype.js.map +0 -1
  81. package/models/components/fieldfilterpart.d.ts +0 -122
  82. package/models/components/fieldfilterpart.d.ts.map +0 -1
  83. package/models/components/fieldfilterpart.js +0 -116
  84. package/models/components/fieldfilterpart.js.map +0 -1
  85. package/src/models/components/builderfieldtype.ts +0 -39
  86. package/src/models/components/fieldfilterpart.ts +0 -137
@@ -103,8 +103,8 @@ const novu = new Novu({
103
103
 
104
104
  async function run() {
105
105
  const result = await novu.subscribers.notifications.unseenCount({
106
- seen: false,
107
106
  subscriberId: "<id>",
107
+ seen: false,
108
108
  limit: 2979.49,
109
109
  });
110
110
 
@@ -131,8 +131,8 @@ const novu = new NovuCore({
131
131
 
132
132
  async function run() {
133
133
  const res = await subscribersNotificationsUnseenCount(novu, {
134
- seen: false,
135
134
  subscriberId: "<id>",
135
+ seen: false,
136
136
  limit: 2979.49,
137
137
  });
138
138
 
package/lib/config.d.ts CHANGED
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
27
27
  export declare const SDK_METADATA: {
28
28
  readonly language: "typescript";
29
29
  readonly openapiDocVersion: "1.0";
30
- readonly sdkVersion: "0.0.1-alpha.110";
30
+ readonly sdkVersion: "0.0.1-alpha.114";
31
31
  readonly genVersion: "2.479.3";
32
- readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.110 2.479.3 1.0 @novu/api";
32
+ readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.114 2.479.3 1.0 @novu/api";
33
33
  };
34
34
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
30
30
  exports.SDK_METADATA = {
31
31
  language: "typescript",
32
32
  openapiDocVersion: "1.0",
33
- sdkVersion: "0.0.1-alpha.110",
33
+ sdkVersion: "0.0.1-alpha.114",
34
34
  genVersion: "2.479.3",
35
- userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.110 2.479.3 1.0 @novu/api",
35
+ userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.114 2.479.3 1.0 @novu/api",
36
36
  };
37
37
  //# sourceMappingURL=config.js.map
@@ -3,12 +3,21 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { ActivityNotificationResponseDto, ActivityNotificationResponseDto$Outbound } from "./activitynotificationresponsedto.js";
5
5
  export type ActivitiesResponseDto = {
6
+ /**
7
+ * Whether there are more activities
8
+ */
6
9
  hasMore: boolean;
7
10
  /**
8
- * Array of Activity notifications
11
+ * Array of activity notifications
9
12
  */
10
13
  data: Array<ActivityNotificationResponseDto>;
14
+ /**
15
+ * Page size of the activities
16
+ */
11
17
  pageSize: number;
18
+ /**
19
+ * Current page of the activities
20
+ */
12
21
  page: number;
13
22
  };
14
23
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"activitiesresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitiesresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC,wCAAwC,CAAC,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAMrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
1
+ {"version":3,"file":"activitiesresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitiesresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,M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C,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"activitiesresponsedto.js","sourceRoot":"","sources":["../../src/models/components/activitiesresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,6FAK8C;AAY9C,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;IAC5D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;IAC7D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAND,kEAMC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC;AARD,sEAQC"}
1
+ {"version":3,"file":"activitiesresponsedto.js","sourceRoot":"","sources":["../../src/models/components/activitiesresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,6FAK8C;AAqB9C,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;IAC5D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;IAC7D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAND,kEAMC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC;AARD,sEAQC"}
@@ -0,0 +1,153 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * Status of the execution detail
7
+ */
8
+ export declare const ActivityNotificationExecutionDetailResponseDtoStatus: {
9
+ readonly Success: "Success";
10
+ readonly Warning: "Warning";
11
+ readonly Failed: "Failed";
12
+ readonly Pending: "Pending";
13
+ readonly Queued: "Queued";
14
+ readonly ReadConfirmation: "ReadConfirmation";
15
+ };
16
+ /**
17
+ * Status of the execution detail
18
+ */
19
+ export type ActivityNotificationExecutionDetailResponseDtoStatus = ClosedEnum<typeof ActivityNotificationExecutionDetailResponseDtoStatus>;
20
+ /**
21
+ * Source of the execution detail
22
+ */
23
+ export declare const Source: {
24
+ readonly Credentials: "Credentials";
25
+ readonly Internal: "Internal";
26
+ readonly Payload: "Payload";
27
+ readonly Webhook: "Webhook";
28
+ };
29
+ /**
30
+ * Source of the execution detail
31
+ */
32
+ export type Source = ClosedEnum<typeof Source>;
33
+ export type ActivityNotificationExecutionDetailResponseDto = {
34
+ /**
35
+ * Unique identifier of the execution detail
36
+ */
37
+ id: string;
38
+ /**
39
+ * Unique identifier of the job
40
+ */
41
+ jobId: string;
42
+ /**
43
+ * Status of the execution detail
44
+ */
45
+ status: ActivityNotificationExecutionDetailResponseDtoStatus;
46
+ /**
47
+ * Detailed information about the execution
48
+ */
49
+ detail: string;
50
+ /**
51
+ * Whether the execution is a retry or not
52
+ */
53
+ isRetry: boolean;
54
+ /**
55
+ * Whether the execution is a test or not
56
+ */
57
+ isTest: boolean;
58
+ /**
59
+ * Provider ID of the job
60
+ */
61
+ providerId: number;
62
+ /**
63
+ * Raw data of the execution
64
+ */
65
+ raw?: string | undefined;
66
+ /**
67
+ * Source of the execution detail
68
+ */
69
+ source: Source;
70
+ };
71
+ /** @internal */
72
+ export declare const ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema: z.ZodNativeEnum<typeof ActivityNotificationExecutionDetailResponseDtoStatus>;
73
+ /** @internal */
74
+ export declare const ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema: z.ZodNativeEnum<typeof ActivityNotificationExecutionDetailResponseDtoStatus>;
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ export declare namespace ActivityNotificationExecutionDetailResponseDtoStatus$ {
80
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema` instead. */
81
+ const inboundSchema: z.ZodNativeEnum<{
82
+ readonly Success: "Success";
83
+ readonly Warning: "Warning";
84
+ readonly Failed: "Failed";
85
+ readonly Pending: "Pending";
86
+ readonly Queued: "Queued";
87
+ readonly ReadConfirmation: "ReadConfirmation";
88
+ }>;
89
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema` instead. */
90
+ const outboundSchema: z.ZodNativeEnum<{
91
+ readonly Success: "Success";
92
+ readonly Warning: "Warning";
93
+ readonly Failed: "Failed";
94
+ readonly Pending: "Pending";
95
+ readonly Queued: "Queued";
96
+ readonly ReadConfirmation: "ReadConfirmation";
97
+ }>;
98
+ }
99
+ /** @internal */
100
+ export declare const Source$inboundSchema: z.ZodNativeEnum<typeof Source>;
101
+ /** @internal */
102
+ export declare const Source$outboundSchema: z.ZodNativeEnum<typeof Source>;
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export declare namespace Source$ {
108
+ /** @deprecated use `Source$inboundSchema` instead. */
109
+ const inboundSchema: z.ZodNativeEnum<{
110
+ readonly Credentials: "Credentials";
111
+ readonly Internal: "Internal";
112
+ readonly Payload: "Payload";
113
+ readonly Webhook: "Webhook";
114
+ }>;
115
+ /** @deprecated use `Source$outboundSchema` instead. */
116
+ const outboundSchema: z.ZodNativeEnum<{
117
+ readonly Credentials: "Credentials";
118
+ readonly Internal: "Internal";
119
+ readonly Payload: "Payload";
120
+ readonly Webhook: "Webhook";
121
+ }>;
122
+ }
123
+ /** @internal */
124
+ export declare const ActivityNotificationExecutionDetailResponseDto$inboundSchema: z.ZodType<ActivityNotificationExecutionDetailResponseDto, z.ZodTypeDef, unknown>;
125
+ /** @internal */
126
+ export type ActivityNotificationExecutionDetailResponseDto$Outbound = {
127
+ _id: string;
128
+ _jobId: string;
129
+ status: string;
130
+ detail: string;
131
+ isRetry: boolean;
132
+ isTest: boolean;
133
+ providerId: number;
134
+ raw?: string | undefined;
135
+ source: string;
136
+ };
137
+ /** @internal */
138
+ export declare const ActivityNotificationExecutionDetailResponseDto$outboundSchema: z.ZodType<ActivityNotificationExecutionDetailResponseDto$Outbound, z.ZodTypeDef, ActivityNotificationExecutionDetailResponseDto>;
139
+ /**
140
+ * @internal
141
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
142
+ */
143
+ export declare namespace ActivityNotificationExecutionDetailResponseDto$ {
144
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDto$inboundSchema` instead. */
145
+ const inboundSchema: z.ZodType<ActivityNotificationExecutionDetailResponseDto, z.ZodTypeDef, unknown>;
146
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDto$outboundSchema` instead. */
147
+ const outboundSchema: z.ZodType<ActivityNotificationExecutionDetailResponseDto$Outbound, z.ZodTypeDef, ActivityNotificationExecutionDetailResponseDto>;
148
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDto$Outbound` instead. */
149
+ type Outbound = ActivityNotificationExecutionDetailResponseDto$Outbound;
150
+ }
151
+ export declare function activityNotificationExecutionDetailResponseDtoToJSON(activityNotificationExecutionDetailResponseDto: ActivityNotificationExecutionDetailResponseDto): string;
152
+ export declare function activityNotificationExecutionDetailResponseDtoFromJSON(jsonString: string): SafeParseResult<ActivityNotificationExecutionDetailResponseDto, SDKValidationError>;
153
+ //# sourceMappingURL=activitynotificationexecutiondetailresponsedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activitynotificationexecutiondetailresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitynotificationexecutiondetailresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,oDAAoD;;;;;;;CAOvD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oDAAoD,GAAG,UAAU,CAC3E,OAAO,oDAAoD,CAC5D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,8CAA8C,GAAG;IAC3D;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,oDAAoD,CAAC;IAC7D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,M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ACxE,CAAC,CAAC,OAAO,CACP,uDAAuD,EACvD,CAAC,CAAC,UAAU,EACZ,8CAA8C,CAgB9C,CAAC;AAEL;;;GAGG;AACH,yBAAiB,+CAA+C,CAAC;IAC/D,8FAA8F;IACvF,MAAM,aAAa,kFACoC,CAAC;IAC/D,+FAA+F;IACxF,MAAM,cAAc,kIACoC,CAAC;IAChE,yFAAyF;IACzF,KAAY,QAAQ,GAClB,uDAAuD,CAAC;CAC3D;AAED,wBAAgB,oDAAoD,CAClE,8CAA8C,EAC5C,8CAA8C,GAC/C,MAAM,CAMR;AAED,wBAAgB,sDAAsD,CACpE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,8CAA8C,EAC9C,kBAAkB,CACnB,CASA"}
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.activityNotificationExecutionDetailResponseDtoFromJSON = exports.activityNotificationExecutionDetailResponseDtoToJSON = exports.ActivityNotificationExecutionDetailResponseDto$ = exports.ActivityNotificationExecutionDetailResponseDto$outboundSchema = exports.ActivityNotificationExecutionDetailResponseDto$inboundSchema = exports.Source$ = exports.Source$outboundSchema = exports.Source$inboundSchema = exports.ActivityNotificationExecutionDetailResponseDtoStatus$ = exports.ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema = exports.ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema = exports.Source = exports.ActivityNotificationExecutionDetailResponseDtoStatus = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ /**
34
+ * Status of the execution detail
35
+ */
36
+ exports.ActivityNotificationExecutionDetailResponseDtoStatus = {
37
+ Success: "Success",
38
+ Warning: "Warning",
39
+ Failed: "Failed",
40
+ Pending: "Pending",
41
+ Queued: "Queued",
42
+ ReadConfirmation: "ReadConfirmation",
43
+ };
44
+ /**
45
+ * Source of the execution detail
46
+ */
47
+ exports.Source = {
48
+ Credentials: "Credentials",
49
+ Internal: "Internal",
50
+ Payload: "Payload",
51
+ Webhook: "Webhook",
52
+ };
53
+ /** @internal */
54
+ exports.ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema = z.nativeEnum(exports.ActivityNotificationExecutionDetailResponseDtoStatus);
55
+ /** @internal */
56
+ exports.ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema = exports.ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema;
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ var ActivityNotificationExecutionDetailResponseDtoStatus$;
62
+ (function (ActivityNotificationExecutionDetailResponseDtoStatus$) {
63
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema` instead. */
64
+ ActivityNotificationExecutionDetailResponseDtoStatus$.inboundSchema = exports.ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema;
65
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema` instead. */
66
+ ActivityNotificationExecutionDetailResponseDtoStatus$.outboundSchema = exports.ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema;
67
+ })(ActivityNotificationExecutionDetailResponseDtoStatus$ || (exports.ActivityNotificationExecutionDetailResponseDtoStatus$ = ActivityNotificationExecutionDetailResponseDtoStatus$ = {}));
68
+ /** @internal */
69
+ exports.Source$inboundSchema = z
70
+ .nativeEnum(exports.Source);
71
+ /** @internal */
72
+ exports.Source$outboundSchema = exports.Source$inboundSchema;
73
+ /**
74
+ * @internal
75
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
+ */
77
+ var Source$;
78
+ (function (Source$) {
79
+ /** @deprecated use `Source$inboundSchema` instead. */
80
+ Source$.inboundSchema = exports.Source$inboundSchema;
81
+ /** @deprecated use `Source$outboundSchema` instead. */
82
+ Source$.outboundSchema = exports.Source$outboundSchema;
83
+ })(Source$ || (exports.Source$ = Source$ = {}));
84
+ /** @internal */
85
+ exports.ActivityNotificationExecutionDetailResponseDto$inboundSchema = z.object({
86
+ _id: z.string(),
87
+ _jobId: z.string(),
88
+ status: exports.ActivityNotificationExecutionDetailResponseDtoStatus$inboundSchema,
89
+ detail: z.string(),
90
+ isRetry: z.boolean(),
91
+ isTest: z.boolean(),
92
+ providerId: z.number(),
93
+ raw: z.string().optional(),
94
+ source: exports.Source$inboundSchema,
95
+ }).transform((v) => {
96
+ return (0, primitives_js_1.remap)(v, {
97
+ "_id": "id",
98
+ "_jobId": "jobId",
99
+ });
100
+ });
101
+ /** @internal */
102
+ exports.ActivityNotificationExecutionDetailResponseDto$outboundSchema = z.object({
103
+ id: z.string(),
104
+ jobId: z.string(),
105
+ status: exports.ActivityNotificationExecutionDetailResponseDtoStatus$outboundSchema,
106
+ detail: z.string(),
107
+ isRetry: z.boolean(),
108
+ isTest: z.boolean(),
109
+ providerId: z.number(),
110
+ raw: z.string().optional(),
111
+ source: exports.Source$outboundSchema,
112
+ }).transform((v) => {
113
+ return (0, primitives_js_1.remap)(v, {
114
+ id: "_id",
115
+ jobId: "_jobId",
116
+ });
117
+ });
118
+ /**
119
+ * @internal
120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
121
+ */
122
+ var ActivityNotificationExecutionDetailResponseDto$;
123
+ (function (ActivityNotificationExecutionDetailResponseDto$) {
124
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDto$inboundSchema` instead. */
125
+ ActivityNotificationExecutionDetailResponseDto$.inboundSchema = exports.ActivityNotificationExecutionDetailResponseDto$inboundSchema;
126
+ /** @deprecated use `ActivityNotificationExecutionDetailResponseDto$outboundSchema` instead. */
127
+ ActivityNotificationExecutionDetailResponseDto$.outboundSchema = exports.ActivityNotificationExecutionDetailResponseDto$outboundSchema;
128
+ })(ActivityNotificationExecutionDetailResponseDto$ || (exports.ActivityNotificationExecutionDetailResponseDto$ = ActivityNotificationExecutionDetailResponseDto$ = {}));
129
+ function activityNotificationExecutionDetailResponseDtoToJSON(activityNotificationExecutionDetailResponseDto) {
130
+ return JSON.stringify(exports.ActivityNotificationExecutionDetailResponseDto$outboundSchema.parse(activityNotificationExecutionDetailResponseDto));
131
+ }
132
+ exports.activityNotificationExecutionDetailResponseDtoToJSON = activityNotificationExecutionDetailResponseDtoToJSON;
133
+ function activityNotificationExecutionDetailResponseDtoFromJSON(jsonString) {
134
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ActivityNotificationExecutionDetailResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActivityNotificationExecutionDetailResponseDto' from JSON`);
135
+ }
136
+ exports.activityNotificationExecutionDetailResponseDtoFromJSON = activityNotificationExecutionDetailResponseDtoFromJSON;
137
+ //# sourceMappingURL=activitynotificationexecutiondetailresponsedto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activitynotificationexecutiondetailresponsedto.js","sourceRoot":"","sources":["../../src/models/components/activitynotificationexecutiondetailresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKjD;;GAEG;AACU,QAAA,oDAAoD,GAAG;IAClE,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAQX;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AA6CX,gBAAgB;AACH,QAAA,kEAAkE,GAE3E,CAAC,CAAC,UAAU,CAAC,4DAAoD,CAAC,CAAC;AAEvE,gBAAgB;AACH,QAAA,mEAAmE,GAE5E,0EAAkE,CAAC;AAEvE;;;GAGG;AACH,IAAiB,qDAAqD,CAOrE;AAPD,WAAiB,qDAAqD;IACpE,oGAAoG;IACvF,mEAAa,GACxB,0EAAkE,CAAC;IACrE,qGAAqG;IACxF,oEAAc,GACzB,2EAAmE,CAAC;AACxE,CAAC,EAPgB,qDAAqD,qEAArD,qDAAqD,QAOrE;AAED,gBAAgB;AACH,QAAA,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,cAAM,CAAC,CAAC;AAEtB,gBAAgB;AACH,QAAA,qBAAqB,GAChC,4BAAoB,CAAC;AAEvB;;;GAGG;AACH,IAAiB,OAAO,CAKvB;AALD,WAAiB,OAAO;IACtB,sDAAsD;IACzC,qBAAa,GAAG,4BAAoB,CAAC;IAClD,uDAAuD;IAC1C,sBAAc,GAAG,6BAAqB,CAAC;AACtD,CAAC,EALgB,OAAO,uBAAP,OAAO,Q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AC,CAAC;AAEL;;;GAGG;AACH,IAAiB,+CAA+C,CAU/D;AAVD,WAAiB,+CAA+C;IAC9D,8FAA8F;IACjF,6DAAa,GACxB,oEAA4D,CAAC;IAC/D,+FAA+F;IAClF,8DAAc,GACzB,qEAA6D,CAAC;AAIlE,CAAC,EAVgB,+CAA+C,+DAA/C,+CAA+C,QAU/D;AAED,SAAgB,oDAAoD,CAClE,8CACgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,qEAA6D,CAAC,KAAK,CACjE,8CAA8C,CAC/C,CACF,CAAC;AACJ,CAAC;AATD,oHASC;AAED,SAAgB,sDAAsD,CACpE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,oEAA4D,CAAC,KAAK,CAChE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,4EAA4E,CAC7E,CAAC;AACJ,CAAC;AAdD,wHAcC"}
@@ -0,0 +1,117 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { ActivityNotificationExecutionDetailResponseDto, ActivityNotificationExecutionDetailResponseDto$Outbound } from "./activitynotificationexecutiondetailresponsedto.js";
5
+ import { ActivityNotificationStepResponseDto, ActivityNotificationStepResponseDto$Outbound } from "./activitynotificationstepresponsedto.js";
6
+ /**
7
+ * Optional digest for the job
8
+ */
9
+ export type Digest = {};
10
+ /**
11
+ * Optional payload for the job
12
+ */
13
+ export type Payload = {};
14
+ export type ActivityNotificationJobResponseDto = {
15
+ /**
16
+ * Unique identifier of the job
17
+ */
18
+ id: string;
19
+ /**
20
+ * Type of the job
21
+ */
22
+ type: string;
23
+ /**
24
+ * Optional digest for the job
25
+ */
26
+ digest?: Digest | undefined;
27
+ /**
28
+ * Execution details of the job
29
+ */
30
+ executionDetails: Array<ActivityNotificationExecutionDetailResponseDto>;
31
+ /**
32
+ * Step details of the job
33
+ */
34
+ step: ActivityNotificationStepResponseDto;
35
+ /**
36
+ * Optional payload for the job
37
+ */
38
+ payload?: Payload | undefined;
39
+ /**
40
+ * Provider ID of the job
41
+ */
42
+ providerId: number;
43
+ /**
44
+ * Status of the job
45
+ */
46
+ status: string;
47
+ };
48
+ /** @internal */
49
+ export declare const Digest$inboundSchema: z.ZodType<Digest, z.ZodTypeDef, unknown>;
50
+ /** @internal */
51
+ export type Digest$Outbound = {};
52
+ /** @internal */
53
+ export declare const Digest$outboundSchema: z.ZodType<Digest$Outbound, z.ZodTypeDef, Digest>;
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export declare namespace Digest$ {
59
+ /** @deprecated use `Digest$inboundSchema` instead. */
60
+ const inboundSchema: z.ZodType<Digest, z.ZodTypeDef, unknown>;
61
+ /** @deprecated use `Digest$outboundSchema` instead. */
62
+ const outboundSchema: z.ZodType<Digest$Outbound, z.ZodTypeDef, Digest>;
63
+ /** @deprecated use `Digest$Outbound` instead. */
64
+ type Outbound = Digest$Outbound;
65
+ }
66
+ export declare function digestToJSON(digest: Digest): string;
67
+ export declare function digestFromJSON(jsonString: string): SafeParseResult<Digest, SDKValidationError>;
68
+ /** @internal */
69
+ export declare const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown>;
70
+ /** @internal */
71
+ export type Payload$Outbound = {};
72
+ /** @internal */
73
+ export declare const Payload$outboundSchema: z.ZodType<Payload$Outbound, z.ZodTypeDef, Payload>;
74
+ /**
75
+ * @internal
76
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
+ */
78
+ export declare namespace Payload$ {
79
+ /** @deprecated use `Payload$inboundSchema` instead. */
80
+ const inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown>;
81
+ /** @deprecated use `Payload$outboundSchema` instead. */
82
+ const outboundSchema: z.ZodType<Payload$Outbound, z.ZodTypeDef, Payload>;
83
+ /** @deprecated use `Payload$Outbound` instead. */
84
+ type Outbound = Payload$Outbound;
85
+ }
86
+ export declare function payloadToJSON(payload: Payload): string;
87
+ export declare function payloadFromJSON(jsonString: string): SafeParseResult<Payload, SDKValidationError>;
88
+ /** @internal */
89
+ export declare const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<ActivityNotificationJobResponseDto, z.ZodTypeDef, unknown>;
90
+ /** @internal */
91
+ export type ActivityNotificationJobResponseDto$Outbound = {
92
+ _id: string;
93
+ type: string;
94
+ digest?: Digest$Outbound | undefined;
95
+ executionDetails: Array<ActivityNotificationExecutionDetailResponseDto$Outbound>;
96
+ step: ActivityNotificationStepResponseDto$Outbound;
97
+ payload?: Payload$Outbound | undefined;
98
+ providerId: number;
99
+ status: string;
100
+ };
101
+ /** @internal */
102
+ export declare const ActivityNotificationJobResponseDto$outboundSchema: z.ZodType<ActivityNotificationJobResponseDto$Outbound, z.ZodTypeDef, ActivityNotificationJobResponseDto>;
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export declare namespace ActivityNotificationJobResponseDto$ {
108
+ /** @deprecated use `ActivityNotificationJobResponseDto$inboundSchema` instead. */
109
+ const inboundSchema: z.ZodType<ActivityNotificationJobResponseDto, z.ZodTypeDef, unknown>;
110
+ /** @deprecated use `ActivityNotificationJobResponseDto$outboundSchema` instead. */
111
+ const outboundSchema: z.ZodType<ActivityNotificationJobResponseDto$Outbound, z.ZodTypeDef, ActivityNotificationJobResponseDto>;
112
+ /** @deprecated use `ActivityNotificationJobResponseDto$Outbound` instead. */
113
+ type Outbound = ActivityNotificationJobResponseDto$Outbound;
114
+ }
115
+ export declare function activityNotificationJobResponseDtoToJSON(activityNotificationJobResponseDto: ActivityNotificationJobResponseDto): string;
116
+ export declare function activityNotificationJobResponseDtoFromJSON(jsonString: string): SafeParseResult<ActivityNotificationJobResponseDto, SDKValidationError>;
117
+ //# sourceMappingURL=activitynotificationjobresponsedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activitynotificationjobresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitynotificationjobresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8CAA8C,EAE9C,uDAAuD,EAExD,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,EAAE,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,8CAA8C,CAAC,CAAC;IACxE;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAC7D,CAAC;AAEd,gBAAgB;AAChB,MAAM,MAAM,eAAe,GAAG,EAAE,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC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B,MAAM,MAAM,2CAA2C,GAAG;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,gBAAgB,EAAE,KAAK,CACrB,uDAAuD,CACxD,CAAC;IACF,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAgBlC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mCAAmC,CAAC;IACnD,kFAAkF;IAC3E,MAAM,aAAa,sEAAmD,CAAC;IAC9E,mFAAmF;IAC5E,MAAM,cAAc,0GACwB,CAAC;IACpD,6EAA6E;IAC7E,KAAY,QAAQ,GAAG,2CAA2C,CAAC;CACpE;AAED,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR;AAED,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.activityNotificationJobResponseDtoFromJSON = exports.activityNotificationJobResponseDtoToJSON = exports.ActivityNotificationJobResponseDto$ = exports.ActivityNotificationJobResponseDto$outboundSchema = exports.ActivityNotificationJobResponseDto$inboundSchema = exports.payloadFromJSON = exports.payloadToJSON = exports.Payload$ = exports.Payload$outboundSchema = exports.Payload$inboundSchema = exports.digestFromJSON = exports.digestToJSON = exports.Digest$ = exports.Digest$outboundSchema = exports.Digest$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ const activitynotificationexecutiondetailresponsedto_js_1 = require("./activitynotificationexecutiondetailresponsedto.js");
34
+ const activitynotificationstepresponsedto_js_1 = require("./activitynotificationstepresponsedto.js");
35
+ /** @internal */
36
+ exports.Digest$inboundSchema = z
37
+ .object({});
38
+ /** @internal */
39
+ exports.Digest$outboundSchema = z.object({});
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
+ var Digest$;
45
+ (function (Digest$) {
46
+ /** @deprecated use `Digest$inboundSchema` instead. */
47
+ Digest$.inboundSchema = exports.Digest$inboundSchema;
48
+ /** @deprecated use `Digest$outboundSchema` instead. */
49
+ Digest$.outboundSchema = exports.Digest$outboundSchema;
50
+ })(Digest$ || (exports.Digest$ = Digest$ = {}));
51
+ function digestToJSON(digest) {
52
+ return JSON.stringify(exports.Digest$outboundSchema.parse(digest));
53
+ }
54
+ exports.digestToJSON = digestToJSON;
55
+ function digestFromJSON(jsonString) {
56
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Digest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Digest' from JSON`);
57
+ }
58
+ exports.digestFromJSON = digestFromJSON;
59
+ /** @internal */
60
+ exports.Payload$inboundSchema = z.object({});
61
+ /** @internal */
62
+ exports.Payload$outboundSchema = z.object({});
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ var Payload$;
68
+ (function (Payload$) {
69
+ /** @deprecated use `Payload$inboundSchema` instead. */
70
+ Payload$.inboundSchema = exports.Payload$inboundSchema;
71
+ /** @deprecated use `Payload$outboundSchema` instead. */
72
+ Payload$.outboundSchema = exports.Payload$outboundSchema;
73
+ })(Payload$ || (exports.Payload$ = Payload$ = {}));
74
+ function payloadToJSON(payload) {
75
+ return JSON.stringify(exports.Payload$outboundSchema.parse(payload));
76
+ }
77
+ exports.payloadToJSON = payloadToJSON;
78
+ function payloadFromJSON(jsonString) {
79
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Payload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Payload' from JSON`);
80
+ }
81
+ exports.payloadFromJSON = payloadFromJSON;
82
+ /** @internal */
83
+ exports.ActivityNotificationJobResponseDto$inboundSchema = z.object({
84
+ _id: z.string(),
85
+ type: z.string(),
86
+ digest: z.lazy(() => exports.Digest$inboundSchema).optional(),
87
+ executionDetails: z.array(activitynotificationexecutiondetailresponsedto_js_1.ActivityNotificationExecutionDetailResponseDto$inboundSchema),
88
+ step: activitynotificationstepresponsedto_js_1.ActivityNotificationStepResponseDto$inboundSchema,
89
+ payload: z.lazy(() => exports.Payload$inboundSchema).optional(),
90
+ providerId: z.number(),
91
+ status: z.string(),
92
+ }).transform((v) => {
93
+ return (0, primitives_js_1.remap)(v, {
94
+ "_id": "id",
95
+ });
96
+ });
97
+ /** @internal */
98
+ exports.ActivityNotificationJobResponseDto$outboundSchema = z.object({
99
+ id: z.string(),
100
+ type: z.string(),
101
+ digest: z.lazy(() => exports.Digest$outboundSchema).optional(),
102
+ executionDetails: z.array(activitynotificationexecutiondetailresponsedto_js_1.ActivityNotificationExecutionDetailResponseDto$outboundSchema),
103
+ step: activitynotificationstepresponsedto_js_1.ActivityNotificationStepResponseDto$outboundSchema,
104
+ payload: z.lazy(() => exports.Payload$outboundSchema).optional(),
105
+ providerId: z.number(),
106
+ status: z.string(),
107
+ }).transform((v) => {
108
+ return (0, primitives_js_1.remap)(v, {
109
+ id: "_id",
110
+ });
111
+ });
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ var ActivityNotificationJobResponseDto$;
117
+ (function (ActivityNotificationJobResponseDto$) {
118
+ /** @deprecated use `ActivityNotificationJobResponseDto$inboundSchema` instead. */
119
+ ActivityNotificationJobResponseDto$.inboundSchema = exports.ActivityNotificationJobResponseDto$inboundSchema;
120
+ /** @deprecated use `ActivityNotificationJobResponseDto$outboundSchema` instead. */
121
+ ActivityNotificationJobResponseDto$.outboundSchema = exports.ActivityNotificationJobResponseDto$outboundSchema;
122
+ })(ActivityNotificationJobResponseDto$ || (exports.ActivityNotificationJobResponseDto$ = ActivityNotificationJobResponseDto$ = {}));
123
+ function activityNotificationJobResponseDtoToJSON(activityNotificationJobResponseDto) {
124
+ return JSON.stringify(exports.ActivityNotificationJobResponseDto$outboundSchema.parse(activityNotificationJobResponseDto));
125
+ }
126
+ exports.activityNotificationJobResponseDtoToJSON = activityNotificationJobResponseDtoToJSON;
127
+ function activityNotificationJobResponseDtoFromJSON(jsonString) {
128
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ActivityNotificationJobResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActivityNotificationJobResponseDto' from JSON`);
129
+ }
130
+ exports.activityNotificationJobResponseDtoFromJSON = activityNotificationJobResponseDtoFromJSON;
131
+ //# sourceMappingURL=activitynotificationjobresponsedto.js.map