syllable-sdk 1.0.7 → 1.0.8-rc.1

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 (42) hide show
  1. package/bin/mcp-server.js +53 -16
  2. package/bin/mcp-server.js.map +11 -10
  3. package/docs/sdks/batches/README.md +4 -4
  4. package/docs/sdks/directory/README.md +2 -6
  5. package/docs/sdks/workflows/README.md +8 -8
  6. package/examples/package-lock.json +1 -1
  7. package/funcs/directoryUpdate.js +3 -1
  8. package/funcs/directoryUpdate.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/lib/config.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/mcp-server.js.map +1 -1
  15. package/mcp-server/server.js +1 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/models/components/directorymember.d.ts +4 -4
  18. package/models/components/directorymember.d.ts.map +1 -1
  19. package/models/components/directorymember.js +4 -4
  20. package/models/components/directorymember.js.map +1 -1
  21. package/models/components/directorymemberupdate.d.ts +60 -0
  22. package/models/components/directorymemberupdate.d.ts.map +1 -0
  23. package/models/components/directorymemberupdate.js +87 -0
  24. package/models/components/directorymemberupdate.js.map +1 -0
  25. package/models/components/index.d.ts +1 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/operations/directorymemberupdate.d.ts +2 -2
  30. package/models/operations/directorymemberupdate.d.ts.map +1 -1
  31. package/models/operations/directorymemberupdate.js +4 -4
  32. package/models/operations/directorymemberupdate.js.map +1 -1
  33. package/openapi.json +136 -52
  34. package/package.json +1 -1
  35. package/src/funcs/directoryUpdate.ts +3 -1
  36. package/src/lib/config.ts +2 -2
  37. package/src/mcp-server/mcp-server.ts +1 -1
  38. package/src/mcp-server/server.ts +1 -1
  39. package/src/models/components/directorymember.ts +8 -10
  40. package/src/models/components/directorymemberupdate.ts +115 -0
  41. package/src/models/components/index.ts +1 -0
  42. package/src/models/operations/directorymemberupdate.ts +6 -6
package/openapi.json CHANGED
@@ -8916,7 +8916,7 @@
8916
8916
  "content": {
8917
8917
  "application/json": {
8918
8918
  "schema": {
8919
- "$ref": "#/components/schemas/DirectoryMember"
8919
+ "$ref": "#/components/schemas/DirectoryMemberUpdate"
8920
8920
  }
8921
8921
  }
8922
8922
  }
@@ -13785,7 +13785,7 @@
13785
13785
  "title": "Batch Id",
13786
13786
  "description": "Unique ID for conversation batch",
13787
13787
  "examples": [
13788
- "20251029.9"
13788
+ "20251030.9"
13789
13789
  ]
13790
13790
  },
13791
13791
  "campaign_id": {
@@ -13809,7 +13809,7 @@
13809
13809
  "title": "Expires On",
13810
13810
  "description": "Timestamp of batch expiration",
13811
13811
  "examples": [
13812
- "2025-10-30T00:00:00Z"
13812
+ "2025-10-31T00:00:00Z"
13813
13813
  ]
13814
13814
  },
13815
13815
  "paused": {
@@ -13862,7 +13862,7 @@
13862
13862
  "title": "Created At",
13863
13863
  "description": "Timestamp of batch creation",
13864
13864
  "examples": [
13865
- "2025-10-29T00:00:00Z"
13865
+ "2025-10-30T00:00:00Z"
13866
13866
  ]
13867
13867
  },
13868
13868
  "deleted_at": {
@@ -13878,7 +13878,7 @@
13878
13878
  "title": "Deleted At",
13879
13879
  "description": "Timestamp of batch deletion",
13880
13880
  "examples": [
13881
- "2025-10-29T00:00:00Z"
13881
+ "2025-10-30T00:00:00Z"
13882
13882
  ]
13883
13883
  },
13884
13884
  "deleted_reason": {
@@ -13909,7 +13909,7 @@
13909
13909
  "title": "Last Updated At",
13910
13910
  "description": "Timestamp of last change to batch",
13911
13911
  "examples": [
13912
- "2025-10-29T00:00:00Z"
13912
+ "2025-10-30T00:00:00Z"
13913
13913
  ]
13914
13914
  },
13915
13915
  "last_updated_by": {
@@ -14665,7 +14665,7 @@
14665
14665
  "title": "Batch Id",
14666
14666
  "description": "Unique ID for conversation batch",
14667
14667
  "examples": [
14668
- "20251029.9"
14668
+ "20251030.9"
14669
14669
  ]
14670
14670
  },
