@relyio/sdk 0.20.0 → 0.21.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/CHANGELOG.md +6 -0
- package/dist/automations/index.d.cts +1 -1
- package/dist/automations/index.d.ts +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/extensions/index.d.cts +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/{index-IjSyBr8f.d.ts → index-BAdue7TR.d.ts} +1 -1
- package/dist/{index-BLVNMYUU.d.cts → index-BNf3S9W9.d.cts} +1 -1
- package/dist/{index-D1fiaQlK.d.ts → index-D0r6fnvl.d.ts} +21 -1
- package/dist/{index-DImzg3ew.d.cts → index-U5NbHg3N.d.cts} +21 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @relyio/sdk
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 62b2960: **A Function's route verifies a signed webhook.** `route.public.signature: { scheme, secret, header? }` names the scheme — `'stripe'` (`Stripe-Signature`, its signed time within five minutes), `'github'` (`X-Hub-Signature-256`) or `'hmac-sha256'` (the hex HMAC-SHA256 of the body, bare or as `sha256=<hex>`, in the `header` it names) — and the Secret holding the signing secret. RelyIO verifies the signature over the body's exact bytes before the Function runs, so the Function never holds the signing secret; a missing, forged or stale signature is refused `403` and runs and bills nothing. `relyio deploy` refuses a signature naming a Secret the Function does not declare, a scheme RelyIO does not verify, or an `hmac-sha256` signature naming no header.
|
|
8
|
+
|
|
3
9
|
## 0.20.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../define-content-type-C2HnCYYX.cjs';
|
|
2
|
-
export { a0 as Accepts, au as AgentStepConfig, ag as AnyEntryEvent, ah as AnyEntryTriggers, aG as ApproveCounts, aH as ApproveOutput, aF as ApproveStepConfig, aE as AskOutput, aD as AskStepConfig, aq as AutomationAction, I as AutomationBecomesTest, aJ as AutomationConfig, Z as AutomationDefinition, T as AutomationDuration, G as AutomationEntryAction, aK as AutomationFile, P as AutomationInput, ab as AutomationItemHandle, U as AutomationItemRef, L as AutomationJson, V as AutomationLookupState, aw as AutomationProposal, X as AutomationProposeTarget, E as AutomationRecordAction, N as AutomationRef, Y as AutomationStep, ar as AutomationStepDraft, $ as AutomationTemplate, K as AutomationTrigger, a6 as AutomationTriggerHandle, O as AutomationValue, J as AutomationWhere, a8 as EntryEvent, ad as EntryTriggers, an as ExtensionTriggerEvent, aB as LookedUp, aA as LookedUpEntry, az as LookedUpEntryItem, ay as LookedUpRecord, aC as LookupOptions, av as ProposingAgentStepConfig, ax as ProposingOutput, a7 as RecordEvent, ac as RecordTriggers, _ as Ref, ak as RunFailedEvent, al as RunFailedWhere, aI as StepBuilder, as as StepHandle, a1 as StepInput, at as StepWithOutput, a9 as TriggerWhere, aa as UidRef, a3 as and, ai as anyEntry, am as automations, aL as defineAutomation, af as entries, ao as extensionTrigger, aM as isAutomationFile, a5 as not, ap as on, a4 as or, ae as records, aN as resolveAutomation, aj as schedule, a2 as tpl } from '../index-
|
|
2
|
+
export { a0 as Accepts, au as AgentStepConfig, ag as AnyEntryEvent, ah as AnyEntryTriggers, aG as ApproveCounts, aH as ApproveOutput, aF as ApproveStepConfig, aE as AskOutput, aD as AskStepConfig, aq as AutomationAction, I as AutomationBecomesTest, aJ as AutomationConfig, Z as AutomationDefinition, T as AutomationDuration, G as AutomationEntryAction, aK as AutomationFile, P as AutomationInput, ab as AutomationItemHandle, U as AutomationItemRef, L as AutomationJson, V as AutomationLookupState, aw as AutomationProposal, X as AutomationProposeTarget, E as AutomationRecordAction, N as AutomationRef, Y as AutomationStep, ar as AutomationStepDraft, $ as AutomationTemplate, K as AutomationTrigger, a6 as AutomationTriggerHandle, O as AutomationValue, J as AutomationWhere, a8 as EntryEvent, ad as EntryTriggers, an as ExtensionTriggerEvent, aB as LookedUp, aA as LookedUpEntry, az as LookedUpEntryItem, ay as LookedUpRecord, aC as LookupOptions, av as ProposingAgentStepConfig, ax as ProposingOutput, a7 as RecordEvent, ac as RecordTriggers, _ as Ref, ak as RunFailedEvent, al as RunFailedWhere, aI as StepBuilder, as as StepHandle, a1 as StepInput, at as StepWithOutput, a9 as TriggerWhere, aa as UidRef, a3 as and, ai as anyEntry, am as automations, aL as defineAutomation, af as entries, ao as extensionTrigger, aM as isAutomationFile, a5 as not, ap as on, a4 as or, ae as records, aN as resolveAutomation, aj as schedule, a2 as tpl } from '../index-U5NbHg3N.cjs';
|
|
3
3
|
export { fields } from '../schema/index.cjs';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../define-content-type-CVLUusfx.js';
|
|
2
|
-
export { a0 as Accepts, au as AgentStepConfig, ag as AnyEntryEvent, ah as AnyEntryTriggers, aG as ApproveCounts, aH as ApproveOutput, aF as ApproveStepConfig, aE as AskOutput, aD as AskStepConfig, aq as AutomationAction, I as AutomationBecomesTest, aJ as AutomationConfig, Z as AutomationDefinition, T as AutomationDuration, G as AutomationEntryAction, aK as AutomationFile, P as AutomationInput, ab as AutomationItemHandle, U as AutomationItemRef, L as AutomationJson, V as AutomationLookupState, aw as AutomationProposal, X as AutomationProposeTarget, E as AutomationRecordAction, N as AutomationRef, Y as AutomationStep, ar as AutomationStepDraft, $ as AutomationTemplate, K as AutomationTrigger, a6 as AutomationTriggerHandle, O as AutomationValue, J as AutomationWhere, a8 as EntryEvent, ad as EntryTriggers, an as ExtensionTriggerEvent, aB as LookedUp, aA as LookedUpEntry, az as LookedUpEntryItem, ay as LookedUpRecord, aC as LookupOptions, av as ProposingAgentStepConfig, ax as ProposingOutput, a7 as RecordEvent, ac as RecordTriggers, _ as Ref, ak as RunFailedEvent, al as RunFailedWhere, aI as StepBuilder, as as StepHandle, a1 as StepInput, at as StepWithOutput, a9 as TriggerWhere, aa as UidRef, a3 as and, ai as anyEntry, am as automations, aL as defineAutomation, af as entries, ao as extensionTrigger, aM as isAutomationFile, a5 as not, ap as on, a4 as or, ae as records, aN as resolveAutomation, aj as schedule, a2 as tpl } from '../index-
|
|
2
|
+
export { a0 as Accepts, au as AgentStepConfig, ag as AnyEntryEvent, ah as AnyEntryTriggers, aG as ApproveCounts, aH as ApproveOutput, aF as ApproveStepConfig, aE as AskOutput, aD as AskStepConfig, aq as AutomationAction, I as AutomationBecomesTest, aJ as AutomationConfig, Z as AutomationDefinition, T as AutomationDuration, G as AutomationEntryAction, aK as AutomationFile, P as AutomationInput, ab as AutomationItemHandle, U as AutomationItemRef, L as AutomationJson, V as AutomationLookupState, aw as AutomationProposal, X as AutomationProposeTarget, E as AutomationRecordAction, N as AutomationRef, Y as AutomationStep, ar as AutomationStepDraft, $ as AutomationTemplate, K as AutomationTrigger, a6 as AutomationTriggerHandle, O as AutomationValue, J as AutomationWhere, a8 as EntryEvent, ad as EntryTriggers, an as ExtensionTriggerEvent, aB as LookedUp, aA as LookedUpEntry, az as LookedUpEntryItem, ay as LookedUpRecord, aC as LookupOptions, av as ProposingAgentStepConfig, ax as ProposingOutput, a7 as RecordEvent, ac as RecordTriggers, _ as Ref, ak as RunFailedEvent, al as RunFailedWhere, aI as StepBuilder, as as StepHandle, a1 as StepInput, at as StepWithOutput, a9 as TriggerWhere, aa as UidRef, a3 as and, ai as anyEntry, am as automations, aL as defineAutomation, af as entries, ao as extensionTrigger, aM as isAutomationFile, a5 as not, ap as on, a4 as or, ae as records, aN as resolveAutomation, aj as schedule, a2 as tpl } from '../index-D0r6fnvl.js';
|
|
3
3
|
export { fields } from '../schema/index.js';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.js';
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { e as ClientDefaults, f as ClientSchema, d as TypedClientConfig, T as TypedRelyIOClient, c as createClient } from '../index-
|
|
2
|
-
export { R as Register, a as RegisteredSchema } from '../index-
|
|
1
|
+
export { e as ClientDefaults, f as ClientSchema, d as TypedClientConfig, T as TypedRelyIOClient, c as createClient } from '../index-BNf3S9W9.cjs';
|
|
2
|
+
export { R as Register, a as RegisteredSchema } from '../index-U5NbHg3N.cjs';
|
|
3
3
|
import '../define-content-type-C2HnCYYX.cjs';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.cjs';
|
|
5
5
|
import '../schema/index.cjs';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { e as ClientDefaults, f as ClientSchema, d as TypedClientConfig, T as TypedRelyIOClient, c as createClient } from '../index-
|
|
2
|
-
export { R as Register, a as RegisteredSchema } from '../index-
|
|
1
|
+
export { e as ClientDefaults, f as ClientSchema, d as TypedClientConfig, T as TypedRelyIOClient, c as createClient } from '../index-BAdue7TR.js';
|
|
2
|
+
export { R as Register, a as RegisteredSchema } from '../index-D0r6fnvl.js';
|
|
3
3
|
import '../define-content-type-CVLUusfx.js';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.js';
|
|
5
5
|
import '../schema/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../define-content-type-C2HnCYYX.cjs';
|
|
2
|
-
export { aY as ClaimsOf, aV as ContributedFieldKindBuilder, aU as ContributedFieldOptions, aW as ExtensionHandle, aQ as ExtensionSettings, aS as ExtensionTriggerHandle, aO as ExtensionUse, aR as ExtensionsConfig, aP as ExtensionsDeclaration, aX as ExtensionsFile, a_ as ExtensionsFileData, aT as HandleOf, aZ as defineExtensions, b0 as extensionsDeclarationOf, a$ as isExtensionsFile } from '../index-
|
|
2
|
+
export { aY as ClaimsOf, aV as ContributedFieldKindBuilder, aU as ContributedFieldOptions, aW as ExtensionHandle, aQ as ExtensionSettings, aS as ExtensionTriggerHandle, aO as ExtensionUse, aR as ExtensionsConfig, aP as ExtensionsDeclaration, aX as ExtensionsFile, a_ as ExtensionsFileData, aT as HandleOf, aZ as defineExtensions, b0 as extensionsDeclarationOf, a$ as isExtensionsFile } from '../index-U5NbHg3N.cjs';
|
|
3
3
|
import '../rich-text.d-BWc-5gX1.cjs';
|
|
4
4
|
import '../schema/index.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../define-content-type-CVLUusfx.js';
|
|
2
|
-
export { aY as ClaimsOf, aV as ContributedFieldKindBuilder, aU as ContributedFieldOptions, aW as ExtensionHandle, aQ as ExtensionSettings, aS as ExtensionTriggerHandle, aO as ExtensionUse, aR as ExtensionsConfig, aP as ExtensionsDeclaration, aX as ExtensionsFile, a_ as ExtensionsFileData, aT as HandleOf, aZ as defineExtensions, b0 as extensionsDeclarationOf, a$ as isExtensionsFile } from '../index-
|
|
2
|
+
export { aY as ClaimsOf, aV as ContributedFieldKindBuilder, aU as ContributedFieldOptions, aW as ExtensionHandle, aQ as ExtensionSettings, aS as ExtensionTriggerHandle, aO as ExtensionUse, aR as ExtensionsConfig, aP as ExtensionsDeclaration, aX as ExtensionsFile, a_ as ExtensionsFileData, aT as HandleOf, aZ as defineExtensions, b0 as extensionsDeclarationOf, a$ as isExtensionsFile } from '../index-D0r6fnvl.js';
|
|
3
3
|
import '../rich-text.d-BWc-5gX1.js';
|
|
4
4
|
import '../schema/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b7 as FunctionActionHandle, b6 as FunctionActionReach,
|
|
1
|
+
export { b7 as FunctionActionHandle, b6 as FunctionActionReach, bw as FunctionActionRefused, bv as FunctionActions, bm as FunctionBatchRefused, bl as FunctionBatchResult, by as FunctionCapabilities, bB as FunctionConfig, b2 as FunctionContainerSize, bu as FunctionContent, bh as FunctionCounterMove, be as FunctionDeclaration, bC as FunctionDefinition, b3 as FunctionDuration, bs as FunctionEndUser, br as FunctionEndUserClaims, bq as FunctionEndUsers, bd as FunctionFieldDeclaration, F as FunctionFieldValues, bg as FunctionFile, bD as FunctionInputOf, b5 as FunctionNetworkHost, bE as FunctionOutputOf, bk as FunctionRecordBatch, bi as FunctionRecordReader, bf as FunctionRecordTypeName, bj as FunctionRecordWriter, bo as FunctionRecords, bz as FunctionResponse, ba as FunctionRoute, b4 as FunctionRouteMethod, b9 as FunctionRouteSignature, bt as FunctionRunInfo, b1 as FunctionRuntime, bc as FunctionSchedule, b8 as FunctionSecretDeclaration, bb as FunctionTool, bp as FunctionWayIn, bF as defineFunction, bx as isActionRefused, bn as isBatchRefused, bG as isFunctionDefinition, bA as respond } from '../index-U5NbHg3N.cjs';
|
|
2
2
|
export { fields } from '../schema/index.cjs';
|
|
3
3
|
import '../define-content-type-C2HnCYYX.cjs';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b7 as FunctionActionHandle, b6 as FunctionActionReach,
|
|
1
|
+
export { b7 as FunctionActionHandle, b6 as FunctionActionReach, bw as FunctionActionRefused, bv as FunctionActions, bm as FunctionBatchRefused, bl as FunctionBatchResult, by as FunctionCapabilities, bB as FunctionConfig, b2 as FunctionContainerSize, bu as FunctionContent, bh as FunctionCounterMove, be as FunctionDeclaration, bC as FunctionDefinition, b3 as FunctionDuration, bs as FunctionEndUser, br as FunctionEndUserClaims, bq as FunctionEndUsers, bd as FunctionFieldDeclaration, F as FunctionFieldValues, bg as FunctionFile, bD as FunctionInputOf, b5 as FunctionNetworkHost, bE as FunctionOutputOf, bk as FunctionRecordBatch, bi as FunctionRecordReader, bf as FunctionRecordTypeName, bj as FunctionRecordWriter, bo as FunctionRecords, bz as FunctionResponse, ba as FunctionRoute, b4 as FunctionRouteMethod, b9 as FunctionRouteSignature, bt as FunctionRunInfo, b1 as FunctionRuntime, bc as FunctionSchedule, b8 as FunctionSecretDeclaration, bb as FunctionTool, bp as FunctionWayIn, bF as defineFunction, bx as isActionRefused, bn as isBatchRefused, bG as isFunctionDefinition, bA as respond } from '../index-D0r6fnvl.js';
|
|
2
2
|
export { fields } from '../schema/index.js';
|
|
3
3
|
import '../define-content-type-CVLUusfx.js';
|
|
4
4
|
import '../rich-text.d-BWc-5gX1.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ApiPath, c as ApiMethod, Q as QueryOf, W as Wire, H as HttpClient, F as FunctionFieldValues, R as Register, A as AnySchemaDefinition, h as RecordsClient, B as BaseRecord, v as RecordBatchOperation, x as RecordBatchOptions, y as RecordBatchResult, a as RegisteredSchema } from './index-
|
|
1
|
+
import { b as ApiPath, c as ApiMethod, Q as QueryOf, W as Wire, H as HttpClient, F as FunctionFieldValues, R as Register, A as AnySchemaDefinition, h as RecordsClient, B as BaseRecord, v as RecordBatchOperation, x as RecordBatchOptions, y as RecordBatchResult, a as RegisteredSchema } from './index-D0r6fnvl.js';
|
|
2
2
|
import { bi as EntryMetadata, aZ as Reading, da as BaseContent, aV as CheckedIncludes, dL as ReadWhere, df as WhereClause, ap as components, a_ as ReadWith, dr as UpdateInput, b1 as UntypedReading, dk as RevisedContent, di as CreateInput, dj as CreatedContent, dq as ContentVersionRow, dp as ContentVersion, dn as RestoredContent, d3 as SDKError, dI as BaseValidationError, dH as ValidationViolation, bw as AssetServedBlocks, dM as CheckedInclude, de as WhereFieldCondition, d8 as AssetFileBlock, db as BaseSingleton, dl as WrittenSingleton, dc as BaseSettingsGroup, dm as WrittenSettingsGroup, s as KeyedMembers, aB as InferContentType, aX as ContentReading, bn as InferSingleton, cW as paths, d4 as RelyIOConfig, bu as InferAssetType, aU as AssetReading, b0 as SingletonReading, br as InferSettingsGroup, a$ as SettingsReading, d5 as RelyIOConfigUpdate, cY as MergedRelyIOConfig } from './define-content-type-CVLUusfx.js';
|
|
3
3
|
import { SchemaContentTypeNames, SchemaEntryOf, SchemaLocaleCodes, SchemaSingletonNames, AggregateBlock, QueryParameterValue, FullTextSearch, SchemaQueryNames, InferQueryParams, AnyQueryParameters, SchemaRecordTypeNames, InferRecordType, RecordWriteFieldsOf, RecordUpdateFieldsOf, SchemaAssetTypeNames, SchemaSettingsGroupNames } from './schema/index.js';
|
|
4
4
|
import { DevUnreadableReason } from './dev-handshake/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ApiPath, c as ApiMethod, Q as QueryOf, W as Wire, H as HttpClient, F as FunctionFieldValues, R as Register, A as AnySchemaDefinition, h as RecordsClient, B as BaseRecord, v as RecordBatchOperation, x as RecordBatchOptions, y as RecordBatchResult, a as RegisteredSchema } from './index-
|
|
1
|
+
import { b as ApiPath, c as ApiMethod, Q as QueryOf, W as Wire, H as HttpClient, F as FunctionFieldValues, R as Register, A as AnySchemaDefinition, h as RecordsClient, B as BaseRecord, v as RecordBatchOperation, x as RecordBatchOptions, y as RecordBatchResult, a as RegisteredSchema } from './index-U5NbHg3N.cjs';
|
|
2
2
|
import { bi as EntryMetadata, aZ as Reading, da as BaseContent, aV as CheckedIncludes, dL as ReadWhere, df as WhereClause, ap as components, a_ as ReadWith, dr as UpdateInput, b1 as UntypedReading, dk as RevisedContent, di as CreateInput, dj as CreatedContent, dq as ContentVersionRow, dp as ContentVersion, dn as RestoredContent, d3 as SDKError, dI as BaseValidationError, dH as ValidationViolation, bw as AssetServedBlocks, dM as CheckedInclude, de as WhereFieldCondition, d8 as AssetFileBlock, db as BaseSingleton, dl as WrittenSingleton, dc as BaseSettingsGroup, dm as WrittenSettingsGroup, s as KeyedMembers, aB as InferContentType, aX as ContentReading, bn as InferSingleton, cW as paths, d4 as RelyIOConfig, bu as InferAssetType, aU as AssetReading, b0 as SingletonReading, br as InferSettingsGroup, a$ as SettingsReading, d5 as RelyIOConfigUpdate, cY as MergedRelyIOConfig } from './define-content-type-C2HnCYYX.cjs';
|
|
3
3
|
import { SchemaContentTypeNames, SchemaEntryOf, SchemaLocaleCodes, SchemaSingletonNames, AggregateBlock, QueryParameterValue, FullTextSearch, SchemaQueryNames, InferQueryParams, AnyQueryParameters, SchemaRecordTypeNames, InferRecordType, RecordWriteFieldsOf, RecordUpdateFieldsOf, SchemaAssetTypeNames, SchemaSettingsGroupNames } from './schema/index.cjs';
|
|
4
4
|
import { DevUnreadableReason } from './dev-handshake/index.cjs';
|
|
@@ -1855,6 +1855,20 @@ type FunctionActionHandle = AutomationAction<unknown, unknown>;
|
|
|
1855
1855
|
interface FunctionSecretDeclaration {
|
|
1856
1856
|
readonly hosts: readonly string[];
|
|
1857
1857
|
}
|
|
1858
|
+
/**
|
|
1859
|
+
* A Public route's webhook signature check, verified by RelyIO before the run:
|
|
1860
|
+
* - `stripe` — `Stripe-Signature`, its signed time within five minutes;
|
|
1861
|
+
* - `github` — `X-Hub-Signature-256`;
|
|
1862
|
+
* - `hmac-sha256` — the hex HMAC-SHA256 of the body, bare or as `sha256=<hex>`, in the `header` named.
|
|
1863
|
+
*
|
|
1864
|
+
* `header` overrides the scheme's own; `hmac-sha256` must name one.
|
|
1865
|
+
*/
|
|
1866
|
+
interface FunctionRouteSignature {
|
|
1867
|
+
readonly scheme: 'stripe' | 'github' | 'hmac-sha256';
|
|
1868
|
+
/** A Secret this Function declares, holding the signing secret. */
|
|
1869
|
+
readonly secret: string;
|
|
1870
|
+
readonly header?: string;
|
|
1871
|
+
}
|
|
1858
1872
|
/** An HTTP route: static segments and `:params` — `'/orders/:id'`. */
|
|
1859
1873
|
interface FunctionRoute {
|
|
1860
1874
|
readonly method: FunctionRouteMethod;
|
|
@@ -1864,6 +1878,12 @@ interface FunctionRoute {
|
|
|
1864
1878
|
readonly perIp?: number;
|
|
1865
1879
|
/** A Secret this Function declares, holding the Turnstile secret key a call's token is verified with. */
|
|
1866
1880
|
readonly turnstile?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* A webhook signature RelyIO verifies before the run, over the body's exact bytes, with a Secret
|
|
1883
|
+
* this Function declares — so the Function never holds the signing secret. A missing or forged
|
|
1884
|
+
* signature runs nothing: `{ scheme: 'stripe', secret: 'STRIPE_WEBHOOK_SECRET' }`.
|
|
1885
|
+
*/
|
|
1886
|
+
readonly signature?: FunctionRouteSignature;
|
|
1867
1887
|
};
|
|
1868
1888
|
/** Browser origins allowed to call the route: `['https://shop.example.com']`. */
|
|
1869
1889
|
readonly cors?: readonly string[];
|
|
@@ -2281,4 +2301,4 @@ declare function defineFunction<const I extends KeyedMembers = Record<never, nev
|
|
|
2281
2301
|
/** Whether `value` is what `defineFunction` returns: how the CLI reads a Function file's default export. */
|
|
2282
2302
|
declare function isFunctionDefinition(value: unknown): value is FunctionDefinition;
|
|
2283
2303
|
|
|
2284
|
-
export { type AutomationTemplate as $, type AnySchemaDefinition as A, type BaseRecord as B, type RecordConditionValue as C, DefaultRetryPolicy as D, type AutomationRecordAction as E, type FunctionFieldValues as F, type AutomationEntryAction as G, HttpClient as H, type AutomationBecomesTest as I, type AutomationWhere as J, type AutomationTrigger as K, type AutomationJson as L, type MatchRouteOptions as M, type AutomationRef as N, type AutomationValue as O, type AutomationInput as P, type QueryOf as Q, type Register as R, type SendOptions as S, type AutomationDuration as T, type AutomationItemRef as U, type AutomationLookupState as V, type Wire as W, type AutomationProposeTarget as X, type AutomationStep as Y, type AutomationDefinition as Z, type Ref as _, type RegisteredSchema as a, isExtensionsFile as a$, type Accepts as a0, type StepInput as a1, tpl as a2, and as a3, or as a4, not as a5, type AutomationTriggerHandle as a6, type RecordEvent as a7, type EntryEvent as a8, type TriggerWhere as a9, type LookedUpEntry as aA, type LookedUp as aB, type LookupOptions as aC, type AskStepConfig as aD, type AskOutput as aE, type ApproveStepConfig as aF, type ApproveCounts as aG, type ApproveOutput as aH, type StepBuilder as aI, type AutomationConfig as aJ, type AutomationFile as aK, defineAutomation as aL, isAutomationFile as aM, resolveAutomation as aN, type ExtensionUse as aO, type ExtensionsDeclaration as aP, type ExtensionSettings as aQ, type ExtensionsConfig as aR, type ExtensionTriggerHandle as aS, type HandleOf as aT, type ContributedFieldOptions as aU, type ContributedFieldKindBuilder as aV, type ExtensionHandle as aW, type ExtensionsFile as aX, type ClaimsOf as aY, defineExtensions as aZ, type ExtensionsFileData as a_, type UidRef as aa, type AutomationItemHandle as ab, type RecordTriggers as ac, type EntryTriggers as ad, records as ae, entries as af, type AnyEntryEvent as ag, type AnyEntryTriggers as ah, anyEntry as ai, schedule as aj, type RunFailedEvent as ak, type RunFailedWhere as al, automations as am, type ExtensionTriggerEvent as an, extensionTrigger as ao, on as ap, type AutomationAction as aq, type AutomationStepDraft as ar, type StepHandle as as, type StepWithOutput as at, type AgentStepConfig as au, type ProposingAgentStepConfig as av, type AutomationProposal as aw, type ProposingOutput as ax, type LookedUpRecord as ay, type LookedUpEntryItem as az, type ApiPath as b, extensionsDeclarationOf as b0, type FunctionRuntime as b1, type FunctionContainerSize as b2, type FunctionDuration as b3, type FunctionRouteMethod as b4, type FunctionNetworkHost as b5, type FunctionActionReach as b6, type FunctionActionHandle as b7, type FunctionSecretDeclaration as b8, type
|
|
2304
|
+
export { type AutomationTemplate as $, type AnySchemaDefinition as A, type BaseRecord as B, type RecordConditionValue as C, DefaultRetryPolicy as D, type AutomationRecordAction as E, type FunctionFieldValues as F, type AutomationEntryAction as G, HttpClient as H, type AutomationBecomesTest as I, type AutomationWhere as J, type AutomationTrigger as K, type AutomationJson as L, type MatchRouteOptions as M, type AutomationRef as N, type AutomationValue as O, type AutomationInput as P, type QueryOf as Q, type Register as R, type SendOptions as S, type AutomationDuration as T, type AutomationItemRef as U, type AutomationLookupState as V, type Wire as W, type AutomationProposeTarget as X, type AutomationStep as Y, type AutomationDefinition as Z, type Ref as _, type RegisteredSchema as a, isExtensionsFile as a$, type Accepts as a0, type StepInput as a1, tpl as a2, and as a3, or as a4, not as a5, type AutomationTriggerHandle as a6, type RecordEvent as a7, type EntryEvent as a8, type TriggerWhere as a9, type LookedUpEntry as aA, type LookedUp as aB, type LookupOptions as aC, type AskStepConfig as aD, type AskOutput as aE, type ApproveStepConfig as aF, type ApproveCounts as aG, type ApproveOutput as aH, type StepBuilder as aI, type AutomationConfig as aJ, type AutomationFile as aK, defineAutomation as aL, isAutomationFile as aM, resolveAutomation as aN, type ExtensionUse as aO, type ExtensionsDeclaration as aP, type ExtensionSettings as aQ, type ExtensionsConfig as aR, type ExtensionTriggerHandle as aS, type HandleOf as aT, type ContributedFieldOptions as aU, type ContributedFieldKindBuilder as aV, type ExtensionHandle as aW, type ExtensionsFile as aX, type ClaimsOf as aY, defineExtensions as aZ, type ExtensionsFileData as a_, type UidRef as aa, type AutomationItemHandle as ab, type RecordTriggers as ac, type EntryTriggers as ad, records as ae, entries as af, type AnyEntryEvent as ag, type AnyEntryTriggers as ah, anyEntry as ai, schedule as aj, type RunFailedEvent as ak, type RunFailedWhere as al, automations as am, type ExtensionTriggerEvent as an, extensionTrigger as ao, on as ap, type AutomationAction as aq, type AutomationStepDraft as ar, type StepHandle as as, type StepWithOutput as at, type AgentStepConfig as au, type ProposingAgentStepConfig as av, type AutomationProposal as aw, type ProposingOutput as ax, type LookedUpRecord as ay, type LookedUpEntryItem as az, type ApiPath as b, extensionsDeclarationOf as b0, type FunctionRuntime as b1, type FunctionContainerSize as b2, type FunctionDuration as b3, type FunctionRouteMethod as b4, type FunctionNetworkHost as b5, type FunctionActionReach as b6, type FunctionActionHandle as b7, type FunctionSecretDeclaration as b8, type FunctionRouteSignature as b9, respond as bA, type FunctionConfig as bB, type FunctionDefinition as bC, type FunctionInputOf as bD, type FunctionOutputOf as bE, defineFunction as bF, isFunctionDefinition as bG, type FunctionRoute as ba, type FunctionTool as bb, type FunctionSchedule as bc, type FunctionFieldDeclaration as bd, type FunctionDeclaration as be, type FunctionRecordTypeName as bf, type FunctionFile as bg, type FunctionCounterMove as bh, type FunctionRecordReader as bi, type FunctionRecordWriter as bj, type FunctionRecordBatch as bk, type FunctionBatchResult as bl, type FunctionBatchRefused as bm, isBatchRefused as bn, type FunctionRecords as bo, type FunctionWayIn as bp, type FunctionEndUsers as bq, type FunctionEndUserClaims as br, type FunctionEndUser as bs, type FunctionRunInfo as bt, type FunctionContent as bu, type FunctionActions as bv, type FunctionActionRefused as bw, isActionRefused as bx, type FunctionCapabilities as by, type FunctionResponse as bz, type ApiMethod as c, type ApiSuccessBody as d, type RouteMatch as e, type RetryPolicy as f, type RetryableRequest as g, RecordsClient as h, isReplaySafe as i, type RecordCallOptions as j, type RecordFacetBucket as k, type RecordFileBytes as l, matchRoute as m, type RecordFileUploadOptions as n, type RecordList as o, type RecordListOptions as p, type RecordMetadata as q, retryPolicyFor as r, type RecordReadOptions as s, type RecordUpdateOptions as t, refusedOperationOf as u, type RecordBatchOperation as v, type RecordBatchOperationResult as w, type RecordBatchOptions as x, type RecordBatchResult as y, type RecordBatchTarget as z };
|
|
@@ -1855,6 +1855,20 @@ type FunctionActionHandle = AutomationAction<unknown, unknown>;
|
|
|
1855
1855
|
interface FunctionSecretDeclaration {
|
|
1856
1856
|
readonly hosts: readonly string[];
|
|
1857
1857
|
}
|
|
1858
|
+
/**
|
|
1859
|
+
* A Public route's webhook signature check, verified by RelyIO before the run:
|
|
1860
|
+
* - `stripe` — `Stripe-Signature`, its signed time within five minutes;
|
|
1861
|
+
* - `github` — `X-Hub-Signature-256`;
|
|
1862
|
+
* - `hmac-sha256` — the hex HMAC-SHA256 of the body, bare or as `sha256=<hex>`, in the `header` named.
|
|
1863
|
+
*
|
|
1864
|
+
* `header` overrides the scheme's own; `hmac-sha256` must name one.
|
|
1865
|
+
*/
|
|
1866
|
+
interface FunctionRouteSignature {
|
|
1867
|
+
readonly scheme: 'stripe' | 'github' | 'hmac-sha256';
|
|
1868
|
+
/** A Secret this Function declares, holding the signing secret. */
|
|
1869
|
+
readonly secret: string;
|
|
1870
|
+
readonly header?: string;
|
|
1871
|
+
}
|
|
1858
1872
|
/** An HTTP route: static segments and `:params` — `'/orders/:id'`. */
|
|
1859
1873
|
interface FunctionRoute {
|
|
1860
1874
|
readonly method: FunctionRouteMethod;
|
|
@@ -1864,6 +1878,12 @@ interface FunctionRoute {
|
|
|
1864
1878
|
readonly perIp?: number;
|
|
1865
1879
|
/** A Secret this Function declares, holding the Turnstile secret key a call's token is verified with. */
|
|
1866
1880
|
readonly turnstile?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* A webhook signature RelyIO verifies before the run, over the body's exact bytes, with a Secret
|
|
1883
|
+
* this Function declares — so the Function never holds the signing secret. A missing or forged
|
|
1884
|
+
* signature runs nothing: `{ scheme: 'stripe', secret: 'STRIPE_WEBHOOK_SECRET' }`.
|
|
1885
|
+
*/
|
|
1886
|
+
readonly signature?: FunctionRouteSignature;
|
|
1867
1887
|
};
|
|
1868
1888
|
/** Browser origins allowed to call the route: `['https://shop.example.com']`. */
|
|
1869
1889
|
readonly cors?: readonly string[];
|
|
@@ -2281,4 +2301,4 @@ declare function defineFunction<const I extends KeyedMembers = Record<never, nev
|
|
|
2281
2301
|
/** Whether `value` is what `defineFunction` returns: how the CLI reads a Function file's default export. */
|
|
2282
2302
|
declare function isFunctionDefinition(value: unknown): value is FunctionDefinition;
|
|
2283
2303
|
|
|
2284
|
-
export { type AutomationTemplate as $, type AnySchemaDefinition as A, type BaseRecord as B, type RecordConditionValue as C, DefaultRetryPolicy as D, type AutomationRecordAction as E, type FunctionFieldValues as F, type AutomationEntryAction as G, HttpClient as H, type AutomationBecomesTest as I, type AutomationWhere as J, type AutomationTrigger as K, type AutomationJson as L, type MatchRouteOptions as M, type AutomationRef as N, type AutomationValue as O, type AutomationInput as P, type QueryOf as Q, type Register as R, type SendOptions as S, type AutomationDuration as T, type AutomationItemRef as U, type AutomationLookupState as V, type Wire as W, type AutomationProposeTarget as X, type AutomationStep as Y, type AutomationDefinition as Z, type Ref as _, type RegisteredSchema as a, isExtensionsFile as a$, type Accepts as a0, type StepInput as a1, tpl as a2, and as a3, or as a4, not as a5, type AutomationTriggerHandle as a6, type RecordEvent as a7, type EntryEvent as a8, type TriggerWhere as a9, type LookedUpEntry as aA, type LookedUp as aB, type LookupOptions as aC, type AskStepConfig as aD, type AskOutput as aE, type ApproveStepConfig as aF, type ApproveCounts as aG, type ApproveOutput as aH, type StepBuilder as aI, type AutomationConfig as aJ, type AutomationFile as aK, defineAutomation as aL, isAutomationFile as aM, resolveAutomation as aN, type ExtensionUse as aO, type ExtensionsDeclaration as aP, type ExtensionSettings as aQ, type ExtensionsConfig as aR, type ExtensionTriggerHandle as aS, type HandleOf as aT, type ContributedFieldOptions as aU, type ContributedFieldKindBuilder as aV, type ExtensionHandle as aW, type ExtensionsFile as aX, type ClaimsOf as aY, defineExtensions as aZ, type ExtensionsFileData as a_, type UidRef as aa, type AutomationItemHandle as ab, type RecordTriggers as ac, type EntryTriggers as ad, records as ae, entries as af, type AnyEntryEvent as ag, type AnyEntryTriggers as ah, anyEntry as ai, schedule as aj, type RunFailedEvent as ak, type RunFailedWhere as al, automations as am, type ExtensionTriggerEvent as an, extensionTrigger as ao, on as ap, type AutomationAction as aq, type AutomationStepDraft as ar, type StepHandle as as, type StepWithOutput as at, type AgentStepConfig as au, type ProposingAgentStepConfig as av, type AutomationProposal as aw, type ProposingOutput as ax, type LookedUpRecord as ay, type LookedUpEntryItem as az, type ApiPath as b, extensionsDeclarationOf as b0, type FunctionRuntime as b1, type FunctionContainerSize as b2, type FunctionDuration as b3, type FunctionRouteMethod as b4, type FunctionNetworkHost as b5, type FunctionActionReach as b6, type FunctionActionHandle as b7, type FunctionSecretDeclaration as b8, type
|
|
2304
|
+
export { type AutomationTemplate as $, type AnySchemaDefinition as A, type BaseRecord as B, type RecordConditionValue as C, DefaultRetryPolicy as D, type AutomationRecordAction as E, type FunctionFieldValues as F, type AutomationEntryAction as G, HttpClient as H, type AutomationBecomesTest as I, type AutomationWhere as J, type AutomationTrigger as K, type AutomationJson as L, type MatchRouteOptions as M, type AutomationRef as N, type AutomationValue as O, type AutomationInput as P, type QueryOf as Q, type Register as R, type SendOptions as S, type AutomationDuration as T, type AutomationItemRef as U, type AutomationLookupState as V, type Wire as W, type AutomationProposeTarget as X, type AutomationStep as Y, type AutomationDefinition as Z, type Ref as _, type RegisteredSchema as a, isExtensionsFile as a$, type Accepts as a0, type StepInput as a1, tpl as a2, and as a3, or as a4, not as a5, type AutomationTriggerHandle as a6, type RecordEvent as a7, type EntryEvent as a8, type TriggerWhere as a9, type LookedUpEntry as aA, type LookedUp as aB, type LookupOptions as aC, type AskStepConfig as aD, type AskOutput as aE, type ApproveStepConfig as aF, type ApproveCounts as aG, type ApproveOutput as aH, type StepBuilder as aI, type AutomationConfig as aJ, type AutomationFile as aK, defineAutomation as aL, isAutomationFile as aM, resolveAutomation as aN, type ExtensionUse as aO, type ExtensionsDeclaration as aP, type ExtensionSettings as aQ, type ExtensionsConfig as aR, type ExtensionTriggerHandle as aS, type HandleOf as aT, type ContributedFieldOptions as aU, type ContributedFieldKindBuilder as aV, type ExtensionHandle as aW, type ExtensionsFile as aX, type ClaimsOf as aY, defineExtensions as aZ, type ExtensionsFileData as a_, type UidRef as aa, type AutomationItemHandle as ab, type RecordTriggers as ac, type EntryTriggers as ad, records as ae, entries as af, type AnyEntryEvent as ag, type AnyEntryTriggers as ah, anyEntry as ai, schedule as aj, type RunFailedEvent as ak, type RunFailedWhere as al, automations as am, type ExtensionTriggerEvent as an, extensionTrigger as ao, on as ap, type AutomationAction as aq, type AutomationStepDraft as ar, type StepHandle as as, type StepWithOutput as at, type AgentStepConfig as au, type ProposingAgentStepConfig as av, type AutomationProposal as aw, type ProposingOutput as ax, type LookedUpRecord as ay, type LookedUpEntryItem as az, type ApiPath as b, extensionsDeclarationOf as b0, type FunctionRuntime as b1, type FunctionContainerSize as b2, type FunctionDuration as b3, type FunctionRouteMethod as b4, type FunctionNetworkHost as b5, type FunctionActionReach as b6, type FunctionActionHandle as b7, type FunctionSecretDeclaration as b8, type FunctionRouteSignature as b9, respond as bA, type FunctionConfig as bB, type FunctionDefinition as bC, type FunctionInputOf as bD, type FunctionOutputOf as bE, defineFunction as bF, isFunctionDefinition as bG, type FunctionRoute as ba, type FunctionTool as bb, type FunctionSchedule as bc, type FunctionFieldDeclaration as bd, type FunctionDeclaration as be, type FunctionRecordTypeName as bf, type FunctionFile as bg, type FunctionCounterMove as bh, type FunctionRecordReader as bi, type FunctionRecordWriter as bj, type FunctionRecordBatch as bk, type FunctionBatchResult as bl, type FunctionBatchRefused as bm, isBatchRefused as bn, type FunctionRecords as bo, type FunctionWayIn as bp, type FunctionEndUsers as bq, type FunctionEndUserClaims as br, type FunctionEndUser as bs, type FunctionRunInfo as bt, type FunctionContent as bu, type FunctionActions as bv, type FunctionActionRefused as bw, isActionRefused as bx, type FunctionCapabilities as by, type FunctionResponse as bz, type ApiMethod as c, type ApiSuccessBody as d, type RouteMatch as e, type RetryPolicy as f, type RetryableRequest as g, RecordsClient as h, isReplaySafe as i, type RecordCallOptions as j, type RecordFacetBucket as k, type RecordFileBytes as l, matchRoute as m, type RecordFileUploadOptions as n, type RecordList as o, type RecordListOptions as p, type RecordMetadata as q, retryPolicyFor as r, type RecordReadOptions as s, type RecordUpdateOptions as t, refusedOperationOf as u, type RecordBatchOperation as v, type RecordBatchOperationResult as w, type RecordBatchOptions as x, type RecordBatchResult as y, type RecordBatchTarget as z };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-
|
|
2
|
-
export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-
|
|
3
|
-
export { A as AnySchemaDefinition, c as ApiMethod, b as ApiPath, d as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, v as RecordBatchOperation, w as RecordBatchOperationResult, x as RecordBatchOptions, y as RecordBatchResult, z as RecordBatchTarget, j as RecordCallOptions, C as RecordConditionValue, k as RecordFacetBucket, l as RecordFileBytes, n as RecordFileUploadOptions, o as RecordList, p as RecordListOptions, q as RecordMetadata, s as RecordReadOptions, t as RecordUpdateOptions, h as RecordsClient, R as Register, a as RegisteredSchema, f as RetryPolicy, g as RetryableRequest, e as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, u as refusedOperationOf, r as retryPolicyFor } from './index-
|
|
1
|
+
import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-BNf3S9W9.cjs';
|
|
2
|
+
export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-BNf3S9W9.cjs';
|
|
3
|
+
export { A as AnySchemaDefinition, c as ApiMethod, b as ApiPath, d as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, v as RecordBatchOperation, w as RecordBatchOperationResult, x as RecordBatchOptions, y as RecordBatchResult, z as RecordBatchTarget, j as RecordCallOptions, C as RecordConditionValue, k as RecordFacetBucket, l as RecordFileBytes, n as RecordFileUploadOptions, o as RecordList, p as RecordListOptions, q as RecordMetadata, s as RecordReadOptions, t as RecordUpdateOptions, h as RecordsClient, R as Register, a as RegisteredSchema, f as RetryPolicy, g as RetryableRequest, e as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, u as refusedOperationOf, r as retryPolicyFor } from './index-U5NbHg3N.cjs';
|
|
4
4
|
export { AggregateBlock, AnyQueryParameters, DeclaredParameters, FetchBlock, FilterDefinition, IncludeDefinition, InferQueryParams, InferQueryResponse, InferRecordType, QueryConfig, QueryDefinition, QueryParameterValue, RecordFieldsOf, RecordUpdateFieldsOf, RecordWriteFieldsOf, SchemaAssetTypeNames, SchemaConfig, SchemaContentTypeNames, SchemaDefinition, SchemaEntry, SchemaEntryOf, SchemaLocaleCodes, SchemaQueryNames, SchemaSettingsGroupNames, SchemaSingletonNames, SearchBlock, SelectMapping, SortCondition, WhereCondition, defineQuery, defineSchema, fields } from './schema/index.cjs';
|
|
5
5
|
import { d3 as SDKError, bi as EntryMetadata } from './define-content-type-C2HnCYYX.cjs';
|
|
6
6
|
export { be as AnyDeclaredFieldset, cZ as ApiResponse, d8 as AssetFileBlock, aU as AssetReading, bw as AssetServedBlocks, aA as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, aS as BlockOf, dB as CacheConfig, dE as CacheStrategy, aW as CheckInclude, aV as CheckedIncludes, aX as ContentReading, at as ContentTypeDefinition, du as ContentTypeSchema, dp as ContentVersion, dq as ContentVersionRow, di as CreateInput, dj as CreatedContent, dt as CustomQuery, dh as DateOnlyOperator, dC as DebugConfig, bd as DeclaredFieldset, dG as Environment, j as FieldDefinition, am as FieldMember, dw as FieldOptions, k as FieldRule, aO as FieldSchemaContext, l as FieldType, m as FieldUIConfig, aP as FieldValue, an as FieldValues, bc as Fieldset, bz as FileKindConfig, bN as FileScanConfig, ar as FileUpload, bM as FileUploadConfig, bF as ImageExifConfig, bx as ImageKindConfig, bE as ImageSourceConfig, bD as ImageUploadConfig, aY as IncludablePaths, bv as InferAssetEntry, bu as InferAssetType, aB as InferContentType, cG as InferJsonSchema, bn as InferSingleton, dK as InvalidPayloadError, cH as JsonFieldValue, cI as JsonSchema, cJ as JsonValue, aR as Keyed, bt as KeyedAssetTypeConfig, bg as KeyedContentTypeConfig, K as KeyedEnumConfig, o as KeyedField, p as KeyedFieldOptions, bf as KeyedFieldsetConfig, bp as KeyedSettingsGroupConfig, bl as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, bj as LocalePublicationFields, u as LocalizationConfig, v as Localized, w as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, a_ as ReadWith, aZ as Reading, dy as RealtimeEvent, dx as RealtimeEventType, aq as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, cX as RetryConfig, dk as RevisedContent, av as SettingsGroupDefinition, a$ as SettingsReading, aT as ShapeValue, ds as SingletonContent, au as SingletonContentTypeDefinition, bm as SingletonMetadata, b0 as SingletonReading, dz as SubscriptionOptions, aQ as UnresolvedEntry, b1 as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bG as VariantDefinition, bJ as VideoCaptionsConfig, bK as VideoDownloadConfig, by as VideoKindConfig, bI as VideoPosterConfig, bH as VideoUploadConfig, bL as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, _ as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, bs as defineAssetType, ba as defineContentType, b2 as defineLocale, bo as defineSettingsGroup, bk as defineSingleton, bb as fieldset } from './define-content-type-C2HnCYYX.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-
|
|
2
|
-
export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-
|
|
3
|
-
export { A as AnySchemaDefinition, c as ApiMethod, b as ApiPath, d as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, v as RecordBatchOperation, w as RecordBatchOperationResult, x as RecordBatchOptions, y as RecordBatchResult, z as RecordBatchTarget, j as RecordCallOptions, C as RecordConditionValue, k as RecordFacetBucket, l as RecordFileBytes, n as RecordFileUploadOptions, o as RecordList, p as RecordListOptions, q as RecordMetadata, s as RecordReadOptions, t as RecordUpdateOptions, h as RecordsClient, R as Register, a as RegisteredSchema, f as RetryPolicy, g as RetryableRequest, e as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, u as refusedOperationOf, r as retryPolicyFor } from './index-
|
|
1
|
+
import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-BAdue7TR.js';
|
|
2
|
+
export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-BAdue7TR.js';
|
|
3
|
+
export { A as AnySchemaDefinition, c as ApiMethod, b as ApiPath, d as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, v as RecordBatchOperation, w as RecordBatchOperationResult, x as RecordBatchOptions, y as RecordBatchResult, z as RecordBatchTarget, j as RecordCallOptions, C as RecordConditionValue, k as RecordFacetBucket, l as RecordFileBytes, n as RecordFileUploadOptions, o as RecordList, p as RecordListOptions, q as RecordMetadata, s as RecordReadOptions, t as RecordUpdateOptions, h as RecordsClient, R as Register, a as RegisteredSchema, f as RetryPolicy, g as RetryableRequest, e as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, u as refusedOperationOf, r as retryPolicyFor } from './index-D0r6fnvl.js';
|
|
4
4
|
export { AggregateBlock, AnyQueryParameters, DeclaredParameters, FetchBlock, FilterDefinition, IncludeDefinition, InferQueryParams, InferQueryResponse, InferRecordType, QueryConfig, QueryDefinition, QueryParameterValue, RecordFieldsOf, RecordUpdateFieldsOf, RecordWriteFieldsOf, SchemaAssetTypeNames, SchemaConfig, SchemaContentTypeNames, SchemaDefinition, SchemaEntry, SchemaEntryOf, SchemaLocaleCodes, SchemaQueryNames, SchemaSettingsGroupNames, SchemaSingletonNames, SearchBlock, SelectMapping, SortCondition, WhereCondition, defineQuery, defineSchema, fields } from './schema/index.js';
|
|
5
5
|
import { d3 as SDKError, bi as EntryMetadata } from './define-content-type-CVLUusfx.js';
|
|
6
6
|
export { be as AnyDeclaredFieldset, cZ as ApiResponse, d8 as AssetFileBlock, aU as AssetReading, bw as AssetServedBlocks, aA as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, aS as BlockOf, dB as CacheConfig, dE as CacheStrategy, aW as CheckInclude, aV as CheckedIncludes, aX as ContentReading, at as ContentTypeDefinition, du as ContentTypeSchema, dp as ContentVersion, dq as ContentVersionRow, di as CreateInput, dj as CreatedContent, dt as CustomQuery, dh as DateOnlyOperator, dC as DebugConfig, bd as DeclaredFieldset, dG as Environment, j as FieldDefinition, am as FieldMember, dw as FieldOptions, k as FieldRule, aO as FieldSchemaContext, l as FieldType, m as FieldUIConfig, aP as FieldValue, an as FieldValues, bc as Fieldset, bz as FileKindConfig, bN as FileScanConfig, ar as FileUpload, bM as FileUploadConfig, bF as ImageExifConfig, bx as ImageKindConfig, bE as ImageSourceConfig, bD as ImageUploadConfig, aY as IncludablePaths, bv as InferAssetEntry, bu as InferAssetType, aB as InferContentType, cG as InferJsonSchema, bn as InferSingleton, dK as InvalidPayloadError, cH as JsonFieldValue, cI as JsonSchema, cJ as JsonValue, aR as Keyed, bt as KeyedAssetTypeConfig, bg as KeyedContentTypeConfig, K as KeyedEnumConfig, o as KeyedField, p as KeyedFieldOptions, bf as KeyedFieldsetConfig, bp as KeyedSettingsGroupConfig, bl as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, bj as LocalePublicationFields, u as LocalizationConfig, v as Localized, w as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, a_ as ReadWith, aZ as Reading, dy as RealtimeEvent, dx as RealtimeEventType, aq as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, cX as RetryConfig, dk as RevisedContent, av as SettingsGroupDefinition, a$ as SettingsReading, aT as ShapeValue, ds as SingletonContent, au as SingletonContentTypeDefinition, bm as SingletonMetadata, b0 as SingletonReading, dz as SubscriptionOptions, aQ as UnresolvedEntry, b1 as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bG as VariantDefinition, bJ as VideoCaptionsConfig, bK as VideoDownloadConfig, by as VideoKindConfig, bI as VideoPosterConfig, bH as VideoUploadConfig, bL as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, _ as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, bs as defineAssetType, ba as defineContentType, b2 as defineLocale, bo as defineSettingsGroup, bk as defineSingleton, bb as fieldset } from './define-content-type-CVLUusfx.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"relyio"
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"typedoc": "^0.28.20",
|
|
120
120
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
121
121
|
"vitest": "5.0.5",
|
|
122
|
-
"@relyio/api-contract": "0.1.0",
|
|
123
122
|
"@relyio/eslint-config": "0.0.0",
|
|
123
|
+
"@relyio/api-contract": "0.1.0",
|
|
124
124
|
"@relyio/rich-text-markdown": "0.0.0",
|
|
125
125
|
"@relyio/schema": "0.0.1"
|
|
126
126
|
},
|