@mitralab.io/sdk-core 0.3.0 → 0.3.1
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/CHANGELOG.md +52 -0
- package/README.md +6 -2
- package/contracts/README.md +6 -0
- package/contracts/manifest.json +6 -1
- package/contracts/v0.3.1/sdk-parity.json +2902 -0
- package/dist/index.cjs +299 -5
- package/dist/index.d.cts +184 -4
- package/dist/index.d.ts +184 -4
- package/dist/index.js +299 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -120,6 +120,9 @@ function isObject(value) {
|
|
|
120
120
|
function isNullableString(value) {
|
|
121
121
|
return value === null || typeof value === "string";
|
|
122
122
|
}
|
|
123
|
+
function isNonEmptyString(value) {
|
|
124
|
+
return typeof value === "string" && value.length > 0;
|
|
125
|
+
}
|
|
123
126
|
function isNullableBoolean(value) {
|
|
124
127
|
return value === null || typeof value === "boolean";
|
|
125
128
|
}
|
|
@@ -753,6 +756,83 @@ function expectMessageAccepted(value, context, errors = defaultSdkCoreErrorFacto
|
|
|
753
756
|
if (typeof response.messageId !== "string") invalidField(context, "messageId", errors);
|
|
754
757
|
return response;
|
|
755
758
|
}
|
|
759
|
+
function expectEmailTemplate(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
760
|
+
const template = expectObject(value, context, errors);
|
|
761
|
+
if (typeof template.id !== "string") invalidField(context, "id", errors);
|
|
762
|
+
if (!isNonEmptyString(template.type)) invalidField(context, "type", errors);
|
|
763
|
+
if (!isNullableString(template.senderIdentityId)) {
|
|
764
|
+
invalidField(context, "senderIdentityId", errors);
|
|
765
|
+
}
|
|
766
|
+
if (typeof template.subject !== "string") invalidField(context, "subject", errors);
|
|
767
|
+
if (typeof template.htmlBody !== "string") invalidField(context, "htmlBody", errors);
|
|
768
|
+
if (!isNullableString(template.textBody)) invalidField(context, "textBody", errors);
|
|
769
|
+
if (typeof template.platformDefault !== "boolean") {
|
|
770
|
+
invalidField(context, "platformDefault", errors);
|
|
771
|
+
}
|
|
772
|
+
if (typeof template.createdAt !== "string") invalidField(context, "createdAt", errors);
|
|
773
|
+
if (typeof template.updatedAt !== "string") invalidField(context, "updatedAt", errors);
|
|
774
|
+
return template;
|
|
775
|
+
}
|
|
776
|
+
function expectEmailTemplateTypeCatalog(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
777
|
+
const catalog = expectObject(value, context, errors);
|
|
778
|
+
if (!isNonEmptyString(catalog.type)) invalidField(context, "type", errors);
|
|
779
|
+
expectObjectArray(catalog.variables, `${context} variables`, errors).forEach(
|
|
780
|
+
(variable, position) => {
|
|
781
|
+
const variableContext = `${context} variable ${position}`;
|
|
782
|
+
if (typeof variable.name !== "string") invalidField(variableContext, "name", errors);
|
|
783
|
+
if (typeof variable.required !== "boolean") {
|
|
784
|
+
invalidField(variableContext, "required", errors);
|
|
785
|
+
}
|
|
786
|
+
if (!isNullableString(variable.description)) {
|
|
787
|
+
invalidField(variableContext, "description", errors);
|
|
788
|
+
}
|
|
789
|
+
if (!isNullableString(variable.preview)) invalidField(variableContext, "preview", errors);
|
|
790
|
+
}
|
|
791
|
+
);
|
|
792
|
+
return catalog;
|
|
793
|
+
}
|
|
794
|
+
function expectEmailTemplatePreview(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
795
|
+
const preview = expectObject(value, context, errors);
|
|
796
|
+
if (typeof preview.subject !== "string") invalidField(context, "subject", errors);
|
|
797
|
+
if (typeof preview.htmlBody !== "string") invalidField(context, "htmlBody", errors);
|
|
798
|
+
if (!isNullableString(preview.textBody)) invalidField(context, "textBody", errors);
|
|
799
|
+
return preview;
|
|
800
|
+
}
|
|
801
|
+
function expectEmailSender(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
802
|
+
const sender = expectObject(value, context, errors);
|
|
803
|
+
if (typeof sender.id !== "string") invalidField(context, "id", errors);
|
|
804
|
+
if (typeof sender.email !== "string") invalidField(context, "email", errors);
|
|
805
|
+
if (typeof sender.displayName !== "string") invalidField(context, "displayName", errors);
|
|
806
|
+
if (!isNonEmptyString(sender.status)) invalidField(context, "status", errors);
|
|
807
|
+
if (typeof sender.sharedWithCurrentWorkspace !== "boolean") {
|
|
808
|
+
invalidField(context, "sharedWithCurrentWorkspace", errors);
|
|
809
|
+
}
|
|
810
|
+
if (typeof sender.ownerConfirmationPending !== "boolean") {
|
|
811
|
+
invalidField(context, "ownerConfirmationPending", errors);
|
|
812
|
+
}
|
|
813
|
+
if (typeof sender.createdAt !== "string") invalidField(context, "createdAt", errors);
|
|
814
|
+
if (typeof sender.updatedAt !== "string") invalidField(context, "updatedAt", errors);
|
|
815
|
+
return sender;
|
|
816
|
+
}
|
|
817
|
+
function expectEmailSettings(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
818
|
+
const settings = expectObject(value, context, errors);
|
|
819
|
+
if (typeof settings.appId !== "string") invalidField(context, "appId", errors);
|
|
820
|
+
if (!isNullableString(settings.senderIdentityId)) {
|
|
821
|
+
invalidField(context, "senderIdentityId", errors);
|
|
822
|
+
}
|
|
823
|
+
if (!isNullableString(settings.displayName)) invalidField(context, "displayName", errors);
|
|
824
|
+
if (!isNullableString(settings.replyTo)) invalidField(context, "replyTo", errors);
|
|
825
|
+
if (typeof settings.ownTemplateSendsFromBrand !== "boolean") {
|
|
826
|
+
invalidField(context, "ownTemplateSendsFromBrand", errors);
|
|
827
|
+
}
|
|
828
|
+
const senderContext = `${context} effectiveSender`;
|
|
829
|
+
const sender = expectObject(settings.effectiveSender, senderContext, errors);
|
|
830
|
+
if (typeof sender.email !== "string") invalidField(senderContext, "email", errors);
|
|
831
|
+
if (!isNullableString(sender.displayName)) invalidField(senderContext, "displayName", errors);
|
|
832
|
+
if (!isNonEmptyString(sender.source)) invalidField(senderContext, "source", errors);
|
|
833
|
+
if (!isNullableString(sender.reason)) invalidField(senderContext, "reason", errors);
|
|
834
|
+
return settings;
|
|
835
|
+
}
|
|
756
836
|
function expectAgentDefinition(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
757
837
|
const agent = expectObject(value, context, errors);
|
|
758
838
|
if (typeof agent.id !== "string") invalidField(context, "id", errors);
|
|
@@ -1127,6 +1207,14 @@ function expectCredentialUsage(value, context, errors = defaultSdkCoreErrorFacto
|
|
|
1127
1207
|
}
|
|
1128
1208
|
return usage;
|
|
1129
1209
|
}
|
|
1210
|
+
function expectAgentReadyProvider(value, context, errors = defaultSdkCoreErrorFactory) {
|
|
1211
|
+
const entry = expectObject(value, context, errors);
|
|
1212
|
+
if (typeof entry.provider !== "string") invalidField(context, "provider", errors);
|
|
1213
|
+
if (!isNullableString(entry.providerName)) invalidField(context, "providerName", errors);
|
|
1214
|
+
expectObjectArray(entry.models, `${context} models`, errors, expectAgentModel);
|
|
1215
|
+
if (entry.usage !== null) expectCredentialUsage(entry.usage, `${context} usage`, errors);
|
|
1216
|
+
return entry;
|
|
1217
|
+
}
|
|
1130
1218
|
var CREDENTIAL_USAGE_NOT_FOUND = "CREDENTIAL_USAGE_NOT_FOUND";
|
|
1131
1219
|
async function readCredentialUsage(request, context, errors = defaultSdkCoreErrorFactory) {
|
|
1132
1220
|
let value;
|
|
@@ -1415,6 +1503,17 @@ function createAgentCredentialsModule(transport, errors = defaultSdkCoreErrorFac
|
|
|
1415
1503
|
expectAgentModel
|
|
1416
1504
|
);
|
|
1417
1505
|
},
|
|
1506
|
+
async providers(agentId, options) {
|
|
1507
|
+
return expectObjectArray(
|
|
1508
|
+
await transport.request("/api/v1/models/providers", {
|
|
1509
|
+
method: "GET",
|
|
1510
|
+
params: { agentId, ...scopeParams(options).params }
|
|
1511
|
+
}),
|
|
1512
|
+
"Ready provider response",
|
|
1513
|
+
errors,
|
|
1514
|
+
expectAgentReadyProvider
|
|
1515
|
+
);
|
|
1516
|
+
},
|
|
1418
1517
|
async usage(provider, options) {
|
|
1419
1518
|
return readCredentialUsage(
|
|
1420
1519
|
transport.request(`/api/v1/credentials/${providerSegment(provider)}/usage`, {
|
|
@@ -1691,7 +1790,8 @@ function createAgentTasksModule(transport, errors = defaultSdkCoreErrorFactory)
|
|
|
1691
1790
|
page: options.page,
|
|
1692
1791
|
size: options.size,
|
|
1693
1792
|
sort: options.sort,
|
|
1694
|
-
kinds: options.kinds
|
|
1793
|
+
kinds: options.kinds,
|
|
1794
|
+
before: options.before
|
|
1695
1795
|
}
|
|
1696
1796
|
}),
|
|
1697
1797
|
context,
|
|
@@ -2930,7 +3030,23 @@ function createMembersModule(transport, errors = defaultSdkCoreErrorFactory) {
|
|
|
2930
3030
|
}
|
|
2931
3031
|
|
|
2932
3032
|
// src/modules/messenger.ts
|
|
2933
|
-
function createMessengerModule(transport, errors = defaultSdkCoreErrorFactory) {
|
|
3033
|
+
function createMessengerModule(transport, errors = defaultSdkCoreErrorFactory, getAppId) {
|
|
3034
|
+
const templatePath = (type) => `/api/v1/email/templates/${encodePathSegment(type, "email template type", errors)}`;
|
|
3035
|
+
const senderPath = (senderId) => `/api/v1/email/identities/${encodePathSegment(senderId, "email sender id", errors)}`;
|
|
3036
|
+
const currentAppId = () => {
|
|
3037
|
+
const appId = getAppId?.();
|
|
3038
|
+
if (!appId) configurationError("An appId is required for app email calls", errors);
|
|
3039
|
+
return appId;
|
|
3040
|
+
};
|
|
3041
|
+
const settingsPath = () => `/api/v1/email/apps/${encodePathSegment(currentAppId(), "app id", errors)}/settings`;
|
|
3042
|
+
const preview = async (type, appId) => expectEmailTemplatePreview(
|
|
3043
|
+
await transport.request(`${templatePath(type)}/preview`, {
|
|
3044
|
+
method: "GET",
|
|
3045
|
+
params: { appId }
|
|
3046
|
+
}),
|
|
3047
|
+
"Email template preview response",
|
|
3048
|
+
errors
|
|
3049
|
+
);
|
|
2934
3050
|
return {
|
|
2935
3051
|
async notify(content) {
|
|
2936
3052
|
return expectMessageAccepted(
|
|
@@ -2951,6 +3067,120 @@ function createMessengerModule(transport, errors = defaultSdkCoreErrorFactory) {
|
|
|
2951
3067
|
"Send email response",
|
|
2952
3068
|
errors
|
|
2953
3069
|
);
|
|
3070
|
+
},
|
|
3071
|
+
async listEmailTemplates() {
|
|
3072
|
+
return expectObjectArray(
|
|
3073
|
+
await transport.request("/api/v1/email/templates", {
|
|
3074
|
+
method: "GET",
|
|
3075
|
+
params: { appId: currentAppId() }
|
|
3076
|
+
}),
|
|
3077
|
+
"Email template list response",
|
|
3078
|
+
errors,
|
|
3079
|
+
expectEmailTemplate
|
|
3080
|
+
);
|
|
3081
|
+
},
|
|
3082
|
+
async getEmailTemplateType(type) {
|
|
3083
|
+
return expectEmailTemplateTypeCatalog(
|
|
3084
|
+
await transport.request(
|
|
3085
|
+
`/api/v1/email/template-types/${encodePathSegment(type, "email template type", errors)}`,
|
|
3086
|
+
{ method: "GET" }
|
|
3087
|
+
),
|
|
3088
|
+
"Email template type response",
|
|
3089
|
+
errors
|
|
3090
|
+
);
|
|
3091
|
+
},
|
|
3092
|
+
async getEmailTemplate(type) {
|
|
3093
|
+
return expectEmailTemplate(
|
|
3094
|
+
await transport.request(templatePath(type), {
|
|
3095
|
+
method: "GET",
|
|
3096
|
+
params: { appId: currentAppId() }
|
|
3097
|
+
}),
|
|
3098
|
+
"Email template response",
|
|
3099
|
+
errors
|
|
3100
|
+
);
|
|
3101
|
+
},
|
|
3102
|
+
async upsertEmailTemplate(type, input) {
|
|
3103
|
+
const appId = currentAppId();
|
|
3104
|
+
const template = expectEmailTemplate(
|
|
3105
|
+
await transport.request(templatePath(type), {
|
|
3106
|
+
method: "PUT",
|
|
3107
|
+
body: templateBody(appId, input)
|
|
3108
|
+
}),
|
|
3109
|
+
"Upsert email template response",
|
|
3110
|
+
errors
|
|
3111
|
+
);
|
|
3112
|
+
try {
|
|
3113
|
+
return { template, preview: await preview(type, appId) };
|
|
3114
|
+
} catch (previewError) {
|
|
3115
|
+
return { template, preview: null, previewError };
|
|
3116
|
+
}
|
|
3117
|
+
},
|
|
3118
|
+
async previewEmailTemplate(type) {
|
|
3119
|
+
return preview(type, currentAppId());
|
|
3120
|
+
},
|
|
3121
|
+
async deleteEmailTemplate(type) {
|
|
3122
|
+
expectEmpty(
|
|
3123
|
+
await transport.request(templatePath(type), {
|
|
3124
|
+
method: "DELETE",
|
|
3125
|
+
params: { appId: currentAppId() }
|
|
3126
|
+
}),
|
|
3127
|
+
"Delete email template response",
|
|
3128
|
+
errors
|
|
3129
|
+
);
|
|
3130
|
+
},
|
|
3131
|
+
async listEmailSenders() {
|
|
3132
|
+
return expectObjectArray(
|
|
3133
|
+
await transport.request("/api/v1/email/identities/workspace", { method: "GET" }),
|
|
3134
|
+
"Email sender list response",
|
|
3135
|
+
errors,
|
|
3136
|
+
expectEmailSender
|
|
3137
|
+
);
|
|
3138
|
+
},
|
|
3139
|
+
async registerEmailSender(input) {
|
|
3140
|
+
return expectEmailSender(
|
|
3141
|
+
await transport.request("/api/v1/email/identities", {
|
|
3142
|
+
method: "POST",
|
|
3143
|
+
body: { email: input.email, displayName: input.displayName }
|
|
3144
|
+
}),
|
|
3145
|
+
"Register email sender response",
|
|
3146
|
+
errors
|
|
3147
|
+
);
|
|
3148
|
+
},
|
|
3149
|
+
async resendEmailSenderVerification(senderId) {
|
|
3150
|
+
return expectEmailSender(
|
|
3151
|
+
await transport.request(`${senderPath(senderId)}/resend-verification`, {
|
|
3152
|
+
method: "POST"
|
|
3153
|
+
}),
|
|
3154
|
+
"Resend email sender verification response",
|
|
3155
|
+
errors
|
|
3156
|
+
);
|
|
3157
|
+
},
|
|
3158
|
+
async confirmEmailSender(senderId, code) {
|
|
3159
|
+
return expectEmailSender(
|
|
3160
|
+
await transport.request(`${senderPath(senderId)}/confirm`, {
|
|
3161
|
+
method: "POST",
|
|
3162
|
+
body: { code }
|
|
3163
|
+
}),
|
|
3164
|
+
"Confirm email sender response",
|
|
3165
|
+
errors
|
|
3166
|
+
);
|
|
3167
|
+
},
|
|
3168
|
+
async getEmailSettings() {
|
|
3169
|
+
return expectEmailSettings(
|
|
3170
|
+
await transport.request(settingsPath(), { method: "GET" }),
|
|
3171
|
+
"Email settings response",
|
|
3172
|
+
errors
|
|
3173
|
+
);
|
|
3174
|
+
},
|
|
3175
|
+
async updateEmailSettings(input) {
|
|
3176
|
+
return expectEmailSettings(
|
|
3177
|
+
await transport.request(settingsPath(), {
|
|
3178
|
+
method: "PUT",
|
|
3179
|
+
body: settingsBody(input)
|
|
3180
|
+
}),
|
|
3181
|
+
"Update email settings response",
|
|
3182
|
+
errors
|
|
3183
|
+
);
|
|
2954
3184
|
}
|
|
2955
3185
|
};
|
|
2956
3186
|
}
|
|
@@ -2966,6 +3196,21 @@ function rawEmailPayload(input) {
|
|
|
2966
3196
|
...input.text === void 0 ? {} : { text: input.text }
|
|
2967
3197
|
};
|
|
2968
3198
|
}
|
|
3199
|
+
function templateBody(appId, input) {
|
|
3200
|
+
return {
|
|
3201
|
+
appId,
|
|
3202
|
+
subject: input.subject,
|
|
3203
|
+
htmlBody: input.htmlBody,
|
|
3204
|
+
...input.textBody === void 0 ? {} : { textBody: input.textBody }
|
|
3205
|
+
};
|
|
3206
|
+
}
|
|
3207
|
+
function settingsBody(input) {
|
|
3208
|
+
return {
|
|
3209
|
+
...input.senderIdentityId === void 0 ? {} : { senderIdentityId: input.senderIdentityId },
|
|
3210
|
+
...input.displayName === void 0 ? {} : { displayName: input.displayName },
|
|
3211
|
+
...input.replyTo === void 0 ? {} : { replyTo: input.replyTo }
|
|
3212
|
+
};
|
|
3213
|
+
}
|
|
2969
3214
|
|
|
2970
3215
|
// src/modules/publicFunctions.ts
|
|
2971
3216
|
function createPublicFunctionsModule(transport, errors = defaultSdkCoreErrorFactory) {
|
|
@@ -3283,7 +3528,7 @@ function createSdkCore(options) {
|
|
|
3283
3528
|
integrationResources: createIntegrationResourcesModule(options.transports.integration, errors),
|
|
3284
3529
|
integrationTemplates: createIntegrationTemplatesModule(options.transports.integration, errors),
|
|
3285
3530
|
members,
|
|
3286
|
-
messenger: createMessengerModule(messengerTransport, errors),
|
|
3531
|
+
messenger: createMessengerModule(messengerTransport, errors, options.getAppId),
|
|
3287
3532
|
publicFunctions: createPublicFunctionsModule(options.transports.publicFunctions, errors),
|
|
3288
3533
|
queries: createQueriesModule(options.transports.dataManager, errors),
|
|
3289
3534
|
sql: createSqlModule(options.transports.dataManager, errors),
|
|
@@ -4240,6 +4485,9 @@ function historyCursorOf(history) {
|
|
|
4240
4485
|
}
|
|
4241
4486
|
return { sequence, ...newest.boxLog === void 0 ? {} : { boxLog: newest.boxLog } };
|
|
4242
4487
|
}
|
|
4488
|
+
function hasOlderRows(page) {
|
|
4489
|
+
return page.page.totalPages > page.page.number + 1;
|
|
4490
|
+
}
|
|
4243
4491
|
function isChatRow(message) {
|
|
4244
4492
|
return (message.type === "TEXT" || message.type === "ERROR" || message.type === "TOOL_USE") && message.parentToolId === void 0;
|
|
4245
4493
|
}
|
|
@@ -4422,6 +4670,11 @@ var CoreAgentTaskSession = class {
|
|
|
4422
4670
|
acceptedIds = [];
|
|
4423
4671
|
// Taken by the first channel of `session({ taskId })`; no later channel asks for a replay.
|
|
4424
4672
|
openingCursor;
|
|
4673
|
+
historyLimit;
|
|
4674
|
+
_hasOlder = false;
|
|
4675
|
+
// Moves whenever `history` is replaced, so a `loadOlder` still reading drops what it read.
|
|
4676
|
+
historyGeneration = 0;
|
|
4677
|
+
olderRead = null;
|
|
4425
4678
|
get taskId() {
|
|
4426
4679
|
return this._taskId;
|
|
4427
4680
|
}
|
|
@@ -4518,11 +4771,52 @@ var CoreAgentTaskSession = class {
|
|
|
4518
4771
|
sort: "createdAt,desc",
|
|
4519
4772
|
kinds: "all"
|
|
4520
4773
|
});
|
|
4521
|
-
this.
|
|
4774
|
+
this.historyLimit = options.limit;
|
|
4775
|
+
this.replaceHistory(page);
|
|
4522
4776
|
const history = this.history;
|
|
4523
4777
|
this.emit("historyLoaded", { history });
|
|
4524
4778
|
return history;
|
|
4525
4779
|
}
|
|
4780
|
+
get hasOlder() {
|
|
4781
|
+
return this._hasOlder;
|
|
4782
|
+
}
|
|
4783
|
+
loadOlder() {
|
|
4784
|
+
if (this.olderRead?.generation !== this.historyGeneration) {
|
|
4785
|
+
const generation = this.historyGeneration;
|
|
4786
|
+
const promise = this.readOlder(generation).finally(() => {
|
|
4787
|
+
if (this.olderRead?.promise === promise) this.olderRead = null;
|
|
4788
|
+
});
|
|
4789
|
+
this.olderRead = { generation, promise };
|
|
4790
|
+
}
|
|
4791
|
+
return this.olderRead.promise;
|
|
4792
|
+
}
|
|
4793
|
+
async readOlder(generation) {
|
|
4794
|
+
const oldest = this._history.find((item) => !item.id.startsWith("live:"));
|
|
4795
|
+
if (!this._taskId || !this._hasOlder || !oldest) return [];
|
|
4796
|
+
let page;
|
|
4797
|
+
try {
|
|
4798
|
+
page = await this.dependencies.tasks.listMessages(this._taskId, {
|
|
4799
|
+
before: oldest.id,
|
|
4800
|
+
...this.historyLimit !== void 0 ? { size: this.historyLimit } : {},
|
|
4801
|
+
sort: "createdAt,desc",
|
|
4802
|
+
kinds: "all"
|
|
4803
|
+
});
|
|
4804
|
+
} catch (error) {
|
|
4805
|
+
if (generation !== this.historyGeneration || this.isClosed()) return [];
|
|
4806
|
+
throw error;
|
|
4807
|
+
}
|
|
4808
|
+
if (generation !== this.historyGeneration || this.isClosed()) return [];
|
|
4809
|
+
const older = [...page.content].reverse().map(toAgentTimelineItem);
|
|
4810
|
+
this._hasOlder = hasOlderRows(page);
|
|
4811
|
+
this._history = [...older, ...this._history];
|
|
4812
|
+
this.emit("historyLoaded", { history: this.history });
|
|
4813
|
+
return older;
|
|
4814
|
+
}
|
|
4815
|
+
replaceHistory(page) {
|
|
4816
|
+
this.historyGeneration += 1;
|
|
4817
|
+
this._hasOlder = hasOlderRows(page);
|
|
4818
|
+
this._history = [...page.content].reverse().map(toAgentTimelineItem);
|
|
4819
|
+
}
|
|
4526
4820
|
editQueueItem(id, text) {
|
|
4527
4821
|
this.requireOpen();
|
|
4528
4822
|
if (this.sentTexts.has(id)) this.sentTexts.set(id, text);
|
|
@@ -4886,7 +5180,7 @@ var CoreAgentTaskSession = class {
|
|
|
4886
5180
|
sort: "createdAt,desc",
|
|
4887
5181
|
kinds: "all"
|
|
4888
5182
|
});
|
|
4889
|
-
this.
|
|
5183
|
+
this.replaceHistory(page);
|
|
4890
5184
|
this.emit("historyLoaded", { history: this.history });
|
|
4891
5185
|
const rows = page.content.filter(isChatRow);
|
|
4892
5186
|
const recovered = rows.find(
|
package/dist/index.d.cts
CHANGED
|
@@ -536,6 +536,8 @@ interface AgentMessageListOptions extends PageOptions {
|
|
|
536
536
|
* and `TOOL_USE` rows of the chat itself, as before.
|
|
537
537
|
*/
|
|
538
538
|
kinds?: "all";
|
|
539
|
+
/** Id of a message: only the rows recorded before it, so the next page back holds still. */
|
|
540
|
+
before?: string;
|
|
539
541
|
}
|
|
540
542
|
type AppColor = {
|
|
541
543
|
type: "SOLID";
|
|
@@ -1281,6 +1283,22 @@ interface AgentModel {
|
|
|
1281
1283
|
/** Name the person chose for a custom provider; null on built-in models. Absent on an older Copilot. */
|
|
1282
1284
|
providerName?: string | null;
|
|
1283
1285
|
}
|
|
1286
|
+
/**
|
|
1287
|
+
* A provider the next turn can run on, with the models the catalog offers on it and the last
|
|
1288
|
+
* subscription reading of the person's login.
|
|
1289
|
+
*/
|
|
1290
|
+
interface AgentReadyProvider {
|
|
1291
|
+
provider: CopilotProvider;
|
|
1292
|
+
/** Name the person chose for a custom provider; null on a built-in one. */
|
|
1293
|
+
providerName: string | null;
|
|
1294
|
+
/** The catalog's models of this provider, in the catalog's order. */
|
|
1295
|
+
models: AgentModel[];
|
|
1296
|
+
/**
|
|
1297
|
+
* The same reading `usage(provider)` answers; null on an API key, before a turn reported a
|
|
1298
|
+
* window, on a custom provider, which has no subscription, and when the Copilot could not read it.
|
|
1299
|
+
*/
|
|
1300
|
+
usage: CredentialUsage | null;
|
|
1301
|
+
}
|
|
1284
1302
|
interface CredentialStatus {
|
|
1285
1303
|
provider: CopilotProvider;
|
|
1286
1304
|
connected: boolean;
|
|
@@ -1401,6 +1419,108 @@ interface SendEmailInput {
|
|
|
1401
1419
|
/** Plain-text alternative for clients that do not render HTML. */
|
|
1402
1420
|
text?: string;
|
|
1403
1421
|
}
|
|
1422
|
+
/**
|
|
1423
|
+
* The account emails an app may rewrite with its own token. Messenger sends them from the app's
|
|
1424
|
+
* sender settings or the brand, so a template never picks its sender.
|
|
1425
|
+
*/
|
|
1426
|
+
type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
|
|
1427
|
+
interface EmailTemplate {
|
|
1428
|
+
id: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* An `EmailTemplateType` with an app token. Kept as a string because a console token also
|
|
1431
|
+
* lists the platform's other types, and a type Messenger opens later must not break the list.
|
|
1432
|
+
*/
|
|
1433
|
+
type: string;
|
|
1434
|
+
/** Always null for these types: their sender comes from the app settings or the brand. */
|
|
1435
|
+
senderIdentityId: string | null;
|
|
1436
|
+
subject: string;
|
|
1437
|
+
htmlBody: string;
|
|
1438
|
+
textBody: string | null;
|
|
1439
|
+
/** True on a platform row. The list returns it next to the app's own row when the app rewrote the type. */
|
|
1440
|
+
platformDefault: boolean;
|
|
1441
|
+
createdAt: string;
|
|
1442
|
+
updatedAt: string;
|
|
1443
|
+
}
|
|
1444
|
+
interface EmailTemplateVariable {
|
|
1445
|
+
/** Referenced in a template as `$name`. */
|
|
1446
|
+
name: string;
|
|
1447
|
+
/** A required variable must appear in the subject or the HTML body. */
|
|
1448
|
+
required: boolean;
|
|
1449
|
+
description: string | null;
|
|
1450
|
+
/** Sample value used to render the preview. */
|
|
1451
|
+
preview: string | null;
|
|
1452
|
+
}
|
|
1453
|
+
interface EmailTemplateTypeCatalog {
|
|
1454
|
+
type: string;
|
|
1455
|
+
variables: EmailTemplateVariable[];
|
|
1456
|
+
}
|
|
1457
|
+
/** Replaces the app's version of the template as a whole. */
|
|
1458
|
+
interface EmailTemplateInput {
|
|
1459
|
+
subject: string;
|
|
1460
|
+
htmlBody: string;
|
|
1461
|
+
/** Left out, the plain-text version saved before is cleared. */
|
|
1462
|
+
textBody?: string;
|
|
1463
|
+
}
|
|
1464
|
+
/** The template rendered with the preview values of its variables. */
|
|
1465
|
+
interface EmailTemplatePreview {
|
|
1466
|
+
subject: string;
|
|
1467
|
+
htmlBody: string;
|
|
1468
|
+
textBody: string | null;
|
|
1469
|
+
}
|
|
1470
|
+
interface EmailTemplateUpsertResult {
|
|
1471
|
+
template: EmailTemplate;
|
|
1472
|
+
/** Null when only the preview failed; the template is saved all the same. */
|
|
1473
|
+
preview: EmailTemplatePreview | null;
|
|
1474
|
+
/** The transport or response error of the preview, unchanged, when `preview` is null. */
|
|
1475
|
+
previewError?: unknown;
|
|
1476
|
+
}
|
|
1477
|
+
/** An address of a person, available as a sender in the app's workspace. */
|
|
1478
|
+
interface EmailSender {
|
|
1479
|
+
id: string;
|
|
1480
|
+
email: string;
|
|
1481
|
+
displayName: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
|
|
1484
|
+
* break the list. Only a `VERIFIED` address signs the app's emails.
|
|
1485
|
+
*/
|
|
1486
|
+
status: string;
|
|
1487
|
+
sharedWithCurrentWorkspace: boolean;
|
|
1488
|
+
/** True until the person confirms the 6-digit code Messenger sent to the address. */
|
|
1489
|
+
ownerConfirmationPending: boolean;
|
|
1490
|
+
createdAt: string;
|
|
1491
|
+
updatedAt: string;
|
|
1492
|
+
}
|
|
1493
|
+
interface EmailSenderInput {
|
|
1494
|
+
email: string;
|
|
1495
|
+
/** Name of the address; the app settings may override it in the From header. */
|
|
1496
|
+
displayName: string;
|
|
1497
|
+
}
|
|
1498
|
+
/** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
|
|
1499
|
+
interface EffectiveEmailSender {
|
|
1500
|
+
email: string;
|
|
1501
|
+
displayName: string | null;
|
|
1502
|
+
/** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
|
|
1503
|
+
source: string;
|
|
1504
|
+
/** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
|
|
1505
|
+
reason: string | null;
|
|
1506
|
+
}
|
|
1507
|
+
interface EmailSettings {
|
|
1508
|
+
appId: string;
|
|
1509
|
+
senderIdentityId: string | null;
|
|
1510
|
+
displayName: string | null;
|
|
1511
|
+
replyTo: string | null;
|
|
1512
|
+
effectiveSender: EffectiveEmailSender;
|
|
1513
|
+
/** True when the app's own templates go out even while the brand signs. */
|
|
1514
|
+
ownTemplateSendsFromBrand: boolean;
|
|
1515
|
+
}
|
|
1516
|
+
/** Replaces the app's settings as a whole: a field left out or null is cleared. */
|
|
1517
|
+
interface EmailSettingsInput {
|
|
1518
|
+
/** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
|
|
1519
|
+
senderIdentityId?: string | null;
|
|
1520
|
+
/** Single line, shown in the From header. */
|
|
1521
|
+
displayName?: string | null;
|
|
1522
|
+
replyTo?: string | null;
|
|
1523
|
+
}
|
|
1404
1524
|
interface AppContext {
|
|
1405
1525
|
appId: string;
|
|
1406
1526
|
app: AppDefinition;
|
|
@@ -1461,6 +1581,14 @@ interface AgentCredentialsModule {
|
|
|
1461
1581
|
list(options?: AgentCredentialOptions): Promise<CredentialStatus[]>;
|
|
1462
1582
|
/** Lists models backed by a usable credential, optionally through a business agent connection. */
|
|
1463
1583
|
listModels(agentId?: string, options?: AgentCredentialOptions): Promise<AgentModel[]>;
|
|
1584
|
+
/**
|
|
1585
|
+
* The providers the next turn can run on, as the Copilot assembles them in one call: one entry
|
|
1586
|
+
* per built-in provider and per custom provider of `listModels(agentId)`, in the catalog's order,
|
|
1587
|
+
* each with its models and, for the built-in ones, the reading `usage(provider)` answers. A
|
|
1588
|
+
* reading the Copilot cannot get comes as null. With an `agentId` the models are the agent
|
|
1589
|
+
* connection's, and the reading is still the person's own login.
|
|
1590
|
+
*/
|
|
1591
|
+
providers(agentId?: string, options?: AgentCredentialOptions): Promise<AgentReadyProvider[]>;
|
|
1464
1592
|
/**
|
|
1465
1593
|
* The last subscription window a chat on this credential reported, readable with no chat open.
|
|
1466
1594
|
* Resolves to null until a turn on the provider's subscription login has reported one; an API
|
|
@@ -1893,8 +2021,48 @@ interface MessengerModule {
|
|
|
1893
2021
|
notify(content: string): Promise<MessageAccepted>;
|
|
1894
2022
|
/** Sends an email from the app's sender; only the app's backend token may send. */
|
|
1895
2023
|
sendEmail(input: SendEmailInput): Promise<MessageAccepted>;
|
|
1896
|
-
|
|
1897
|
-
|
|
2024
|
+
/**
|
|
2025
|
+
* Lists the current app's email templates: the platform row (`platformDefault: true`) of every
|
|
2026
|
+
* type and, beside it, the app's row for each type the app has rewritten.
|
|
2027
|
+
*/
|
|
2028
|
+
listEmailTemplates(): Promise<EmailTemplate[]>;
|
|
2029
|
+
/** Gets the variables a type accepts, referenced as `$name` in the subject and HTML body. */
|
|
2030
|
+
getEmailTemplateType(type: EmailTemplateType): Promise<EmailTemplateTypeCatalog>;
|
|
2031
|
+
/** Gets the current app's version of a template, or the platform text when it has none. */
|
|
2032
|
+
getEmailTemplate(type: EmailTemplateType): Promise<EmailTemplate>;
|
|
2033
|
+
/**
|
|
2034
|
+
* Replaces the current app's version of a template and renders its preview. Every required
|
|
2035
|
+
* variable must appear in the subject or the HTML body.
|
|
2036
|
+
*/
|
|
2037
|
+
upsertEmailTemplate(type: EmailTemplateType, input: EmailTemplateInput): Promise<EmailTemplateUpsertResult>;
|
|
2038
|
+
/**
|
|
2039
|
+
* Renders the app's saved template, or the platform one, with the catalog's sample values. It
|
|
2040
|
+
* does not prove which HTML goes out: the sender and the brand policy decide that at send time.
|
|
2041
|
+
*/
|
|
2042
|
+
previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
|
|
2043
|
+
/** Deletes the current app's version of a template, so the platform text applies again. */
|
|
2044
|
+
deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
|
|
2045
|
+
/** Lists the addresses available as senders in the workspace of the token. */
|
|
2046
|
+
listEmailSenders(): Promise<EmailSender[]>;
|
|
2047
|
+
/**
|
|
2048
|
+
* Registers an address in the name of the person in the token and makes it available in the
|
|
2049
|
+
* app's workspace. An address the person already owns comes back as saved, made available too.
|
|
2050
|
+
* Messenger mails a verification link and a 6-digit code to the address.
|
|
2051
|
+
*/
|
|
2052
|
+
registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Mails the AWS link again while AWS has not verified the address, and a new code only while
|
|
2055
|
+
* the person has not confirmed one yet.
|
|
2056
|
+
*/
|
|
2057
|
+
resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
|
|
2058
|
+
/** Confirms the 6-digit code the person read in the mailbox of the address. */
|
|
2059
|
+
confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
|
|
2060
|
+
/** Gets the current app's sender settings and the From its emails use now. */
|
|
2061
|
+
getEmailSettings(): Promise<EmailSettings>;
|
|
2062
|
+
/** Replaces the current app's sender settings; a field left out is cleared. */
|
|
2063
|
+
updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
|
|
2064
|
+
}
|
|
2065
|
+
declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
|
|
1898
2066
|
|
|
1899
2067
|
interface PublicFunctionsModule {
|
|
1900
2068
|
/**
|
|
@@ -1966,7 +2134,7 @@ interface SdkCoreTransports {
|
|
|
1966
2134
|
codeStudio?: Transport;
|
|
1967
2135
|
/** Copilot transport for tasks, credentials, models, and app connections. */
|
|
1968
2136
|
copilot?: Transport;
|
|
1969
|
-
/** Messenger transport for current-user notifications. */
|
|
2137
|
+
/** Messenger transport for current-user notifications, app emails, and their templates. */
|
|
1970
2138
|
messenger?: Transport;
|
|
1971
2139
|
/**
|
|
1972
2140
|
* Anonymous Functions transport. It must not add Authorization or X-App-Id headers.
|
|
@@ -2398,6 +2566,18 @@ interface AgentTaskSession {
|
|
|
2398
2566
|
loadHistory(options?: {
|
|
2399
2567
|
limit?: number;
|
|
2400
2568
|
}): Promise<readonly AgentTimelineItem[]>;
|
|
2569
|
+
/**
|
|
2570
|
+
* Whether the Copilot has rows older than the oldest row `history` holds, as the last page read
|
|
2571
|
+
* said. False until a history was loaded.
|
|
2572
|
+
*/
|
|
2573
|
+
readonly hasOlder: boolean;
|
|
2574
|
+
/**
|
|
2575
|
+
* Reads the page before the oldest row `history` holds, with the size `loadHistory` used, and
|
|
2576
|
+
* puts it before `history`, in the box's order. Resolves with the items it added (none when
|
|
2577
|
+
* there is nothing older) and emits `historyLoaded`. A read still running when `history` is
|
|
2578
|
+
* replaced resolves with nothing.
|
|
2579
|
+
*/
|
|
2580
|
+
loadOlder(): Promise<readonly AgentTimelineItem[]>;
|
|
2401
2581
|
/** Changes the text of a queued message (T3's `queued-run.edit`); only the box channel takes it. */
|
|
2402
2582
|
editQueueItem(id: string, text: string): void;
|
|
2403
2583
|
/** Takes a message out of the queue (T3's `queued-run.cancel`); only the box channel takes it. */
|
|
@@ -2492,4 +2672,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
|
|
|
2492
2672
|
declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
|
|
2493
2673
|
declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
|
|
2494
2674
|
|
|
2495
|
-
export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentPieceIdentity, type AgentProviderUsage, type AgentQueueItem, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
|
|
2675
|
+
export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentPieceIdentity, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
|