@superdurable/connector-airtable 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Airtable TypeScript connector
2
2
 
3
- `@superdurable/connector-airtable` supplies `listRecords`, `getRecord`,
4
- `upsertRecords`, and `updateRecords` for Dex TypeScript Flows, and the
3
+ `@superdurable/connector-airtable` supplies `createRecord`, `listRecords`, `getRecord`,
4
+ `upsertRecords`, `deleteRecord`, and `updateRecords` for Dex TypeScript Flows, and the
5
5
  `recordChanged` poll Trigger at parity with the Go module. The operation
6
6
  specific Step factories, model validators, connection contracts, and mocks are
7
7
  generated from [`connector.yaml`](../connector.yaml) and the Go model types.
@@ -113,3 +113,13 @@ the Go fetcher scenarios and compares every cursor token and event ID with
113
113
  digests the Go fetcher produced for the same scenarios. The 33 shared provider scenarios compare
114
114
  requests, outputs, branches, retries, and stable mutation keys with Go.
115
115
  No live Airtable token, base, picker, or provider call was verified.
116
+
117
+ ## Delete one record
118
+
119
+ The [record deletion example](examples/delete-record/) uses the static `airtable-record-cleanup` connection. Select a disposable record in a base where the token has `data.records:write`. A confirmed deletion returns its record ID. A provider-confirmed absence on the first attempt selects `alreadyAbsent`.
120
+
121
+ ## Create one record
122
+
123
+ The [record creation example](examples/create-record/) appends the supplied fields to a selected table. Airtable accepts no idempotency key. The Step reads back a previously confirmed record ID before resending. The default cap is three possibly effective sends. An unconfirmed write at the cap selects `uncertain`.
124
+
125
+ When upgrading a custom operation binding from v0.2.1, supply both creation and deletion operations to `newConnectionWithOperations`. The standard client and generated mocks bind both automatically.
@@ -1,12 +1,143 @@
1
1
  {
2
2
  "connectorId": "airtable",
3
- "releaseTag": "connectors/airtable/go/v0.24.0",
3
+ "releaseTag": "connectors/airtable/go/v0.25.1",
4
4
  "package": {
5
5
  "ecosystem": "npm",
6
6
  "name": "@superdurable/connector-airtable",
7
- "version": "0.2.0"
7
+ "version": "0.3.0"
8
8
  },
9
9
  "factories": [
10
+ {
11
+ "name": "newCreateRecordStep",
12
+ "kind": "mutation",
13
+ "operationId": "createRecord",
14
+ "inputType": "CreateRecordInput",
15
+ "description": "Append one record to a table without requiring a merge field; a repeated unknown outcome can create a duplicate.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "created",
25
+ "field": "created",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "providerRejected",
30
+ "field": "providerRejected",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "uncertain",
35
+ "field": "uncertain",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "defect",
40
+ "field": "defect",
41
+ "optional": true
42
+ }
43
+ ],
44
+ "inputSchema": {
45
+ "additionalProperties": false,
46
+ "description": "CreateRecordInput appends one record to an Airtable table. An unknown result may be resent up to MaxSends and can produce duplicates.",
47
+ "properties": {
48
+ "baseId": {
49
+ "description": "BaseID is the Airtable base ID.",
50
+ "type": "string"
51
+ },
52
+ "fields": {
53
+ "additionalProperties": {},
54
+ "description": "Fields maps names or IDs to typed cell values.",
55
+ "type": [
56
+ "object",
57
+ "null"
58
+ ]
59
+ },
60
+ "tableIdOrName": {
61
+ "description": "TableIDOrName identifies the table, preferably by stable ID.",
62
+ "type": "string"
63
+ },
64
+ "typecast": {
65
+ "description": "Typecast enables Airtable's best-effort conversion of text values.",
66
+ "type": "boolean"
67
+ }
68
+ },
69
+ "required": [
70
+ "baseId",
71
+ "fields",
72
+ "tableIdOrName"
73
+ ],
74
+ "type": "object"
75
+ }
76
+ },
77
+ {
78
+ "name": "newDeleteRecordStep",
79
+ "kind": "mutation",
80
+ "operationId": "deleteRecord",
81
+ "inputType": "DeleteRecordInput",
82
+ "description": "Delete one record by ID; an already absent record meets the requested final state.",
83
+ "fields": {
84
+ "stepType": "stepType",
85
+ "annotations": "annotations",
86
+ "connectionName": "connectionName",
87
+ "resultAttribute": "resultAttribute"
88
+ },
89
+ "branches": [
90
+ {
91
+ "id": "deleted",
92
+ "field": "deleted",
93
+ "optional": false
94
+ },
95
+ {
96
+ "id": "alreadyAbsent",
97
+ "field": "alreadyAbsent",
98
+ "optional": true
99
+ },
100
+ {
101
+ "id": "providerRejected",
102
+ "field": "providerRejected",
103
+ "optional": true
104
+ },
105
+ {
106
+ "id": "invalidResponse",
107
+ "field": "invalidResponse",
108
+ "optional": true
109
+ },
110
+ {
111
+ "id": "defect",
112
+ "field": "defect",
113
+ "optional": true
114
+ }
115
+ ],
116
+ "inputSchema": {
117
+ "additionalProperties": false,
118
+ "description": "DeleteRecordInput identifies the record whose absence is requested.",
119
+ "properties": {
120
+ "baseId": {
121
+ "description": "BaseID is the Airtable base ID.",
122
+ "type": "string"
123
+ },
124
+ "recordId": {
125
+ "description": "RecordID is the Airtable record ID.",
126
+ "type": "string"
127
+ },
128
+ "tableIdOrName": {
129
+ "description": "TableIDOrName identifies the table, preferably by stable ID.",
130
+ "type": "string"
131
+ }
132
+ },
133
+ "required": [
134
+ "baseId",
135
+ "recordId",
136
+ "tableIdOrName"
137
+ ],
138
+ "type": "object"
139
+ }
140
+ },
10
141
  {
11
142
  "name": "newListRecordsStep",
12
143
  "kind": "query",
@@ -30,17 +30,50 @@ var ConfigSchema = z.object({
30
30
  "pollIntervalMs": z.number().int().optional(),
31
31
  "pollPageSize": z.number().int().optional()
32
32
  });
33
+ var CredentialMaterialError = class extends TypeError {
34
+ constructor(message) {
35
+ super(message);
36
+ this.name = "CredentialMaterialError";
37
+ }
38
+ };
39
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
40
+ "project credential decoding failed",
41
+ "shared project credential decoding failed",
42
+ "project credential decoding failed: this connector version does not support shared credentials"
43
+ ]);
44
+ function isCredentialMaterialError(error) {
45
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
46
+ }
33
47
  function decodeCredentials(value) {
34
- if (!value || typeof value !== "object" || Array.isArray(value)) throw new TypeError("credential fields are invalid");
48
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
35
49
  const fields = value;
36
50
  const allowed = /* @__PURE__ */ new Set(["personal_access_token"]);
37
- if (Object.keys(fields).some((key) => !allowed.has(key))) throw new TypeError("stored credential does not match the connector credential fields");
38
- if (fields["personal_access_token"] != null && !(typeof fields["personal_access_token"] === "string")) throw new TypeError("credential personal_access_token has an invalid type");
51
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
52
+ if (fields["personal_access_token"] != null && !(typeof fields["personal_access_token"] === "string")) throw new CredentialMaterialError("credential personal_access_token has an invalid type");
39
53
  const credentials = {};
40
- if (!fields["personal_access_token"]) throw new TypeError("credential personal_access_token is required");
54
+ if (!fields["personal_access_token"]) throw new CredentialMaterialError("credential personal_access_token is required");
41
55
  credentials.personalAccessToken = new SecretString(fields["personal_access_token"] ?? "");
42
56
  return credentials;
43
57
  }
