@tunasand/sdk 0.11.0 → 0.12.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/analytics.js +113 -50
  4. package/dist/app.js +98 -9
  5. package/dist/{apps-DIxAWBSZ.js → apps-BysPfMuR.js} +102 -12
  6. package/dist/{bridge-Dv4NxGZ7.js → bridge-C2Bl-OAF.js} +1 -2
  7. package/dist/bridge.js +1 -1
  8. package/dist/cli.js +2 -2
  9. package/dist/{collection-nUz1RetA.js → collection-26aglrg6.js} +20 -2
  10. package/dist/delivery.js +1 -1
  11. package/dist/{embeds-B-Dbn64k.js → embeds-DY6O5TrJ.js} +2 -2
  12. package/dist/end-users.js +29 -25
  13. package/dist/{errorLabels-aT2bnMsO.js → errorLabels-BK1NJ6Wz.js} +21 -5
  14. package/dist/i18n.js +2 -2
  15. package/dist/integrations.js +2 -2
  16. package/dist/{ja-CrY_72Tn.js → ja-B3lAaOhZ.js} +13 -11
  17. package/dist/{workflow-CUpl6hO_.js → paymentPort-p1jV44Zz.js} +57 -2
  18. package/dist/{schema-Dcg1ajnW.js → schema-Bs_BUUNv.js} +35 -7
  19. package/dist/schema.js +4 -4
  20. package/dist/types/access/src/handoff.d.ts +1 -1
  21. package/dist/types/access/src/oidc.d.ts +2 -0
  22. package/dist/types/contract/src/api/define.d.ts +165 -0
  23. package/dist/types/contract/src/app.d.ts +22 -7
  24. package/dist/types/contract/src/appChannels.d.ts +65 -27
  25. package/dist/types/contract/src/appDependencies.d.ts +22 -2
  26. package/dist/types/contract/src/appInbound.d.ts +26 -1
  27. package/dist/types/contract/src/appSecrets.d.ts +18 -0
  28. package/dist/types/contract/src/appServer.d.ts +57 -7
  29. package/dist/types/contract/src/apps.d.ts +15 -6
  30. package/dist/types/contract/src/auditActions.d.ts +2 -2
  31. package/dist/types/contract/src/auditLabels.d.ts +10 -1
  32. package/dist/types/contract/src/authorize.d.ts +1 -1
  33. package/dist/types/contract/src/bridge.d.ts +1 -1
  34. package/dist/types/contract/src/consents.d.ts +1 -6
  35. package/dist/types/contract/src/embeds.d.ts +11 -9
  36. package/dist/types/contract/src/endUsers.d.ts +3 -0
  37. package/dist/types/contract/src/errorLabels.d.ts +4 -1
  38. package/dist/types/contract/src/errorLabelsEn.d.ts +4 -1
  39. package/dist/types/contract/src/errors.d.ts +2 -2
  40. package/dist/types/contract/src/eventTraces.d.ts +0 -2
  41. package/dist/types/contract/src/hostingRpc.d.ts +21 -2
  42. package/dist/types/contract/src/import.d.ts +3 -3
  43. package/dist/types/contract/src/index.d.ts +16 -13
  44. package/dist/types/contract/src/issueLabels.d.ts +11 -3
  45. package/dist/types/contract/src/issueLabelsEn.d.ts +4 -0
  46. package/dist/types/contract/src/manage.d.ts +5 -0
  47. package/dist/types/contract/src/notices.d.ts +2 -3
  48. package/dist/types/contract/src/operationEffects.d.ts +39 -0
  49. package/dist/types/contract/src/operatorOperations.d.ts +104 -47
  50. package/dist/types/contract/src/paymentPort.d.ts +129 -0
  51. package/dist/types/contract/src/readPages.d.ts +92 -0
  52. package/dist/types/contract/src/roles.d.ts +2 -2
  53. package/dist/types/contract/src/settingProblems.d.ts +18 -1
  54. package/dist/types/contract/src/workflow.d.ts +5 -2
  55. package/dist/types/contract/src/workspaceItems.d.ts +3 -1
  56. package/dist/types/contract/src/workspacePaths.d.ts +1 -1
  57. package/dist/types/schema/src/collection.d.ts +4 -0
  58. package/dist/types/schema/src/file.d.ts +2 -0
  59. package/dist/types/schema/src/index.d.ts +3 -2
  60. package/dist/types/schema/src/indexes.d.ts +11 -0
  61. package/dist/types/schema/src/labels/en.d.ts +2 -0
  62. package/dist/types/schema/src/labels/ja.d.ts +13 -11
  63. package/dist/types/schema/src/problems.d.ts +13 -11
  64. package/dist/types/sdk/src/app.d.ts +11 -8
  65. package/dist/types/sdk/src/end-users.d.ts +12 -15
  66. package/dist/types/sdk/src/schema.d.ts +1 -1
  67. package/dist/{types-DkO2N7u2.js → types-CYnY-63C.js} +1 -1
  68. package/dist/types.js +1 -1
  69. package/dist/{typesSource-VJIxtN9b.js → typesSource-BTA9-rcB.js} +1 -1
  70. package/package.json +2 -2
@@ -6,8 +6,11 @@ export declare const RECORD_STATES: readonly ["draft", "scheduled", "published"]
6
6
  export type RecordState = (typeof RECORD_STATES)[number];
7
7
  /** 公開中・予約のレコードの未公開の変更(none はなし) */
8
8
  export type RecordChanges = 'none' | 'draft';
9
- /** レコードの操作(publish は公開・予約・再公開・変更の公開、unpublish は予約の取り消しか下書きに戻す、discard は未公開の変更の破棄) */
10
- export declare const RECORD_ACTIONS: readonly ["save", "publish", "unpublish", "discard", "delete"];
9
+ /**
10
+ * レコードの操作(edit は編集の画面で値を変えられるか。判定は save と同じ)
11
+ * - publish は公開・予約・再公開・変更の公開、unpublish は予約の取り消しか下書きに戻す、discard は未公開の変更の破棄
12
+ */
13
+ export declare const RECORD_ACTIONS: readonly ["edit", "save", "publish", "unpublish", "discard", "delete"];
11
14
  export type RecordAction = (typeof RECORD_ACTIONS)[number];
12
15
  /** 判定に使うレコードの値(API の形: has_draft は未公開の変更、持ち主の項目と created_by を含む) */
