@orq-ai/node 3.7.0-rc.8 → 3.7.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/bin/mcp-server.js +2228 -1371
- package/bin/mcp-server.js.map +53 -38
- package/docs/sdks/contacts/README.md +354 -3
- package/funcs/contactsCreate.d.ts +3 -3
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +7 -5
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.d.ts +17 -0
- package/funcs/contactsDelete.d.ts.map +1 -0
- package/funcs/contactsDelete.js +124 -0
- package/funcs/contactsDelete.js.map +1 -0
- package/funcs/contactsList.d.ts +16 -0
- package/funcs/contactsList.d.ts.map +1 -0
- package/funcs/contactsList.js +121 -0
- package/funcs/contactsList.js.map +1 -0
- package/funcs/contactsRetrieve.d.ts +17 -0
- package/funcs/contactsRetrieve.d.ts.map +1 -0
- package/funcs/contactsRetrieve.js +123 -0
- package/funcs/contactsRetrieve.js.map +1 -0
- package/funcs/contactsUpdate.d.ts +17 -0
- package/funcs/contactsUpdate.d.ts.map +1 -0
- package/funcs/contactsUpdate.js +124 -0
- package/funcs/contactsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/contactsCreate.d.ts +1 -1
- package/mcp-server/tools/contactsCreate.js +3 -3
- package/mcp-server/tools/contactsCreate.js.map +1 -1
- package/mcp-server/tools/contactsDelete.d.ts +8 -0
- package/mcp-server/tools/contactsDelete.d.ts.map +1 -0
- package/mcp-server/tools/contactsDelete.js +63 -0
- package/mcp-server/tools/contactsDelete.js.map +1 -0
- package/mcp-server/tools/contactsList.d.ts +8 -0
- package/mcp-server/tools/contactsList.d.ts.map +1 -0
- package/mcp-server/tools/contactsList.js +64 -0
- package/mcp-server/tools/contactsList.js.map +1 -0
- package/mcp-server/tools/contactsRetrieve.d.ts +8 -0
- package/mcp-server/tools/contactsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/contactsRetrieve.js +64 -0
- package/mcp-server/tools/contactsRetrieve.js.map +1 -0
- package/mcp-server/tools/contactsUpdate.d.ts +8 -0
- package/mcp-server/tools/contactsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/contactsUpdate.js +64 -0
- package/mcp-server/tools/contactsUpdate.js.map +1 -0
- package/models/errors/deletecontact.d.ts +43 -0
- package/models/errors/deletecontact.d.ts.map +1 -0
- package/models/errors/deletecontact.js +80 -0
- package/models/errors/deletecontact.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrievecontact.d.ts +43 -0
- package/models/errors/retrievecontact.d.ts.map +1 -0
- package/models/errors/retrievecontact.js +80 -0
- package/models/errors/retrievecontact.js.map +1 -0
- package/models/errors/updatecontact.d.ts +39 -0
- package/models/errors/updatecontact.d.ts.map +1 -0
- package/models/errors/updatecontact.js +79 -0
- package/models/errors/updatecontact.js.map +1 -0
- package/models/operations/createcontact.d.ts +21 -16
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +9 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/deletecontact.d.ts +32 -0
- package/models/operations/deletecontact.d.ts.map +1 -0
- package/models/operations/deletecontact.js +69 -0
- package/models/operations/deletecontact.js.map +1 -0
- package/models/operations/deployments.d.ts +23 -23
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +31 -33
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.d.ts +249 -0
- package/models/operations/listcontacts.d.ts.map +1 -0
- package/models/operations/listcontacts.js +286 -0
- package/models/operations/listcontacts.js.map +1 -0
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.d.ts +107 -0
- package/models/operations/retrievecontact.d.ts.map +1 -0
- package/models/operations/retrievecontact.js +129 -0
- package/models/operations/retrievecontact.js.map +1 -0
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.d.ts +167 -0
- package/models/operations/updatecontact.d.ts.map +1 -0
- package/models/operations/updatecontact.js +184 -0
- package/models/operations/updatecontact.js.map +1 -0
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/sdk/contacts.d.ts +31 -3
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +42 -2
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +12 -7
- package/src/funcs/contactsDelete.ts +172 -0
- package/src/funcs/contactsList.ts +165 -0
- package/src/funcs/contactsRetrieve.ts +171 -0
- package/src/funcs/contactsUpdate.ts +172 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/contactsCreate.ts +3 -3
- package/src/mcp-server/tools/contactsDelete.ts +35 -0
- package/src/mcp-server/tools/contactsList.ts +37 -0
- package/src/mcp-server/tools/contactsRetrieve.ts +37 -0
- package/src/mcp-server/tools/contactsUpdate.ts +37 -0
- package/src/models/errors/deletecontact.ts +81 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/retrievecontact.ts +81 -0
- package/src/models/errors/updatecontact.ts +74 -0
- package/src/models/operations/createcontact.ts +30 -19
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/deletecontact.ts +69 -0
- package/src/models/operations/deployments.ts +69 -59
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listcontacts.ts +490 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +210 -0
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +325 -0
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/sdk/contacts.ts +75 -3
|
@@ -159,7 +159,7 @@ var ListDatasourcesStatus$;
|
|
|
159
159
|
})(ListDatasourcesStatus$ || (exports.ListDatasourcesStatus$ = ListDatasourcesStatus$ = {}));
|
|
160
160
|
/** @internal */
|
|
161
161
|
exports.ListDatasourcesData$inboundSchema = z.object({
|
|
162
|
-
_id: z.string().default("
|
|
162
|
+
_id: z.string().default("01JWVWDD1YG087PMN6T7SW9CEM"),
|
|
163
163
|
display_name: z.string(),
|
|
164
164
|
description: z.string().optional(),
|
|
165
165
|
status: exports.ListDatasourcesStatus$inboundSchema,
|
|
@@ -183,7 +183,7 @@ exports.ListDatasourcesData$inboundSchema = z.object({
|
|
|
183
183
|
});
|
|
184
184
|
/** @internal */
|
|
185
185
|
exports.ListDatasourcesData$outboundSchema = z.object({
|
|
186
|
-
id: z.string().default("
|
|
186
|
+
id: z.string().default("01JWVWDD1YG087PMN6T7SW9CEM"),
|
|
187
187
|
displayName: z.string(),
|
|
188
188
|
description: z.string().optional(),
|
|
189
189
|
status: exports.ListDatasourcesStatus$outboundSchema,
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type RetrieveContactRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique contact id or external id
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Contact details
|
|
12
|
+
*/
|
|
13
|
+
export type RetrieveContactResponseBody = {
|
|
14
|
+
/**
|
|
15
|
+
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
20
|
+
*/
|
|
21
|
+
externalId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
24
|
+
*/
|
|
25
|
+
displayName?: string | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Email address of the contact user
|
|
28
|
+
*/
|
|
29
|
+
email?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* URL linking to the contact user's avatar image
|
|
32
|
+
*/
|
|
33
|
+
avatarUrl?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
36
|
+
*/
|
|
37
|
+
tags?: Array<string> | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
40
|
+
*/
|
|
41
|
+
metadata?: {
|
|
42
|
+
[k: string]: any;
|
|
43
|
+
} | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The date and time the resource was created
|
|
46
|
+
*/
|
|
47
|
+
created?: Date | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The date and time the resource was last updated
|
|
50
|
+
*/
|
|
51
|
+
updated?: Date | undefined;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const RetrieveContactRequest$inboundSchema: z.ZodType<RetrieveContactRequest, z.ZodTypeDef, unknown>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type RetrieveContactRequest$Outbound = {
|
|
57
|
+
id: string;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const RetrieveContactRequest$outboundSchema: z.ZodType<RetrieveContactRequest$Outbound, z.ZodTypeDef, RetrieveContactRequest>;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export declare namespace RetrieveContactRequest$ {
|
|
66
|
+
/** @deprecated use `RetrieveContactRequest$inboundSchema` instead. */
|
|
67
|
+
const inboundSchema: z.ZodType<RetrieveContactRequest, z.ZodTypeDef, unknown>;
|
|
68
|
+
/** @deprecated use `RetrieveContactRequest$outboundSchema` instead. */
|
|
69
|
+
const outboundSchema: z.ZodType<RetrieveContactRequest$Outbound, z.ZodTypeDef, RetrieveContactRequest>;
|
|
70
|
+
/** @deprecated use `RetrieveContactRequest$Outbound` instead. */
|
|
71
|
+
type Outbound = RetrieveContactRequest$Outbound;
|
|
72
|
+
}
|
|
73
|
+
export declare function retrieveContactRequestToJSON(retrieveContactRequest: RetrieveContactRequest): string;
|
|
74
|
+
export declare function retrieveContactRequestFromJSON(jsonString: string): SafeParseResult<RetrieveContactRequest, SDKValidationError>;
|
|
75
|
+
/** @internal */
|
|
76
|
+
export declare const RetrieveContactResponseBody$inboundSchema: z.ZodType<RetrieveContactResponseBody, z.ZodTypeDef, unknown>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type RetrieveContactResponseBody$Outbound = {
|
|
79
|
+
_id: string;
|
|
80
|
+
external_id: string;
|
|
81
|
+
display_name?: string | null | undefined;
|
|
82
|
+
email?: string | null | undefined;
|
|
83
|
+
avatar_url?: string | null | undefined;
|
|
84
|
+
tags?: Array<string> | undefined;
|
|
85
|
+
metadata?: {
|
|
86
|
+
[k: string]: any;
|
|
87
|
+
} | undefined;
|
|
88
|
+
created?: string | undefined;
|
|
89
|
+
updated: string;
|
|
90
|
+
};
|
|
91
|
+
/** @internal */
|
|
92
|
+
export declare const RetrieveContactResponseBody$outboundSchema: z.ZodType<RetrieveContactResponseBody$Outbound, z.ZodTypeDef, RetrieveContactResponseBody>;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
+
*/
|
|
97
|
+
export declare namespace RetrieveContactResponseBody$ {
|
|
98
|
+
/** @deprecated use `RetrieveContactResponseBody$inboundSchema` instead. */
|
|
99
|
+
const inboundSchema: z.ZodType<RetrieveContactResponseBody, z.ZodTypeDef, unknown>;
|
|
100
|
+
/** @deprecated use `RetrieveContactResponseBody$outboundSchema` instead. */
|
|
101
|
+
const outboundSchema: z.ZodType<RetrieveContactResponseBody$Outbound, z.ZodTypeDef, RetrieveContactResponseBody>;
|
|
102
|
+
/** @deprecated use `RetrieveContactResponseBody$Outbound` instead. */
|
|
103
|
+
type Outbound = RetrieveContactResponseBody$Outbound;
|
|
104
|
+
}
|
|
105
|
+
export declare function retrieveContactResponseBodyToJSON(retrieveContactResponseBody: RetrieveContactResponseBody): string;
|
|
106
|
+
export declare function retrieveContactResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveContactResponseBody, SDKValidationError>;
|
|
107
|
+
//# sourceMappingURL=retrievecontact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrievecontact.d.ts","sourceRoot":"","sources":["../../src/models/operations/retrievecontact.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;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MA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CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAmB3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -0,0 +1,129 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RetrieveContactResponseBody$ = exports.RetrieveContactResponseBody$outboundSchema = exports.RetrieveContactResponseBody$inboundSchema = exports.RetrieveContactRequest$ = exports.RetrieveContactRequest$outboundSchema = exports.RetrieveContactRequest$inboundSchema = void 0;
|
|
40
|
+
exports.retrieveContactRequestToJSON = retrieveContactRequestToJSON;
|
|
41
|
+
exports.retrieveContactRequestFromJSON = retrieveContactRequestFromJSON;
|
|
42
|
+
exports.retrieveContactResponseBodyToJSON = retrieveContactResponseBodyToJSON;
|
|
43
|
+
exports.retrieveContactResponseBodyFromJSON = retrieveContactResponseBodyFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.RetrieveContactRequest$inboundSchema = z.object({
|
|
49
|
+
id: z.string(),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.RetrieveContactRequest$outboundSchema = z.object({
|
|
53
|
+
id: z.string(),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
var RetrieveContactRequest$;
|
|
60
|
+
(function (RetrieveContactRequest$) {
|
|
61
|
+
/** @deprecated use `RetrieveContactRequest$inboundSchema` instead. */
|
|
62
|
+
RetrieveContactRequest$.inboundSchema = exports.RetrieveContactRequest$inboundSchema;
|
|
63
|
+
/** @deprecated use `RetrieveContactRequest$outboundSchema` instead. */
|
|
64
|
+
RetrieveContactRequest$.outboundSchema = exports.RetrieveContactRequest$outboundSchema;
|
|
65
|
+
})(RetrieveContactRequest$ || (exports.RetrieveContactRequest$ = RetrieveContactRequest$ = {}));
|
|
66
|
+
function retrieveContactRequestToJSON(retrieveContactRequest) {
|
|
67
|
+
return JSON.stringify(exports.RetrieveContactRequest$outboundSchema.parse(retrieveContactRequest));
|
|
68
|
+
}
|
|
69
|
+
function retrieveContactRequestFromJSON(jsonString) {
|
|
70
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveContactRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveContactRequest' from JSON`);
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.RetrieveContactResponseBody$inboundSchema = z.object({
|
|
74
|
+
_id: z.string(),
|
|
75
|
+
external_id: z.string(),
|
|
76
|
+
display_name: z.nullable(z.string()).optional(),
|
|
77
|
+
email: z.nullable(z.string()).optional(),
|
|
78
|
+
avatar_url: z.nullable(z.string()).optional(),
|
|
79
|
+
tags: z.array(z.string()).optional(),
|
|
80
|
+
metadata: z.record(z.any()).optional(),
|
|
81
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
82
|
+
.optional(),
|
|
83
|
+
updated: z.string().datetime({ offset: true }).default("2025-06-03T21:50:51.469Z").transform(v => new Date(v)),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return (0, primitives_js_1.remap)(v, {
|
|
86
|
+
"_id": "id",
|
|
87
|
+
"external_id": "externalId",
|
|
88
|
+
"display_name": "displayName",
|
|
89
|
+
"avatar_url": "avatarUrl",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
/** @internal */
|
|
93
|
+
exports.RetrieveContactResponseBody$outboundSchema = z.object({
|
|
94
|
+
id: z.string(),
|
|
95
|
+
externalId: z.string(),
|
|
96
|
+
displayName: z.nullable(z.string()).optional(),
|
|
97
|
+
email: z.nullable(z.string()).optional(),
|
|
98
|
+
avatarUrl: z.nullable(z.string()).optional(),
|
|
99
|
+
tags: z.array(z.string()).optional(),
|
|
100
|
+
metadata: z.record(z.any()).optional(),
|
|
101
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
102
|
+
updated: z.date().default(() => new Date("2025-06-03T21:50:51.469Z"))
|
|
103
|
+
.transform(v => v.toISOString()),
|
|
104
|
+
}).transform((v) => {
|
|
105
|
+
return (0, primitives_js_1.remap)(v, {
|
|
106
|
+
id: "_id",
|
|
107
|
+
externalId: "external_id",
|
|
108
|
+
displayName: "display_name",
|
|
109
|
+
avatarUrl: "avatar_url",
|
|
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 RetrieveContactResponseBody$;
|
|
117
|
+
(function (RetrieveContactResponseBody$) {
|
|
118
|
+
/** @deprecated use `RetrieveContactResponseBody$inboundSchema` instead. */
|
|
119
|
+
RetrieveContactResponseBody$.inboundSchema = exports.RetrieveContactResponseBody$inboundSchema;
|
|
120
|
+
/** @deprecated use `RetrieveContactResponseBody$outboundSchema` instead. */
|
|
121
|
+
RetrieveContactResponseBody$.outboundSchema = exports.RetrieveContactResponseBody$outboundSchema;
|
|
122
|
+
})(RetrieveContactResponseBody$ || (exports.RetrieveContactResponseBody$ = RetrieveContactResponseBody$ = {}));
|
|
123
|
+
function retrieveContactResponseBodyToJSON(retrieveContactResponseBody) {
|
|
124
|
+
return JSON.stringify(exports.RetrieveContactResponseBody$outboundSchema.parse(retrieveContactResponseBody));
|
|
125
|
+
}
|
|
126
|
+
function retrieveContactResponseBodyFromJSON(jsonString) {
|
|
127
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveContactResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveContactResponseBody' from JSON`);
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=retrievecontact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrievecontact.js","sourceRoot":"","sources":["../../src/models/operations/retrievecontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FH,oEAMC;AAED,wEAQC;AAgFD,8EAQC;AAED,kFAQC;AA7MD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAqDjD,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,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E;QACf,EAAE,EAAE,KAAK;QACT,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1174,7 +1174,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
1174
1174
|
updated_by_id: z.string().optional(),
|
|
1175
1175
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1176
1176
|
.optional(),
|
|
1177
|
-
updated: z.string().datetime({ offset: true }).default("2025-06-
|
|
1177
|
+
updated: z.string().datetime({ offset: true }).default("2025-06-03T21:50:51.469Z").transform(v => new Date(v)),
|
|
1178
1178
|
}).transform((v) => {
|
|
1179
1179
|
return (0, primitives_js_1.remap)(v, {
|
|
1180
1180
|
"_id": "id",
|
|
@@ -1202,7 +1202,7 @@ exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
|
|
|
1202
1202
|
createdById: z.string().optional(),
|
|
1203
1203
|
updatedById: z.string().optional(),
|
|
1204
1204
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1205
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
1205
|
+
updated: z.date().default(() => new Date("2025-06-03T21:50:51.469Z"))
|
|
1206
1206
|
.transform(v => v.toISOString()),
|
|
1207
1207
|
}).transform((v) => {
|
|
1208
1208
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -127,7 +127,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
127
127
|
metadata: z.lazy(() => exports.RetrieveDatasetMetadata$inboundSchema),
|
|
128
128
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
129
129
|
.optional(),
|
|
130
|
-
updated: z.string().datetime({ offset: true }).default("2025-06-
|
|
130
|
+
updated: z.string().datetime({ offset: true }).default("2025-06-03T21:50:51.469Z").transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return (0, primitives_js_1.remap)(v, {
|
|
133
133
|
"_id": "id",
|
|
@@ -148,7 +148,7 @@ exports.RetrieveDatasetResponseBody$outboundSchema = z.object({
|
|
|
148
148
|
updatedById: z.string().optional(),
|
|
149
149
|
metadata: z.lazy(() => exports.RetrieveDatasetMetadata$outboundSchema),
|
|
150
150
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
151
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
151
|
+
updated: z.date().default(() => new Date("2025-06-03T21:50:51.469Z"))
|
|
152
152
|
.transform(v => v.toISOString()),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -105,7 +105,7 @@ var RetrieveDatasourceStatus$;
|
|
|
105
105
|
})(RetrieveDatasourceStatus$ || (exports.RetrieveDatasourceStatus$ = RetrieveDatasourceStatus$ = {}));
|
|
106
106
|
/** @internal */
|
|
107
107
|
exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
108
|
-
_id: z.string().default("
|
|
108
|
+
_id: z.string().default("01JWVWDD1ZE941PDF6M3W3X4BX"),
|
|
109
109
|
display_name: z.string(),
|
|
110
110
|
description: z.string().optional(),
|
|
111
111
|
status: exports.RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -129,7 +129,7 @@ exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
|
129
129
|
});
|
|
130
130
|
/** @internal */
|
|
131
131
|
exports.RetrieveDatasourceResponseBody$outboundSchema = z.object({
|
|
132
|
-
id: z.string().default("
|
|
132
|
+
id: z.string().default("01JWVWDD1ZE941PDF6M3W3X4BX"),
|
|
133
133
|
displayName: z.string(),
|
|
134
134
|
description: z.string().optional(),
|
|
135
135
|
status: exports.RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Contact fields to update
|
|
6
|
+
*/
|
|
7
|
+
export type UpdateContactRequestBody = {
|
|
8
|
+
/**
|
|
9
|
+
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
10
|
+
*/
|
|
11
|
+
displayName?: string | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Email address of the contact user
|
|
14
|
+
*/
|
|
15
|
+
email?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* URL linking to the contact user's avatar image
|
|
18
|
+
*/
|
|
19
|
+
avatarUrl?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
22
|
+
*/
|
|
23
|
+
tags?: Array<string> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
26
|
+
*/
|
|
27
|
+
metadata?: {
|
|
28
|
+
[k: string]: any;
|
|
29
|
+
} | undefined;
|
|
30
|
+
};
|
|
31
|
+
export type UpdateContactRequest = {
|
|
32
|
+
/**
|
|
33
|
+
* Unique contact id or external id
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Contact fields to update
|
|
38
|
+
*/
|
|
39
|
+
requestBody?: UpdateContactRequestBody | undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Updated contact
|
|
43
|
+
*/
|
|
44
|
+
export type UpdateContactResponseBody = {
|
|
45
|
+
/**
|
|
46
|
+
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
51
|
+
*/
|
|
52
|
+
externalId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
55
|
+
*/
|
|
56
|
+
displayName?: string | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Email address of the contact user
|
|
59
|
+
*/
|
|
60
|
+
email?: string | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* URL linking to the contact user's avatar image
|
|
63
|
+
*/
|
|
64
|
+
avatarUrl?: string | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
67
|
+
*/
|
|
68
|
+
tags?: Array<string> | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
71
|
+
*/
|
|
72
|
+
metadata?: {
|
|
73
|
+
[k: string]: any;
|
|
74
|
+
} | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The date and time the resource was created
|
|
77
|
+
*/
|
|
78
|
+
created?: Date | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* The date and time the resource was last updated
|
|
81
|
+
*/
|
|
82
|
+
updated?: Date | undefined;
|
|
83
|
+
};
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const UpdateContactRequestBody$inboundSchema: z.ZodType<UpdateContactRequestBody, z.ZodTypeDef, unknown>;
|
|
86
|
+
/** @internal */
|
|
87
|
+
export type UpdateContactRequestBody$Outbound = {
|
|
88
|
+
display_name?: string | null | undefined;
|
|
89
|
+
email?: string | null | undefined;
|
|
90
|
+
avatar_url?: string | null | undefined;
|
|
91
|
+
tags?: Array<string> | undefined;
|
|
92
|
+
metadata?: {
|
|
93
|
+
[k: string]: any;
|
|
94
|
+
} | undefined;
|
|
95
|
+
};
|
|
96
|
+
/** @internal */
|
|
97
|
+
export declare const UpdateContactRequestBody$outboundSchema: z.ZodType<UpdateContactRequestBody$Outbound, z.ZodTypeDef, UpdateContactRequestBody>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
+
*/
|
|
102
|
+
export declare namespace UpdateContactRequestBody$ {
|
|
103
|
+
/** @deprecated use `UpdateContactRequestBody$inboundSchema` instead. */
|
|
104
|
+
const inboundSchema: z.ZodType<UpdateContactRequestBody, z.ZodTypeDef, unknown>;
|
|
105
|
+
/** @deprecated use `UpdateContactRequestBody$outboundSchema` instead. */
|
|
106
|
+
const outboundSchema: z.ZodType<UpdateContactRequestBody$Outbound, z.ZodTypeDef, UpdateContactRequestBody>;
|
|
107
|
+
/** @deprecated use `UpdateContactRequestBody$Outbound` instead. */
|
|
108
|
+
type Outbound = UpdateContactRequestBody$Outbound;
|
|
109
|
+
}
|
|
110
|
+
export declare function updateContactRequestBodyToJSON(updateContactRequestBody: UpdateContactRequestBody): string;
|
|
111
|
+
export declare function updateContactRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateContactRequestBody, SDKValidationError>;
|
|
112
|
+
/** @internal */
|
|
113
|
+
export declare const UpdateContactRequest$inboundSchema: z.ZodType<UpdateContactRequest, z.ZodTypeDef, unknown>;
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type UpdateContactRequest$Outbound = {
|
|
116
|
+
id: string;
|
|
117
|
+
RequestBody?: UpdateContactRequestBody$Outbound | undefined;
|
|
118
|
+
};
|
|
119
|
+
/** @internal */
|
|
120
|
+
export declare const UpdateContactRequest$outboundSchema: z.ZodType<UpdateContactRequest$Outbound, z.ZodTypeDef, UpdateContactRequest>;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export declare namespace UpdateContactRequest$ {
|
|
126
|
+
/** @deprecated use `UpdateContactRequest$inboundSchema` instead. */
|
|
127
|
+
const inboundSchema: z.ZodType<UpdateContactRequest, z.ZodTypeDef, unknown>;
|
|
128
|
+
/** @deprecated use `UpdateContactRequest$outboundSchema` instead. */
|
|
129
|
+
const outboundSchema: z.ZodType<UpdateContactRequest$Outbound, z.ZodTypeDef, UpdateContactRequest>;
|
|
130
|
+
/** @deprecated use `UpdateContactRequest$Outbound` instead. */
|
|
131
|
+
type Outbound = UpdateContactRequest$Outbound;
|
|
132
|
+
}
|
|
133
|
+
export declare function updateContactRequestToJSON(updateContactRequest: UpdateContactRequest): string;
|
|
134
|
+
export declare function updateContactRequestFromJSON(jsonString: string): SafeParseResult<UpdateContactRequest, SDKValidationError>;
|
|
135
|
+
/** @internal */
|
|
136
|
+
export declare const UpdateContactResponseBody$inboundSchema: z.ZodType<UpdateContactResponseBody, z.ZodTypeDef, unknown>;
|
|
137
|
+
/** @internal */
|
|
138
|
+
export type UpdateContactResponseBody$Outbound = {
|
|
139
|
+
_id: string;
|
|
140
|
+
external_id: string;
|
|
141
|
+
display_name?: string | null | undefined;
|
|
142
|
+
email?: string | null | undefined;
|
|
143
|
+
avatar_url?: string | null | undefined;
|
|
144
|
+
tags?: Array<string> | undefined;
|
|
145
|
+
metadata?: {
|
|
146
|
+
[k: string]: any;
|
|
147
|
+
} | undefined;
|
|
148
|
+
created?: string | undefined;
|
|
149
|
+
updated: string;
|
|
150
|
+
};
|
|
151
|
+
/** @internal */
|
|
152
|
+
export declare const UpdateContactResponseBody$outboundSchema: z.ZodType<UpdateContactResponseBody$Outbound, z.ZodTypeDef, UpdateContactResponseBody>;
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
+
*/
|
|
157
|
+
export declare namespace UpdateContactResponseBody$ {
|
|
158
|
+
/** @deprecated use `UpdateContactResponseBody$inboundSchema` instead. */
|
|
159
|
+
const inboundSchema: z.ZodType<UpdateContactResponseBody, z.ZodTypeDef, unknown>;
|
|
160
|
+
/** @deprecated use `UpdateContactResponseBody$outboundSchema` instead. */
|
|
161
|
+
const outboundSchema: z.ZodType<UpdateContactResponseBody$Outbound, z.ZodTypeDef, UpdateContactResponseBody>;
|
|
162
|
+
/** @deprecated use `UpdateContactResponseBody$Outbound` instead. */
|
|
163
|
+
type Outbound = UpdateContactResponseBody$Outbound;
|
|
164
|
+
}
|
|
165
|
+
export declare function updateContactResponseBodyToJSON(updateContactResponseBody: UpdateContactResponseBody): string;
|
|
166
|
+
export declare function updateContactResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateContactResponseBody, SDKValidationError>;
|
|
167
|
+
//# sourceMappingURL=updatecontact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatecontact.d.ts","sourceRoot":"","sources":["../../src/models/operations/updatecontact.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;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,G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