@anchrd/colab-sdk 0.1.56 → 0.1.58
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/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/skills/skills.d.ts +1 -0
- package/dist/skills/skills.js +2 -1
- package/package.json +1 -1
package/dist/sdk.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, }
|
|
|
53
53
|
export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
|
|
54
54
|
export { type Authorized, type AuthorizeResult, createServiceClient, type InterfaceDeclaredResult, type InterfaceRemovedResult, type ServiceClient, type ServiceClientDeps, type ServiceClientFailure, } from "./service-client/service-client.js";
|
|
55
55
|
export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
|
|
56
|
-
export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
56
|
+
export { callNameForm, SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
57
57
|
export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
|
|
58
58
|
export { maxDatabaseRows, maxTableColumns, maxTableGroups, maxTableRows, RowLimit, TableAggregate, TableColumn, TableColumnChange, TableColumnType, TableCondition, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableGroup, TableId, TableSaved, TableSort, TableStorage, TableUpdateInput, tableAggregateFunctions, tableColumnTypes, tableFormats, tableStorages, } from "./tables/tables.js";
|
|
59
59
|
export { companyTeamId, MemberId, Team, TeamArchiveInput, TeamCreateInput, TeamId, TeamList, TeamListInput, TeamMember, TeamMemberCreateInput, TeamMemberRemoveInput, TeamRestoreInput, TeamRole, TeamUpdateInput, } from "./teams/teams.js";
|
package/dist/sdk.js
CHANGED
|
@@ -56,7 +56,7 @@ export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, }
|
|
|
56
56
|
export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
|
|
57
57
|
export { createServiceClient, } from "./service-client/service-client.js";
|
|
58
58
|
export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
|
|
59
|
-
export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
59
|
+
export { callNameForm, SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
60
60
|
export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
|
|
61
61
|
export { maxDatabaseRows, maxTableColumns, maxTableGroups, maxTableRows, RowLimit, TableAggregate, TableColumn, TableColumnChange, TableColumnType, TableCondition, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableGroup, TableId, TableSaved, TableSort, TableStorage, TableUpdateInput, tableAggregateFunctions, tableColumnTypes, tableFormats, tableStorages, } from "./tables/tables.js";
|
|
62
62
|
export { companyTeamId, MemberId, Team, TeamArchiveInput, TeamCreateInput, TeamId, TeamList, TeamListInput, TeamMember, TeamMemberCreateInput, TeamMemberRemoveInput, TeamRestoreInput, TeamRole, TeamUpdateInput, } from "./teams/teams.js";
|
package/dist/skills/skills.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare const SkillFile: z.ZodObject<{
|
|
|
54
54
|
path: z.ZodString;
|
|
55
55
|
content: z.ZodString;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
|
+
export declare const callNameForm = "A call is named <gadget>.<function> (crm.updateLead), the gadget's name in lowercase with hyphens for spaces, or <connector>.<resource>.<action> (emdash.post.create).";
|
|
57
58
|
export declare const SkillCallName: z.ZodString;
|
|
58
59
|
export declare const SkillWriteName: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
59
60
|
export declare const SkillCaseCalls: z.ZodObject<{
|
package/dist/skills/skills.js
CHANGED
|
@@ -89,11 +89,12 @@ export const SkillFile = z.object({ path: z.string(), content: z.string() });
|
|
|
89
89
|
// A call a test case declares (E180, #954): a gadget's function as `<gadget>.<function>` (the
|
|
90
90
|
// gadget's name written like a case's folder) or a connector's tool as
|
|
91
91
|
// `<connector>.<resource>.<action>`.
|
|
92
|
+
export const callNameForm = "A call is named <gadget>.<function> (crm.updateLead), the gadget's name in lowercase with hyphens for spaces, or <connector>.<resource>.<action> (emdash.post.create).";
|
|
92
93
|
export const SkillCallName = z
|
|
93
94
|
.string()
|
|
94
95
|
.max(140)
|
|
95
96
|
.regex(/^(?:[a-z0-9][a-z0-9-]{0,63}\.[A-Za-z_$][A-Za-z0-9_$]{0,63}|[a-z0-9]+\.[a-z]+\.[a-z]+)$/, {
|
|
96
|
-
error:
|
|
97
|
+
error: callNameForm,
|
|
97
98
|
});
|
|
98
99
|
// What a case expects to write: a tool of Colab by its name, a gadget's or a connector's call as
|
|
99
100
|
// above.
|
package/package.json
CHANGED