58
+ var CreateRecordInputSchema = z.strictObject({
59
+ "baseId": z.string(),
60
+ "tableIdOrName": z.string(),
61
+ "fields": z.record(z.string(), z.unknown().nullable()).nullable(),
62
+ "typecast": z.boolean().optional()
63
+ });
64
+ var RecordSchema = z.strictObject({
65
+ "id": z.string(),
66
+ "createdTime": GoTimeJSONSchema,
67
+ "fields": z.record(z.string(), z.unknown().nullable()).nullable()
68
+ });
69
+ var DeleteRecordInputSchema = z.strictObject({
70
+ "baseId": z.string(),
71
+ "tableIdOrName": z.string(),
72
+ "recordId": z.string()
73
+ });
74
+ var DeletedRecordSchema = z.strictObject({
75
+ "recordId": z.string()
76
+ });
44
77
  var FieldEqualityFilterSchema = z.strictObject({
45
78
  "field": z.string(),
46
79
  "text": z.string().optional(),
@@ -62,11 +95,6 @@ var ListRecordsInputSchema = z.strictObject({
62
95
  "pageSize": z.number().int().optional(),
63
96
  "offset": z.string().optional()
64
97
  });
65
- var RecordSchema = z.strictObject({
66
- "id": z.string(),
67
- "createdTime": GoTimeJSONSchema,
68
- "fields": z.record(z.string(), z.unknown().nullable()).nullable()
69
- });
70
98
  var RecordPageSchema = z.strictObject({
71
99
  "records": z.array(RecordSchema).nullable(),
72
100
  "offset": z.string().optional(),
@@ -111,6 +139,54 @@ var UpdatedRecordsSchema = z.strictObject({
111
139
  // src/generated/definitions.ts
112
140
  var ConnectorID = "airtable";
113
141
  var ProviderID = "airtable";
142
+ var CreateRecordBranch = {
143
+ Created: "created",
144
+ ProviderRejected: "providerRejected",
145
+ Uncertain: "uncertain",
146
+ Defect: "defect"
147
+ };
148
+ var CreateRecordBranchCreated = CreateRecordBranch.Created;
149
+ var CreateRecordBranchProviderRejected = CreateRecordBranch.ProviderRejected;
150
+ var CreateRecordBranchUncertain = CreateRecordBranch.Uncertain;
151
+ var CreateRecordBranchDefect = CreateRecordBranch.Defect;
152
+ var CreateRecordDefinition = {
153
+ operation: { connectorId: ConnectorID, operationId: "createRecord" },
154
+ branches: [
155
+ { id: "created", description: "Airtable created and returned the record." },
156
+ { id: "providerRejected", description: "Airtable conclusively rejected the create request.", optional: true },
157
+ { id: "uncertain", description: "A previous create may have succeeded but cannot be confirmed after the send cap.", optional: true },
158
+ { id: "defect", description: "Local input or connector configuration is invalid.", optional: true }
159
+ ],
160
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
161
+ repeatOnUnknown: "limited",
162
+ maxSends: 3
163
+ };
164
+ var CreateRecordMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
165
+ var DeleteRecordBranch = {
166
+ Deleted: "deleted",
167
+ AlreadyAbsent: "alreadyAbsent",
168
+ ProviderRejected: "providerRejected",
169
+ InvalidResponse: "invalidResponse",
170
+ Defect: "defect"
171
+ };
172
+ var DeleteRecordBranchDeleted = DeleteRecordBranch.Deleted;
173
+ var DeleteRecordBranchAlreadyAbsent = DeleteRecordBranch.AlreadyAbsent;
174
+ var DeleteRecordBranchProviderRejected = DeleteRecordBranch.ProviderRejected;
175
+ var DeleteRecordBranchInvalidResponse = DeleteRecordBranch.InvalidResponse;
176
+ var DeleteRecordBranchDefect = DeleteRecordBranch.Defect;
177
+ var DeleteRecordDefinition = {
178
+ operation: { connectorId: ConnectorID, operationId: "deleteRecord" },
179
+ branches: [
180
+ { id: "deleted", description: "Airtable deleted the record." },
181
+ { id: "alreadyAbsent", description: "The record was already absent.", optional: true },
182
+ { id: "providerRejected", description: "Airtable conclusively rejected the delete request.", optional: true },
183
+ { id: "invalidResponse", description: "Airtable returned an invalid delete response.", optional: true },
184
+ { id: "defect", description: "Local input or connector configuration is invalid.", optional: true }
185
+ ],
186
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
187
+ repeatOnUnknown: "safe"
188
+ };
189
+ var DeleteRecordMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
114
190
  var ListRecordsBranch = {
115
191
  Listed: "listed",
116
192
  OffsetExpired: "offsetExpired",
@@ -174,12 +250,11 @@ var UpsertRecordsDefinition = {
174
250
  branches: [
175
251
  { id: "upserted", description: "Airtable created each record without a match and updated each record that matched." },
176
252
  { id: "providerRejected", description: "Airtable conclusively rejected the upsert, such as several existing records matching one merge key, an invalid cell value, a computed merge field, a missing scope, or a rejected token.", optional: true },
177
- { id: "invalidResponse", description: "Airtable applied or rejected the upsert but returned an invalid or oversized response.", optional: true },
253
+ { id: "invalidResponse", description: "Kept for compatibility and no longer selected: an invalid or oversized upsert response now retries, because repeating the upsert is safe.", optional: true },
178
254
  { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
179
255
  ],
180
256
  stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
181
- repeatOnUnknown: "limited",
182
- maxSends: 3
257
+ repeatOnUnknown: "safe"
183
258
  };
184
259
  var UpsertRecordsMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
185
260
  var UpdateRecordsBranch = {
@@ -200,12 +275,11 @@ var UpdateRecordsDefinition = {
200
275
  { id: "updated", description: "Airtable updated every record and returned it." },
201
276
  { id: "notFound", description: "A record ID does not exist in the table.", optional: true },
202
277
  { id: "providerRejected", description: "Airtable conclusively rejected the update, such as an invalid cell value, a computed field, a missing scope, or a rejected token.", optional: true },
203
- { id: "invalidResponse", description: "Airtable applied or rejected the update but returned an invalid or oversized response.", optional: true },
278
+ { id: "invalidResponse", description: "Kept for compatibility and no longer selected: an invalid or oversized update response now retries, because repeating absolute values is safe.", optional: true },
204
279
  { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
205
280
  ],
206
281
  stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
207
- repeatOnUnknown: "limited",
208
- maxSends: 3
282
+ repeatOnUnknown: "safe"
209
283
  };
210
284
  var UpdateRecordsMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
211
285
 
@@ -241,11 +315,16 @@ function newProjectConnection(project, connectionName, createClient) {
241
315
 
242
316
  export {
243
317
  ConfigSchema,
318
+ CredentialMaterialError,
319
+ isCredentialMaterialError,
244
320
  decodeCredentials,
321
+ CreateRecordInputSchema,
322
+ RecordSchema,
323
+ DeleteRecordInputSchema,
324
+ DeletedRecordSchema,
245
325
  FieldEqualityFilterSchema,
246
326
  RecordSortSchema,
247
327
  ListRecordsInputSchema,
248
- RecordSchema,
249
328
  RecordPageSchema,
250
329
  GetRecordInputSchema,
251
330
  RecordUpsertSchema,
@@ -256,6 +335,21 @@ export {
256
335
  UpdatedRecordsSchema,
257
336
  ConnectorID,
258
337
  ProviderID,
338
+ CreateRecordBranch,
339
+ CreateRecordBranchCreated,
340
+ CreateRecordBranchProviderRejected,
341
+ CreateRecordBranchUncertain,
342
+ CreateRecordBranchDefect,
343
+ CreateRecordDefinition,
344
+ CreateRecordMetadata,
345
+ DeleteRecordBranch,
346
+ DeleteRecordBranchDeleted,
347
+ DeleteRecordBranchAlreadyAbsent,
348
+ DeleteRecordBranchProviderRejected,
349
+ DeleteRecordBranchInvalidResponse,
350
+ DeleteRecordBranchDefect,
351
+ DeleteRecordDefinition,
352
+ DeleteRecordMetadata,
259
353
  ListRecordsBranch,
260
354
  ListRecordsBranchListed,
261
355
  ListRecordsBranchOffsetExpired,
@@ -1,11 +1,11 @@
1
- import { SecretString, CredentialProvider, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
1
+ import { SecretString, CredentialProvider, Mutation, Query, ConnectionRef } from '@superdurable/connectors-sdk';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /** Connector configuration; omitted fields use manifest defaults. */
5
5
  interface Config {
6
6
  /** Airtable Web API base URL; leave blank for Airtable's public API host. Enter an absolute HTTPS URL only for an explicitly supported compatible gateway, or a loopback HTTP URL for a local test server. The base and table pickers always call Airtable's public API host. */
7
7
  endpoint?: string;
8
- /** Maximum complete Airtable API response in bytes; leave blank to keep the safety limit, or enter a larger positive integer only when one page of records carries very long text or many attachments. Oversized responses select invalidResponse. */
8
+ /** Maximum complete Airtable API response in bytes; leave blank to keep the safety limit, or enter a larger positive integer only when one page of records carries very long text or many attachments. Oversized read responses select invalidResponse; an oversized write response retries the repeat-safe write. */
9
9
  maxResponseBytes?: number;
10
10
  /** Delay between recordChanged Trigger polls of each picked table, as a Go duration of at least 1s such as 15s or 2m; leave blank for the shown interval, and lengthen it when many bindings share one base. Each poll normally makes one Airtable list request, and Airtable allows 5 requests per second per base and 50 per second per personal access token across every binding and Step. Runtime value in milliseconds. */
11
11
  pollIntervalMs?: number;
@@ -24,10 +24,56 @@ interface Credentials {
24
24
  /** Secret Airtable personal access token copied once from https://airtable.com/create/tokens after choosing Create new token; it starts with pat and is otherwise an opaque string, Dex Web stores it as a secret, and blank means no Airtable call can authenticate. */
25
25
  personalAccessToken: SecretString;
26
26
  }
27
+ /** Stored credential material that fails the connector credential checks, so no retry can succeed. */
28
+ declare class CredentialMaterialError extends TypeError {
29
+ constructor(message: string);
30
+ }
31
+ /** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
32
+ declare function isCredentialMaterialError(error: unknown): boolean;
27
33
  /** Decode private credential fields for the connector. */
28
34
  declare function decodeCredentials(value: unknown): Credentials;
29
35
  /** Host-owned source of private connector credentials. */
30
36
  type CredentialSource = CredentialProvider<Credentials>;
37
+ /** CreateRecordInput appends one record to an Airtable table.
38
+ * An unknown result may be resent up to MaxSends and can produce duplicates. */
39
+ interface CreateRecordInput {
40
+ /** BaseID is the Airtable base ID. */
41
+ "baseId": string;
42
+ /** TableIDOrName identifies the table, preferably by stable ID. */
43
+ "tableIdOrName": string;
44
+ /** Fields maps names or IDs to typed cell values. */
45
+ "fields": {
46
+ [key: string]: unknown | null;
47
+ } | null;
48
+ /** Typecast enables Airtable's best-effort conversion of text values. */
49
+ "typecast"?: boolean | undefined;
50
+ }
51
+ /** Record is one Airtable record as Airtable returned it. */
52
+ interface Record {
53
+ /** ID is the record ID, such as recXXXXXXXXXXXXXX. */
54
+ "id": string;
55
+ /** CreatedTime is when Airtable created the record, in UTC. */
56
+ "createdTime": string;
57
+ /** Fields maps each non-empty field, by field name, to its cell value.
58
+ * Airtable omits empty fields, so a missing key means the field is empty. */
59
+ "fields": {
60
+ [key: string]: unknown | null;
61
+ } | null;
62
+ }
63
+ /** DeleteRecordInput identifies the record whose absence is requested. */
64
+ interface DeleteRecordInput {
65
+ /** BaseID is the Airtable base ID. */
66
+ "baseId": string;
67
+ /** TableIDOrName identifies the table, preferably by stable ID. */
68
+ "tableIdOrName": string;
69
+ /** RecordID is the Airtable record ID. */
70
+ "recordId": string;
71
+ }
72
+ /** DeletedRecord confirms which record was removed. */
73
+ interface DeletedRecord {
74
+ /** RecordID is the requested record ID. */
75
+ "recordId": string;
76
+ }
31
77
  /** FieldEqualityFilter matches records whose field equals one typed value.
32
78
  * Exactly one of Text, Number, and Checkbox is set; prefer the constructors
33
79
  * TextFieldEquals, NumberFieldEquals, and CheckboxFieldEquals.
@@ -87,18 +133,6 @@ interface ListRecordsInput {
87
133
  /** Offset continues a listing from the previous page's Offset; blank starts at the first page. */
88
134
  "offset"?: string | undefined;
89
135
  }
90
- /** Record is one Airtable record as Airtable returned it. */
91
- interface Record {
92
- /** ID is the record ID, such as recXXXXXXXXXXXXXX. */
93
- "id": string;
94
- /** CreatedTime is when Airtable created the record, in UTC. */
95
- "createdTime": string;
96
- /** Fields maps each non-empty field, by field name, to its cell value.
97
- * Airtable omits empty fields, so a missing key means the field is empty. */
98
- "fields": {
99
- [key: string]: unknown | null;
100
- } | null;
101
- }
102
136
  /** RecordPage is one page of listed records. */
103
137
  interface RecordPage {
104
138
  /** Records holds at most the requested page size of records; an empty page is an empty list. */
@@ -196,6 +230,29 @@ interface UpdatedRecords {
196
230
  * attachment, such as attachmentsFailedUploading; empty when nothing failed. */
197
231
  "partialSuccessReasons"?: Array<string> | undefined;
198
232
  }
233
+ /** Runtime validator for CreateRecordInput. */
234
+ declare const CreateRecordInputSchema: z.ZodObject<{
235
+ baseId: z.ZodString;
236
+ tableIdOrName: z.ZodString;
237
+ fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>>;
238
+ typecast: z.ZodOptional<z.ZodBoolean>;
239
+ }, z.core.$strict>;
240
+ /** Runtime validator for Record. */
241
+ declare const RecordSchema: z.ZodObject<{
242
+ id: z.ZodString;
243
+ createdTime: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
244
+ fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>>;
245
+ }, z.core.$strict>;
246
+ /** Runtime validator for DeleteRecordInput. */
247
+ declare const DeleteRecordInputSchema: z.ZodObject<{
248
+ baseId: z.ZodString;
249
+ tableIdOrName: z.ZodString;
250
+ recordId: z.ZodString;
251
+ }, z.core.$strict>;
252
+ /** Runtime validator for DeletedRecord. */
253
+ declare const DeletedRecordSchema: z.ZodObject<{
254
+ recordId: z.ZodString;
255
+ }, z.core.$strict>;
199
256
  /** Runtime validator for FieldEqualityFilter. */
200
257
  declare const FieldEqualityFilterSchema: z.ZodObject<{
201
258
  field: z.ZodString;
@@ -228,12 +285,6 @@ declare const ListRecordsInputSchema: z.ZodObject<{
228
285
  pageSize: z.ZodOptional<z.ZodNumber>;
229
286
  offset: z.ZodOptional<z.ZodString>;
230
287
  }, z.core.$strict>;
231
- /** Runtime validator for Record. */
232
- declare const RecordSchema: z.ZodObject<{
233
- id: z.ZodString;
234
- createdTime: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
235
- fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>>;
236
- }, z.core.$strict>;
237
288
  /** Runtime validator for RecordPage. */
238
289
  declare const RecordPageSchema: z.ZodObject<{
239
290
  records: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -302,6 +353,10 @@ declare const UpdatedRecordsSchema: z.ZodObject<{
302
353
 
303
354
  /** Typed operations supplied by a client or mock. */
304
355
  interface Operations {
356
+ /** Invoke createRecord through this connection. */
357
+ createRecord(): Mutation<CreateRecordInput, Record>;
358
+ /** Invoke deleteRecord through this connection. */
359
+ deleteRecord(): Mutation<DeleteRecordInput, DeletedRecord>;
305
360
  /** Invoke listRecords through this connection. */
306
361
  listRecords(): Query<ListRecordsInput, RecordPage>;
307
362
  /** Invoke getRecord through this connection. */
@@ -325,4 +380,4 @@ declare function newConnection(client: Operations, reference: ConnectionRef): Co
325
380
  /** Bind scripted operations to a named connection. */
326
381
  declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
327
382
 
328
- export { Connection as C, type FieldEqualityFilter as F, type GetRecordInput as G, type ListRecordsInput as L, type Operations as O, type Record as R, type UpdateRecordsInput as U, type RecordPage as a, type UpdatedRecords as b, type UpsertRecordsInput as c, type UpsertedRecords as d, type Config as e, type Credentials as f, ConfigSchema as g, type CredentialSource as h, FieldEqualityFilterSchema as i, GetRecordInputSchema as j, ListRecordsInputSchema as k, RecordPageSchema as l, RecordSchema as m, type RecordSort as n, RecordSortSchema as o, type RecordUpdate as p, RecordUpdateSchema as q, type RecordUpsert as r, RecordUpsertSchema as s, UpdateRecordsInputSchema as t, UpdatedRecordsSchema as u, UpsertRecordsInputSchema as v, UpsertedRecordsSchema as w, decodeCredentials as x, newConnection as y, newConnectionWithOperations as z };
383
+ export { UpdatedRecordsSchema as A, UpsertRecordsInputSchema as B, type CreateRecordInput as C, type DeleteRecordInput as D, UpsertedRecordsSchema as E, type FieldEqualityFilter as F, type GetRecordInput as G, decodeCredentials as H, isCredentialMaterialError as I, newConnection as J, newConnectionWithOperations as K, type ListRecordsInput as L, type Operations as O, type Record as R, type UpdateRecordsInput as U, Connection as a, type DeletedRecord as b, type RecordPage as c, type UpdatedRecords as d, type UpsertRecordsInput as e, type UpsertedRecords as f, type Config as g, type Credentials as h, ConfigSchema as i, CreateRecordInputSchema as j, CredentialMaterialError as k, type CredentialSource as l, DeleteRecordInputSchema as m, DeletedRecordSchema as n, FieldEqualityFilterSchema as o, GetRecordInputSchema as p, ListRecordsInputSchema as q, RecordPageSchema as r, RecordSchema as s, type RecordSort as t, RecordSortSchema as u, type RecordUpdate as v, RecordUpdateSchema as w, type RecordUpsert as x, RecordUpsertSchema as y, UpdateRecordsInputSchema as z };