skedyul 1.5.12 → 1.5.13

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.
@@ -18,9 +18,9 @@ export type CapabilityType = 'messaging' | 'voice' | 'video';
18
18
  * Prefer this over a bare `send_batch` string when status tracking is supported.
19
19
  */
20
20
  export interface ChannelBatchCapability {
21
- /** Tool that accepts the batch and returns an operationId */
21
+ /** Tool that accepts the batch and returns an externalChunkId for status polling */
22
22
  send: string;
23
- /** Tool that fetches operation + per-message status by operationId */
23
+ /** Tool that fetches chunk + per-message status by externalChunkId */
24
24
  get_status: string;
25
25
  }
26
26
  /**
@@ -1935,7 +1935,8 @@ var MessageBulkSendInputSchema = z8.object({
1935
1935
  });
1936
1936
  var MessageBulkSendOutputSchema = z8.object({
1937
1937
  status: z8.enum(["accepted", "failed"]),
1938
- operationId: z8.string().optional(),
1938
+ /** Provider async batch id for status polling. Integrations map provider ids to this field. */
1939
+ externalChunkId: z8.string().optional(),
1939
1940
  acceptedCount: z8.number().int().nonnegative(),
1940
1941
  rejectedCount: z8.number().int().nonnegative().optional()
1941
1942
  });
@@ -1962,15 +1963,15 @@ var MessageBulkStatusStatsSchema = z8.object({
1962
1963
  });
1963
1964
  var MessageBulkStatusInputSchema = z8.object({
1964
1965
  channel: MessageSendChannelSchema,
1965
- operationId: z8.string().min(1)
1966
+ externalChunkId: z8.string().min(1)
1966
1967
  });
1967
1968
  var MessageBulkStatusOutputSchema = z8.object({
1968
- operationId: z8.string(),
1969
+ externalChunkId: z8.string(),
1969
1970
  status: z8.string(),
1970
1971
  complete: z8.boolean(),
1971
1972
  /**
1972
1973
  * When true, the provider skipped real delivery (e.g. MOCK_OUTBOUND_MESSAGES).
1973
- * Core should mark all recipients in the operation as sent without per-message rows.
1974
+ * Core should mark all recipients in the chunk as sent without per-message rows.
1974
1975
  */
1975
1976
  mock: z8.boolean().optional(),
1976
1977
  stats: MessageBulkStatusStatsSchema.optional(),
package/dist/index.js CHANGED
@@ -2285,7 +2285,8 @@ var MessageBulkSendInputSchema = import_v48.z.object({
2285
2285
  });
2286
2286
  var MessageBulkSendOutputSchema = import_v48.z.object({
2287
2287
  status: import_v48.z.enum(["accepted", "failed"]),
2288
- operationId: import_v48.z.string().optional(),
2288
+ /** Provider async batch id for status polling. Integrations map provider ids to this field. */
2289
+ externalChunkId: import_v48.z.string().optional(),
2289
2290
  acceptedCount: import_v48.z.number().int().nonnegative(),
2290
2291
  rejectedCount: import_v48.z.number().int().nonnegative().optional()
2291
2292
  });
@@ -2312,15 +2313,15 @@ var MessageBulkStatusStatsSchema = import_v48.z.object({
2312
2313
  });
2313
2314
  var MessageBulkStatusInputSchema = import_v48.z.object({
2314
2315
  channel: MessageSendChannelSchema,
2315
- operationId: import_v48.z.string().min(1)
2316
+ externalChunkId: import_v48.z.string().min(1)
2316
2317
  });
2317
2318
  var MessageBulkStatusOutputSchema = import_v48.z.object({
2318
- operationId: import_v48.z.string(),
2319
+ externalChunkId: import_v48.z.string(),
2319
2320
  status: import_v48.z.string(),
2320
2321
  complete: import_v48.z.boolean(),
2321
2322
  /**
2322
2323
  * When true, the provider skipped real delivery (e.g. MOCK_OUTBOUND_MESSAGES).
2323
- * Core should mark all recipients in the operation as sent without per-message rows.
2324
+ * Core should mark all recipients in the chunk as sent without per-message rows.
2324
2325
  */
2325
2326
  mock: import_v48.z.boolean().optional(),
2326
2327
  stats: MessageBulkStatusStatsSchema.optional(),
package/dist/schemas.d.ts CHANGED
@@ -4888,7 +4888,7 @@ export declare const MessageBulkSendOutputSchema: z.ZodObject<{
4888
4888
  failed: "failed";
4889
4889
  accepted: "accepted";
4890
4890
  }>;
4891
- operationId: z.ZodOptional<z.ZodString>;
4891
+ externalChunkId: z.ZodOptional<z.ZodString>;
4892
4892
  acceptedCount: z.ZodNumber;
4893
4893
  rejectedCount: z.ZodOptional<z.ZodNumber>;
4894
4894
  }, z.core.$strip>;
@@ -4922,10 +4922,10 @@ export declare const MessageBulkStatusInputSchema: z.ZodObject<{
4922
4922
  handle: z.ZodString;
4923
4923
  identifierValue: z.ZodString;
4924
4924
  }, z.core.$strip>;
4925
- operationId: z.ZodString;
4925
+ externalChunkId: z.ZodString;
4926
4926
  }, z.core.$strip>;
4927
4927
  export declare const MessageBulkStatusOutputSchema: z.ZodObject<{
4928
- operationId: z.ZodString;
4928
+ externalChunkId: z.ZodString;
4929
4929
  status: z.ZodString;
4930
4930
  complete: z.ZodBoolean;
4931
4931
  mock: z.ZodOptional<z.ZodBoolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",