14671
14671
  "campaign_id": {
@@ -14689,7 +14689,7 @@
14689
14689
  "title": "Expires On",
14690
14690
  "description": "Timestamp of batch expiration",
14691
14691
  "examples": [
14692
- "2025-10-30T00:00:00Z"
14692
+ "2025-10-31T00:00:00Z"
14693
14693
  ]
14694
14694
  },
14695
14695
  "paused": {
@@ -14742,7 +14742,7 @@
14742
14742
  "title": "Created At",
14743
14743
  "description": "Timestamp of batch creation",
14744
14744
  "examples": [
14745
- "2025-10-29T00:00:00Z"
14745
+ "2025-10-30T00:00:00Z"
14746
14746
  ]
14747
14747
  },
14748
14748
  "deleted_at": {
@@ -14758,7 +14758,7 @@
14758
14758
  "title": "Deleted At",
14759
14759
  "description": "Timestamp of batch deletion",
14760
14760
  "examples": [
14761
- "2025-10-29T00:00:00Z"
14761
+ "2025-10-30T00:00:00Z"
14762
14762
  ]
14763
14763
  },
14764
14764
  "deleted_reason": {
@@ -14789,7 +14789,7 @@
14789
14789
  "title": "Last Updated At",
14790
14790
  "description": "Timestamp of last change to batch",
14791
14791
  "examples": [
14792
- "2025-10-29T00:00:00Z"
14792
+ "2025-10-30T00:00:00Z"
14793
14793
  ]
14794
14794
  },
14795
14795
  "last_updated_by": {
@@ -14832,7 +14832,7 @@
14832
14832
  "title": "Batch Id",
14833
14833
  "description": "Unique ID for conversation batch",
14834
14834
  "examples": [
14835
- "20251029.9"
14835
+ "20251030.9"
14836
14836
  ]
14837
14837
  },
14838
14838
  "campaign_id": {
@@ -14856,7 +14856,7 @@
14856
14856
  "title": "Expires On",
14857
14857
  "description": "Timestamp of batch expiration",
14858
14858
  "examples": [
14859
- "2025-10-30T00:00:00Z"
14859
+ "2025-10-31T00:00:00Z"
14860
14860
  ]
14861
14861
  },
14862
14862
  "paused": {
@@ -15005,7 +15005,7 @@
15005
15005
  "title": "Created At",
15006
15006
  "description": "Timestamp of request creation",
15007
15007
  "examples": [
15008
- "2025-10-28T00:00:00Z"
15008
+ "2025-10-29T00:00:00Z"
15009
15009
  ]
15010
15010
  },
15011
15011
  "sent_at": {
@@ -15021,7 +15021,7 @@
15021
15021
  "title": "Sent At",
15022
15022
  "description": "Timestamp at which request was sent",
15023
15023
  "examples": [
15024
- "2025-10-29T00:00:00Z"
15024
+ "2025-10-30T00:00:00Z"
15025
15025
  ]
15026
15026
  },
15027
15027
  "attempt_count": {
@@ -16658,14 +16658,7 @@
16658
16658
  ]
16659
16659
  },
16660
16660
  "id": {
16661
- "anyOf": [
16662
- {
16663
- "type": "integer"
16664
- },
16665
- {
16666
- "type": "null"
16667
- }
16668
- ],
16661
+ "type": "integer",
16669
16662
  "title": "Id",
16670
16663
  "description": "Internal ID of the directory member",
16671
16664
  "examples": [
@@ -16673,15 +16666,8 @@
16673
16666
  ]
16674
16667
  },
