@launchdarkly/mcp-server 0.6.1 → 0.6.2

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 (166) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/README.md +4 -0
  3. package/bin/mcp-server.js +498 -75
  4. package/bin/mcp-server.js.map +21 -9
  5. package/dist/commonjs/funcs/auditLogListEntries.d.ts +21 -0
  6. package/dist/commonjs/funcs/auditLogListEntries.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/auditLogListEntries.js +128 -0
  8. package/dist/commonjs/funcs/auditLogListEntries.js.map +1 -0
  9. package/dist/commonjs/lib/config.d.ts +2 -2
  10. package/dist/commonjs/lib/config.js +2 -2
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  13. package/dist/commonjs/mcp-server/server.js +3 -1
  14. package/dist/commonjs/mcp-server/server.js.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/auditLogListEntries.d.ts +8 -0
  16. package/dist/commonjs/mcp-server/tools/auditLogListEntries.d.ts.map +1 -0
  17. package/dist/commonjs/mcp-server/tools/auditLogListEntries.js +64 -0
  18. package/dist/commonjs/mcp-server/tools/auditLogListEntries.js.map +1 -0
  19. package/dist/commonjs/models/components/auditlogentrylistingrep.d.ts +93 -0
  20. package/dist/commonjs/models/components/auditlogentrylistingrep.d.ts.map +1 -0
  21. package/dist/commonjs/models/components/auditlogentrylistingrep.js +113 -0
  22. package/dist/commonjs/models/components/auditlogentrylistingrep.js.map +1 -0
  23. package/dist/commonjs/models/components/auditlogentrylistingrepcollection.d.ts +31 -0
  24. package/dist/commonjs/models/components/auditlogentrylistingrepcollection.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/auditlogentrylistingrepcollection.js +71 -0
  26. package/dist/commonjs/models/components/auditlogentrylistingrepcollection.js.map +1 -0
  27. package/dist/commonjs/models/components/authorizedappdatarep.d.ts +42 -0
  28. package/dist/commonjs/models/components/authorizedappdatarep.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/authorizedappdatarep.js +78 -0
  30. package/dist/commonjs/models/components/authorizedappdatarep.js.map +1 -0
  31. package/dist/commonjs/models/components/index.d.ts +9 -0
  32. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/index.js +9 -0
  34. package/dist/commonjs/models/components/index.js.map +1 -1
  35. package/dist/commonjs/models/components/memberdatarep.d.ts +42 -0
  36. package/dist/commonjs/models/components/memberdatarep.d.ts.map +1 -0
  37. package/dist/commonjs/models/components/memberdatarep.js +78 -0
  38. package/dist/commonjs/models/components/memberdatarep.js.map +1 -0
  39. package/dist/commonjs/models/components/parentresourcerep.d.ts +32 -0
  40. package/dist/commonjs/models/components/parentresourcerep.d.ts.map +1 -0
  41. package/dist/commonjs/models/components/parentresourcerep.js +72 -0
  42. package/dist/commonjs/models/components/parentresourcerep.js.map +1 -0
  43. package/dist/commonjs/models/components/resourceaccess.d.ts +19 -0
  44. package/dist/commonjs/models/components/resourceaccess.d.ts.map +1 -0
  45. package/dist/commonjs/models/components/resourceaccess.js +60 -0
  46. package/dist/commonjs/models/components/resourceaccess.js.map +1 -0
  47. package/dist/commonjs/models/components/subjectdatarep.d.ts +32 -0
  48. package/dist/commonjs/models/components/subjectdatarep.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/subjectdatarep.js +72 -0
  50. package/dist/commonjs/models/components/subjectdatarep.js.map +1 -0
  51. package/dist/commonjs/models/components/targetresourcerep.d.ts +32 -0
  52. package/dist/commonjs/models/components/targetresourcerep.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/targetresourcerep.js +72 -0
  54. package/dist/commonjs/models/components/targetresourcerep.js.map +1 -0
  55. package/dist/commonjs/models/components/tokensummary.d.ts +39 -0
  56. package/dist/commonjs/models/components/tokensummary.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/tokensummary.js +78 -0
  58. package/dist/commonjs/models/components/tokensummary.js.map +1 -0
  59. package/dist/commonjs/models/operations/getauditlogentries.d.ts +40 -0
  60. package/dist/commonjs/models/operations/getauditlogentries.d.ts.map +1 -0
  61. package/dist/commonjs/models/operations/getauditlogentries.js +66 -0
  62. package/dist/commonjs/models/operations/getauditlogentries.js.map +1 -0
  63. package/dist/commonjs/models/operations/index.d.ts +1 -0
  64. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  65. package/dist/commonjs/models/operations/index.js +1 -0
  66. package/dist/commonjs/models/operations/index.js.map +1 -1
  67. package/dist/commonjs/sdk/auditlog.d.ts +15 -0
  68. package/dist/commonjs/sdk/auditlog.d.ts.map +1 -0
  69. package/dist/commonjs/sdk/auditlog.js +24 -0
  70. package/dist/commonjs/sdk/auditlog.js.map +1 -0
  71. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  72. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  73. package/dist/commonjs/sdk/sdk.js +4 -0
  74. package/dist/commonjs/sdk/sdk.js.map +1 -1
  75. package/dist/esm/funcs/auditLogListEntries.d.ts +21 -0
  76. package/dist/esm/funcs/auditLogListEntries.d.ts.map +1 -0
  77. package/dist/esm/funcs/auditLogListEntries.js +92 -0
  78. package/dist/esm/funcs/auditLogListEntries.js.map +1 -0
  79. package/dist/esm/lib/config.d.ts +2 -2
  80. package/dist/esm/lib/config.js +2 -2
  81. package/dist/esm/mcp-server/mcp-server.js +1 -1
  82. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  83. package/dist/esm/mcp-server/server.js +3 -1
  84. package/dist/esm/mcp-server/server.js.map +1 -1
  85. package/dist/esm/mcp-server/tools/auditLogListEntries.d.ts +8 -0
  86. package/dist/esm/mcp-server/tools/auditLogListEntries.d.ts.map +1 -0
  87. package/dist/esm/mcp-server/tools/auditLogListEntries.js +28 -0
  88. package/dist/esm/mcp-server/tools/auditLogListEntries.js.map +1 -0
  89. package/dist/esm/models/components/auditlogentrylistingrep.d.ts +93 -0
  90. package/dist/esm/models/components/auditlogentrylistingrep.d.ts.map +1 -0
  91. package/dist/esm/models/components/auditlogentrylistingrep.js +75 -0
  92. package/dist/esm/models/components/auditlogentrylistingrep.js.map +1 -0
  93. package/dist/esm/models/components/auditlogentrylistingrepcollection.d.ts +31 -0
  94. package/dist/esm/models/components/auditlogentrylistingrepcollection.d.ts.map +1 -0
  95. package/dist/esm/models/components/auditlogentrylistingrepcollection.js +33 -0
  96. package/dist/esm/models/components/auditlogentrylistingrepcollection.js.map +1 -0
  97. package/dist/esm/models/components/authorizedappdatarep.d.ts +42 -0
  98. package/dist/esm/models/components/authorizedappdatarep.d.ts.map +1 -0
  99. package/dist/esm/models/components/authorizedappdatarep.js +40 -0
  100. package/dist/esm/models/components/authorizedappdatarep.js.map +1 -0
  101. package/dist/esm/models/components/index.d.ts +9 -0
  102. package/dist/esm/models/components/index.d.ts.map +1 -1
  103. package/dist/esm/models/components/index.js +9 -0
  104. package/dist/esm/models/components/index.js.map +1 -1
  105. package/dist/esm/models/components/memberdatarep.d.ts +42 -0
  106. package/dist/esm/models/components/memberdatarep.d.ts.map +1 -0
  107. package/dist/esm/models/components/memberdatarep.js +40 -0
  108. package/dist/esm/models/components/memberdatarep.js.map +1 -0
  109. package/dist/esm/models/components/parentresourcerep.d.ts +32 -0
  110. package/dist/esm/models/components/parentresourcerep.d.ts.map +1 -0
  111. package/dist/esm/models/components/parentresourcerep.js +34 -0
  112. package/dist/esm/models/components/parentresourcerep.js.map +1 -0
  113. package/dist/esm/models/components/resourceaccess.d.ts +19 -0
  114. package/dist/esm/models/components/resourceaccess.d.ts.map +1 -0
  115. package/dist/esm/models/components/resourceaccess.js +22 -0
  116. package/dist/esm/models/components/resourceaccess.js.map +1 -0
  117. package/dist/esm/models/components/subjectdatarep.d.ts +32 -0
  118. package/dist/esm/models/components/subjectdatarep.d.ts.map +1 -0
  119. package/dist/esm/models/components/subjectdatarep.js +34 -0
  120. package/dist/esm/models/components/subjectdatarep.js.map +1 -0
  121. package/dist/esm/models/components/targetresourcerep.d.ts +32 -0
  122. package/dist/esm/models/components/targetresourcerep.d.ts.map +1 -0
  123. package/dist/esm/models/components/targetresourcerep.js +34 -0
  124. package/dist/esm/models/components/targetresourcerep.js.map +1 -0
  125. package/dist/esm/models/components/tokensummary.d.ts +39 -0
  126. package/dist/esm/models/components/tokensummary.d.ts.map +1 -0
  127. package/dist/esm/models/components/tokensummary.js +40 -0
  128. package/dist/esm/models/components/tokensummary.js.map +1 -0
  129. package/dist/esm/models/operations/getauditlogentries.d.ts +40 -0
  130. package/dist/esm/models/operations/getauditlogentries.d.ts.map +1 -0
  131. package/dist/esm/models/operations/getauditlogentries.js +28 -0
  132. package/dist/esm/models/operations/getauditlogentries.js.map +1 -0
  133. package/dist/esm/models/operations/index.d.ts +1 -0
  134. package/dist/esm/models/operations/index.d.ts.map +1 -1
  135. package/dist/esm/models/operations/index.js +1 -0
  136. package/dist/esm/models/operations/index.js.map +1 -1
  137. package/dist/esm/sdk/auditlog.d.ts +15 -0
  138. package/dist/esm/sdk/auditlog.d.ts.map +1 -0
  139. package/dist/esm/sdk/auditlog.js +20 -0
  140. package/dist/esm/sdk/auditlog.js.map +1 -0
  141. package/dist/esm/sdk/sdk.d.ts +3 -0
  142. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  143. package/dist/esm/sdk/sdk.js +4 -0
  144. package/dist/esm/sdk/sdk.js.map +1 -1
  145. package/examples/{codeReferencesListRepositories.example.ts → auditLogListEntries.example.ts} +2 -2
  146. package/jsr.json +1 -1
  147. package/package.json +1 -1
  148. package/src/funcs/auditLogListEntries.ts +192 -0
  149. package/src/lib/config.ts +2 -2
  150. package/src/mcp-server/mcp-server.ts +1 -1
  151. package/src/mcp-server/server.ts +3 -1
  152. package/src/mcp-server/tools/auditLogListEntries.ts +38 -0
  153. package/src/models/components/auditlogentrylistingrep.ts +210 -0
  154. package/src/models/components/auditlogentrylistingrepcollection.ts +84 -0
  155. package/src/models/components/authorizedappdatarep.ts +96 -0
  156. package/src/models/components/index.ts +9 -0
  157. package/src/models/components/memberdatarep.ts +92 -0
  158. package/src/models/components/parentresourcerep.ts +80 -0
  159. package/src/models/components/resourceaccess.ts +51 -0
  160. package/src/models/components/subjectdatarep.ts +76 -0
  161. package/src/models/components/targetresourcerep.ts +80 -0
  162. package/src/models/components/tokensummary.ts +89 -0
  163. package/src/models/operations/getauditlogentries.ts +82 -0
  164. package/src/models/operations/index.ts +1 -0
  165. package/src/sdk/auditlog.ts +30 -0
  166. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,210 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AuthorizedAppDataRep,
