@gravity-rail/sdk 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{chat-interaction-CGNwztoc.d.cts → chat-interaction-Bqj3Vbst.d.cts} +35 -14
- package/dist/{chat-interaction-DRn2dJ2X.d.ts → chat-interaction-DiZVtDRE.d.ts} +35 -14
- package/dist/{chunk-STN3ZOEX.js → chunk-N4GQWNGU.js} +50 -1
- package/dist/chunk-N4GQWNGU.js.map +1 -0
- package/dist/helpers.d.cts +4 -4
- package/dist/helpers.d.ts +4 -4
- package/dist/index.cjs +50 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +50 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +5 -5
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-mE0BhGIw.d.ts → member-import-C2Xt_o5d.d.ts} +1 -1
- package/dist/{member-import-D6KvS3Zg.d.cts → member-import-D7U4kDIy.d.cts} +1 -1
- package/dist/{revision-state-CuBzCvtB.d.cts → revision-state-DaVz2528.d.ts} +10 -3
- package/dist/{revision-state-YMNaA2cN.d.ts → revision-state-ZC4qP3CS.d.cts} +10 -3
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +17 -2
- package/dist/schemas.d.ts +17 -2
- package/dist/schemas.js +2 -0
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DAPby6cw.d.cts → tasks-Ca6yfsj2.d.cts} +4 -0
- package/dist/{tasks-DAPby6cw.d.ts → tasks-Ca6yfsj2.d.ts} +4 -0
- package/package.json +1 -1
- package/dist/chunk-STN3ZOEX.js.map +0 -1
package/dist/helpers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g7 as GravityRailClient } from './chat-interaction-
|
|
2
|
-
export { ce as ChatInteractionController } from './chat-interaction-
|
|
3
|
-
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { g7 as GravityRailClient } from './chat-interaction-Bqj3Vbst.cjs';
|
|
2
|
+
export { ce as ChatInteractionController } from './chat-interaction-Bqj3Vbst.cjs';
|
|
3
|
+
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-Ca6yfsj2.cjs';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-D7U4kDIy.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g7 as GravityRailClient } from './chat-interaction-
|
|
2
|
-
export { ce as ChatInteractionController } from './chat-interaction-
|
|
3
|
-
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { g7 as GravityRailClient } from './chat-interaction-DiZVtDRE.js';
|
|
2
|
+
export { ce as ChatInteractionController } from './chat-interaction-DiZVtDRE.js';
|
|
3
|
+
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-Ca6yfsj2.js';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-C2Xt_o5d.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
package/dist/index.cjs
CHANGED
|
@@ -117,6 +117,7 @@ __export(src_exports, {
|
|
|
117
117
|
JourneyBuilder: () => JourneyBuilder,
|
|
118
118
|
JourneyStepBuilder: () => JourneyStepBuilder,
|
|
119
119
|
MASKED_SECRET_SENTINEL: () => MASKED_SECRET_SENTINEL,
|
|
120
|
+
MAX_EMAIL_SEND_RECIPIENTS: () => MAX_EMAIL_SEND_RECIPIENTS,
|
|
120
121
|
MEMBER_RELATIONSHIP_KINDS: () => MEMBER_RELATIONSHIP_KINDS,
|
|
121
122
|
McpServerState: () => McpServerState,
|
|
122
123
|
MemberFeature: () => MemberFeature,
|
|
@@ -3138,6 +3139,45 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3138
3139
|
|
|
3139
3140
|
// src/api/data-types.ts
|
|
3140
3141
|
var DataTypesApi = class extends BaseApiClient {
|
|
3142
|
+
/** Read an anonymous Form's visitor-writable schema without a Member session. */
|
|
3143
|
+
async getAnonymousFormSchema(wid, formUuid) {
|
|
3144
|
+
return this.fetchPublicAnonymousForm(
|
|
3145
|
+
`w/${encodeURIComponent(wid)}/anonymous-forms/${encodeURIComponent(formUuid)}`
|
|
3146
|
+
);
|
|
3147
|
+
}
|
|
3148
|
+
/** Submit visitor-provided values. No cookie or API credential is sent. */
|
|
3149
|
+
async submitAnonymousForm(wid, formUuid, input) {
|
|
3150
|
+
return this.fetchPublicAnonymousForm(
|
|
3151
|
+
`w/${encodeURIComponent(wid)}/anonymous-forms/${encodeURIComponent(formUuid)}/submissions`,
|
|
3152
|
+
{ method: "POST", body: JSON.stringify(input) }
|
|
3153
|
+
);
|
|
3154
|
+
}
|
|
3155
|
+
async fetchPublicAnonymousForm(endpoint, options = {}) {
|
|
3156
|
+
const headers = new Headers(options.headers);
|
|
3157
|
+
if (options.body !== void 0) headers.set("Content-Type", "application/json");
|
|
3158
|
+
let response;
|
|
3159
|
+
try {
|
|
3160
|
+
response = await this.fetchFunction(`${this.baseUrl}/api/v2/${endpoint}`, {
|
|
3161
|
+
...options,
|
|
3162
|
+
credentials: "omit",
|
|
3163
|
+
headers
|
|
3164
|
+
});
|
|
3165
|
+
} catch {
|
|
3166
|
+
throw new ApiError("Anonymous Form request failed", 0);
|
|
3167
|
+
}
|
|
3168
|
+
if (!response.ok) {
|
|
3169
|
+
let message = `Request failed with status ${response.status}`;
|
|
3170
|
+
try {
|
|
3171
|
+
const body = await response.json();
|
|
3172
|
+
if (typeof body.detail === "string" && body.detail.length > 0) {
|
|
3173
|
+
message = body.detail;
|
|
3174
|
+
}
|
|
3175
|
+
} catch {
|
|
3176
|
+
}
|
|
3177
|
+
throw new ApiError(message, response.status);
|
|
3178
|
+
}
|
|
3179
|
+
return await response.json();
|
|
3180
|
+
}
|
|
3141
3181
|
/** Read the local Form's draft and optimistic publication counters. */
|
|
3142
3182
|
async getDataTypeDraft(wid, id) {
|
|
3143
3183
|
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`);
|
|
@@ -10872,6 +10912,9 @@ var ToolkitState = /* @__PURE__ */ ((ToolkitState2) => {
|
|
|
10872
10912
|
return ToolkitState2;
|
|
10873
10913
|
})(ToolkitState || {});
|
|
10874
10914
|
|
|
10915
|
+
// src/types/generated/event_rule_action_limits.ts
|
|
10916
|
+
var MAX_EMAIL_SEND_RECIPIENTS = 20;
|
|
10917
|
+
|
|
10875
10918
|
// src/types/event-types.ts
|
|
10876
10919
|
var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
10877
10920
|
EventRuleObjectType2["TASK"] = "task";
|
|
@@ -12830,6 +12873,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12830
12873
|
"getAgents",
|
|
12831
12874
|
"getAnonymousResolution",
|
|
12832
12875
|
"getAnonymousFormSubmission",
|
|
12876
|
+
"getAnonymousFormSchema",
|
|
12833
12877
|
"getAnonymousResolutions",
|
|
12834
12878
|
"getApiKeys",
|
|
12835
12879
|
"getArchiveBlockers",
|
|
@@ -13215,6 +13259,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13215
13259
|
"linkUnlinkedSalesforceMembersByIdentity",
|
|
13216
13260
|
"listAbilities",
|
|
13217
13261
|
"listAnonymousFormSubmissions",
|
|
13262
|
+
"submitAnonymousForm",
|
|
13218
13263
|
"listAppConnections",
|
|
13219
13264
|
"listAvailableAppConnections",
|
|
13220
13265
|
"listInstallations",
|
|
@@ -13668,6 +13713,8 @@ function bindTrackedLinksMethods(target, trackedLinks) {
|
|
|
13668
13713
|
|
|
13669
13714
|
// src/client/bindings/data-types.ts
|
|
13670
13715
|
function bindDataTypesMethods(target, dataTypes) {
|
|
13716
|
+
target.getAnonymousFormSchema = dataTypes.getAnonymousFormSchema.bind(dataTypes);
|
|
13717
|
+
target.submitAnonymousForm = dataTypes.submitAnonymousForm.bind(dataTypes);
|
|
13671
13718
|
target.getDataTypeDraft = dataTypes.getDataTypeDraft.bind(dataTypes);
|
|
13672
13719
|
target.saveDataTypeDraft = dataTypes.saveDataTypeDraft.bind(dataTypes);
|
|
13673
13720
|
target.publishDataTypeDraft = dataTypes.publishDataTypeDraft.bind(dataTypes);
|
|
@@ -14862,6 +14909,8 @@ var GravityRailClient = class {
|
|
|
14862
14909
|
getCelContext;
|
|
14863
14910
|
validateCelExpression;
|
|
14864
14911
|
// Data Types API
|
|
14912
|
+
getAnonymousFormSchema;
|
|
14913
|
+
submitAnonymousForm;
|
|
14865
14914
|
getDataTypes;
|
|
14866
14915
|
getDataTypeDraft;
|
|
14867
14916
|
saveDataTypeDraft;
|
|
@@ -20235,6 +20284,7 @@ function toSafeMemberImportSummary(event) {
|
|
|
20235
20284
|
JourneyBuilder,
|
|
20236
20285
|
JourneyStepBuilder,
|
|
20237
20286
|
MASKED_SECRET_SENTINEL,
|
|
20287
|
+
MAX_EMAIL_SEND_RECIPIENTS,
|
|
20238
20288
|
MEMBER_RELATIONSHIP_KINDS,
|
|
20239
20289
|
McpServerState,
|
|
20240
20290
|
MemberFeature,
|