16675
16668
  "updated_at": {
16676
- "anyOf": [
16677
- {
16678
- "type": "string",
16679
- "format": "date-time"
16680
- },
16681
- {
16682
- "type": "null"
16683
- }
16684
- ],
16669
+ "type": "string",
16670
+ "format": "date-time",
16685
16671
  "title": "Updated At",
16686
16672
  "description": "Timestamp of most recent update",
16687
16673
  "examples": [
@@ -16707,7 +16693,9 @@
16707
16693
  "type": "object",
16708
16694
  "required": [
16709
16695
  "name",
16710
- "type"
16696
+ "type",
16697
+ "id",
16698
+ "updated_at"
16711
16699
  ],
16712
16700
  "title": "DirectoryMember",
16713
16701
  "description": "Model for a directory member (i.e. a contact)."
@@ -16830,6 +16818,102 @@
16830
16818
  "type": "object",
16831
16819
  "title": "DirectoryMemberTestResponse"
16832
16820
  },
16821
+ "DirectoryMemberUpdate": {
16822
+ "properties": {
16823
+ "name": {
16824
+ "type": "string",
16825
+ "title": "Name",
16826
+ "description": "Name of the directory member",
16827
+ "examples": [
16828
+ "Jane Doe"
16829
+ ]
16830
+ },
16831
+ "type": {
16832
+ "type": "string",
16833
+ "title": "Type",
16834
+ "description": "Type of the directory member",
16835
+ "examples": [
16836
+ "contact"
16837
+ ]
16838
+ },
16839
+ "extensions": {
16840
+ "anyOf": [
16841
+ {
16842
+ "items": {
16843
+ "$ref": "#/components/schemas/DirectoryExtension"
16844
+ },
16845
+ "type": "array"
16846
+ },
16847
+ {
16848
+ "type": "null"
16849
+ }
16850
+ ],
16851
+ "title": "Extensions",
16852
+ "description": "List of extensions for the directory member",
16853
+ "examples": [
16854
+ [
16855
+ {
16856
+ "name": "work",
16857
+ "numbers": [
16858
+ {
16859
+ "number": "+1234567890",
16860
+ "rules": [
16861
+ {
16862
+ "language": "en"
16863
+ }
16864
+ ]
16865
+ }
16866
+ ]
16867
+ }
16868
+ ]
16869
+ ]
16870
+ },
16871
+ "contact_tags": {
16872
+ "anyOf": [
16873
+ {
16874
+ "additionalProperties": {
16875
+ "items": {
16876
+ "type": "string"
16877
+ },
16878
+ "type": "array"
16879
+ },
16880
+ "type": "object"
16881
+ },
16882
+ {
16883
+ "type": "null"
16884
+ }
16885
+ ],
16886
+ "title": "Contact Tags",
16887
+ "description": "Tags for the directory member",
16888
+ "examples": [
16889
+ {
16890
+ "tag1": [
16891
+ "value1"
16892
+ ],
16893
+ "tag2": [
16894
+ "value2"
16895
+ ]
16896
+ }
16897
+ ]
16898
+ },
16899
+ "id": {
16900
+ "type": "integer",
16901
+ "title": "Id",
16902
+ "description": "Internal ID of the directory member",
16903
+ "examples": [
16904
+ 1
16905
+ ]
16906
+ }
16907
+ },
16908
+ "type": "object",
16909
+ "required": [
16910
+ "name",
16911
+ "type",
16912
+ "id"
16913
+ ],
16914
+ "title": "DirectoryMemberUpdate",
16915
+ "description": "Request model to update a directory member."
16916
+ },
16833
16917
  "Event": {
16834
16918
  "properties": {
16835
16919
  "timestamp": {
@@ -17039,7 +17123,7 @@
17039
17123
  "title": "Created At",
17040
17124
  "description": "Timestamp at which insight upload folder was created",
17041
17125
  "examples": [
17042
- "2025-10-28T00:00:00Z"
17126
+ "2025-10-29T00:00:00Z"
17043
17127
  ]
17044
17128
  },
17045
17129
  "updated_at": {
@@ -17048,7 +17132,7 @@
17048
17132
  "title": "Updated At",
17049
17133
  "description": "Timestamp at which insight upload folder was last updated",
17050
17134
  "examples": [
17051
- "2025-10-29T00:00:00Z"
17135
+ "2025-10-30T00:00:00Z"
17052
17136
  ]
17053
17137
  },
17054
17138
  "last_updated_by": {
@@ -17734,7 +17818,7 @@
17734
17818
  "title": "Created At",
17735
17819
  "description": "Timestamp of at which insight tool configuration was created",
17736
17820
  "examples": [
17737
- "2025-10-28T00:00:00Z"
17821
+ "2025-10-29T00:00:00Z"
17738
17822
  ]
17739
17823
  },
17740
17824
  "updated_at": {
@@ -17743,7 +17827,7 @@
17743
17827
  "title": "Updated At",
17744
17828
  "description": "Timestamp at which insight tool configuration was last updated",
17745
17829
  "examples": [
17746
- "2025-10-29T00:00:00Z"
17830
+ "2025-10-30T00:00:00Z"
17747
17831
  ]
17748
17832
  },
17749
17833
  "last_updated_by": {
@@ -18124,7 +18208,7 @@
18124
18208
  "title": "Start Datetime",
18125
18209
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
18126
18210
  "examples": [
18127
- "2025-10-28T00:00:00Z"
18211
+ "2025-10-29T00:00:00Z"
18128
18212
  ]
18129
18213
  },
18130
18214
  "end_datetime": {
@@ -18140,7 +18224,7 @@
18140
18224
  "title": "End Datetime",
18141
18225
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
18142
18226
  "examples": [
18143
- "2025-10-29T00:00:00Z"
18227
+ "2025-10-30T00:00:00Z"
18144
18228
  ]
18145
18229
  }
18146
18230
  },
@@ -18215,7 +18299,7 @@
18215
18299
  "title": "Start Datetime",
18216
18300
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
18217
18301
  "examples": [
18218
- "2025-10-28T00:00:00Z"
18302
+ "2025-10-29T00:00:00Z"
18219
18303
  ]
18220
18304
  },
18221
18305
  "end_datetime": {
@@ -18231,7 +18315,7 @@
18231
18315
  "title": "End Datetime",
18232
18316
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
18233
18317
  "examples": [
18234
- "2025-10-29T00:00:00Z"
18318
+ "2025-10-30T00:00:00Z"
18235
18319
  ]
18236
18320
  },
18237
18321
  "id": {
@@ -18284,7 +18368,7 @@
18284
18368
  "title": "Created At",
18285
18369
  "description": "Timestamp at which the insight workflow was created",
18286
18370
  "examples": [
18287
- "2025-10-28T00:00:00Z"
18371
+ "2025-10-29T00:00:00Z"
18288
18372
  ]
18289
18373
  },
18290
18374
  "updated_at": {
@@ -18293,7 +18377,7 @@
18293
18377
  "title": "Updated At",
18294
18378
  "description": "Timestamp of most recent update to the insight workflow",
18295
18379
  "examples": [
18296
- "2025-10-29T00:00:00Z"
18380
+ "2025-10-30T00:00:00Z"
18297
18381
  ]
18298
18382
  },
18299
18383
  "last_updated_by": {
@@ -18389,7 +18473,7 @@
18389
18473
  "title": "Created At",
18390
18474
  "description": "Timestamp at which insight upload folder was created",
18391
18475
  "examples": [
18392
- "2025-10-28T00:00:00Z"
18476
+ "2025-10-29T00:00:00Z"
18393
18477
  ]
18394
18478
  },
18395
18479
  "updated_at": {
@@ -18398,7 +18482,7 @@
18398
18482
  "title": "Updated At",
18399
18483
  "description": "Timestamp at which insight upload folder was last updated",
18400
18484
  "examples": [
18401
- "2025-10-29T00:00:00Z"
18485
+ "2025-10-30T00:00:00Z"
18402
18486
  ]
18403
18487
  },
18404
18488
  "last_updated_by": {
@@ -18633,7 +18717,7 @@
18633
18717
  "title": "Created At",
18634
18718
  "description": "Timestamp at which insight tool result was created",
18635
18719
  "examples": [
18636
- "2025-10-28T00:00:00Z"
18720
+ "2025-10-29T00:00:00Z"
18637
18721
  ]
18638
18722
  },
18639
18723
  "updated_at": {
@@ -18642,7 +18726,7 @@
18642
18726
  "title": "Updated At",
18643
18727
  "description": "Timestamp at which insight tool result was last updated",
18644
18728
  "examples": [
18645
- "2025-10-29T00:00:00Z"
18729
+ "2025-10-30T00:00:00Z"
18646
18730
  ]
18647
18731
  },
18648
18732
  "upload_file_metadata": {
@@ -18787,7 +18871,7 @@
18787
18871
  "title": "Start Time",
18788
18872
  "description": "Start time of the uploaded file",
18789
18873
  "examples": [
18790
- "2025-10-28T00:00:00Z"
18874
+ "2025-10-29T00:00:00Z"
18791
18875
  ]
18792
18876
  },
18793
18877
  "end_time": {
@@ -18803,7 +18887,7 @@
18803
18887
  "title": "End Time",
18804
18888
  "description": "End time of the uploaded file",
18805
18889
  "examples": [
18806
- "2025-10-29T00:00:00Z"
18890
+ "2025-10-30T00:00:00Z"
18807
18891
  ]
18808
18892
  },
18809
18893
  "error_message": {
@@ -18858,7 +18942,7 @@
18858
18942
  "title": "Created At",
18859
18943
  "description": "Timestamp at which insight upload file was created",
18860
18944
  "examples": [
18861
- "2025-10-28T00:00:00Z"
18945
+ "2025-10-29T00:00:00Z"
18862
18946
  ]
18863
18947
  }
18864
18948
  },