13
16
  export type RecordRow = ContentAccess & Readonly<{
@@ -20,6 +20,8 @@ export type StandardAppState = InstallationRelations & Readonly<{
20
20
  collections: readonly AppCollection[];
21
21
  /** 当てたコレクション(入れていないか、当てていなければ空。プロジェクトと環境の作成で入れたアプリは当てずに入る) */
22
22
  mapped: CollectionMappings;
23
+ /** 当てる宣言(existing)の当て先を選ばないと進めないか(サーバーの判定。追加では任意、入れた後の選び直しでは必須) */
24
+ mappingRequired: boolean;
23
25
  /** 必要な外部の接続と、接続済みか */
24
26
  connections: readonly (ConnectionPoint & Readonly<{
25
27
  connected: boolean;
@@ -66,7 +68,7 @@ export type CalendarField = Readonly<{
66
68
  /** 日付のフィールドの予定が持つ source(`field:<コレクション>.<フィールド>`) */
67
69
  export declare const calendarFieldSource: (f: CalendarField) => string;
68
70
  /**
69
- * 対応待ちの行(API /api/inbox の items)
71
+ * 対応待ちの行(API /api/inbox の data)
70
72
  * - kind: レビュー待ちは review、承認待ちは request、アプリはその id
71
73
  * - type: 対象のコレクションの id(件数だけのレコードは null)
72
74
  * - title: 対象の名前で件数だけの行は null、count: 件数で1件の行は1
@@ -1,4 +1,4 @@
1
- /** ワークスペースのコレクションの経路(URL はレコードのスラッグ、record を省くと一覧) */
1
+ /** ワークスペースのコレクションの経路(コレクションはスラッグ、レコードは UUID、record を省くと一覧) */
2
2
  export declare const workspaceRecordPath: (collection: Readonly<{
3
3
  slug: string;
4
4
  }>, record?: Readonly<Record<string, unknown>>) => string;
@@ -29,6 +29,8 @@ type FieldBase = Readonly<{
29
29
  managed?: ManagedField;
30
30
  /** 個人の情報の分類(環境のコピーの匿名化。省略は fieldPiiOf の既定) */
31
31
  pii?: PiiClass;
32
+ /** 並べ替えと絞り込みの索引(一覧のコレクションの最上位の列のフィールドだけ。省略は indexes.ts の既定) */
33
+ index?: boolean;
32
34
  }>;
33
35
  /** 個人の情報の分類(identifier は直接の識別子、contact は連絡先、freetext は自由記述、sensitive は機微、none は対象外) */
34
36
  export declare const PII_CLASSES: readonly ["identifier", "contact", "freetext", "sensitive", "none"];
@@ -294,6 +296,8 @@ export declare const editsSlug: (collection: Collection) => boolean;
294
296
  export declare const isSingleton: (collection: Collection) => boolean;
295
297
  /** 公開の管理(なしは none) */
296
298
  export declare const hasPublication: (collection: Pick<Collection, "publication">) => boolean;
299
+ /** 公開の管理がないコレクションの公開の項目(チェックボックスの published) */
300
+ export declare const hasPublishedFlag: (collection: Collection) => boolean;
297
301
  /** エンドユーザーへの参照の項目の種類(contract の END_USER_REFERENCE_FIELD と同じ値) */
298
302
  export declare const END_USER_FIELD_TYPE = "end_user";
299
303
  /** エンドユーザーへの参照の項目 */
@@ -66,6 +66,8 @@ export type File = ImageFile | VideoFile | OtherFile;
66
66
  export type FileRef = Readonly<{
67
67
  id: string;
68
68
  }>;
69
+ /** 値にある実体の ID(FileRef の形を、ブロック・コンポーネントの種類を問わず探索) */
70
+ export declare const fileIdsIn: (v: unknown) => string[];
69
71
  /**
70
72
  * 配信 API が展開したファイルの値(hotspot・crop は元の画像に対する割合)
71
73
  * - url: 配信の URL(配信のオリジンのない CMS は null)。提供の範囲を限ったファイルは署名のない URL で、サイトのサーバーが SDK の signMediaUrl で署名する
@@ -1,6 +1,6 @@
1
1
  export { BRAND_NAME } from './brand.js';
2
2
  export { fieldZod, jsonSchemaOf, normalizeValues, zodOf, type ValueOptions } from './input.js';
3
- export { FILE_AUDIENCES, type FileAudience, isRestrictedFile, fileRefSchema, cropSchema, hotspotSchema, mediaSchema, type File, type FileRef, type Crop, type DeliveredFile, type Hotspot, type LocalImage, type Media } from './file.js';
3
+ export { FILE_AUDIENCES, type FileAudience, isRestrictedFile, fileRefSchema, cropSchema, hotspotSchema, mediaSchema, type File, type FileRef, fileIdsIn, type Crop, type DeliveredFile, type Hotspot, type LocalImage, type Media } from './file.js';
4
4
  export { deliveredFileIds, mapFileRefs } from './fileRefs.js';
5
5
  export { coverPosition, coverStart, cropRect, croppedHotspot, objectPosition, stillOf, type CropRect } from './image.js';
6
6
  export { FILES_COLLECTION, FILES_COLLECTION_ID, isFilesCollection } from './filesCollection.js';
@@ -20,7 +20,8 @@ export { sameJson } from './json.js';
20
20
  export { isSelfField, isSelfRow, ownerFieldOf, type SelfWrite, selfFieldsOf, selfWritableKeysOf, selfWritableOf, selfWritableProblems, type EndUserOperation, selfOpsOf, selfOpsProblems, type EndUserProof } from './selfOps.js';
21
21
  export { FORM_DEFAULT_VERSION, FORM_SUBMITTERS, formFieldKeysOf, formOwnerOf, formProblems, isFormInputField, MANAGED_FIELDS, managedFieldOf, managedValues, type FormDef, type FormFieldDef, type FormHosts, type FormSubmitter, type ManagedField } from './forms.js';
22
22
  export { audienceAdditions, resolvedSchema, type AudienceHistoryEntry } from './audience.js';
23
- export { acceptsRole, addedFieldAudienceOf, defaultPiiOf, fieldPiiOf, isPiiCollection, isEndUserLinkedCollection, PII_CLASSES, PII_STRENGTH, type PiiClass, anonymizedKeysOf, audienceOf, withoutAudience, declaredAudienceOf, innerAudienceOf, AUDIENCES, type Audience, richTextFieldsOf, cascadeDepths, type CascadeCollection, ON_DELETE, onDeleteOf, type OnDelete, type EndUserOnDelete, entitledKeysOf, isDeliveredAudience, computedFieldsOf, FIELD_ROLES, hasEndUserRules, editsSlug, SLUG_MODES, type SlugMode, initialValueOf, isPublishable, isInputField, isSequenceField, isListCollection, isDeliveredCollection, isPrivateCollection, isSingleton, isStoredCollection, isUndeliveredField, END_USER_FIELD_TYPE, SELF_OPS, type SelfOp, endUserFieldsOf, type EndUserField, type ReferenceField, optionLabelOf, optionsOf, isOptionField, type OptionField, hasPublication, requestReferencesOf, resolvedRolesOf, roleFieldOf, toneOf, collectionOf, collectionByRef, isUuidShape, type ComputedKind, type FieldRole, type FieldRoles, type FieldComputed, type ContentFormat, type CollectionSchema, type Collection, type ResolvedSchema, type FieldCondition, type FieldDef, type FieldDerive, type FieldFixedBy, type CountDef, type FieldProblem, type MediaKind, type OptionTone, type ReferenceRules, type SelectOption, STATUS_CATEGORIES, type StatusCategory, type StatusOption } from './collection.js';
23
+ export { COLLECTION_INDEX_LIMITS, indexedFieldsOf, isIndexableField } from './indexes.js';
24
+ export { acceptsRole, addedFieldAudienceOf, defaultPiiOf, fieldPiiOf, isPiiCollection, isEndUserLinkedCollection, PII_CLASSES, PII_STRENGTH, type PiiClass, anonymizedKeysOf, audienceOf, withoutAudience, declaredAudienceOf, innerAudienceOf, AUDIENCES, type Audience, richTextFieldsOf, cascadeDepths, type CascadeCollection, ON_DELETE, onDeleteOf, type OnDelete, type EndUserOnDelete, entitledKeysOf, isDeliveredAudience, computedFieldsOf, FIELD_ROLES, hasEndUserRules, editsSlug, SLUG_MODES, type SlugMode, initialValueOf, isPublishable, isInputField, isSequenceField, isListCollection, isDeliveredCollection, isPrivateCollection, isSingleton, isStoredCollection, isUndeliveredField, END_USER_FIELD_TYPE, SELF_OPS, type SelfOp, endUserFieldsOf, type EndUserField, type ReferenceField, optionLabelOf, optionsOf, isOptionField, type OptionField, hasPublication, hasPublishedFlag, requestReferencesOf, resolvedRolesOf, roleFieldOf, toneOf, collectionOf, collectionByRef, isUuidShape, type ComputedKind, type FieldRole, type FieldRoles, type FieldComputed, type ContentFormat, type CollectionSchema, type Collection, type ResolvedSchema, type FieldCondition, type FieldDef, type FieldDerive, type FieldFixedBy, type CountDef, type FieldProblem, type MediaKind, type OptionTone, type ReferenceRules, type SelectOption, STATUS_CATEGORIES, type StatusCategory, type StatusOption } from './collection.js';
24
25
  export { FIELD_ID_PATTERN, fieldIdOf, fieldIdProblems, type NewFieldId, withFieldIds } from './fieldIds.js';
25
26
  export { hasPublicPage, imageFrameOf, pagePathOf, publicPathOf, withPagesFrom, type ImageFrame, type ImageFrameDef, type PageDef, type PageRecord, type PageRule } from './page.js';
26
27
  export { schemaRulesOf, type SchemaRule } from './rules.js';
@@ -0,0 +1,11 @@
1
+ import { type Collection, type FieldDef } from './collection.js';
2
+ /** 1つのコレクションの索引の上限(仕組みの列と外部キーの列を除く。docs/specs/limits.md の「一覧と索引の上限」) */
3
+ export declare const COLLECTION_INDEX_LIMITS: {
4
+ readonly indexesMax: 8;
5
+ };
6
+ /** 索引を宣言できるフィールドか */
7
+ export declare const isIndexableField: (collection: Collection, f: FieldDef) => boolean;
8
+ /** 索引を持つフィールド(宣言の true、続いて既定。上限まで) */
9
+ export declare function indexedFieldsOf(collection: Collection): FieldDef[];
10
+ /** 索引の宣言の誤り(宣言できないフィールドの true と、宣言の true の上限の超過。スキーマの保存で拒む) */
11
+ export declare function indexProblems(collection: Collection): string[];
@@ -68,6 +68,8 @@ export declare const SCHEMA_PROBLEM_MESSAGES_EN: {
68
68
  readonly kind_field_missing: "Collection {collection}: field {field} in {declaration} does not exist";
69
69
  readonly kind_time_invalid: "Collection {collection}: time field {field} must be a date or datetime field";
70
70
  readonly kind_subject_invalid: "Collection {collection}: subject field {field} must be an end user field";
71
+ readonly index_field_invalid: "Collection {collection}: field {field} cannot have an index (only single text, select, status, checkbox, number, date, and datetime values that are not sensitive)";
72
+ readonly indexes_too_many: "Collection {collection}: up to {max} indexes";
71
73
  readonly aggregate_dimensions_too_many: "Collection {collection}: aggregates can have up to {max} dimensions";
72
74
  readonly aggregate_dimension_person: "Collection {collection}: field {field} points to a person and cannot be an aggregate dimension";
73
75
  readonly aggregate_bucket_pair: "Collection {collection}: declare both time and bucket for an aggregate, or neither";
@@ -54,7 +54,7 @@ export declare const SCHEMA_PROBLEM_MESSAGES: {
54
54
  readonly field_type_changed: "フィールド「{label}」の種類を {from} から {to} に変更(互換なし、新しいフィールドを作って移す)";
55
55
  readonly field_required: "フィールド「{label}」を必須に";
56
56
  readonly field_pii_narrowed: "フィールド「{label}」の個人の情報の分類を弱める(環境のコピーで値が残る)";
57
- readonly field_managed_changed: "フィールド「{label}」の仕組みが決める値の印を変更(同じ人の送信を1回だけにする判定と、残す日数の基準が変わる)";
57
+ readonly field_managed_changed: "フィールド「{label}」の仕組みが決める値のフラグを変更(同じ人の送信を1回だけにする判定と、残す日数の基準が変わる)";
58
58
  readonly field_tightened: "フィールド「{label}」の値の条件を厳しく(合わない値は次の保存で修正)";
59
59
  readonly option_removed: "フィールド「{label}」の選択肢「{option}」を削除";
60
60
  readonly option_added: "フィールド「{label}」に選択肢「{option}」を追加";
@@ -80,9 +80,9 @@ export declare const SCHEMA_PROBLEM_MESSAGES: {
80
80
  readonly collection_self_ops_added: "コレクション「{label}」の人の操作を追加(同意したインストールが本人の代わりに読み書きできる)";
81
81
  readonly collection_self_ops_removed: "コレクション「{label}」の人の操作を外す";
82
82
  readonly collection_form_opened: "コレクション「{label}」で受け付けるフォームを追加・変更(送信の権限を持つ API キーから書けるようになる)";
83
- readonly collection_form_retention_shortened: "コレクション「{label}」の対応済みから残す日数を {days, number} 日に(過ぎたレコードは毎日の整理で削除。ゴミ箱のあるコレクションではゴミ箱に移り、個人の情報が消えるのはゴミ箱の期間の後)";
83
+ readonly collection_form_retention_shortened: "コレクション「{label}」の対応済みから残す日数を {days, number} 日に(過ぎたレコードは毎日のクリーンアップで削除。ゴミ箱のあるコレクションではゴミ箱に移り、個人の情報が消えるのはゴミ箱の期間の後)";
84
84
  readonly collection_form_changed: "コレクション「{label}」のフォームの設定を変更";
85
- readonly collection_retention_shortened: "コレクション「{label}」の保持の日数を {days, number} 日に(過ぎたレコードは毎日の整理で消える)";
85
+ readonly collection_retention_shortened: "コレクション「{label}」の保持の日数を {days, number} 日に(過ぎたレコードは毎日のクリーンアップで消える)";
86
86
  readonly collection_retention_changed: "コレクション「{label}」の保持の日数を変更";
87
87
  readonly collection_trash_enabled: "コレクション「{label}」のゴミ箱を有効にする";
88
88
  readonly collection_trash_disabled: "コレクション「{label}」のゴミ箱を無効にする";
@@ -129,7 +129,7 @@ export declare const SCHEMA_PROBLEM_MESSAGES: {
129
129
  readonly role_field_mismatch: "コレクション {collection} の役割 {role}: フィールド {field}({type})は役割に合わない";
130
130
  readonly audience_nested_wider: "コレクション {collection} のフィールド {field}: まとまりの中の見える範囲は外側と同じかスタッフ";
131
131
  readonly audience_end_user_field: "コレクション {collection} のフィールド {field}: エンドユーザーへの参照のフィールドの見える範囲は本人かスタッフ";
132
- readonly audience_self_without_marker: "コレクション {collection} の見える範囲が本人のフィールドには、本人の印 self を付けたエンドユーザーへの参照のフィールドが要る";
132
+ readonly audience_self_without_marker: "コレクション {collection} の見える範囲が本人のフィールドには、本人のフラグ self を付けたエンドユーザーへの参照のフィールドが要る";
133
133
  readonly entitlement_not_reference: "コレクション {collection} の必要な権利 {entitlement}: 最上位の公開かアクセス権の参照のフィールドでない";
134
134
  readonly audience_wider_than_source: "コレクション {collection} のフィールド {field}: {source, select, computed {計算} derive {決まる値} other {条件}}の元 {from} より広い見える範囲にできない(元の値が漏れる)";
135
135
  readonly template_id_placeholder: "コレクション {collection} の雛形 {template}: '{id}' は使えない('{slug}' にする)";
@@ -165,6 +165,8 @@ export declare const SCHEMA_PROBLEM_MESSAGES: {
165
165
  readonly kind_field_missing: "コレクション {collection}: {declaration} のフィールド {field} がない";
166
166
  readonly kind_time_invalid: "コレクション {collection}: 時刻のフィールド {field} は日付か日時のフィールドにする";
167
167
  readonly kind_subject_invalid: "コレクション {collection}: 本人を指すフィールド {field} はエンドユーザーへの参照のフィールドにする";
168
+ readonly index_field_invalid: "コレクション {collection}: フィールド {field} には索引を宣言できない(テキスト、選択、ステータス、チェックボックス、数値、日付、日時の単数の値で、要配慮個人情報でないものだけ)";
169
+ readonly indexes_too_many: "コレクション {collection}: 索引は {max} 個まで";
168
170
  readonly aggregate_dimensions_too_many: "コレクション {collection}: 集計の次元は {max} 個まで";
169
171
  readonly aggregate_dimension_person: "コレクション {collection}: 本人を指すフィールド {field} を集計の次元にできない";
170
172
  readonly aggregate_bucket_pair: "コレクション {collection}: 集計の時刻のフィールド time と時間の区切り bucket は両方を宣言するか、どちらも宣言しない";
@@ -202,19 +204,19 @@ export declare const SCHEMA_PROBLEM_MESSAGES: {
202
204
  readonly form_handled_done: "コレクション {collection} の対応の状態 {field}: 対応済みの値は選択肢の値で、初期値を含めない";
203
205
  readonly form_handled_at_missing: "コレクション {collection} の対応の状態 {field}: 対応日時のフィールド(managed が form_handled_at)が要る";
204
206
  readonly form_handled_writable: "コレクション {collection} の対応の状態 {field}: 送信者が書けるフィールドにしない";
205
- readonly form_managed_nested: "コレクション {collection} のフィールド {field}: 印 managed はまとまりの中に付けない";
206
- readonly form_managed_shape: "コレクション {collection} のフィールド {field}: 印 {managed} は種類 {type} の、必須でも条件つきでもない1つの値のフィールドだけ";
207
- readonly form_managed_undeclared: "コレクション {collection} のフィールド {field}: 印 {managed} に対応するフォームの宣言がない";
208
- readonly form_managed_duplicate: "コレクション {collection} のフィールド {field}: 印 {managed} は1つだけ";
207
+ readonly form_managed_nested: "コレクション {collection} のフィールド {field}: フラグ managed はまとまりの中に付けない";
208
+ readonly form_managed_shape: "コレクション {collection} のフィールド {field}: フラグ {managed} は種類 {type} の、必須でも条件つきでもない1つの値のフィールドだけ";
209
+ readonly form_managed_undeclared: "コレクション {collection} のフィールド {field}: フラグ {managed} に対応するフォームの宣言がない";
210
+ readonly form_managed_duplicate: "コレクション {collection} のフィールド {field}: フラグ {managed} は1つだけ";
209
211
  readonly self_ops_private_only: "コレクション {collection} の人の操作 self_ops は非公開のコレクションだけ(人が書いた値と本人の値を配信に出さない)";
210
212
  readonly self_ops_list_only: "コレクション {collection} の人の操作 self_ops は一覧のコレクションだけ(オブジェクト形式のコレクションはレコードが1つ)";
211
213
  readonly self_ops_unpublished: "コレクション {collection} の人の操作 self_ops のコレクションは公開の管理と公開のフィールド published を持たない(本人のレコードは公開の状態によらず本人に見せる)";
212
214
  readonly self_ops_one_self: "コレクション {collection} の人の操作 self_ops は本人のエンドユーザーへの参照のフィールドがちょうど1つのコレクションだけ";
213
215
  readonly self_ops_on_delete: "コレクション {collection} の人の操作 self_ops のコレクションの本人のエンドユーザーへの参照のフィールド {field} は on_delete を cascade か anonymize にする(人の削除で本人のレコードを残さない)";
214
216
  readonly self_ops_unique: "コレクション {collection} の人の操作 self_ops のコレクションの一意の組 {key} は本人のエンドユーザーへの参照のフィールド {field} を含む(ほかの人の値とぶつけない)";
215
- readonly self_writable_nested: "コレクション {collection} のフィールド {field}: 本人が書ける印 self_writable はまとまりの中に付けない";
216
- readonly self_writable_blocked: "コレクション {collection} のフィールド {field}: {block, select, end_user {エンドユーザーへの参照のフィールド} object {まとまり} file {ファイルのフィールド} rich_text {本文のフィールド} staff {スタッフのフィールド} admin_only {管理者だけのフィールド} computed {計算のフィールド} other {連番のフィールド}}に本人が書ける印 self_writable は付けられない";
217
- readonly self_writable_without_ops: "コレクション {collection} のフィールド {field}: 本人が書ける印 self_writable は人の操作 create_self か update_self を受けるコレクションだけ";
217
+ readonly self_writable_nested: "コレクション {collection} のフィールド {field}: 本人の書き込みのフラグ self_writable はまとまりの中に付けない";
218
+ readonly self_writable_blocked: "コレクション {collection} のフィールド {field}: {block, select, end_user {エンドユーザーへの参照のフィールド} object {まとまり} file {ファイルのフィールド} rich_text {本文のフィールド} staff {スタッフのフィールド} admin_only {管理者だけのフィールド} computed {計算のフィールド} other {連番のフィールド}}に本人の書き込みのフラグ self_writable は付けられない";
219
+ readonly self_writable_without_ops: "コレクション {collection} のフィールド {field}: 本人の書き込みのフラグ self_writable は人の操作 create_self か update_self を受けるコレクションだけ";
218
220
  };
219
221
  /** 製品で固定のフィールドとコレクションの表示名(filesCollection.ts の files のコレクション) */
220
222
  export declare const PRODUCT_FIELD_LABELS: {
@@ -51,7 +51,7 @@ export declare const schemaProblem: import("../../i18n/src/index.js").ProblemFac
51
51
  readonly field_type_changed: "フィールド「{label}」の種類を {from} から {to} に変更(互換なし、新しいフィールドを作って移す)";
52
52
  readonly field_required: "フィールド「{label}」を必須に";
53
53
  readonly field_pii_narrowed: "フィールド「{label}」の個人の情報の分類を弱める(環境のコピーで値が残る)";
54
- readonly field_managed_changed: "フィールド「{label}」の仕組みが決める値の印を変更(同じ人の送信を1回だけにする判定と、残す日数の基準が変わる)";
54
+ readonly field_managed_changed: "フィールド「{label}」の仕組みが決める値のフラグを変更(同じ人の送信を1回だけにする判定と、残す日数の基準が変わる)";
55
55
  readonly field_tightened: "フィールド「{label}」の値の条件を厳しく(合わない値は次の保存で修正)";
56
56
  readonly option_removed: "フィールド「{label}」の選択肢「{option}」を削除";
57
57
  readonly option_added: "フィールド「{label}」に選択肢「{option}」を追加";
@@ -77,9 +77,9 @@ export declare const schemaProblem: import("../../i18n/src/index.js").ProblemFac
77
77
  readonly collection_self_ops_added: "コレクション「{label}」の人の操作を追加(同意したインストールが本人の代わりに読み書きできる)";
78
78
  readonly collection_self_ops_removed: "コレクション「{label}」の人の操作を外す";
79
79
  readonly collection_form_opened: "コレクション「{label}」で受け付けるフォームを追加・変更(送信の権限を持つ API キーから書けるようになる)";
80
- readonly collection_form_retention_shortened: "コレクション「{label}」の対応済みから残す日数を {days, number} 日に(過ぎたレコードは毎日の整理で削除。ゴミ箱のあるコレクションではゴミ箱に移り、個人の情報が消えるのはゴミ箱の期間の後)";
80
+ readonly collection_form_retention_shortened: "コレクション「{label}」の対応済みから残す日数を {days, number} 日に(過ぎたレコードは毎日のクリーンアップで削除。ゴミ箱のあるコレクションではゴミ箱に移り、個人の情報が消えるのはゴミ箱の期間の後)";
81
81
  readonly collection_form_changed: "コレクション「{label}」のフォームの設定を変更";
82
- readonly collection_retention_shortened: "コレクション「{label}」の保持の日数を {days, number} 日に(過ぎたレコードは毎日の整理で消える)";
82
+ readonly collection_retention_shortened: "コレクション「{label}」の保持の日数を {days, number} 日に(過ぎたレコードは毎日のクリーンアップで消える)";
83
83
  readonly collection_retention_changed: "コレクション「{label}」の保持の日数を変更";
84
84
  readonly collection_trash_enabled: "コレクション「{label}」のゴミ箱を有効にする";
85
85
  readonly collection_trash_disabled: "コレクション「{label}」のゴミ箱を無効にする";
@@ -126,7 +126,7 @@ export declare const schemaProblem: import("../../i18n/src/index.js").ProblemFac
126
126
  readonly role_field_mismatch: "コレクション {collection} の役割 {role}: フィールド {field}({type})は役割に合わない";
127
127
  readonly audience_nested_wider: "コレクション {collection} のフィールド {field}: まとまりの中の見える範囲は外側と同じかスタッフ";
128
128
  readonly audience_end_user_field: "コレクション {collection} のフィールド {field}: エンドユーザーへの参照のフィールドの見える範囲は本人かスタッフ";
129
- readonly audience_self_without_marker: "コレクション {collection} の見える範囲が本人のフィールドには、本人の印 self を付けたエンドユーザーへの参照のフィールドが要る";
129
+ readonly audience_self_without_marker: "コレクション {collection} の見える範囲が本人のフィールドには、本人のフラグ self を付けたエンドユーザーへの参照のフィールドが要る";
130
130
  readonly entitlement_not_reference: "コレクション {collection} の必要な権利 {entitlement}: 最上位の公開かアクセス権の参照のフィールドでない";
131
131
  readonly audience_wider_than_source: "コレクション {collection} のフィールド {field}: {source, select, computed {計算} derive {決まる値} other {条件}}の元 {from} より広い見える範囲にできない(元の値が漏れる)";
132
132
  readonly template_id_placeholder: "コレクション {collection} の雛形 {template}: '{id}' は使えない('{slug}' にする)";
@@ -162,6 +162,8 @@ export declare const schemaProblem: import("../../i18n/src/index.js").ProblemFac
162
162
  readonly kind_field_missing: "コレクション {collection}: {declaration} のフィールド {field} がない";
163
163
  readonly kind_time_invalid: "コレクション {collection}: 時刻のフィールド {field} は日付か日時のフィールドにする";
164
164
  readonly kind_subject_invalid: "コレクション {collection}: 本人を指すフィールド {field} はエンドユーザーへの参照のフィールドにする";
165
+ readonly index_field_invalid: "コレクション {collection}: フィールド {field} には索引を宣言できない(テキスト、選択、ステータス、チェックボックス、数値、日付、日時の単数の値で、要配慮個人情報でないものだけ)";
166
+ readonly indexes_too_many: "コレクション {collection}: 索引は {max} 個まで";
165
167
  readonly aggregate_dimensions_too_many: "コレクション {collection}: 集計の次元は {max} 個まで";
166
168
  readonly aggregate_dimension_person: "コレクション {collection}: 本人を指すフィールド {field} を集計の次元にできない";
167
169
  readonly aggregate_bucket_pair: "コレクション {collection}: 集計の時刻のフィールド time と時間の区切り bucket は両方を宣言するか、どちらも宣言しない";
@@ -199,19 +201,19 @@ export declare const schemaProblem: import("../../i18n/src/index.js").ProblemFac
199
201
  readonly form_handled_done: "コレクション {collection} の対応の状態 {field}: 対応済みの値は選択肢の値で、初期値を含めない";
200
202
  readonly form_handled_at_missing: "コレクション {collection} の対応の状態 {field}: 対応日時のフィールド(managed が form_handled_at)が要る";
201
203
  readonly form_handled_writable: "コレクション {collection} の対応の状態 {field}: 送信者が書けるフィールドにしない";
202
- readonly form_managed_nested: "コレクション {collection} のフィールド {field}: 印 managed はまとまりの中に付けない";
203
- readonly form_managed_shape: "コレクション {collection} のフィールド {field}: 印 {managed} は種類 {type} の、必須でも条件つきでもない1つの値のフィールドだけ";
204
- readonly form_managed_undeclared: "コレクション {collection} のフィールド {field}: 印 {managed} に対応するフォームの宣言がない";
205
- readonly form_managed_duplicate: "コレクション {collection} のフィールド {field}: 印 {managed} は1つだけ";
204
+ readonly form_managed_nested: "コレクション {collection} のフィールド {field}: フラグ managed はまとまりの中に付けない";
205
+ readonly form_managed_shape: "コレクション {collection} のフィールド {field}: フラグ {managed} は種類 {type} の、必須でも条件つきでもない1つの値のフィールドだけ";
206
+ readonly form_managed_undeclared: "コレクション {collection} のフィールド {field}: フラグ {managed} に対応するフォームの宣言がない";
207
+ readonly form_managed_duplicate: "コレクション {collection} のフィールド {field}: フラグ {managed} は1つだけ";
206
208
  readonly self_ops_private_only: "コレクション {collection} の人の操作 self_ops は非公開のコレクションだけ(人が書いた値と本人の値を配信に出さない)";
207
209
  readonly self_ops_list_only: "コレクション {collection} の人の操作 self_ops は一覧のコレクションだけ(オブジェクト形式のコレクションはレコードが1つ)";
208
210
  readonly self_ops_unpublished: "コレクション {collection} の人の操作 self_ops のコレクションは公開の管理と公開のフィールド published を持たない(本人のレコードは公開の状態によらず本人に見せる)";
209
211
  readonly self_ops_one_self: "コレクション {collection} の人の操作 self_ops は本人のエンドユーザーへの参照のフィールドがちょうど1つのコレクションだけ";
210
212
  readonly self_ops_on_delete: "コレクション {collection} の人の操作 self_ops のコレクションの本人のエンドユーザーへの参照のフィールド {field} は on_delete を cascade か anonymize にする(人の削除で本人のレコードを残さない)";
211
213
  readonly self_ops_unique: "コレクション {collection} の人の操作 self_ops のコレクションの一意の組 {key} は本人のエンドユーザーへの参照のフィールド {field} を含む(ほかの人の値とぶつけない)";
212
- readonly self_writable_nested: "コレクション {collection} のフィールド {field}: 本人が書ける印 self_writable はまとまりの中に付けない";
213
- readonly self_writable_blocked: "コレクション {collection} のフィールド {field}: {block, select, end_user {エンドユーザーへの参照のフィールド} object {まとまり} file {ファイルのフィールド} rich_text {本文のフィールド} staff {スタッフのフィールド} admin_only {管理者だけのフィールド} computed {計算のフィールド} other {連番のフィールド}}に本人が書ける印 self_writable は付けられない";
214
- readonly self_writable_without_ops: "コレクション {collection} のフィールド {field}: 本人が書ける印 self_writable は人の操作 create_self か update_self を受けるコレクションだけ";
214
+ readonly self_writable_nested: "コレクション {collection} のフィールド {field}: 本人の書き込みのフラグ self_writable はまとまりの中に付けない";
215
+ readonly self_writable_blocked: "コレクション {collection} のフィールド {field}: {block, select, end_user {エンドユーザーへの参照のフィールド} object {まとまり} file {ファイルのフィールド} rich_text {本文のフィールド} staff {スタッフのフィールド} admin_only {管理者だけのフィールド} computed {計算のフィールド} other {連番のフィールド}}に本人の書き込みのフラグ self_writable は付けられない";
216
+ readonly self_writable_without_ops: "コレクション {collection} のフィールド {field}: 本人の書き込みのフラグ self_writable は人の操作 create_self か update_self を受けるコレクションだけ";
215
217
  }>;
216
218
  /** 問題の英語の文(表の外のコードは既定の形) */
217
219
  export declare const schemaProblemEnglish: (p: Problem) => string;
@@ -8,29 +8,32 @@ import type { z } from 'zod';
8
8
  export { egressAllows } from '../../contract/src/app.js';
9
9
  export { appAssertion, type AppSigningKey, bearerClient, type DelegationExchange, type DelegationExchangeResult, exchangeDelegation, exchangeSessionToken, type SessionTokenExchange } from './delegation.js';
10
10
  export { type AppProblem, appProblems } from '../../contract/src/appProblems.js';
11
- export type { AggregateExtent, AggregateRange, AggregateRebuild, AggregateRollup, AggregateValues, AppChannelConsent, AppConnections, AppEndUserIdentity, AppEndUserIssuer, AppEndUsersPort, AppEventsPort, AppFilesPort, AppDeliveryContext, AppDeliveryRoute, AppJob, AppNoticeKind, AppNotifyPort, AppNotifyRequest, AppNotifyResult, AppRecord, AppRecordCondition, AppRecordQuery, AppRecordsPort, AppRow, AppMessageProvider, AppMessagesPort, AppSavedContext, AppScope, AppSecretsPort, AppServer, AppServerContext, AppServerParts, AppCollectionTarget, AppStatePort, DailyViews, ResolvedSlugs, VisibleRecords, CollectionRule, Problem, RecordRuleContext, Rule, RuleStage, SaveCheck, SaveCheckContext, SaveCheckResult, AppPageRequest, AppRecordPage, AppPortErrorCode, AppPortFailure, AppPortResult } from '../../contract/src/appServer.js';
12
- export type { AppContext, AppRoute, AppRouteArea, AppRouteMethod, AppRoutePolicy, CmsClient } from '../../contract/src/app.js';
11
+ export type { AggregateExtent, AggregateRange, AggregateRebuild, AggregateRollup, AggregateValues, AppChannelConsent, AppConnections, AppEndUserIdentity, AppEndUserIssuer, AppEndUsersPort, AppEventsPort, AppFilesPort, AppDeliveryContext, AppDeliveryRoute, AppJob, AppNoticeKind, AppNotifyPort, AppNotifyRequest, AppNotifyResult, AppRecord, AppRecordCondition, AppRecordQuery, AppRecordsPort, AppRow, AppMessageProvider, AppNoticesProvider, AppPaymentProvider, AppPaymentsPort, AppMessagesPort, AppSavedContext, AppScope, AppSecretsPort, AppServer, AppServerContext, AppServerParts, AppCollectionTarget, AppStatePort, DailyViews, ResolvedSlugs, VisibleRecords, CollectionRule, Problem, RecordRuleContext, Rule, RuleStage, SaveCheck, SaveCheckContext, SaveCheckResult, AppPageRequest, AppRecordPage, AppPortErrorCode, AppPortFailure, AppPortResult } from '../../contract/src/appServer.js';
12
+ export type { AppContext, AppRoute, AppRouteArea, AppRouteCredentials, AppRouteMethod, CmsClient } from '../../contract/src/app.js';
13
13
  export { cmsListAll } from '../../contract/src/app.js';
14
+ export { appRecordList, boundedList, DELEGABLE, pageOf, PERSON } from '../../contract/src/api/define.js';
15
+ export type { ListIndex, ListSpec } from '../../contract/src/api/define.js';
14
16
  export type { ErrorBody, ErrorCode, ErrorParams, Issue, IssueInput, IssueSeverity } from '../../contract/src/errors.js';
15
17
  export { JSON_BODY_MAX } from '../../contract/src/errors.js';
16
18
  export { type AppNotice, type AppNotices, NOTICES_PORT } from '../../contract/src/notices.js';
17
- export { BUNDLED_APP_IDS } from '../../contract/src/appDependencies.js';
19
+ export { type AppSettingDef, type AppSettingRowField, BUNDLED_APP_IDS } from '../../contract/src/appDependencies.js';
18
20
  export { aggregateJobIdOf, APP_FILE_LIMITS, APP_NOTICE_KINDS, APP_NOTIFY_LIMITS, APP_USAGE_ERRORS, APP_STATE_LIMITS, allRecordPages } from '../../contract/src/appServer.js';
19
21
  export { type AppDefinition, type AppSettings, NO_SETTINGS } from '../../contract/src/appDefinition.js';
20
22
  export type { AppManifest, AppUi, AppUiIcon } from '../../contract/src/apps.js';
21
23
  export { appToolPrefixOf } from '../../contract/src/apps.js';
22
24
  export { type AppManifestDocument, type AppManifestText, manifestDocumentOf } from '../../contract/src/manifestText.js';
23
25
  export type { AppOutbound, AppOutboundAuth, AppOutboundMethod } from '../../contract/src/outbound.js';
24
- export type { AppHmacCheck, AppHmacHash, AppSecretDeclaration, AppSecretState, AppSignatureEncoding } from '../../contract/src/appSecrets.js';
26
+ export type { AppHmacCheck, AppHmacHash, AppOperatorSecrets, AppSecretDeclaration, AppSecretState, AppSignatureEncoding } from '../../contract/src/appSecrets.js';
25
27
  export type { AppIdentityDeclaration } from '../../contract/src/appIdentities.js';
26
- export type { AppInboundDeclaration, AppInboundRequest } from '../../contract/src/appInbound.js';
27
- export { APP_CHANNEL_KIND_LIMITS, APP_CHANNEL_LIMITS, CHANNEL_ADDRESS_KINDS, CHANNEL_CAPABILITIES } from '../../contract/src/appChannels.js';
28
- export type { AppChannel, AppChannelInput, AppChannelKind, AppChannelsPort, ChannelAddress, ChannelAddressKind, ChannelCapability } from '../../contract/src/appChannels.js';
28
+ export type { AppDispatched, AppDispatchRequest, AppInboundDeclaration, AppInboundOutcome, AppInboundRequest } from '../../contract/src/appInbound.js';
29
+ export { APP_CHANNEL_KIND_LIMITS, APP_CHANNEL_LIMITS, CHANNEL_ADDRESS_KINDS, CHANNEL_CAPABILITIES, CHANNEL_MODES, channelSettingPattern } from '../../contract/src/appChannels.js';
30
+ export type { AppChannel, AppChannelKind, AppChannelSettingDef, ChannelCreateBody, ChannelPatch, ChannelSecretStatus, ChannelView, AppChannelsPort, ChannelAddress, ChannelAddressKind, ChannelCapability, ChannelExternalKeys, ChannelMode } from '../../contract/src/appChannels.js';
29
31
  export { APP_MAIL_SKIP_REASONS, MAIL_CAPABILITIES } from '../../contract/src/appMail.js';
30
32
  export type { AppInboundMail, AppMailDeclaration, AppMailDomain, AppMailPort, AppMailSendRequest, AppMailSendResult, AppMailSkipReason, MailAuthentication, MailAuthResult } from '../../contract/src/appMail.js';
31
33
  export { MESSAGE_LIMITS, MESSAGE_PORT, MESSAGE_RECEIVED, MESSAGE_SKIP_REASONS } from '../../contract/src/messagePort.js';
34
+ export { PAYMENT_LIMITS, PAYMENT_PORT, priceLookupKeyOf, PRICE_CURRENCIES, PRICE_INTERVALS, PRICE_KINDS, PURCHASE_STATUSES, SUBSCRIPTION_STATUSES, type OfferView, type PaymentCheckout, type PaymentCheckoutRequest, type PaymentPortalRequest, type PriceView, type PurchaseReflection, type ReflectionResult, type SubscriptionReflection, type SubscriptionStatus } from '../../contract/src/paymentPort.js';
32
35
  export type { MessageProblem, MessageProviderResult, MessageReceived, MessageAddress, MessageReceivedInput, MessageRecipient, MessageSender, MessageSendRequest, MessageSendResult, MessageSkipReason, PortMessage, ReceivedItem } from '../../contract/src/messagePort.js';
33
- export { SettingProblem, settingProblemText } from '../../contract/src/settingProblems.js';
36
+ export { SettingProblem, settingProblemText, type SettingRow, settingRowsOf } from '../../contract/src/settingProblems.js';
34
37
  export { ADMIN_AREA_OPERATION } from '../../contract/src/roles.js';
35
38
  export { calendarFieldSource, type CalendarField, type CalendarItem } from '../../contract/src/workspaceItems.js';
36
39
  export { workspaceRecordPath } from '../../contract/src/workspacePaths.js';
@@ -80,13 +80,14 @@ export declare function createEndUsersClient(delivery: Delivery): {
80
80
  };
81
81
  /** エンドユーザーの API の呼び出し */
82
82
  export type EndUsersClient = ReturnType<typeof createEndUsersClient>;
83
- /** 本人のレコードの1件(id、本人が見られる項目、_meta の version は更新の版の条件) */
83
+ /** 本人のレコードの1件(id、本人が見られる項目、_meta の version は更新の版の条件、deleted_at は削除の応答だけ) */
84
84
  export type SelfItem = Readonly<{
85
85
  id: string;
86
86
  _meta: Readonly<{
87
87
  created_at: string;
88
88
  updated_at: string;
89
89
  version: number;
90
+ deleted_at?: string;
90
91
  }>;
91
92
  }> & Readonly<Record<string, unknown>>;
92
93
  /** 本人のレコードの一覧の1ページ(next_cursor は次のページの cursor、最後のページは null) */
@@ -108,7 +109,7 @@ export type SelfCall<T> = Readonly<{
108
109
  }> & FailureDetail);
109
110
  /**
110
111
  * 本人のレコードのエンドポイントの呼び出し(#712、<基点>/end-users/me/<コレクション>)
111
- * - delivery はインストールのトークンを付けた接続(配信 API の鍵では呼べない)。endUserId はサイトが自分で確認した本人
112
+ * - delivery はインストールのトークンを付けた接続(配信 API の鍵では呼べない)。endUserId はサイトが自分で確認した本人で、ヘッダーで送る
112
113
  * - query は配信 API の一覧の文法(filter[key]・order・ids・limit・cursor)で、絞れるのは本人が見られる項目だけ
113
114
  */
114
115
  export declare function createSelfClient(delivery: Delivery): {
@@ -117,19 +118,15 @@ export declare function createSelfClient(delivery: Delivery): {
117
118
  data: readonly SelfItem[];
118
119
  next_cursor: string | null;
119
120
  }>>>;
120
- /** 作成(同じ組のレコードがあれば作らずに created: false でそのレコードの id) */
121
- create: (collection: string, endUserId: string, values: Readonly<Record<string, unknown>>) => Promise<SelfCall<Readonly<{
122
- id: string;
123
- created: boolean;
124
- }>>>;
125
- /** 更新(version は一覧の _meta.version、古ければ version_conflict) */
126
- update: (collection: string, id: string, endUserId: string, version: number, values: Readonly<Record<string, unknown>>) => Promise<SelfCall<Readonly<{
127
- version: number;
128
- }>>>;
129
- /** 削除(ゴミ箱へ) */
130
- delete: (collection: string, id: string, endUserId: string) => Promise<SelfCall<Readonly<{
131
- deleted: true;
132
- }>>>;
121
+ /** 作成(作ったレコード。同じ組のレコードがあれば作らずにそのレコード) */
122
+ create: (collection: string, endUserId: string, values: Readonly<Record<string, unknown>>) => Promise<SelfCall<SelfItem>>;
123
+ /**
124
+ * 更新(values を JSON Merge Patch で重ね、null は値を空に。更新後のレコード)
125
+ * - version: 一覧の _meta.version。古ければ version_conflict
126
+ */
127
+ update: (collection: string, id: string, endUserId: string, version: number, values: Readonly<Record<string, unknown>>) => Promise<SelfCall<SelfItem>>;
128
+ /** 削除(ゴミ箱へ。_meta.deleted_at つきのレコード) */
129
+ delete: (collection: string, id: string, endUserId: string) => Promise<SelfCall<SelfItem>>;
133
130
  };
134
131
  /** 本人のレコードのエンドポイントの呼び出し */
135
132
  export type SelfClient = ReturnType<typeof createSelfClient>;
@@ -1,4 +1,4 @@
1
- export { collectionOf, coverPosition, coverStart, createClock, cropRect, croppedHotspot, fileRefSchema, FILES_COLLECTION, initialValueOf, isDateOnly, isStoredCollection, mediaSchema, objectPosition, optionLabelOf, optionsOf, pagePathOf, parseSchema, parseScreens, publicPathOf, requiredPrimaryCollectionOf, roleFieldOf, dateRoleFieldsOf, sourcesFieldOf, sourceIdsOf, stillOf, typesSourceOf, valueFieldsOf } from '../../schema/src/index.js';
1
+ export { collectionOf, coverPosition, coverStart, createClock, cropRect, croppedHotspot, fileRefSchema, FILES_COLLECTION, initialValueOf, isDateOnly, isIndexableField, isStoredCollection, mediaSchema, objectPosition, optionLabelOf, optionsOf, pagePathOf, parseSchema, parseScreens, publicPathOf, requiredPrimaryCollectionOf, roleFieldOf, dateRoleFieldsOf, sourcesFieldOf, sourceIdsOf, stillOf, typesSourceOf, valueFieldsOf } from '../../schema/src/index.js';
2
2
  export type { File, FileRef, Clock, Collection, CollectionSchema, Crop, CropRect, DateString, FieldDef, Hotspot, LocalImage, Media, PageDef, PageRecord, ScreenSettings } from '../../schema/src/index.js';
3
3
  export { CONFIG_FORMAT } from '../../contract/src/transfer.js';
4
4
  export type { ConfigBundle } from '../../contract/src/transfer.js';
@@ -1,4 +1,4 @@
1
- import { n as typesSourceOf, t as UnknownFieldTypeError } from "./typesSource-VJIxtN9b.js";
1
+ import { n as typesSourceOf, t as UnknownFieldTypeError } from "./typesSource-BTA9-rcB.js";
2
2
  import { readFileSync, writeFileSync } from "node:fs";
3
3
  // src/types.ts
4
4
  /**
package/dist/types.js CHANGED
@@ -1 +1 @@
1
- export { t as TYPES_EXIT_CODES, n as fetchDeliveredCollections, r as runTypesCli } from "./types-DkO2N7u2.js";
1
+ export { t as TYPES_EXIT_CODES, n as fetchDeliveredCollections, r as runTypesCli } from "./types-CYnY-63C.js";
@@ -1,4 +1,4 @@
1
- import { b as innerAudienceOf, u as audienceOf, w as isPrivateCollection, x as isDeliveredAudience } from "./collection-nUz1RetA.js";
1
+ import { S as isDeliveredAudience, T as isPrivateCollection, u as audienceOf, x as innerAudienceOf } from "./collection-26aglrg6.js";
2
2
  // ../schema/src/values.ts
3
3
  /** まとまりの中の配信する項目(外側の見える範囲 outer の中で、本人とスタッフの項目を除く) */
4
4
  const deliveredInner = (fields, outer) => fields.flatMap((f) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tunasand/sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "tunasand の導入先のサイト向けの SDK(配信 API の取得・本文の型・プレビューの受け口・手元の開発の配信 API)",
5
5
  "license": "UNLICENSED",
6
6
  "author": "RYUSENKEI",
@@ -88,7 +88,7 @@
88
88
  "access": "public"
89
89
  },
90
90
  "dependencies": {
91
- "@ryusenkei/web": "^0.15.0",
91
+ "@ryusenkei/web": "^0.16.0",
92
92
  "htmlparser2": "^10.1.0",
93
93
  "use-intl": "^4.15.1",
94
94
  "zod": "^4.6.7"