12
+ AuthorizedAppDataRep$inboundSchema,
13
+ AuthorizedAppDataRep$Outbound,
14
+ AuthorizedAppDataRep$outboundSchema,
15
+ } from "./authorizedappdatarep.js";
16
+ import {
17
+ Link,
18
+ Link$inboundSchema,
19
+ Link$Outbound,
20
+ Link$outboundSchema,
21
+ } from "./link.js";
22
+ import {
23
+ MemberDataRep,
24
+ MemberDataRep$inboundSchema,
25
+ MemberDataRep$Outbound,
26
+ MemberDataRep$outboundSchema,
27
+ } from "./memberdatarep.js";
28
+ import {
29
+ ParentResourceRep,
30
+ ParentResourceRep$inboundSchema,
31
+ ParentResourceRep$Outbound,
32
+ ParentResourceRep$outboundSchema,
33
+ } from "./parentresourcerep.js";
34
+ import {
35
+ ResourceAccess,
36
+ ResourceAccess$inboundSchema,
37
+ ResourceAccess$Outbound,
38
+ ResourceAccess$outboundSchema,
39
+ } from "./resourceaccess.js";
40
+ import {
41
+ SubjectDataRep,
42
+ SubjectDataRep$inboundSchema,
43
+ SubjectDataRep$Outbound,
44
+ SubjectDataRep$outboundSchema,
45
+ } from "./subjectdatarep.js";
46
+ import {
47
+ TargetResourceRep,
48
+ TargetResourceRep$inboundSchema,
49
+ TargetResourceRep$Outbound,
50
+ TargetResourceRep$outboundSchema,
51
+ } from "./targetresourcerep.js";
52
+ import {
53
+ TokenSummary,
54
+ TokenSummary$inboundSchema,
55
+ TokenSummary$Outbound,
56
+ TokenSummary$outboundSchema,
57
+ } from "./tokensummary.js";
58
+
59
+ export type AuditLogEntryListingRep = {
60
+ /**
61
+ * The location and content type of related resources
62
+ */
63
+ links: { [k: string]: Link };
64
+ /**
65
+ * The ID of the audit log entry
66
+ */
67
+ id: string;
68
+ /**
69
+ * The ID of the account to which this audit log entry belongs
70
+ */
71
+ accountId: string;
72
+ date: number;
73
+ /**
74
+ * Details on the actions performed and resources acted on in this audit log entry
75
+ */
76
+ accesses: Array<ResourceAccess>;
77
+ kind: string;
78
+ /**
79
+ * The name of the resource this audit log entry refers to
80
+ */
81
+ name: string;
82
+ /**
83
+ * Description of the change recorded in the audit log entry
84
+ */
85
+ description: string;
86
+ /**
87
+ * Shorter version of the change recorded in the audit log entry
88
+ */
89
+ shortDescription: string;
90
+ /**
91
+ * Optional comment for the audit log entry
92
+ */
93
+ comment?: string | undefined;
94
+ subject?: SubjectDataRep | undefined;
95
+ member?: MemberDataRep | undefined;
96
+ token?: TokenSummary | undefined;
97
+ app?: AuthorizedAppDataRep | undefined;
98
+ /**
99
+ * The action and resource recorded in this audit log entry
100
+ */
101
+ titleVerb?: string | undefined;
102
+ /**
103
+ * A description of what occurred, in the format <code>member</code> <code>titleVerb</code> <code>target</code>
104
+ */
105
+ title?: string | undefined;
106
+ target?: TargetResourceRep | undefined;
107
+ parent?: ParentResourceRep | undefined;
108
+ };
109
+
110
+ /** @internal */
111
+ export const AuditLogEntryListingRep$inboundSchema: z.ZodType<
112
+ AuditLogEntryListingRep,
113
+ z.ZodTypeDef,
114
+ unknown
115
+ > = z.object({
116
+ _links: z.record(Link$inboundSchema),
117
+ _id: z.string(),
118
+ _accountId: z.string(),
119
+ date: z.number().int(),
120
+ accesses: z.array(ResourceAccess$inboundSchema),
121
+ kind: z.string(),
122
+ name: z.string(),
123
+ description: z.string(),
124
+ shortDescription: z.string(),
125
+ comment: z.string().optional(),
126
+ subject: SubjectDataRep$inboundSchema.optional(),
127
+ member: MemberDataRep$inboundSchema.optional(),
128
+ token: TokenSummary$inboundSchema.optional(),
129
+ app: AuthorizedAppDataRep$inboundSchema.optional(),
130
+ titleVerb: z.string().optional(),
131
+ title: z.string().optional(),
132
+ target: TargetResourceRep$inboundSchema.optional(),
133
+ parent: ParentResourceRep$inboundSchema.optional(),
134
+ }).transform((v) => {
135
+ return remap$(v, {
136
+ "_links": "links",
137
+ "_id": "id",
138
+ "_accountId": "accountId",
139
+ });
140
+ });
141
+ /** @internal */
142
+ export type AuditLogEntryListingRep$Outbound = {
143
+ _links: { [k: string]: Link$Outbound };
144
+ _id: string;
145
+ _accountId: string;
146
+ date: number;
147
+ accesses: Array<ResourceAccess$Outbound>;
148
+ kind: string;
149
+ name: string;
150
+ description: string;
151
+ shortDescription: string;
152
+ comment?: string | undefined;
153
+ subject?: SubjectDataRep$Outbound | undefined;
154
+ member?: MemberDataRep$Outbound | undefined;
155
+ token?: TokenSummary$Outbound | undefined;
156
+ app?: AuthorizedAppDataRep$Outbound | undefined;
157
+ titleVerb?: string | undefined;
158
+ title?: string | undefined;
159
+ target?: TargetResourceRep$Outbound | undefined;
160
+ parent?: ParentResourceRep$Outbound | undefined;
161
+ };
162
+
163
+ /** @internal */
164
+ export const AuditLogEntryListingRep$outboundSchema: z.ZodType<
165
+ AuditLogEntryListingRep$Outbound,
166
+ z.ZodTypeDef,
167
+ AuditLogEntryListingRep
168
+ > = z.object({
169
+ links: z.record(Link$outboundSchema),
170
+ id: z.string(),
171
+ accountId: z.string(),
172
+ date: z.number().int(),
173
+ accesses: z.array(ResourceAccess$outboundSchema),
174
+ kind: z.string(),
175
+ name: z.string(),
176
+ description: z.string(),
177
+ shortDescription: z.string(),
178
+ comment: z.string().optional(),
179
+ subject: SubjectDataRep$outboundSchema.optional(),
180
+ member: MemberDataRep$outboundSchema.optional(),
181
+ token: TokenSummary$outboundSchema.optional(),
182
+ app: AuthorizedAppDataRep$outboundSchema.optional(),
183
+ titleVerb: z.string().optional(),
184
+ title: z.string().optional(),
185
+ target: TargetResourceRep$outboundSchema.optional(),
186
+ parent: ParentResourceRep$outboundSchema.optional(),
187
+ }).transform((v) => {
188
+ return remap$(v, {
189
+ links: "_links",
190
+ id: "_id",
191
+ accountId: "_accountId",
192
+ });
193
+ });
194
+
195
+ export function auditLogEntryListingRepToJSON(
196
+ auditLogEntryListingRep: AuditLogEntryListingRep,
197
+ ): string {
198
+ return JSON.stringify(
199
+ AuditLogEntryListingRep$outboundSchema.parse(auditLogEntryListingRep),
200
+ );
201
+ }
202
+ export function auditLogEntryListingRepFromJSON(
203
+ jsonString: string,
204
+ ): SafeParseResult<AuditLogEntryListingRep, SDKValidationError> {
205
+ return safeParse(
206
+ jsonString,
207
+ (x) => AuditLogEntryListingRep$inboundSchema.parse(JSON.parse(x)),
208
+ `Failed to parse 'AuditLogEntryListingRep' from JSON`,
209
+ );
210
+ }
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AuditLogEntryListingRep,
12
+ AuditLogEntryListingRep$inboundSchema,
13
+ AuditLogEntryListingRep$Outbound,
14
+ AuditLogEntryListingRep$outboundSchema,
15
+ } from "./auditlogentrylistingrep.js";
16
+ import {
17
+ Link,
18
+ Link$inboundSchema,
19
+ Link$Outbound,
20
+ Link$outboundSchema,
21
+ } from "./link.js";
22
+
23
+ export type AuditLogEntryListingRepCollection = {
24
+ /**
25
+ * An array of audit log entries
26
+ */
27
+ items: Array<AuditLogEntryListingRep>;
28
+ /**
29
+ * The location and content type of related resources
30
+ */
31
+ links: { [k: string]: Link };
32
+ };
33
+
34
+ /** @internal */
35
+ export const AuditLogEntryListingRepCollection$inboundSchema: z.ZodType<
36
+ AuditLogEntryListingRepCollection,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ items: z.array(AuditLogEntryListingRep$inboundSchema),
41
+ _links: z.record(Link$inboundSchema),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "_links": "links",
45
+ });
46
+ });
47
+ /** @internal */
48
+ export type AuditLogEntryListingRepCollection$Outbound = {
49
+ items: Array<AuditLogEntryListingRep$Outbound>;
50
+ _links: { [k: string]: Link$Outbound };
51
+ };
52
+
53
+ /** @internal */
54
+ export const AuditLogEntryListingRepCollection$outboundSchema: z.ZodType<
55
+ AuditLogEntryListingRepCollection$Outbound,
56
+ z.ZodTypeDef,
57
+ AuditLogEntryListingRepCollection
58
+ > = z.object({
59
+ items: z.array(AuditLogEntryListingRep$outboundSchema),
60
+ links: z.record(Link$outboundSchema),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ links: "_links",
64
+ });
65
+ });
66
+
67
+ export function auditLogEntryListingRepCollectionToJSON(
68
+ auditLogEntryListingRepCollection: AuditLogEntryListingRepCollection,
69
+ ): string {
70
+ return JSON.stringify(
71
+ AuditLogEntryListingRepCollection$outboundSchema.parse(
72
+ auditLogEntryListingRepCollection,
73
+ ),
74
+ );
75
+ }
76
+ export function auditLogEntryListingRepCollectionFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<AuditLogEntryListingRepCollection, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => AuditLogEntryListingRepCollection$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'AuditLogEntryListingRepCollection' from JSON`,
83
+ );
84
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ Link,
12
+ Link$inboundSchema,
13
+ Link$Outbound,
14
+ Link$outboundSchema,
15
+ } from "./link.js";
16
+
17
+ export type AuthorizedAppDataRep = {
18
+ links?: { [k: string]: Link } | undefined;
19
+ /**
20
+ * The ID of the authorized application
21
+ */
22
+ id?: string | undefined;
23
+ /**
24
+ * Whether the application is authorized through SCIM
25
+ */
26
+ isScim?: boolean | undefined;
27
+ /**
28
+ * The authorized application name
29
+ */
30
+ name?: string | undefined;
31
+ /**
32
+ * The name of the maintainer for this authorized application
33
+ */
34
+ maintainerName?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AuthorizedAppDataRep$inboundSchema: z.ZodType<
39
+ AuthorizedAppDataRep,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ _links: z.record(Link$inboundSchema).optional(),
44
+ _id: z.string().optional(),
45
+ isScim: z.boolean().optional(),
46
+ name: z.string().optional(),
47
+ maintainerName: z.string().optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ "_links": "links",
51
+ "_id": "id",
52
+ });
53
+ });
54
+ /** @internal */
55
+ export type AuthorizedAppDataRep$Outbound = {
56
+ _links?: { [k: string]: Link$Outbound } | undefined;
57
+ _id?: string | undefined;
58
+ isScim?: boolean | undefined;
59
+ name?: string | undefined;
60
+ maintainerName?: string | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const AuthorizedAppDataRep$outboundSchema: z.ZodType<
65
+ AuthorizedAppDataRep$Outbound,
66
+ z.ZodTypeDef,
67
+ AuthorizedAppDataRep
68
+ > = z.object({
69
+ links: z.record(Link$outboundSchema).optional(),
70
+ id: z.string().optional(),
71
+ isScim: z.boolean().optional(),
72
+ name: z.string().optional(),
73
+ maintainerName: z.string().optional(),
74
+ }).transform((v) => {
75
+ return remap$(v, {
76
+ links: "_links",
77
+ id: "_id",
78
+ });
79
+ });
80
+
81
+ export function authorizedAppDataRepToJSON(
82
+ authorizedAppDataRep: AuthorizedAppDataRep,
83
+ ): string {
84
+ return JSON.stringify(
85
+ AuthorizedAppDataRep$outboundSchema.parse(authorizedAppDataRep),
86
+ );
87
+ }
88
+ export function authorizedAppDataRepFromJSON(
89
+ jsonString: string,
90
+ ): SafeParseResult<AuthorizedAppDataRep, SDKValidationError> {
91
+ return safeParse(
92
+ jsonString,
93
+ (x) => AuthorizedAppDataRep$inboundSchema.parse(JSON.parse(x)),
94
+ `Failed to parse 'AuthorizedAppDataRep' from JSON`,
95
+ );
96
+ }
@@ -48,6 +48,9 @@ export * from "./aiconfigvariationpatch.js";
48
48
  export * from "./aiconfigvariationpost.js";
49
49
  export * from "./aiconfigvariationsresponse.js";
50
50
  export * from "./approvalsettings.js";
51
+ export * from "./auditlogentrylistingrep.js";
52
+ export * from "./auditlogentrylistingrepcollection.js";
53
+ export * from "./authorizedappdatarep.js";
51
54
  export * from "./branchrep.js";
52
55
  export * from "./clause.js";
53
56
  export * from "./clientsideavailability.js";
@@ -79,6 +82,7 @@ export * from "./judgeconfiguration.js";
79
82
  export * from "./legacyexperimentrep.js";
80
83
  export * from "./link.js";
81
84
  export * from "./maintainerteam.js";
85
+ export * from "./memberdatarep.js";
82
86
  export * from "./membersummary.js";
83
87
  export * from "./message.js";
84
88
  export * from "./metricdatasourcerefrep.js";
@@ -89,16 +93,21 @@ export * from "./modification.js";
89
93
  export * from "./paginatedlinks.js";
90
94
  export * from "./parentandselflinks.js";
91
95
  export * from "./parentlink.js";
96
+ export * from "./parentresourcerep.js";
92
97
  export * from "./patchoperation.js";
93
98
  export * from "./patchwithcomment.js";
94
99
  export * from "./prerequisite.js";
95
100
  export * from "./referencerep.js";
96
101
  export * from "./repositorycollectionrep.js";
97
102
  export * from "./repositoryrep.js";
103
+ export * from "./resourceaccess.js";
98
104
  export * from "./rollout.js";
99
105
  export * from "./rule.js";
100
106
  export * from "./security.js";
107
+ export * from "./subjectdatarep.js";
101
108
  export * from "./target.js";
109
+ export * from "./targetresourcerep.js";
110
+ export * from "./tokensummary.js";
102
111
  export * from "./variation.js";
103
112
  export * from "./variationorrolloutrep.js";
104
113
  export * from "./variationsummary.js";
@@ -0,0 +1,92 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ Link,
12
+ Link$inboundSchema,
13
+ Link$Outbound,
14
+ Link$outboundSchema,
15
+ } from "./link.js";
16
+
17
+ export type MemberDataRep = {
18
+ links?: { [k: string]: Link } | undefined;
19
+ /**
20
+ * The member ID
21
+ */
22
+ id?: string | undefined;
23
+ /**
24
+ * The member email
25
+ */
26
+ email?: string | undefined;
27
+ /**
28
+ * The member first name
29
+ */
30
+ firstName?: string | undefined;
31
+ /**
32
+ * The member last name
33
+ */
34
+ lastName?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const MemberDataRep$inboundSchema: z.ZodType<
39
+ MemberDataRep,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ _links: z.record(Link$inboundSchema).optional(),
44
+ _id: z.string().optional(),
45
+ email: z.string().optional(),
46
+ firstName: z.string().optional(),
47
+ lastName: z.string().optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ "_links": "links",
51
+ "_id": "id",
52
+ });
53
+ });
54
+ /** @internal */
55
+ export type MemberDataRep$Outbound = {
56
+ _links?: { [k: string]: Link$Outbound } | undefined;
57
+ _id?: string | undefined;
58
+ email?: string | undefined;
59
+ firstName?: string | undefined;
60
+ lastName?: string | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const MemberDataRep$outboundSchema: z.ZodType<
65
+ MemberDataRep$Outbound,
66
+ z.ZodTypeDef,
67
+ MemberDataRep
68
+ > = z.object({
69
+ links: z.record(Link$outboundSchema).optional(),
70
+ id: z.string().optional(),
71
+ email: z.string().optional(),
72
+ firstName: z.string().optional(),
73
+ lastName: z.string().optional(),
74
+ }).transform((v) => {
75
+ return remap$(v, {
76
+ links: "_links",
77
+ id: "_id",
78
+ });
79
+ });
80
+
81
+ export function memberDataRepToJSON(memberDataRep: MemberDataRep): string {
82
+ return JSON.stringify(MemberDataRep$outboundSchema.parse(memberDataRep));
83
+ }
84
+ export function memberDataRepFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<MemberDataRep, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => MemberDataRep$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'MemberDataRep' from JSON`,
91
+ );
92
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ Link,
12
+ Link$inboundSchema,
13
+ Link$Outbound,
14
+ Link$outboundSchema,
15
+ } from "./link.js";
16
+
17
+ export type ParentResourceRep = {
18
+ links?: { [k: string]: Link } | undefined;
19
+ /**
20
+ * The name of the parent resource
21
+ */
22
+ name?: string | undefined;
23
+ /**
24
+ * The parent's resource specifier
25
+ */
26
+ resource?: string | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ParentResourceRep$inboundSchema: z.ZodType<
31
+ ParentResourceRep,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ _links: z.record(Link$inboundSchema).optional(),
36
+ name: z.string().optional(),
37
+ resource: z.string().optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "_links": "links",
41
+ });
42
+ });
43
+ /** @internal */
44
+ export type ParentResourceRep$Outbound = {
45
+ _links?: { [k: string]: Link$Outbound } | undefined;
46
+ name?: string | undefined;
47
+ resource?: string | undefined;
48
+ };
49
+
50
+ /** @internal */
51
+ export const ParentResourceRep$outboundSchema: z.ZodType<
52
+ ParentResourceRep$Outbound,
53
+ z.ZodTypeDef,
54
+ ParentResourceRep
55
+ > = z.object({
56
+ links: z.record(Link$outboundSchema).optional(),
57
+ name: z.string().optional(),
58
+ resource: z.string().optional(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ links: "_links",
62
+ });
63
+ });
64
+
65
+ export function parentResourceRepToJSON(
66
+ parentResourceRep: ParentResourceRep,
67
+ ): string {
68
+ return JSON.stringify(
69
+ ParentResourceRep$outboundSchema.parse(parentResourceRep),
70
+ );
71
+ }
72
+ export function parentResourceRepFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<ParentResourceRep, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => ParentResourceRep$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'ParentResourceRep' from JSON`,
79
+ );
80
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 ResourceAccess = {
11
+ action?: string | undefined;
12
+ resource?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const ResourceAccess$inboundSchema: z.ZodType<
17
+ ResourceAccess,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ action: z.string().optional(),
22
+ resource: z.string().optional(),
23
+ });
24
+ /** @internal */
25
+ export type ResourceAccess$Outbound = {
26
+ action?: string | undefined;
27
+ resource?: string | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export const ResourceAccess$outboundSchema: z.ZodType<
32
+ ResourceAccess$Outbound,
33
+ z.ZodTypeDef,
34
+ ResourceAccess
35
+ > = z.object({
36
+ action: z.string().optional(),
37
+ resource: z.string().optional(),
38
+ });
39
+
40
+ export function resourceAccessToJSON(resourceAccess: ResourceAccess): string {
41
+ return JSON.stringify(ResourceAccess$outboundSchema.parse(resourceAccess));
42
+ }
43
+ export function resourceAccessFromJSON(
44
+ jsonString: string,
45
+ ): SafeParseResult<ResourceAccess, SDKValidationError> {
46
+ return safeParse(
47
+ jsonString,
48
+ (x) => ResourceAccess$inboundSchema.parse(JSON.parse(x)),
49
+ `Failed to parse 'ResourceAccess' from JSON`,
50
+ );
51
+ }