@@ -22031,7 +22115,7 @@
22031
22115
  "title": "Created At",
22032
22116
  "description": "Timestamp of campaign creation",
22033
22117
  "examples": [
22034
- "2025-10-29T00:00:00Z"
22118
+ "2025-10-30T00:00:00Z"
22035
22119
  ]
22036
22120
  },
22037
22121
  "updated_at": {
@@ -22040,7 +22124,7 @@
22040
22124
  "title": "Updated At",
22041
22125
  "description": "Timestamp of campaign update",
22042
22126
  "examples": [
22043
- "2025-10-29T00:00:00Z"
22127
+ "2025-10-30T00:00:00Z"
22044
22128
  ]
22045
22129
  },
22046
22130
  "last_updated_by": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8-rc.1",
4
4
  "author": "Syllable",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -88,7 +88,9 @@ async function $do(
88
88
  return [parsed, { status: "invalid" }];
89
89
  }
90
90
  const payload = parsed.value;
91
- const body = encodeJSON("body", payload.DirectoryMember, { explode: true });
91
+ const body = encodeJSON("body", payload.DirectoryMemberUpdate, {
92
+ explode: true,
93
+ });
92
94
 
93
95
  const pathParams = {
94
96
  member_id: encodeSimple("member_id", payload.member_id, {
package/src/lib/config.ts CHANGED
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.2",
64
- sdkVersion: "1.0.7",
64
+ sdkVersion: "1.0.8-rc.1",
65
65
  genVersion: "2.731.6",
66
- userAgent: "speakeasy-sdk/typescript 1.0.7 2.731.6 0.0.2 syllable-sdk",
66
+ userAgent: "speakeasy-sdk/typescript 1.0.8-rc.1 2.731.6 0.0.2 syllable-sdk",
67
67
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.0.7",
22
+ currentVersion: "1.0.8-rc.1",
23
23
  },
24
24
  });
25
25
 
@@ -183,7 +183,7 @@ export function createMCPServer(deps: {
183
183
  }) {
184
184
  const server = new McpServer({
185
185
  name: "SyllableSDK",
186
- version: "1.0.7",
186
+ version: "1.0.8-rc.1",
187
187
  });
188
188
 
189
189
  const client = new SyllableSDKCore({
@@ -37,11 +37,11 @@ export type DirectoryMember = {
37
37
  /**
38
38
  * Internal ID of the directory member
39
39
  */
40
- id?: number | null | undefined;
40
+ id: number;
41
41
  /**
42
42
  * Timestamp of most recent update
43
43
  */
44
- updatedAt?: Date | null | undefined;
44
+ updatedAt: Date;
45
45
  /**
46
46
  * Email of the user who last updated the directory member
47
47
  */
@@ -58,10 +58,8 @@ export const DirectoryMember$inboundSchema: z.ZodType<
58
58
  type: z.string(),
59
59
  extensions: z.nullable(z.array(DirectoryExtension$inboundSchema)).optional(),
60
60
  contact_tags: z.nullable(z.record(z.array(z.string()))).optional(),
61
- id: z.nullable(z.number().int()).optional(),
62
- updated_at: z.nullable(
63
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
64
- ).optional(),
61
+ id: z.number().int(),
62
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
65
63
  last_updated_by: z.nullable(z.string()).optional(),
66
64
  }).transform((v) => {
67
65
  return remap$(v, {
@@ -77,8 +75,8 @@ export type DirectoryMember$Outbound = {
77
75
  type: string;
78
76
  extensions?: Array<DirectoryExtension$Outbound> | null | undefined;
79
77
  contact_tags?: { [k: string]: Array<string> } | null | undefined;
80
- id?: number | null | undefined;
81
- updated_at?: string | null | undefined;
78
+ id: number;
79
+ updated_at: string;
82
80
  last_updated_by?: string | null | undefined;
83
81
  };
84
82
 
@@ -92,8 +90,8 @@ export const DirectoryMember$outboundSchema: z.ZodType<
92
90
  type: z.string(),
93
91
  extensions: z.nullable(z.array(DirectoryExtension$outboundSchema)).optional(),
94
92
  contactTags: z.nullable(z.record(z.array(z.string()))).optional(),
95
- id: z.nullable(z.number().int()).optional(),
96
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
93
+ id: z.number().int(),
94
+ updatedAt: z.date().transform(v => v.toISOString()),
97
95
  lastUpdatedBy: z.nullable(z.string()).optional(),
98
96
  }).transform((v) => {
99
97
  return remap$(v, {
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ DirectoryExtension,
12
+ DirectoryExtension$inboundSchema,
13
+ DirectoryExtension$Outbound,
14
+ DirectoryExtension$outboundSchema,
15
+ } from "./directoryextension.js";
16
+
17
+ /**
18
+ * Request model to update a directory member.
19
+ */
20
+ export type DirectoryMemberUpdate = {
21
+ /**
22
+ * Name of the directory member
23
+ */
24
+ name: string;
25
+ /**
26
+ * Type of the directory member
27
+ */
28
+ type: string;
29
+ /**
30
+ * List of extensions for the directory member
31
+ */
32
+ extensions?: Array<DirectoryExtension> | null | undefined;
33
+ /**
34
+ * Tags for the directory member
35
+ */
36
+ contactTags?: { [k: string]: Array<string> } | null | undefined;
37
+ /**
38
+ * Internal ID of the directory member
39
+ */
40
+ id: number;
41
+ };
42
+
43
+ /** @internal */
44
+ export const DirectoryMemberUpdate$inboundSchema: z.ZodType<
45
+ DirectoryMemberUpdate,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({
49
+ name: z.string(),
50
+ type: z.string(),
51
+ extensions: z.nullable(z.array(DirectoryExtension$inboundSchema)).optional(),
52
+ contact_tags: z.nullable(z.record(z.array(z.string()))).optional(),
53
+ id: z.number().int(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ "contact_tags": "contactTags",
57
+ });
58
+ });
59
+
60
+ /** @internal */
61
+ export type DirectoryMemberUpdate$Outbound = {
62
+ name: string;
63
+ type: string;
64
+ extensions?: Array<DirectoryExtension$Outbound> | null | undefined;
65
+ contact_tags?: { [k: string]: Array<string> } | null | undefined;
66
+ id: number;
67
+ };
68
+
69
+ /** @internal */
70
+ export const DirectoryMemberUpdate$outboundSchema: z.ZodType<
71
+ DirectoryMemberUpdate$Outbound,
72
+ z.ZodTypeDef,
73
+ DirectoryMemberUpdate
74
+ > = z.object({
75
+ name: z.string(),
76
+ type: z.string(),
77
+ extensions: z.nullable(z.array(DirectoryExtension$outboundSchema)).optional(),
78
+ contactTags: z.nullable(z.record(z.array(z.string()))).optional(),
79
+ id: z.number().int(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ contactTags: "contact_tags",
83
+ });
84
+ });
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace DirectoryMemberUpdate$ {
91
+ /** @deprecated use `DirectoryMemberUpdate$inboundSchema` instead. */
92
+ export const inboundSchema = DirectoryMemberUpdate$inboundSchema;
93
+ /** @deprecated use `DirectoryMemberUpdate$outboundSchema` instead. */
94
+ export const outboundSchema = DirectoryMemberUpdate$outboundSchema;
95
+ /** @deprecated use `DirectoryMemberUpdate$Outbound` instead. */
96
+ export type Outbound = DirectoryMemberUpdate$Outbound;
97
+ }
98
+
99
+ export function directoryMemberUpdateToJSON(
100
+ directoryMemberUpdate: DirectoryMemberUpdate,
101
+ ): string {
102
+ return JSON.stringify(
103
+ DirectoryMemberUpdate$outboundSchema.parse(directoryMemberUpdate),
104
+ );
105
+ }
106
+
107
+ export function directoryMemberUpdateFromJSON(
108
+ jsonString: string,
109
+ ): SafeParseResult<DirectoryMemberUpdate, SDKValidationError> {
110
+ return safeParse(
111
+ jsonString,
112
+ (x) => DirectoryMemberUpdate$inboundSchema.parse(JSON.parse(x)),
113
+ `Failed to parse 'DirectoryMemberUpdate' from JSON`,
114
+ );
115
+ }
@@ -72,6 +72,7 @@ export * from "./directorymember.js";
72
72
  export * from "./directorymembercreate.js";
73
73
  export * from "./directorymemberproperties.js";
74
74
  export * from "./directorymembertestresponse.js";
75
+ export * from "./directorymemberupdate.js";
75
76
  export * from "./event.js";
76
77
  export * from "./eventproperties.js";
77
78
  export * from "./folderdetails.js";